cligen
cligen: A free, open-source Nim generator for typed parsers, subcommands, and configurable help. Ranked #23 of 60 in Command-Line Interface Frameworks by our editors (7.0/10); pricing: Free plan; best for nim developers wanting generated parsers.
At a glance
- Editor score7.0 / 10
- PricingFree plan
- Best forNim developers wanting generated parsers
- Free planYes
- Paid fromFree
- Shell completionYes
- Facts checked17 Nov 2026
Where it wins
- Infers typed CLI options directly from Nim procedure signatures
- Supports subcommands, config files, environment variables, and completions
- Customizes option syntax, colors, layout, and help templates
Where it doesn't
- Focused on Nim applications and the Nim ecosystem
- Self-hosted deployment requires managing the library in your project
- Support is provided through documentation rather than additional channels
Our verdict on cligen
cligen is an open-source Nim library for generating command-line interfaces and parsing options and arguments. It is designed for Nim developers building command-line utilities who want procedure signatures, types, and default values to define the CLI structure. The library generates argument parsers, dispatchers, usage text, and help output, while supporting required, optional, and trailing sequence arguments.
The pricing model is straightforward: cligen is free and open source, with no paid tiers described. Its central feature is signature-driven generation, which can reduce duplicated definitions between Nim procedures and their command-line interfaces. Basic Nim types are parsed directly, and custom type parsers can extend the behavior. Multiple subcommands are available through dispatchMulti, and shell completion generation is supported. Configuration-file and environment-variable parameters can be merged with command-line inputs, giving utilities several ways to receive settings.
cligen fits a self-hosted Nim workflow rather than a hosted service or cross-language framework. Developers can install it with Nimble or directly from the repository, then adjust option syntax, colors, layout, and help templates to match a utility's interface. The trade-off is its narrow ecosystem focus: teams building in other languages will need a different framework, and projects seeking managed deployment or broader support channels will not find those here. Choose cligen when Nim-native generated parsers and configurable dispatch are priorities; consider alternatives when language portability or hosted operations matter more.
Your product? Our editors can test cligen in depth and publish a review, labelled as paid · from $149/mo →
cligen pricing
cligen fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Shell completion | Yes |
| Nested subcommands | Yes |
| Code generation | Yes |
| Config file support | Yes |
| Environment variables | Yes |
| Typed API | Yes |
| Deployment | Self-hosted |
| Support | Docs |
| Built for | Solo, Small business (editorial estimate) |
| Pricing | Free plan |
| Website | github.com |
| Facts checked | 17 Nov 2026 |
Alternatives to cligen
- ClapA free Rust crate with typed parsing, nested commands, validation, and completions.9.4
- ClickA free, open-source toolkit for typed, nested Python command-line applications.9.3
- TyperFree, open-source typed CLI framework with nesting, completions, and configuration support.9.2
Used cligen? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used cligen for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
cligen is listed in our Command-Line Interface Frameworks directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/cligen/"><img src="https://www.itechguides.com/best/badge/cligen.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Nov 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update