spf13 / cobra
git clone https://github.com/spf13/cobra.git
v1.10.2 · 11mo ago
🔥 on GitHub Trending today
A Go library for building CLI applications with subcommands, POSIX-style flags, and generated help and shell completions.
Why you might care
Cobra is the de facto framework for Go command-line tools, used by Kubernetes, Hugo, and GitHub CLI. It provides nested subcommands, global and local flags, automatic help, suggestions, and shell autocomplete for bash, zsh, fish, and PowerShell, with optional Viper integration for configuration.
+102
stars, 24h · #480
—
stars, 7 days
—
stars, 30 days
45k
★ total
4.5k
forks · 261 open issues
Star history starts 2026-11-07; the chart appears after the second daily snapshot.
LanguageGo
LicenseApache-2.0
Created2013-09-03 (13y ago)
Last push3mo ago
Watchers383
OwnerUser
Seen on GitHub Trending
- 2026-11-07 — #20 daily in go · +102 ★
GitHub topics
cobracobra-librarycobra-generatorposix-compliant-flagscommand-cobracli-appcommand-linecommandlinecommandcligogolanggolang-librarygolang-applicationsubcommandsposix
Links
- GitHub: github.com/spf13/cobra
- Homepage: https://cobra.dev
- Releases · Issues · Hacker News mentions
README
Loading README…
Blurb generated by claude-haiku-5-5 today. Star deltas marked ~ are extrapolated from partial history.