siloworker-cli
v1.0.3
Published
CLI for SiloWorker workflow automation platform
Downloads
420
Maintainers
Readme
SiloWorker CLI
Command-line interface for the SiloWorker workflow automation platform.
Installation
From Source
git clone <repository-url>
cd siloworker-cli
npm install
npm run install-globalFrom NPM (when published)
npm install -g siloworker-cliQuick Start
Authenticate:
siloworker auth loginCreate 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"}'
Commands
Authentication
siloworker auth login- Login and save API keysiloworker auth logout- Remove saved API keysiloworker auth status- Check authentication status
Projects
siloworker project list- List all projectssiloworker project create -n <name>- Create new projectsiloworker project delete <id>- Delete project
Agents
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
Schedules
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
Runs
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
Configuration
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
Workspaces
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
Templates
siloworker template list- List available workflow templatessiloworker template get <id>- Get template details
Tools & Triggers
siloworker tools list- List available tool typessiloworker tools triggers- List available trigger types
Configuration
The CLI stores configuration in ~/.siloworker/config.json. You can manually edit this file or use the auth commands.
Advanced Features
Step-Level Resume
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_12345Output 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_1Resume 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
Workspace Configuration
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_tokenTemplate Discovery
Explore pre-built workflow templates:
# List all available templates
siloworker template list
# Get details about a specific template
siloworker template get lead-notificationTool & Trigger Reference
Discover available tools and triggers for building workflows:
# List all available tool types
siloworker tools list
# List all available trigger types
siloworker tools triggersSecurity Management
Regenerate your API key for enhanced security:
# Generate a new API key (invalidates the old one)
siloworker config regenerate-keyDevelopment
# Install dependencies
npm install
# Run locally
node bin/cli.js --help
# Install globally for testing
npm run install-global