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