Cute Gopher Mascot

The Best Go Libraries For Command Line - Standard CLI (49)

Discover the best Go libraries for Command Line in Standard CLI! Find the perfect tools to streamline your development and boost productivity. From wmenu to argparse, we've got you covered. Let the coding begin!

wmenu

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

Discover More! ๐Ÿš€

argparse

Command line argument parser inspired by Python's argparse module

Discover More! ๐Ÿš€

carapace

Command argument completion generator for spf13/cobra

Discover More! ๐Ÿš€

climax

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

Discover More! ๐Ÿš€

cmd

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

Discover More! ๐Ÿš€

cmdr

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

Discover More! ๐Ÿš€

cobra

Commander for modern Go CLI interactions

Discover More! ๐Ÿš€

command-chain

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

Discover More! ๐Ÿš€

commandeer

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

Discover More! ๐Ÿš€

complete

Write bash completions in Go + Go command bash completion

Discover More! ๐Ÿš€

elvish

An expressive programming language and a versatile interactive shell

Discover More! ๐Ÿš€

flagvar

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

Discover More! ๐Ÿš€

go-arg

Struct-based argument parsing in Go

Discover More! ๐Ÿš€

go-flags

go command line option parser

Discover More! ๐Ÿš€

go-getoptions

Go option parser inspired by the flexibility of Perlโ€™s GetOpt::Long

Discover More! ๐Ÿš€

kingpin

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

Discover More! ๐Ÿš€

liner

Go readline-like library for command-line interfaces

Discover More! ๐Ÿš€

mcli

A minimal but very powerful cli library for Go

Discover More! ๐Ÿš€

mkideal/cli

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

Discover More! ๐Ÿš€

mow.cli

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

Discover More! ๐Ÿš€

ops

Unikernel Builder/Orchestrator

Discover More! ๐Ÿš€

pflag

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

Discover More! ๐Ÿš€

sflags

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

Discover More! ๐Ÿš€

teris-io/cli

Simple and complete API for building command line interfaces in Go

Discover More! ๐Ÿš€

version

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

Discover More! ๐Ÿš€

acmd

Simple, useful, and opinionated CLI package in Go

Discover More! ๐Ÿš€

argv

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

Discover More! ๐Ÿš€

carapace-bin

Multi-shell multi-command argument completer

Discover More! ๐Ÿš€

carapace-spec

Define simple completions using a spec file

Discover More! ๐Ÿš€

clรฎr

A Simple and Clear CLI library. Dependency free

Discover More! ๐Ÿš€

Dnote

A simple command line notebook with multi-device sync

Discover More! ๐Ÿš€

env

Tag-based environment configuration for structs

Discover More! ๐Ÿš€

flaggy

A robust and idiomatic flags package with excellent subcommand support

Discover More! ๐Ÿš€

gocmd

Go library for building command line applications

Discover More! ๐Ÿš€

hashicorp/cli

Go library for implementing command-line interfaces

Discover More! ๐Ÿš€

job

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

Discover More! ๐Ÿš€

strumt

Library to create prompt chain

Discover More! ๐Ÿš€

subcmd

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

Discover More! ๐Ÿš€

urfave/cli

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

Discover More! ๐Ÿš€

wlog

Simple logging interface that supports cross-platform color and concurrency

Discover More! ๐Ÿš€

boa

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

Discover More! ๐Ÿš€

flash-flags

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

Discover More! ๐Ÿš€

getopt

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

Discover More! ๐Ÿš€

go-readline-ny

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

Discover More! ๐Ÿš€

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

Discover More! ๐Ÿš€

hiboot cli

cli application framework with auto configuration and dependency injection

Discover More! ๐Ÿš€

orpheus

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

Discover More! ๐Ÿš€

readline

Shell library with modern and easy to use UI features

Discover More! ๐Ÿš€

structcli

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

Discover More! ๐Ÿš€