apollo-config-cli
v1.0.0
Published
CLI tool for Apollo GraphQL server and federation configuration
Downloads
103
Maintainers
Readme
apollo-config-cli
CLI tool for Apollo GraphQL server and federation configuration
Installation
npm install -g apollo-config-cliUsage
Initialize configuration
apollo-config init
apollo-config init --template advanced
apollo-config init --output custom-config.jsonValidate configuration
apollo-config validate
apollo-config validate path/to/config.jsonView configuration
apollo-config show
apollo-config show --env production
apollo-config show --jsonModify configuration
apollo-config set settings.debug true
apollo-config set settings.logLevel \"warn\"Compare configurations
apollo-config diff config-dev.json config-prod.jsonList templates
apollo-config templatesTemplates
| Template | Description |
|----------|-------------|
| minimal | Bare minimum configuration |
| standard | Recommended defaults for most projects |
| advanced | Full-featured with security, caching, and multi-environment support |
Why apollo-config-cli?
- Zero dependencies at runtime — just
commanderandchalk - Template-based — start with minimal, standard, or advanced presets
- Validation built-in — catch config errors before deployment
- Environment-aware — manage dev/staging/production configs in one file
- Diff support — compare configs across environments
License
MIT
