cobra-cli
« Back to VersTracker
Description:
Tool to generate cobra applications and commands
Type: Formula  |  Latest Version: 1.3.0@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  @spf13  |  formulae.brew.sh
Category: Developer tools
Tags: cli golang cobra scaffolding developer-tools
Install: brew install cobra-cli
About:
Cobra-cli is a command-line interface generator built on the Cobra library. It scaffolds complete Go applications and subcommands, providing a robust foundation for building modern CLI tools. This tool streamlines project setup, allowing developers to focus on application logic rather than boilerplate code.
Key Features:
  • Generates applications and commands with a single command
  • Creates POSIX-compliant flags and argument parsing
  • Generates shell completion scripts for bash, zsh, and fish
  • Integrates with Viper for configuration management
Use Cases:
  • Scaffolding new Go-based CLI applications from scratch
  • Adding subcommands and flags to existing Cobra projects
  • Generating shell autocompletion for end-user distribution
Alternatives:
  • urfave/cli – Declarative API vs Cobra's command generation approach
  • spf13/cobra – Direct library usage vs the dedicated generator tool
Version History
Detected Version Rev Change Commit
Oct 10, 2025 1:06am 0 VERSION_BUMP 7219eebe