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 init must be run inside of a Go module. so please run go mod init <MODNAME> first, or this whole thing is gonna be a mess 😭

πŸŽ€ ALIASES πŸŽ€

she answers to all of these, queen of many names πŸ‘‘

  • init
  • initialize
  • initialise
  • create

✨ OPTIONS ✨

  • -h, --help β€” help for init. 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, --author string β€” author name for copyright attribution (default "YOUR NAME") β€” yes the default is literally the words YOUR NAME, go change it, i'm begging πŸ™ˆ
  • --config string β€” config file (default is $HOME/.cobra.yaml) πŸ“
  • -l, --license string β€” 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 πŸ’…βœ¨