Cobra is a library for creating powerful modern CLI applications.
Cobra is used in many Go projects such as Kubernetes, Hugo, and GitHub CLI to name a few.
This is free and open source software.
Key Features
- Easy subcommand-based CLIs: app server, app fetch, etc.
- Fully POSIX-compliant flags (including short & long versions)
- Nested subcommands
- Global, local and cascading flags
- Intelligent suggestions (app srver… did you mean app server?)
- Automatic help generation for commands and flags
- Grouping help for subcommands
- Automatic help flag recognition of -h, –help, etc.
- Automatically generated shell autocomplete for your application (bash, zsh, fish, powershell)
- Automatically generated man pages for your application
- Command aliases so you can change things without breaking them
- The flexibility to define your own help, usage, etc.
- Optional seamless integration with viper for 12-factor apps
Website: github.com/spf13/cobra
Support:
Developer: Steve Francia
License: Apache License 2.0
Cobra is written in Go. Learn Go with our recommended free books and free tutorials.
Related Software
| Go TUI Frameworks | |
|---|---|
| termui | Golang terminal dashboard |
| Bubble Tea | Fun, functional and stateful way to build terminal apps |
| tview | Terminal UI library with rich, interactive widgets |
| gocui | Minimalist Go package aimed at creating Console User Interfaces. |
| Cobra | Library for creating powerful modern CLI applications |
| cview | Terminal-based user interface toolkit (fork of tview) |
| Lip Gloss | Style definitions for nice terminal layouts |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Know a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

