Framework

Cobra – library for creating powerful modern CLI applications

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
termuiGolang terminal dashboard
Bubble TeaFun, functional and stateful way to build terminal apps
tviewTerminal UI library with rich, interactive widgets
gocuiMinimalist Go package aimed at creating Console User Interfaces.
TcellLow-level Go package for portable terminal screen handling and input
PTermGo library for styled output, progress displays, and interactive prompts
Huh?Go library for elegant, accessible interactive forms and prompts
CobraLibrary for creating powerful modern CLI applications
BubblesReusable components for composing polished Bubble Tea applications
go-tuiDeclarative toolkit for building interactive terminal applications
cviewTerminal-based user interface toolkit (fork of tview)
gotuiModern Go library for creating rich interactive terminal interfaces
PhoenixHigh-performance toolkit for building responsive terminal interfaces
Lip GlossStyle definitions for nice terminal layouts

Read our verdict in the software roundup.


Best Free and Open Source Software 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.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted