Deployment & Management
Deploy, sync, and manage your Erdo agents across different environments with powerful CLI tools.erdo sync
Synchronize your local agent code with the Erdo platform.Basic Sync
Sync Options
| Option | Description | Example |
|---|---|---|
--agent | Sync specific agent | erdo sync --agent data-processor |
--env | Target environment | erdo sync --env staging |
--force | Force overwrite conflicts | erdo sync --force |
--dry-run | Preview changes only | erdo sync --dry-run |
--exclude | Exclude file patterns | erdo sync --exclude "*.log,temp/*" |
--compress | Compress before upload | erdo sync --compress |
--timeout | Upload timeout | erdo sync --timeout 300 |
Conflict Resolution
- Automatic Resolution
- Manual Resolution
- Advanced Options
erdo deploy
Deploy agents to production environments with advanced configuration options.Basic Deployment
Deployment Strategies
Blue-Green Deployment
Blue-Green Deployment
Canary Deployment
Canary Deployment
Rolling Deployment
Rolling Deployment
Environment Configuration
Deployment Validation
- Pre-deployment Checks
- Post-deployment Verification
erdo list-bots
List and manage agents across all environments.Basic Listing
Filtering and Sorting
Output Formats
- Table Format
- JSON/YAML
- Custom Templates
erdo export-bot
Export agents for backup, sharing, or migration.Basic Export
Export Modes
- Standalone Export (Default)
- Package Structure Export (-o flag)
- Single file contains complete agent definition
- All embedded Python code has imports fixed for standalone execution
- Classes from common.py are moved to the top of the file
- Relative imports are commented out with explanatory notes
- Ready to sync back with
erdo sync standalone-agent.py
- Backup and restore
- Sharing agents between environments
- Version control of complete agent definitions
- Quick agent duplication
Export Workflow Examples
Development Workflow
Development Workflow
Backup and Migration
Backup and Migration
Code Review Process
Code Review Process
Export Options
| Option | Description | Example |
|---|---|---|
--include-deps | Include dependencies | --include-deps |
--include-data | Include sample data | --include-data |
--include-tests | Include test files | --include-tests |
--minify | Minimize output size | --minify |
--encrypt | Encrypt sensitive data | --encrypt --key mykey |
--version | Specific version | --version 1.2.0 |
Advanced Export
erdo logs
View and analyze agent execution logs and metrics.Basic Logging
Log Filtering
- By Level
- By Time Range
- By Content
Log Analysis
erdo monitor
Monitor agent performance and health in real-time.Real-time Monitoring
Metrics and KPIs
Performance Metrics
Performance Metrics
Business Metrics
Business Metrics
System Health
System Health
Alerting
Production Management
Health Checks
Maintenance Operations
- Scaling
- Updates
- Maintenance
Troubleshooting
Deployment Issues
- Check deployment logs:
erdo logs my-agent --level error- Validate configuration:erdo deploy my-agent --validate-only- Test connectivity:erdo health my-agent --deep- Review resource limits:erdo monitor my-agent --metrics system
Performance Problems
- Monitor execution times:
erdo monitor my-agent --metrics execution_time - Check memory usage:
erdo logs my-agent --metrics memory- Analyze bottlenecks:erdo introspect my-agent --bottlenecks- Scale if needed:erdo scale my-agent --replicas 3
Sync Conflicts
- Preview changes:
erdo sync --dry-run- Backup first:erdo sync --backup- Resolve interactively:erdo sync --interactive- Force if necessary:erdo sync --force
Monitoring Alerts
- Check recent logs:
erdo logs my-agent --since 1h --level error- View metrics:erdo monitor my-agent --dashboard- Analyze trends:erdo logs my-agent --report --since 7d- Update thresholds:erdo monitor my-agent --alert-on error_rate:>10%
Best Practices
Deployment Pipeline
Monitoring Strategy
- Set up comprehensive alerts for key metrics
- Monitor both technical and business KPIs
- Use dashboards for real-time visibility
- Regular health checks and maintenance windows
- Log retention and analysis for troubleshooting