Command-line interface for the SiloWorker workflow automation platform.
git clone <repository-url>
cd siloworker-cli
npm install
npm run install-globalnpm install -g siloworker-cli-
Authenticate:
siloworker auth login
-
Create a project:
siloworker project create -n "My Project" -d "Project description"
-
Create an agent:
siloworker agent create -n "My Agent" -p <project-id>
-
Add tools to agent:
siloworker agent add-tool <agent-id> -t web_search -n "Web Search"
-
Run a workflow:
siloworker run start <agent-id> -d '{"input": "data"}'
siloworker auth login- Login and save API keysiloworker auth logout- Remove saved API keysiloworker auth status- Check authentication status
siloworker project list- List all projectssiloworker project create -n <name>- Create new projectsiloworker project delete <id>- Delete project
siloworker agent list- List all agentssiloworker agent create -n <name>- Create new agentsiloworker agent get <id>- Get agent detailssiloworker agent update <id>- Update agentsiloworker agent delete <id>- Delete agentsiloworker agent add-tool <id> -t <type>- Add tool to agentsiloworker agent remove-tool <id> <tool-id>- Remove tool from agentsiloworker agent list-tools <id>- List agent tools
siloworker schedule list- List all schedulessiloworker schedule create -n <name> -a <agent-id> -c <cron>- Create schedulesiloworker schedule enable <id>- Enable schedulesiloworker schedule disable <id>- Disable schedulesiloworker schedule delete <id>- Delete schedule
siloworker run start <agent-id>- Start workflow runsiloworker run status <id>- Get run statussiloworker run resume <id>- Resume failed runsiloworker run resume <id> --from-step <step-id>- Resume from specific stepsiloworker run list- List recent runssiloworker run resume-all-failed- Resume all failed runssiloworker run cancel-all-running- Cancel all running runssiloworker run cleanup --days <n>- Clean up old completed runs
siloworker config get [key]- Get configuration value(s)siloworker config set <key> <value>- Set configuration valuesiloworker config unset <key>- Remove configuration valuesiloworker config reset --force- Reset all configurationsiloworker config regenerate-key- Regenerate API key
siloworker workspace info- Show workspace informationsiloworker workspace usage- Show usage statisticssiloworker workspace set-api-key <service> <key>- Set API key for servicesiloworker workspace set-twilio <accountSid> <authToken>- Set Twilio credentials
siloworker template list- List available workflow templatessiloworker template get <id>- Get template details
siloworker tools list- List available tool typessiloworker tools triggers- List available trigger types
The CLI stores configuration in ~/.siloworker/config.json. You can manually edit this file or use the auth commands.
When a workflow run fails, you can resume it from any specific step instead of restarting the entire workflow:
-
Check failed run status to see completed steps:
siloworker run status run_12345
Output shows step IDs:
Steps completed: 3 ✓ node_0: Fetch User Data (320ms) ✓ node_1: Process Data (150ms) ✗ node_2: Send Email (failed) -
Resume from specific step:
# Resume from the failed step (re-executes node_2 and all following steps) siloworker run resume run_12345 --from-step node_2 # Resume from an earlier step (re-executes node_1 and all following steps) siloworker run resume run_12345 --from-step node_1
-
Resume entire workflow (default behavior):
siloworker run resume run_12345
This feature is useful for:
- Fixing configuration issues in specific steps
- Retrying failed external API calls
- Debugging workflow logic without re-running expensive operations
- Recovering from transient failures
Configure API keys for external services directly from the CLI:
# Set individual service API keys
siloworker workspace set-api-key sendgrid your_sendgrid_key
siloworker workspace set-api-key llm your_openai_key
# Set Twilio credentials (requires both account SID and auth token)
siloworker workspace set-twilio your_account_sid your_auth_tokenExplore pre-built workflow templates:
# List all available templates
siloworker template list
# Get details about a specific template
siloworker template get lead-notificationDiscover available tools and triggers for building workflows:
# List all available tool types
siloworker tools list
# List all available trigger types
siloworker tools triggersRegenerate your API key for enhanced security:
# Generate a new API key (invalidates the old one)
siloworker config regenerate-key# Install dependencies
npm install
# Run locally
node bin/cli.js --help
# Install globally for testing
npm run install-global