CommandLineParser
CommandLineParser: A free, typed parser for .NET and F# projects centered on attribute-driven CLI design. Ranked #38 of 60 in Command-Line Interface Frameworks by our editors (5.5/10); pricing: Free plan; best for F# and .NET attribute-based parsing.
At a glance
- Editor score5.5 / 10
- PricingFree plan
- Best forF# and .NET attribute-based parsing
- Free planYes
- Paid fromFree
- Founded2005
- Facts checked17 Nov 2026
Where it wins
- Typed mapping for scalars, enums, nullable values, and sequences
- Attribute-based verbs, option groups, and mutually exclusive options
- F# option support with asynchronous results and command-line unparsing
Where it doesn't
- Shell completion and configuration-file workflows are outside its documented scope
- Support channels are limited to community resources and documentation
- Self-hosted deployment leaves runtime operations to your team
Our verdict on CommandLineParser
CommandLineParser is an open-source .NET library for defining and parsing command-line options, values, and verb commands through attributes and typed classes. It suits developers building command-line applications in C#, F#, or VB.NET across .NET Framework, Mono, .NET Standard, and .NET Core. Generated help text, parsing errors, mutable or immutable types, and typed value conversion give teams a structured way to turn CLI input into application data.
The library is distributed as open-source software with a free plan, and it can be added through NuGet or Paket. Projects can also integrate it by copying source files into an application. Its platform coverage spans Windows, macOS, and Linux, while self-hosted deployment keeps the runtime model inside the consuming project. The ecosystem fit is strongest for .NET teams already managing dependencies through standard package tooling and wanting a library rather than a hosted command-line service.
Typed attribute mapping is the standout capability. Developers can define options and values declaratively, combine verbs with option groups, enforce mutual exclusion, handle sequences, and process results asynchronously. F# users also get package support and F# option-type handling, while command-line unparsing and formatting help represent values back as arguments. The documented scope centers on parsing and presentation; teams prioritizing shell-completion workflows, hierarchical nesting, or configuration-file binding should compare alternatives before choosing it. CommandLineParser is a strong fit for solo developers through enterprise teams that want an embeddable, typed parser, but less suitable when broader CLI orchestration is the primary requirement.
Your product? Our editors can test CommandLineParser in depth and publish a review, labelled as paid · from $149/mo →
CommandLineParser pricing
CommandLineParser fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Shell completion | Not verified |
| Nested subcommands | Not verified |
| Code generation | Not verified |
| Config file support | Not verified |
| Environment variables | Not verified |
| Typed API | Yes |
| Deployment | Self-hosted |
| Platforms | Windows, macOS, Linux |
| Support | Community, Docs |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Integrations | 2 integrations: NuGet, Paket |
| Pricing | Free plan |
| Website | github.com |
| Facts checked | 17 Nov 2026 |
CommandLineParser integrations
CommandLineParser lists 2 integrations on its own site.
- NuGet
- Paket
Alternatives to CommandLineParser
- 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
See all CommandLineParser alternatives →
Used CommandLineParser? 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 CommandLineParser 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
CommandLineParser 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/commandlineparser/"><img src="https://www.itechguides.com/best/badge/commandlineparser.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