Environment Setup
ProAI supports multiple isolated environments for your project lifecycle.
Default Environments
| Environment | Purpose | Access |
|---|---|---|
| development | Local development and testing | Full access |
| staging | Pre-production validation | Team access |
| production | Live workloads | Restricted access |
Configuring Environments
# proai.yml
environments:
development:
runtime: local
debug: true
log_level: debug
staging:
runtime: kubernetes
cluster: staging-cluster
replicas: 2
log_level: info
production:
runtime: kubernetes
cluster: prod-cluster
replicas: 5
log_level: warn
alerting:
enabled: true
channels: [slack, pagerduty]
`
## Switching Environments
`ash
proai env use staging
proai env list
`
## Deploying to an Environment
`ash
proai deploy --env staging
proai deploy --env production --approve
`
:::warning
Production deployments require explicit approval. Use --approve flag only after thorough testing.
:::
## See Also
- [Configuration](/docs/getting-started/configuration) — Full configuration reference
- [Projects & Repos](/docs/projects/overview) — Version control integration