# urfave/cli

> A declarative, simple, fast, and fun package for building command line tools in Go

Source: https://talira.ai/catalog/urfave-cli-k7s1sg10
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / cli frameworks](https://talira.ai/categories/libraries/cli-frameworks), [languages / go](https://talira.ai/categories/languages/go)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [urfave](https://talira.ai/orgs/urfave.md)

urfave/cli is a declarative package for building command-line tools in [Go](https://talira.ai/catalog/go-ed2kmsvk.md). It gives you commands and subcommands with alias and prefix matching, a flexible generated help system, dynamic shell completion for bash, zsh, fish and PowerShell, man page and Markdown documentation generation, flags for simple types, slices, times and durations, compound short flags (-abc), and flag values read from environment variables and files (structured config formats through urfave/cli-altsrc). v3, installed with the /v3 module suffix, is the recommended version for new work.

## Links

- Website: https://cli.urfave.org/
- GitHub: https://github.com/urfave/cli
- Docs: https://cli.urfave.org/v3/getting-started/

## Problems it solves

- build a command-line tool in Go with subcommands and flags
- add shell completion to my Go CLI
- read CLI flag values from environment variables in Go
- generate help text and man pages for a Go command

## Features

- commands and subcommands with aliases
- generated help
- shell completion for bash, zsh, fish and PowerShell
- man and Markdown docs generation
- typed flags including slices and durations
- flag values from env vars and files

## Trust

Overall: 0.27 out of 1.
Signals: backing 0.30, extensibility 0.00.

- backed by urfave

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Cobra](https://talira.ai/catalog/cobra-f5ka9qes.md): Go library for modern CLI apps with subcommands, POSIX flags and generated completions

## Sources

[^1]: https://github.com/urfave/cli/blob/main/LICENSE (checked 24 Nov 2026)
