Go Standard CLI

Open-source Go projects categorized as Standard CLI

Top 23 Go Standard CLI Projects

Standard CLI
  1. cobra

    A Commander for modern Go CLI interactions

    Project mention: Show HN: Convert Go to Rust | news.ycombinator.com | 2026-01-14

    and it gives you a Rust dependency.

    > $ rinku lookup https://github.com/spf13/cobra

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. urfave/cli

    A declarative, simple, fast, and fun package for building command line tools in Go (by urfave)

  4. elvish

    Powerful scripting language & versatile interactive shell

    Project mention: You probably don't need Oh My Zsh | news.ycombinator.com | 2026-01-09

    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.

  5. kingpin

    CONTRIBUTIONS ONLY: A Go (golang) command line and flag parser

  6. kong

    Kong is a command-line parser for Go (by alecthomas)

  7. Dnote

    A simple command line notebook

  8. 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-24

    I 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...

  9. pflag

    Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.

    Project mention: Why Go Is an Ideal Language for AI-Assisted Software Engineering | news.ycombinator.com | 2026-08-11

    Yeah same but I always allow https://github.com/spf13/pflag because e.g. Claude really struggles with the default flag package (and it's shit in general)

  10. go-flags

    go command line option parser

  11. readline

    Readline is a pure go(golang) implementation for GNU-Readline kind library

  12. carapace-bin

    A multi-shell completion binary.

    Project mention: Carapace | news.ycombinator.com | 2026-02-06
  13. carapace

    A multi-shell completion library.

  14. docopt.go

    A command-line arguments parser that will make you smile.

  15. liner

    Pure Go line editor with history, inspired by linenoise

  16. flaggy

    Idiomatic Go input parsing with subcommands, positional values, and flags at any position. No required project or package layout and no external dependencies.

  17. complete

    bash completion written in go + bash completion for go command

  18. cli-init

    The easy way to build Golang command-line application.

  19. mow.cli

    A versatile library for building CLI applications in Go

  20. cli

    CLI - A package for building command line app with go (by mkideal)

  21. box-cli-maker

    Render highly customizable boxes in the terminal

  22. argparse

    Argparse for golang. Just because `flag` sucks (by akamensky)

  23. 1build

    Frictionless way of managing project-specific commands

  24. wmenu

    An easy to use menu structure for cli applications that prompts users to make choices.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go Standard CLI discussion

Log in or Post with

Go Standard CLI related posts

Index

What are some of the best open-source Standard CLI projects in Go? This list will help you:

# Project Stars
1 cobra 44,783
2 urfave/cli 24,322
3 elvish 6,397
4 kingpin 3,566
5 kong 3,203
6 Dnote 3,096
7 The Platinum Searcher 2,819
8 pflag 2,786
9 go-flags 2,693
10 readline 2,314
11 carapace-bin 2,015
12 carapace 1,490
13 docopt.go 1,443
14 liner 1,099
15 flaggy 956
16 complete 956
17 cli-init 916
18 mow.cli 884
19 cli 723
20 box-cli-maker 667
21 argparse 639
22 1build 250
23 wmenu 231

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that Go is
the 5th most popular programming language
based on number of references?