Awesome Go

Standard CLI

49 libraries in Command Line / Standard CLI

acmd

Simple, useful, and opinionated CLI package in Go

Command LineStandard CLI
argparse

Command line argument parser inspired by Python's argparse module

Command LineStandard CLI
argv

Go library to split command line string as arguments array using the bash syntax

Command LineStandard CLI
carapace

Command argument completion generator for spf13/cobra

Command LineStandard CLI
carapace-bin

Multi-shell multi-command argument completer

Command LineStandard CLI
carapace-spec

Define simple completions using a spec file

Command LineStandard CLI
climax

Alternative CLI with "human face", in spirit of Go command

Command LineStandard CLI
clîr

A Simple and Clear CLI library. Dependency free

Command LineStandard CLI
cmd

Extends the standard `flag` package to support sub commands and more in idiomatic way

Command LineStandard CLI
cmdr

A POSIX/GNU style, getopt-like command-line UI Go library

Command LineStandard CLI
cobra

Commander for modern Go CLI interactions

Command LineStandard CLI
command-chain

A go library for configure and run command chains - such as pipelining in unix shells

Command LineStandard CLI
commandeer

Dev-friendly CLI apps: sets up flags, defaults, and usage based on struct fields and tags

Command LineStandard CLI
complete

Write bash completions in Go + Go command bash completion

Command LineStandard CLI
Dnote

A simple command line notebook with multi-device sync

Command LineStandard CLI
elvish

An expressive programming language and a versatile interactive shell

Command LineStandard CLI
env

Tag-based environment configuration for structs

Command LineStandard CLI
flaggy

A robust and idiomatic flags package with excellent subcommand support

Command LineStandard CLI
flagvar

A collection of flag argument types for Go's standard `flag` package

Command LineStandard CLI
go-arg

Struct-based argument parsing in Go

Command LineStandard CLI
go-flags

go command line option parser

Command LineStandard CLI
go-getoptions

Go option parser inspired by the flexibility of Perl’s GetOpt::Long

Command LineStandard CLI
gocmd

Go library for building command line applications

Command LineStandard CLI
job

JOB, make your short-term command as a long-term job

Command LineStandard CLI
kingpin

Command line and flag parser supporting sub commands (superseded by `kong`; see below)

Command LineStandard CLI
liner

Go readline-like library for command-line interfaces

Command LineStandard CLI
mcli

A minimal but very powerful cli library for Go

Command LineStandard CLI
mkideal/cli

Feature-rich and easy to use command-line package based on golang struct tags

Command LineStandard CLI
mow.cli

Go library for building CLI applications with sophisticated flag and argument parsing and validation

Command LineStandard CLI
ops

Unikernel Builder/Orchestrator

Command LineStandard CLI
pflag

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

Command LineStandard CLI
sflags

Struct based flags generator for flag, urfave/cli, pflag, cobra, kingpin, and other libraries

Command LineStandard CLI
strumt

Library to create prompt chain

Command LineStandard CLI
subcmd

Another approach to parsing and running subcommands. Works alongside the standard `flag` package

Command LineStandard CLI
teris-io/cli

Simple and complete API for building command line interfaces in Go

Command LineStandard CLI
urfave/cli

Simple, fast, and fun package for building command line apps in Go (formerly codegangsta/cli)

Command LineStandard CLI
version

Collects and displays CLI version information in multiple formats along with upgrade notice

Command LineStandard CLI
wlog

Simple logging interface that supports cross-platform color and concurrency

Command LineStandard CLI
wmenu

Easy to use menu structure for cli applications that prompt users to make choices

Command LineStandard CLI
boa

Declarative flags, env vars, validation, and config files from struct tags. Built on cobra

Command LineStandard CLI
flash-flags

Ultra-fast, zero-dependency, POSIX-compliant flag parsing library that can be used as drop-in stdlib replacement with security hardening

Command LineStandard CLI
getopt

An accurate Go `getopt`, validated against the GNU libc implementation

Command LineStandard CLI
go-readline-ny

A customizable line-editing library with Emacs keybindings, Unicode support, completion, and syntax highlighting. Used in NYAGOS shell

Command LineStandard CLI
goopt

A declarative, struct-tag based CLI framework for Go, with a broad feature set such as hierarchical commands/flags, i18n, shell completion, and validation

Command LineStandard CLI
hashicorp/cli

Go library for implementing command-line interfaces

Command LineStandard CLI
hiboot cli

cli application framework with auto configuration and dependency injection

Command LineStandard CLI
orpheus

CLI framework with security hardening, plugin storage system, and production observability features

Command LineStandard CLI
readline

Shell library with modern and easy to use UI features

Command LineStandard CLI
structcli

Eliminate Cobra boilerplate: build powerful, feature-rich CLIs declaratively from Go structs

Command LineStandard CLI