Go(Golang)コマンドラインアプリ用ライブラリ トップ20
Cobra, urfave/cli, Kong, Bubble Tea, pflag and other ways to parse flags and commands or build a terminal UI in Go
更新 · GitHub stars (stars)
なぜこの20か
Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not fit, so each row also shows forks, licence and the last push. The list mixes two choices: command and flag parsers (Cobra, urfave/cli, Kong, pflag) that decide how your tool reads its arguments, and terminal UI kits (Bubble Tea, tview, termui) for full-screen interactive apps; many tools use one of each. Older projects keep stars after activity slows: check the last push. It doesn't show which one gives shell completion or man pages.
-
1
bubbletea
Go framework to build terminal apps, based on The Elm Architecture.
45,873 stars 1,888 forkslast push 2026-11-25GoMIT
こちらにも: #1 Go command line libraries#1 Go (Golang) terminal UI libraries
-
2
cobra
Commander for modern Go CLI interactions.
44,829 stars 3,729 forkslast push 2026-07-11GoApache-2.0
こちらにも: #2 Go command line libraries
-
3
urfave/cli
Simple, fast, and fun package for building command line apps in Go (formerly codegangsta/cli).
24,330 stars 1,970 forkslast push 2026-11-16GoMIT
こちらにも: #3 Go command line libraries
-
4
termui
Go terminal dashboard based on **termbox-go** and inspired by blessed-contrib.
13,588 stars 817 forkslast push 2025-07-10GoMIT
こちらにも: #6 Go command line libraries#4 Go (Golang) terminal UI libraries
-
5
lipgloss
Declaratively define styles for color, format and layout in the terminal.
12,059 stars 545 forkslast push 2026-11-22GoMIT
こちらにも: #7 Go command line libraries#5 Go (Golang) terminal UI libraries
-
6
gocui
Minimalist Go library aimed at creating Console User Interfaces.
10,624 stars 644 forkslast push 2025-05-01GoBSD-3-Clause
こちらにも: #8 Go command line libraries#6 Go (Golang) terminal UI libraries
-
7
bubbles
TUI components for bubbletea.
9,078 stars 494 forkslast push 2026-11-22GoMIT
こちらにも: #9 Go command line libraries#7 Go (Golang) terminal UI libraries
-
8
huh
Lightweight library for building interactive forms and prompts in the terminal.
7,271 stars 285 forkslast push 2026-10-01GoMIT
こちらにも: #10 Go command line libraries#8 Go (Golang) terminal UI libraries
-
9
pterm
A library to beautify console output on every platform with many combinable components.
5,573 stars 229 forkslast push 2026-10-12GoMIT
こちらにも: #12 Go command line libraries#9 Go (Golang) terminal UI libraries
-
10
go-prompt
Library for building a powerful interactive prompt, inspired by python-prompt-toolkit.
5,499 stars 373 forkslast push 2025-08-12GoMIT
こちらにも: #13 Go command line libraries#10 Go (Golang) terminal UI libraries
-
11
termbox-go
Termbox is a library for creating cross-platform text-based interfaces.
4,785 stars 371 forkslast push 2026-08-23GoMIT
こちらにも: #14 Go command line libraries#11 Go (Golang) terminal UI libraries
-
12
progressbar
Basic thread-safe progress bar that works in every OS.
4,704 stars 266 forkslast push 2026-09-19GoMIT
こちらにも: #15 Go command line libraries#12 Go (Golang) terminal UI libraries
-
13
glamour
Stylesheet-based markdown rendering for terminal applications.
3,764 stars 456 forkslast push 2026-11-24GoMIT
こちらにも: #16 Go command line libraries#13 Go (Golang) terminal UI libraries
-
14
kingpin
Command line and flag parser supporting sub commands (superseded by).
3,565 stars 282 forkslast push 2026-10-20GoMIT
-
15
kong
Command-line parser with support for arbitrarily complex command-line structures (successor to).
3,211 stars 207 forkslast push 2026-11-22GoMIT
-
16
asciigraph
Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies.
3,102 stars 125 forkslast push 2026-10-17GoBSD-3-Clause
こちらにも: #19 Go command line libraries#14 Go (Golang) terminal UI libraries
-
17
termdash
Go terminal dashboard based on **termbox-go** and inspired by termui.
3,049 stars 150 forkslast push 2026-09-14GoApache-2.0
こちらにも: #20 Go command line libraries#15 Go (Golang) terminal UI libraries
-
18
-
19
spinner
Go package to easily provide a terminal spinner with options.
2,533 stars 134 forkslast push 2026-11-16GoApache-2.0
-
20
mpb
Multi progress bar for terminal applications.
2,512 stars 132 forkslast push 2026-10-21GoUnlicense
並べて比較
| Licence | What it does | Kind (flag parser, command framework, terminal UI) | Subcommands | Best for | |
|---|---|---|---|---|---|
| MIT | Go framework for terminal apps, based on The Elm Architecture | Terminal UI framework | – | – | |
| – | Commander for building Go CLI applications | – | – | – | |
| – | Package for building command line apps in Go | – | – | – | |
| – | Terminal dashboard library based on termbox-go | Terminal UI | – | – | |
| – | Declarative terminal styling for colour, format and layout | Terminal UI styling | – | – | |
| – | Minimalist library for console user interfaces | Terminal UI | – | – | |
| MIT | TUI components for bubbletea | Terminal UI components | – | – | |
| – | Library for interactive forms and prompts in the terminal | Terminal UI prompts | – | – | |
| – | Library to beautify console output with combinable components | – | – | – | |
| – | Library for interactive prompts, inspired by python-prompt-toolkit | Terminal UI prompt | – | – | |
| – | Library for cross-platform text-based interfaces | Terminal UI | – | – | |
| – | Thread-safe progress bar for terminal output | Terminal UI progress bar | – | – | |
| – | Stylesheet-based markdown rendering for terminal apps | Terminal markdown rendering | – | – | |
| – | Command line and flag parser | Flag parser | Supports sub commands | unknown (superseded, see kong) | |
| – | Command-line parser for Go | Command-line parser | Command structures declared as Go types with cmd tags | Arbitrarily complex command-line structures | |
| – | Lightweight ASCII line graphs for command line apps | Terminal output graphing | – | – | |
| – | Terminal dashboard based on termbox-go, inspired by termui | Terminal UI | – | – | |
| – | Go command line option parser | Flag parser | – | – | |
| – | Terminal spinner with options | Terminal UI spinner | – | – | |
| – | Multi progress bar for terminal applications | Terminal UI progress bars | – | – |
各セルはツールの公式サイト、ドキュメント、リポジトリから取っています。ページは参考資料にあります。
参考資料
- avelino/awesome-go: Standard CLI and Advanced Console UIs, GitHub community list (list text MIT; star counts from the GitHub API). Checked 2026-11-25 11:35 UTC.
- avelino/awesome-go (Standard CLI, Advanced Console UIs), GitHub community list, 101 tools with a public repository.
- bubbletea: licence, github.com, checked 2026-11-18.
- cobra: what it does, github.com, checked 2026-11-18.
- urfave/cli: what it does, github.com, checked 2026-11-18.
- termui: what it does, github.com, checked 2026-11-18.
- lipgloss: what it does, github.com, checked 2026-11-18.
- gocui: what it does, github.com, checked 2026-11-18.
- bubbles: licence, github.com, checked 2026-11-18.
- huh: what it does, github.com, checked 2026-11-18.
- pterm: what it does, github.com, checked 2026-11-18.
- go-prompt: what it does, github.com, checked 2026-11-18.
- termbox-go: what it does, github.com, checked 2026-11-18.
- progressbar: what it does, github.com, checked 2026-11-18.
- glamour: what it does, github.com, checked 2026-11-18.
- kingpin: what it does, github.com, checked 2026-11-18.
- kong: what it does, github.com, checked 2026-11-18.
- kong: subcommands, github.com, checked 2026-11-18.
- asciigraph: what it does, github.com, checked 2026-11-18.
- termdash: what it does, github.com, checked 2026-11-18.
- go-flags: what it does, github.com, checked 2026-11-18.
- spinner: what it does, github.com, checked 2026-11-18.
- mpb: what it does, github.com, checked 2026-11-18.