Go Standard CLI

Open-source Go projects categorized as Standard CLI

Top 23 Go Standard CLI Projects

  • cobra

    A Commander for modern Go CLI interactions

  • Project mention: The power of the CLI with Golang and Cobra CLI | dev.to | 2024-04-06

    We can use the flag with --date or -date, Go already does the automatic check. We can make our entire boilerplate with this approach, but let's make it a little easier and use the Cobra CLI package.

  • urfave/cli

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

  • Project mention: Best practices for distributing and updating a Go CLI on Linux? | /r/golang | 2023-05-18

    Can you use a framework like urfavecli https://github.com/urfave/cli? This will auto-update every time it detects a new version from your CLI's GitHub repository

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • elvish

    Powerful scripting language & Versatile interactive shell

  • Project mention: Xonsh: Python-powered, cross-platform, Unix-gazing shell | news.ycombinator.com | 2024-02-14
  • kingpin

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

  • Project mention: climate "CLI Mate": a CLI library that autogenerates CLIs from structs / functions with support for nested subcommands, global / local flags, help generation from godocs, typo suggestions, shell completion and more | /r/golang | 2023-07-07

    Args could also have detailed help (like flags) -- usage line is already auto-generated from arg(s) name and type but that's about it. This is something Cobra doesn't do for whatever reason (but https://github.com/alecthomas/kingpin does and I like it)

  • The Platinum Searcher

    A code search tool similar to ack and the_silver_searcher(ag). It supports multi platforms and multi encodings.

  • Dnote

    A simple command line notebook for programmers

  • go-flags

    go command line option parser

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • pflag

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

  • Project mention: issue with pflag flagset | /r/golang | 2023-05-07

    My understanding is that you can use pflag as a drop in replacement of the standard lib's flag (import flag "github.com/spf13/pflag"). So it can be used as a standalone lib I suppose.

  • readline

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

  • Project mention: I need CTRL + A (Select all) command on the cmd | /r/linuxquestions | 2023-05-27
  • kong

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

  • Project mention: climate "CLI Mate": a CLI library that autogenerates CLIs from structs / functions with support for nested subcommands, global / local flags, help generation from godocs, typo suggestions, shell completion and more | /r/golang | 2023-07-07

    I’ve been using https://github.com/alecthomas/kong for exposing generated protobuf structs for CLI args. How does your library compare?

  • mitchellh/cli

    A Go library for implementing command-line interfaces. (by mitchellh)

  • docopt.go

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

  • Project mention: Getopt like argument parser for Golang. | /r/golang | 2023-05-19

    There isn't enough compelling reasons to use your library as mentioned by n4jm4 there is already docopt. https://github.com/docopt/docopt.go or the standard flag library.

  • liner

    Pure Go line editor with history, inspired by linenoise

  • cli-init

    The easy way to build Golang command-line application.

  • complete

    bash completion written in go + bash completion for go command

  • mow.cli

    A versatile library for building CLI applications in Go

  • flaggy

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

  • cli

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

  • carapace-bin

    multi-shell multi-command argument completer

  • Project mention: Carapace: A multi-shell completion library and binary | news.ycombinator.com | 2024-04-22
  • argparse

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

  • box-cli-maker

    Make Highly Customized Boxes for CLI

  • Project mention: Show HN: Box CLI Maker | news.ycombinator.com | 2024-03-04
  • 1build

    Frictionless way of managing project-specific commands

  • climax

    Climax is an alternative CLI with the human face

  • SaaSHub

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

    SaaSHub logo
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 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 35,985
2 urfave/cli 21,595
3 elvish 5,324
4 kingpin 3,441
5 The Platinum Searcher 2,794
6 Dnote 2,685
7 go-flags 2,509
8 pflag 2,307
9 readline 2,030
10 kong 1,823
11 mitchellh/cli 1,721
12 docopt.go 1,424
13 liner 1,032
14 cli-init 925
15 complete 912
16 mow.cli 870
17 flaggy 846
18 cli 719
19 carapace-bin 619
20 argparse 589
21 box-cli-maker 450
22 1build 221
23 climax 213

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