Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

cligen

Free#23 of 60 in Command-Line Interface Frameworks

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.

7.0/10Editor score
cligen7.0 Visit cligen

At a glance

  • Editor score
    7.0 / 10
  • Pricing
    Free plan
  • Best for
    Nim developers wanting generated parsers
  • Free plan
    Yes
  • Paid from
    Free
  • Shell completion
    Yes
  • Facts checked
    17 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

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on github.com

cligen fact sheet

Free planYes
Paid fromFree
Shell completionYes
Nested subcommandsYes
Code generationYes
Config file supportYes
Environment variablesYes
Typed APIYes
DeploymentSelf-hosted
SupportDocs
Built forSolo, Small business (editorial estimate)
PricingFree plan
Websitegithub.com
Facts checked17 Nov 2026

Alternatives to cligen

See all cligen alternatives →

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

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — cligen 7.0/10

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