Commands
runagent deploy
Deploy agent to production or local environment
Synopsis
Description
The deploy
command packages and deploys your agent either locally with persistence or to RunAgent’s cloud infrastructure (coming soon).
Options
Option | Description | Default |
---|---|---|
--local , -l | Deploy locally | false |
--name , -n | Deployment name | From config |
--env , -e | Environment | production |
--no-validate | Skip validation | false |
--dry-run | Show what would be deployed | false |
Examples
Local Deployment
Cloud Deployment (Coming Soon)
Deployment Process
1
Validation
- Checks
runagent.config.json
- Validates entrypoints
- Verifies dependencies
2
Packaging
- Bundles agent code
- Includes dependencies
- Excludes unnecessary files
3
Upload
- Uploads to RunAgent servers
- Or creates local deployment
4
Initialization
- Starts agent container
- Configures environment
- Runs health checks
Output
Successful deployment shows:
Local Deployment Details
Local deployments:
- Run in Docker containers
- Persist between restarts
- Support multiple versions
- Include local monitoring
Configuration
Deployment Settings
In runagent.config.json
:
Excluded Files
By default, these are excluded:
.git/
__pycache__/
*.pyc
.env
tests/
docs/
Create .deployignore
to customize:
Validation Checks
Before deployment, RunAgent validates:
Troubleshooting
Best Practices
- Test Locally First: Always use
runagent serve
before deploying - Use Environments: Deploy to staging before production
- Version Your Agents: Update version in config for each deployment
- Monitor Deployments: Check logs and metrics after deploying
See Also
runagent serve
- Test locally firstrunagent status
- Check deployment statusrunagent logs
- View deployment logs