praisonai deploy.
Quick Start
Deploy Types
| Type | Command | Description |
|---|---|---|
| API | --type api | Local FastAPI server |
| Docker | --type docker | Docker container |
| AWS | --type cloud --provider aws | AWS ECS/Fargate |
| GCP | --type cloud --provider gcp | Google Cloud Run |
CLI Commands
praisonai deploy run
Execute deployment.praisonai deploy init
Generate sample agents.yaml with deploy configuration.praisonai deploy validate
Validate agents.yaml deploy configuration.praisonai deploy plan
Show deployment plan without executing.praisonai deploy status
Show deployment status.praisonai deploy doctor
Check deployment readiness.praisonai deploy destroy
Destroy/delete deployment.CLI Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--file, -f | string | agents.yaml | Path to agents.yaml |
--type | choice | - | api, docker, or cloud |
--provider | choice | - | aws, gcp, azure (for cloud type) |
--background | flag | false | Run in background |
--json | flag | false | Output as JSON |
--yes | flag | false | Skip confirmation prompts |
agents.yaml Deploy Section
Add adeploy section to your agents.yaml:
Deploy Configuration Options
API Config
| Field | Type | Default | Description |
|---|---|---|---|
host | string | 127.0.0.1 | Server host |
port | int | 8005 | Server port |
workers | int | 1 | Worker processes |
cors_enabled | bool | true | Enable CORS |
auth_enabled | bool | false | Enable auth |
auth_token | string | null | Auth token |
reload | bool | false | Auto-reload (dev) |
Docker Config
| Field | Type | Default | Description |
|---|---|---|---|
image_name | string | praisonai-app | Image name |
tag | string | latest | Image tag |
base_image | string | python:3.11-slim | Base image |
expose | list[int] | [8005] | Ports to expose |
registry | string | null | Registry URL |
push | bool | false | Push to registry |
Cloud Config
| Field | Type | Default | Description |
|---|---|---|---|
provider | enum | - | aws, gcp, azure |
region | string | - | Deployment region |
service_name | string | - | Service name |
cpu | string | 256 | CPU allocation |
memory | string | 512 | Memory (MB) |
min_instances | int | 1 | Min instances |
max_instances | int | 10 | Max instances |
env_vars | dict | null | Environment vars |
SDK Deploy Class
Deploy programmatically using Python:Deploy Methods
| Method | Description |
|---|---|
deploy(background=False) | Execute deployment |
plan() | Generate deployment plan without executing |
status() | Get current deployment status |
doctor() | Run health checks |
destroy(force=False) | Destroy/delete deployment |
Troubleshooting
| Issue | Fix |
|---|---|
| No deploy section | Run praisonai deploy init |
| Invalid config | Run praisonai deploy validate |
| Missing deps | Run praisonai deploy doctor |
| Deploy failed | Check praisonai deploy status |
| Port in use | Change port in agents.yaml |
| Missing API key | export OPENAI_API_KEY="your-key" |
| Docker not running | Start Docker daemon |
| AWS credentials | export AWS_ACCESS_KEY_ID=... |
| GCP credentials | gcloud auth login |
Related
- API Deploy - Deploy as local API server
- Docker Deploy - Deploy to Docker
- AWS Deploy - Deploy to AWS ECS/Fargate
- GCP Deploy - Deploy to Google Cloud Run

