10 repository-uri
Popular packages for building robust command-line applications in Go.
Explore 10 awesome GitHub repositories matching part of an awesome list · Go CLI Frameworks. Refine with filters or upvote what's useful.
Cobra is a development framework for building command-line applications in Go. It organizes application logic into a hierarchical tree structure where each node represents a command, complete with its own flags and execution logic. This structure allows developers to build complex, nested command interfaces that mirror business domains while maintaining a clean separation between command orchestration and underlying business logic. The framework distinguishes itself through its declarative approach to metadata and configuration. It automatically derives help documentation, usage instructions,
Standard library for building modern CLI applications.
Viper is a configuration management library designed to centralize application settings from diverse sources into a unified, type-safe registry. It aggregates data from local files, environment variables, command-line flags, and remote key-value stores, providing a single source of truth for application state. By utilizing a hierarchical key-value registry, the system resolves configuration values based on a prioritized stack of providers, ranging from default values to runtime overrides. The library distinguishes itself through its pluggable provider abstraction and dynamic update capabiliti
Configuration solution for command-line applications.
This is a framework for building structured terminal applications in Go. It provides the core components necessary to define a command-line interface, including a system for managing commands, sub-commands, and their associated flags. The library distinguishes itself through an automated help generator that produces formatted usage instructions and manual pages, and a shell completion generator that creates tab-completion scripts for Bash, Zsh, Fish, and PowerShell. It also features a command lifecycle manager to handle pre- and post-execution logic and process exit codes. The toolkit covers
Package for building fast and fun command-line apps.
Kong is a declarative command line interface framework and parser for Go. It maps flags and positional arguments directly into typed Go structures using struct tags, allowing developers to define terminal interfaces through data models rather than manual parsing logic. The project functions as a configuration mapper that populates Go structures from a combination of command-line arguments, environment variables, and JSON files. It distinguishes itself by providing a dependency injection container to pass external services into command handlers and a plugin architecture for dynamic command reg
Library for complex command-line structures with minimal effort.
Struct-based argument parsing library.
docopt-go
Argument parser based on help message definitions.
A versatile library for building CLI applications in Go
Versatile library for building CLI applications.
Argparse for golang. Just because flag sucks
Go implementation of Python-style argument parsing.
Climate "CLI Mate" aims to make creating CLIs in Go easy (and fun!), similar to python-fire. It's also built on top of Cobra and so comes with "batteries included" (help, shell completion etc.).
Autogenerates CLIs from structs and functions.
CLIF - Command line interface framework
Framework for rapid command-line application development.