praisonai deploy run --type api.
CLI
Python
agents.yaml
API Config Options
| Field | Type | Default | Description |
|---|---|---|---|
host | string | 127.0.0.1 | Server host |
port | int | 8005 | Server port |
workers | int | 1 | Number of worker processes |
cors_enabled | bool | true | Enable CORS |
auth_enabled | bool | false | Enable authentication |
auth_token | string | null | Authentication token |
reload | bool | false | Enable auto-reload (dev) |
CLI Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--file, -f | string | agents.yaml | Path to agents.yaml |
--type | choice | - | Must be api |
--background | flag | false | Run in background |
--json | flag | false | Output as JSON |
Background Mode
Run the API server in background:Check Status
Stop Server
Troubleshooting
| Issue | Fix |
|---|---|
| Port in use | Change port in agents.yaml or use --port |
| No agents.yaml | Run praisonai deploy init --type api |
| Missing API key | export OPENAI_API_KEY="your-key" |
| Server not starting | Run praisonai deploy doctor |
Related
- Deploy CLI Overview - All deploy commands
- Docker Deploy - Deploy to Docker
- Agents API - API endpoint reference

