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

urfave/cli

Free#19 of 60 in Command-Line Interface Frameworks

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.

7.4/10Editor score
urfave/cli7.4 Visit urfave/cli

At a glance

  • Editor score
    7.4 / 10
  • Pricing
    Free plan
  • Best for
    Go CLIs needing config sources and completions
  • Free plan
    Yes
  • Paid from
    Free
  • Shell completion
    Yes
  • Facts checked
    17 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

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on cli.urfave.org

urfave/cli fact sheet

Free planYes
Paid fromFree
Shell completionYes
Nested subcommandsYes
Code generationNo
Config file supportYes
Environment variablesYes
Typed APIYes
DeploymentDesktop
PlatformsLinux, macOS, Windows
SupportDocs
Built forSolo, Small business, Mid-market, Enterprise (editorial estimate)
PricingFree plan
Websitecli.urfave.org
Facts checked17 Nov 2026

Alternatives to urfave/cli

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

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 — urfave/cli 7.4/10

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