Development Commands
Build, test, and iterate on your Erdo agents with powerful development tools.erdo dev
Start a development server with hot reload for rapid agent development.Basic Usage
Advanced Options
| Option | Description | Example |
|---|---|---|
--port | Development server port | erdo dev --port 3000 |
--host | Server host binding | erdo dev --host 0.0.0.0 |
--watch | File patterns to watch | erdo dev --watch "*.py,*.yaml" |
--no-reload | Disable hot reload | erdo dev --no-reload |
--debug | Enable debug mode | erdo dev --debug |
--env | Environment file | erdo dev --env .env.development |
--timeout | Request timeout | erdo dev --timeout 60 |
Development Features
- Hot Reload
- Live Testing
- Environment Management
Development Workflow
1
Initialize Project
bash erdo init my-agent cd my-agent 2
Start Development
bash erdo dev --port 3000 --watch "*.py" 3
Live Testing
bash # In another terminal erdo test --agent my-agent --watch 4
Deploy When Ready
bash erdo sync erdo deploy my-agent erdo test
Run comprehensive tests for your agents with various testing modes.Basic Testing
Test Types
Unit Tests
Unit Tests
Integration Tests
Integration Tests
End-to-End Tests
End-to-End Tests
Test Configuration
Test Reports
- Console Output
- File Reports
- Continuous Testing
erdo init
Create new agent projects with templates and scaffolding.Project Creation
Available Templates
Data Analysis
bash erdo init data-agent --template data-analysis For data
processing and analytics workflowsBusiness Automation
bash erdo init automation-agent --template business-automation For
process automation and workflow managementResearch Assistant
bash erdo init research-agent --template research For information
gathering and analysisContent Processing
bash erdo init content-agent --template content-processing For
document analysis and content generationTemplate Options
Project Structure
erdo introspect
Analyze and understand agent structure and dependencies.Basic Introspection
Advanced Analysis
- Schema Analysis
- Performance Analysis
- Security Analysis
Output Formats
erdo gen-client
Generate client code and documentation for your agents.Client Generation
Generation Options
| Option | Description | Example |
|---|---|---|
--language | Target language | --language python |
--output | Output directory | --output ./generated/ |
--agents | Specific agents | --agents agent1,agent2 |
--include-tests | Generate test files | --include-tests |
--package-name | Package name | --package-name my-erdo-client |
--version | Client version | --version 1.0.0 |
Documentation Generation
Development Best Practices
Fast Iteration
- Use
erdo devwith hot reload - Write tests early and often - Use mock data for faster testing - Monitor resource usage during development
Testing Strategy
- Unit test individual steps - Integration test agent workflows - End-to-end test complete scenarios - Use CI/CD for automated testing
Code Quality
- Use introspection for analysis - Follow naming conventions - Document agent purpose and usage - Regular security audits
Performance
- Profile agent execution - Optimize step dependencies - Use parallel execution where possible - Monitor production metrics