-
-
Notifications
You must be signed in to change notification settings - Fork 6
CLI Reference
Sandcastle provides 27 top-level CLI commands. All commands support the global --json flag for machine-readable output.
Interactive setup wizard. Creates .env file with:
- Sandbox backend selection (E2B, Docker, Local, Cloudflare)
- API keys for AI providers (Anthropic, OpenAI, etc.)
- License key prompt
- Optional Redis, PostgreSQL, S3 configuration
sandcastle initStart the API server and dashboard.
sandcastle serve # Default: http://0.0.0.0:8080
sandcastle serve --port 9090 # Custom port
sandcastle serve --host 127.0.0.1 # Localhost onlyRun local diagnostics. 7 sections:
- Python version and dependencies
- Environment variables and .env
- Database connectivity
- Sandbox backend health
- AI provider API key validation
- Tool/connector status
- License verification
sandcastle doctor
sandcastle doctor --json # Machine-readable outputQuick API health check.
sandcastle healthRun a workflow from a YAML file or workflow name.
sandcastle run workflow.yaml # Run from file
sandcastle run lead-enrichment --input '{"company":"Acme"}' # By name with input
sandcastle run my-workflow --callback https://... # With callback URLGenerate a workflow from natural language description.
sandcastle generate "Monitor competitor pricing daily and alert on Slack"
sandcastle generate "Summarize all PDFs in a folder" --model sonnetShow run status and step details.
sandcastle status <run_id>
sandcastle status <run_id> --jsonCancel a running workflow.
sandcastle cancel <run_id>Stream real-time run events (SSE).
sandcastle logs <run_id> # Stream until completeReplay a run from a specific step.
sandcastle replay <run_id> --from-step analyzeFork a run with modifications.
sandcastle fork <run_id> --input '{"company":"NewCo"}'List resources.
sandcastle ls runs # List recent runs
sandcastle ls runs --status failed # Filter by status
sandcastle ls workflows # List workflow files
sandcastle ls schedules # List schedulesRun management subcommands.
sandcastle runs list # List all runs
sandcastle runs compare <id1> <id2> # Compare two runsList available templates.
sandcastle templates # List all 118 templates
sandcastle templates --json # Machine-readableManage cron schedules.
sandcastle schedule create lead-enrichment --cron "0 9 * * MON-FRI"
sandcastle schedule create seo-audit --cron "0 0 * * 0" # Weekly
sandcastle schedule delete <schedule_id>Approve a paused approval step.
sandcastle approve <approval_id>
sandcastle approve <approval_id> --note "Looks good, ship it"Reject a paused approval step.
sandcastle reject <approval_id>
sandcastle reject <approval_id> --note "Needs revision"Manage API keys.
sandcastle keys list
sandcastle keys create --name "CI Pipeline"
sandcastle keys create --name "Temp" --expires 7d
sandcastle keys delete <key_id>
sandcastle keys rotate <key_id>Manage failed runs.
sandcastle dlq list
sandcastle dlq retry <dlq_id>
sandcastle dlq resolve <dlq_id>Manage connectors.
sandcastle tools list # List all 56 tools
sandcastle tools configure slack # Set up Slack credentials
sandcastle tools configure github # Set up GitHub tokenBrowse and manage community templates.
sandcastle hub search "lead enrichment"
sandcastle hub search --category marketing
sandcastle hub install revenue-forecast-ensemble
sandcastle hub list # List installed community templates
sandcastle hub publish my-workflow.yaml
sandcastle hub collections # List curated collections
sandcastle hub install-collection complete-sales-stackRun evaluation suite against a workflow.
sandcastle eval my-workflow --suite quality-checksStart MCP (Model Context Protocol) server.
sandcastle mcp --url http://localhost:8080View policy violations.
sandcastle violations list
sandcastle violations list --severity criticalManage A/B testing experiments.
sandcastle autopilot list
sandcastle autopilot deploy <experiment_id>Run database migrations.
sandcastle db migrateStart background worker (for Redis/arq queue).
sandcastle worker| Flag | Description |
|---|---|
--json |
Output in JSON format (all commands) |
--help |
Show help for any command |
--version |
Show Sandcastle version |
Sandcastle v0.17.0 | BSL-1.1 License | Created by Tomas Pflanzer @gizmax