{"repo":"spf13/cobra","free":true,"listed":false,"github":"https://github.com/spf13/cobra","clone":"git clone https://github.com/spf13/cobra.git","description":"A Commander for modern Go CLI interactions","language":"Go","stars":44455,"topics":["cobra","cobra-library","cobra-generator","posix-compliant-flags","command-cobra","cli-app","command-line","commandline","command","cli"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"Cobra is a library for creating powerful modern CLI applications. Visit Cobra.dev for extensive documentation Cobra is used in many Go projects such as Kubernetes, Hugo, and GitHub CLI to name a few. This list contains a more extensive list of projects using Cobra. Supported by: Warp, the AI terminal for devs Try Cobra in Warp today Overview Cobra is a library providing a simple interface to create powerful modern CLI interfaces similar to git & go tools. Cobra provides: 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 Concepts Cobra is built on a structure of commands, arguments & flags. Commands represent actions, Args are things and Flags are modifiers for those actions. The best applications read like sentences when used, and as a result, users intuitively know how to interact with them. The pattern to follow is APPNAME VERB NOUN --ADJ","default_branch":null,"files":null,"tree":[],"storefront":"/r/spf13","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spf13/cobra/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}