COBRA-CLI-INIT(1)
β¨ COBRA-CLI-INIT(1) β¨
okay bestie, welcome to the Cobra Manual π this is the page for cobra-cli-init, and yes it's giving "let me set your whole life up" energy. buckle in π
πΈ NAME πΈ
cobra-cli-init β Initialize a Cobra Application β¨
π¦ SYNOPSIS π¦
cobra-cli init [PATH] [OPTIONS]
π DESCRIPTION π
so cobra-cli init creates a brand new application for you π«Ά like, a whole one. it sets up a license and the appropriate structure for a Cobra-based CLI application. it's literally the glow-up ritual for your project, no cap.
β οΈ IMPORTANT bestie:cobra-cli initmust be run inside of a Go module. so please rungo mod init <MODNAME>first, or this whole thing is gonna be a mess π
π ALIASES π
she answers to all of these, queen of many names π
initinitializeinitialisecreate
β¨ OPTIONS β¨
-h,--helpβ help forinit. the classic "wait what does this do again" button π
π OPTIONS INHERITED FROM PARENT COMMAND π
these ones come down from the parent command, like family heirlooms but for flags π
-a,--authorstring β author name for copyright attribution (default"YOUR NAME") β yes the default is literally the wordsYOUR NAME, go change it, i'm begging π--configstring β config file (default is$HOME/.cobra.yaml) π-l,--licensestring β name of license for the project π--viperβ Use Viper for configuration πβ¨
π SEE ALSO π
go read these next, they're the supporting cast π«Ά
mwah π that's the whole page. go forth and initialize something iconic.
this came to you from github.com/spf13/cobra-cli, dated Mar 2022 β yeah she's a lil vintage but she still ate π
β¨
π¦ where this page comes from
- debian bookworm: cobra-cli 1.3.0-3+b5 Β· Apache-2.0
- debian trixie: cobra-cli 1.3.0-3+b17 Β· Apache-2.0
- ubuntu noble: cobra-cli 1.3.0-3build1 Β· Apache-2.0
- ubuntu noble: cobra-cli 1.3.0-3ubuntu0.24.04.3 Β· Apache-2.0
- ubuntu resolute: cobra-cli 1.3.0-3build2 Β· Apache-2.0
- ubuntu stonking: cobra-cli 1.3.0-3build2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms