Command Line / Standard CLI

49 packages

Packages (49)

cobra

Commander for modern Go CLI interactions.

43,059 3,045

urfave/cli

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

23,863 1,757

elvish

An expressive programming language and a versatile interactive shell.

6,221 320

kingpin

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

3,559 275

Dnote

A simple command line notebook with multi-device sync.

3,002 120

pflag

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

2,692 366

go-flags

go command line option parser.

2,689 317

go-arg

Struct-based argument parsing in Go.

2,225 112

carapace-bin

Multi-shell multi-command argument completer.

1,679 98

ops

Unikernel Builder/Orchestrator.

1,458 138

carapace

Command argument completion generator for spf13/cobra.

1,138 22

liner

Go readline-like library for command-line interfaces.

1,086 133

complete

Write bash completions in Go + Go command bash completion.

951 70

flaggy

A robust and idiomatic flags package with excellent subcommand support.

946 32

mow.cli

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

884 57

mkideal/cli

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

730 42

argparse

Command line argument parser inspired by Python's argparse module.

635 64

wmenu

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

228 22

climax

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

217 16

clîr

A Simple and Clear CLI library. Dependency free.

197 18

hiboot cli

cli application framework with auto configuration and dependency injection.

182 24

commandeer

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

176 17

sflags

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

166 37

job

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

149 12

cmdr

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

142 10

acmd

Simple, useful, and opinionated CLI package in Go.

137 3

readline

Shell library with modern and easy to use UI features.

133 17

teris-io/cli

Simple and complete API for building command line interfaces in Go.

131 9

env

Tag-based environment configuration for structs.

126 15

version

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

110 5

console

Closed-loop application library for Cobra commands, with oh-my-posh prompts, and more.

101 9

command-chain

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

70 3

gocmd

Go library for building command line applications.

67 5

wlog

Simple logging interface that supports cross-platform color and concurrency.

67 9

strumt

Library to create prompt chain.

63 5

go-getoptions

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

61 10

flagvar

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

48 4

cmd

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

46 3

argv

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

42 7

mcli

A minimal but very powerful cli library for Go.

42 2

hashicorp/cli

Go library for implementing command-line interfaces.

35 9

go-readline-ny

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

32 4

orpheus

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

26

flash-flags

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

10

subcmd

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

9

getopt

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

7

structcli

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

7

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.

5 1