nextauth-config-cli
v1.0.0
Published
CLI tool for generating and managing NextAuth.js / Auth.js authentication configurations
Maintainers
Readme
nextauth-config-cli
CLI tool for generating and managing NextAuth.js / Auth.js authentication configurations
Installation
npm install -g nextauth-config-cliUsage
Initialize configuration
nextauth-config init
nextauth-config init --template advanced
nextauth-config init --output custom-config.jsonValidate configuration
nextauth-config validate
nextauth-config validate path/to/config.jsonView configuration
nextauth-config show
nextauth-config show --env production
nextauth-config show --jsonModify configuration
nextauth-config set settings.debug true
nextauth-config set settings.logLevel \"warn\"Compare configurations
nextauth-config diff config-dev.json config-prod.jsonList templates
nextauth-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 nextauth-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
