71 releases (28 stable)
new 2.0.6 | Mar 18, 2025 |
---|---|
2.0.3 | Jan 10, 2025 |
1.7.4 | Dec 21, 2024 |
1.3.3 | Nov 22, 2024 |
0.1.0 | Aug 13, 2023 |
#522 in Configuration
2,689 downloads per month
210KB
5K
SLoC
Usage
Usage is a spec and CLI for defining CLI tools. Arguments, flags, environment variables, and config files can all be defined in a Usage spec. It can be thought of like OpenAPI (swagger) for CLIs. Here are some potential reasons for defining your CLI with a Usage spec:
- Generate autocompletion scripts
- Generate markdown documentation
- Generate man pages
- Use an advanced arg parser in any language
- Scaffold one spec into different CLI frameworks—even different languages
- [coming soon] Host your CLI documentation on usage.sh
See more at usage.jdx.dev.
Dependencies
~17–45MB
~717K SLoC