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