CLI Commands
Complete reference for all Erdo CLI commands and their options.Global Options
Available for all commands:--help, -h: Show help information--version, -v: Show version information--config: Specify config file path--verbose: Enable verbose output
Authentication Commands
erdo login
Authenticate with Erdo services.
--token: Login with API token--org: Specify organization
erdo logout
Sign out of current session.
Project Commands
erdo init
Initialize a new Erdo project.
--template: Use project template--python-version: Specify Python version
erdo dev
Start development server.
--port: Specify port (default: 3000)--host: Specify host (default: localhost)--watch: Enable file watching
erdo build
Build project for deployment.
--output: Output directory--production: Production build
Agent Commands
erdo agent create
Create a new agent.
--template: Agent template--description: Agent description
erdo agent list
List all agents.
--status: Filter by status--tag: Filter by tag
erdo agent run
Run an agent.
--input: Input data file--params: Parameters JSON--async: Run asynchronously
erdo agent-test
Run agent tests with parallel execution.
agent-test command discovers all agent_test_* functions in your Python test files and runs them in parallel for fast execution. Tests use the invoke() function with mode="replay" for fast, free testing.
Options:
-v, --verbose: Show detailed error traces-j, --jobs <N>: Number of parallel jobs (default: auto)-r, --refresh: Force refresh cached responses in replay mode
agent_test_* prefix:
- Integration Testing - Complete integration testing guide
- Testing Overview - Learn about testing strategies
- Invoke - Learn about the invoke() function
erdo export-bot
Export agents for backup, sharing, migration, or local development.
- Standalone Export (Default)
- Package Structure Export (-o flag)
- Single file contains complete agent definition
- All Python code files are embedded with fixed imports
- Ready for syncing back with
erdo sync - Common.py classes are moved to the top of the file
- Relative imports are commented out with explanatory notes
| Option | Description | Example |
|---|---|---|
-o, --output | Export with separate code files | erdo export-bot "my-agent" -o agent.py |
--format | Export format (python, json, yaml) | erdo export-bot "my-agent" --format json |
--include-deps | Include dependencies | erdo export-bot "my-agent" --include-deps |
erdo sync
erdo invoke
Invoke an agent from the command line.
-m, --message <text>: User message to send to the agent-p, --parameters <json>: Parameters as JSON string-d, --datasets <list>: Comma-separated dataset slugs--mode <mode>: Invocation mode (live, replay, manual)--json: Output full structured JSON result-v, --verbose: Show detailed steps during execution--stream: Stream output in real-time
erdo invoke outputs the agent’s text response:
--verbose, it shows steps before the output:
--json, it returns the complete structured result:
- result: The types.Result object with status/parameters/output/message/error
- messages: All messages from all steps (including sub-agents)
- steps: Information about executed steps
- events: Complete raw event stream (only in JSON mode)
- SDK Invoke - Programmatic invoke() usage
- Integration Testing - Testing with invoke
Integration Commands
erdo integration add
Add a new integration.
--name: Integration name--config: Configuration file
erdo integration list
List all integrations.
--type: Filter by type--status: Filter by status
erdo integration test
Test integration connection.
erdo integration remove
Remove an integration.
--force: Force removal without confirmation
Deployment Commands
erdo deploy
Deploy project to Erdo cloud.
--env: Target environment--tag: Deployment tag--dry-run: Preview deployment
erdo status
Check deployment status.
--env: Environment to check--detailed: Show detailed status
Data Commands
erdo data import
Import data from external sources.
--format: Data format (csv, json, etc.)--destination: Target dataset
erdo data export
Export data to external formats.
--format: Export format--output: Output file path
erdo data list
List available datasets.
--type: Filter by data type--size: Filter by size
Configuration Commands
erdo config get
Get configuration value.
erdo config set
Set configuration value.
erdo config list
List all configuration values.
Monitoring Commands
erdo logs
View application logs.
--follow: Follow log output--lines: Number of lines to show--level: Filter by log level
erdo metrics
View performance metrics.
--agent: Filter by agent--time-range: Time range for metrics
Utility Commands
erdo version
Show version information.
erdo help
Show help information.
erdo update
Update Erdo CLI to latest version.
--pre-release: Include pre-release versions
Environment Variables
Configure Erdo CLI behavior:ERDO_API_TOKEN: API authentication tokenERDO_API_ENDPOINT: API endpoint URLERDO_CONFIG_PATH: Configuration file pathERDO_LOG_LEVEL: Logging level (debug, info, warn, error)
Configuration File
Default configuration file (~/.erdo/config.yaml):
Exit Codes
0: Success1: General error2: Authentication error3: Configuration error4: Network error5: Validation error
erdo help <command> or erdo <command> --help.