── CLI REFERENCE ──
exo add
Add new infrastructure components to an existing Exo project.
## Synopsis
bash
exo add <type> [flags]## Description
Adds a component to your existing project. Updates .exo.yaml and generates the corresponding files. Unlike exo gen, this also modifies your config so exo status tracks the new component.
## Subcommands
| Subcommand | Flags | Effect |
|---|---|---|
db | --db | Adds database config + generates docker-compose |
ci | --ci | Adds CI config + generates pipeline |
monitoring | — | Adds monitoring config + generates prometheus/grafana |
infra | --provider | Adds provider config + generates terraform |
## Examples
bash
# Add PostgreSQL to existing projectexo add db --db postgres# Add GitHub Actions CIexo add ci --ci github-actions# Add monitoring stackexo add monitoring# Add Azure infrastructureexo add infra --provider azure## Workflow
exo add db --db redis │ ├─▸ Read .exo.yaml ├─▸ Update database: "redis" ├─▸ Write .exo.yaml ├─▸ Render db/redis.tmpl → docker-compose.redis.yml └─▸ Done ✓