urfave/cli
A declarative, simple, fast, and fun package for building command line tools in Go observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 98
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 12
- age_days: 4799
- days_rel: 17
- days_push: 9
- n_releases_24m: 30
Adoption not part of the score
24204 stars · 1808 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
urfave/cli is a declarative Go library for building command line applications with commands, subcommands, flags, and shell completion. It has no dependencies beyond the Go standard library and supports help generation, environment/file-based input lookup, and man/Markdown docs generation.
Use cases
- build a CLI tool in Go
- parse command line flags and arguments in Go
- add subcommands to a Go command line app
- generate shell completion for bash zsh fish powershell
- read CLI options from environment variables or config files
- generate man pages and markdown docs for a CLI
When to choose
- you are writing a command line tool in Go and want a mature, widely used library
- you want zero non-standard-library dependencies
- you need subcommands, typed flags, and shell completion out of the box
When to avoid
- you need a CLI framework for a language other than Go
- you want a batteries-included framework with built-in UI, progress bars, or color styling
- you are targeting Go versions without Go Modules
Facets
library · maturity stable
cli developer-tools developer-tools backend go cli cross-platform flag-parsing subcommands shell-completion golang-library config-from-env command-line
7 sources
- readme: https://github.com/urfave/cli · fetched 2026-08-28 · ad4210b32b82
- homepage: https://cli.urfave.org · fetched 2026-08-29 · 2bb6d279430a
- site_page: https://cli.urfave.org/v3/getting-started · fetched 2026-08-29 · 4036df7795b6
- site_page: https://cli.urfave.org/v2/getting-started · fetched 2026-08-29 · 62616f796c6f
- site_page: https://cli.urfave.org/v1/getting-started · fetched 2026-08-29 · 11e531be6602
- site_page: https://cli.urfave.org/v3/migrating-from-older-releases · fetched 2026-08-29 · 5455cc1a2e4f
- site_page: https://cli.urfave.org/v2/migrating-from-older-releases · fetched 2026-08-29 · 7b0054080f32
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| urfave/cli | main | 99 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem