urfave/cli
urfave/cli: A free Go CLI framework combining typed flags, config sources, nested commands, and shell completion. Ranked #19 of 60 in Command-Line Interface Frameworks by our editors (7.4/10); pricing: Free plan; best for go CLIs needing config sources and completions.
At a glance
- Editor score7.4 / 10
- PricingFree plan
- Best forGo CLIs needing config sources and completions
- Free planYes
- Paid fromFree
- Shell completionYes
- Facts checked17 Nov 2026
Where it wins
- Dynamic completion supports bash, zsh, fish, and PowerShell.
- Typed flags cover strings, numbers, booleans, durations, timestamps, and slices.
- Environment, plain-text, YAML, JSON, and TOML value sources are supported.
Where it doesn't
- Go-only library is not suited to projects in other languages.
- Support is centered on documentation rather than a broader service desk.
- The framework does not provide code generation.
Our verdict on urfave/cli
urfave/cli is an open-source Go framework for building command-line applications. It defines commands and nested subcommands declaratively, then adds typed flags, aliases, prefix matching, flexible help output, and generated help documents. The package is aimed at developers creating CLIs for solo projects through enterprise teams, particularly when configuration can come from flags, environment variables, or files.
Its free, open-source model lets teams adopt the library as a Go module without choosing among paid tiers. The feature set goes beyond basic argument parsing: dynamic completion works with bash, zsh, fish, and PowerShell, while typed flags cover strings, numbers, booleans, durations, timestamps, and slices. Environment-variable and plain-text file sources are built in, and the companion cli-altsrc package adds YAML, JSON, and TOML sources. These options suit tools that need consistent configuration across shells and deployment environments.
Documentation generation and help customization support maintainable command interfaces, with man-page and Markdown output available for distribution. The project maintains v3, v2, and v1 documentation, giving teams version-specific reference points when integrating the Go module. Choose urfave/cli when a Go application needs nested commands, typed configuration, and shell completion in one framework. Consider another option for non-Go codebases, teams that require code-generation facilities, or organizations expecting support beyond documentation.
Your product? Our editors can test urfave/cli in depth and publish a review, labelled as paid · from $149/mo →
urfave/cli pricing
urfave/cli fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Shell completion | Yes |
| Nested subcommands | Yes |
| Code generation | No |
| Config file support | Yes |
| Environment variables | Yes |
| Typed API | Yes |
| Deployment | Desktop |
| Platforms | Linux, macOS, Windows |
| Support | Docs |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Pricing | Free plan |
| Website | cli.urfave.org |
| Facts checked | 17 Nov 2026 |
Alternatives to urfave/cli
- 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 urfave/cli alternatives →
Used urfave/cli? 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 urfave/cli 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
urfave/cli 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/urfave-cli/"><img src="https://www.itechguides.com/best/badge/urfave-cli.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