SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Go Standard CLI Projects
-
and it gives you a Rust dependency.
> $ rinku lookup https://github.com/spf13/cobra
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
urfave/cli
A declarative, simple, fast, and fun package for building command line tools in Go (by urfave)
urfave/cli is well-suited for internal tools or smaller utilities where you want fast iteration without a large framework.
-
https://fishshell.com/ https://xon.sh/ https://www.nushell.sh/ https://elv.sh/
You're replying to someone that says POSIX shells are holding people back, not that the terminal is a bad idea, there are many alternative shells which offer benefits over POSIX shells. fish-shell has everything you want from an interactive shell included, xonsh is a mix Python shell, nushell and elvish are adding types and other things to shell.
The VT protocols that all shells have to confirm with are pretty dated and I'd love to throw them off the roof for something less stateful and with multiple font sizes but there's no arguing that text based interfaces are good.
-
-
I think kong[0] is better than both options although cobra is by far the most popular. Might be worth a look.
[0] https://github.com/alecthomas/kong
-
-
The Platinum Searcher
A code search tool similar to ack and the_silver_searcher(ag). It supports multi platforms and multi encodings.
Project mention: Ripgrep is faster than {grep, ag, Git grep, ucg, pt, sift} | news.ycombinator.com | 2026-03-24I was just trying to remember why I switched _to_ rg.
It's nice and everything, but I remember being happy with the tools before (I think i moved from grep to ack, then jumped due to perf to ag and for unremembered reasons to pt.)
It took me a while, but I remembered I ran into an issue with pt incorrectly guessing the encoding of some files[0].
I do know after switching to rg everything was plain sailing and I've been happy with it since.
[0] https://github.com/monochromegane/the_platinum_searcher/issu...
-
-
-
-
-
Project mention: Stop writing CLI validation. Parse it right the first time | news.ycombinator.com | 2025-09-06
Docopt!
http://docopt.org/
Make use of the usage string be the specification!
A criminally underused library.
-
-
-
-
flaggy
Idiomatic Go input parsing with subcommands, positional values, and flags at any position. No required project or package layout and no external dependencies.
Project mention: Flaggy package updated for first time since 2022 because of AI | news.ycombinator.com | 2025-09-16 -
-
-
-
-
-
Go Standard CLI discussion
Go Standard CLI related posts
-
Carapace
-
Carapace
-
Flaggy package updated for first time since 2022 because of AI
-
Docopt Command-line interface description language
-
Rethinking How I Deal With CLI Arguments (replacing getopt)
-
argp: GNU-style command line argument parser for Go
-
Show HN: Protostar – A CLI Prototyping Tool
-
A note from our sponsor - SaaSHub
www.saashub.com | 8 Jun 2026
Index
What are some of the best open-source Standard CLI projects in Go? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | cobra | 44,062 |
| 2 | urfave/cli | 24,113 |
| 3 | elvish | 6,321 |
| 4 | kingpin | 3,564 |
| 5 | kong | 3,091 |
| 6 | Dnote | 3,041 |
| 7 | The Platinum Searcher | 2,825 |
| 8 | pflag | 2,741 |
| 9 | go-flags | 2,697 |
| 10 | readline | 2,293 |
| 11 | carapace-bin | 1,848 |
| 12 | docopt.go | 1,444 |
| 13 | carapace | 1,338 |
| 14 | liner | 1,089 |
| 15 | complete | 955 |
| 16 | flaggy | 949 |
| 17 | cli-init | 918 |
| 18 | mow.cli | 884 |
| 19 | cli | 724 |
| 20 | argparse | 639 |
| 21 | box-cli-maker | 637 |
| 22 | 1build | 247 |
| 23 | wmenu | 229 |