Cobra

A framework for building powerful modern CLI applications

Language: GoCategory: CLIFirst released: 2013Created by: Steve FranciaLicense: Apache-2.0

Cobra is a widely-used Go library for creating powerful command-line applications. It provides a simple interface for building commands, subcommands, flags, help text, and shell autocompletion. Cobra powers a significant portion of the Go ecosystem tools — including Kubernetes, Hugo, and the Go CLI itself — by delivering a consistent, polished CLI structure that is easy to build, test, and maintain.

Links

Key Features

Commands & SubcommandsFlag ParsingAutocomplete GenerationHelp Text TemplatesPOSIX Compliance