mitchellh/cli
A Go library for implementing command-line interfaces. observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases archived
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: n/a
- age_days: 4686
- days_rel: n/a
- days_push: 772
- n_releases_24m: 0
Adoption not part of the score
1735 stars · 128 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Go library for building command-line interfaces with subcommands, autocompletion, and automatic help generation. It powered the CLIs of HashiCorp tools like Terraform, Vault, Consul, Packer, and Nomad, but is now archived.
Use cases
- build a cli tool in go with subcommands
- add shell autocompletion to a go command-line app
- generate automatic help output for subcommands
- implement nested subcommands like cli foo bar
- handle -h and --version flags in a go cli
- prompt users for terminal input in a go program
When to choose
- you are maintaining an existing project already using this library
- you want a minimal, dependency-light subcommand framework in Go
- you need the exact patterns used by classic HashiCorp tool CLIs
When to avoid
- starting a new Go CLI project - the library is archived and unmaintained
- you need active support, bug fixes, or modern CLI features
- you want a framework with an active community like cobra or urfave/cli
Facets
library · maturity abandoned
cli developer-tools developer-tools go cross-platform cli subcommands shell-autocompletion hashicorp archived command-line
1 source
- readme: https://github.com/mitchellh/cli · fetched 2026-08-28 · c49fe27d669b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mitchellh/cli | main | 10 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem