logrotate-cli
v1.0.0
Published
CLI tool for logrotate
Readme
logrotate-cli
CLI tool for logrotate
Installation
npm install -g logrotate-cliUsage
Initialize configuration
logrotate init
logrotate init --template advanced
logrotate init --output custom-config.jsonValidate configuration
logrotate validate
logrotate validate path/to/config.jsonView configuration
logrotate show
logrotate show --env production
logrotate show --jsonModify configuration
logrotate set settings.debug true
logrotate set settings.logLevel \"warn\"Compare configurations
logrotate diff config-dev.json config-prod.jsonList templates
logrotate templatesTemplates
| Template | Description |
|----------|-------------|
| minimal | Bare minimum configuration |
| standard | Recommended defaults for most projects |
| advanced | Full-featured with security, caching, and multi-environment support |
Why logrotate-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
