COBRA(1)
β¨ COBRA(1) β the Cobra Manual β¨
okay bestie, so this is cobra, and it's literally the glow-up tool for your Go CLI dreams π
π NAME π
cobra β a generator for Cobra based Applications πΈ
π SYNOPSIS π
cobra [OPTIONS]
that's it. that's the whole vibe. no subcommands up here, just options, and honestly? iconic. π
π¦ DESCRIPTION π¦
so. Cobra is a CLI library for Go that empowers applications. yeah, "empowers" β that's the actual word, and it's giving main character energy fr fr.
and this thing right here? this application? it's a tool to generate the needed files so you can quickly create a Cobra application. like, scaffolding but make it slay. you run it, it hands you the files, you go build your whole command-line empire. no cap. β¨
π OPTIONS π
every single flag, laid out like a lil friendship bracelet. memorize them, bestie, they're your whole personality now π«Ά
-a,--author="YOUR NAME"β the author name, used for copyright attribution. yes, you have to actually put your name in,"YOUR NAME"is a placeholder, not a suggestion π--config=""β the config file. and the default is$HOME/.cobra.yaml, so if you don't say anything, that's where it's looking π-l,--license=""β the name of the license for the project. also, you can providelicensetextin the config, so that's a whole option too π-b,--projectbase=""β the base project directory. example, verbatim, do not come for me:github.com/spf13/π--viper[=true]β use Viper for configuration. it takes the[=true]form, so it's lowkey already true unless you say otherwise π
π SEE ALSO π
go bother these next, they're the rest of the squad:
π a lil sign-off π
this page lives at github.com/spf13/cobra and it's dated Dec 2015. ancient. vintage. still eating. periodt π
β¨π
π¦ where this page comes from
- ubuntu jammy: cobra 1.3.0-1 Β· Apache-2.0
- ubuntu jammy: cobra 1.3.0-1ubuntu0.3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms