── 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

SubcommandFlagsEffect
db--dbAdds database config + generates docker-compose
ci--ciAdds CI config + generates pipeline
monitoring—Adds monitoring config + generates prometheus/grafana
infra--providerAdds provider config + generates terraform

## Examples

bash
# Add PostgreSQL to existing project
exo add db --db postgres
# Add GitHub Actions CI
exo add ci --ci github-actions
# Add monitoring stack
exo add monitoring
# Add Azure infrastructure
exo 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 ✓