COBRA-CLI(1)

πŸ’– COBRA-CLI(1) πŸ’–

okay so bestie, welcome to the Cobra Manual β€” this is the page for cobra-cli, and it's genuinely so good. grab a lil snack, we're doing this. πŸ“


✨ NAME ✨

cobra-cli β€” a generator for Cobra-based Go Applications πŸ¦‹


✨ SYNOPSIS ✨

cobra-cli [command]

that's it. that's the whole vibe. πŸ’…


✨ DESCRIPTION ✨

so like, Cobra is a CLI library for Go that empowers applications. periodt. πŸ’ͺ

and cobra-cli? it's the little tool that generates the needed files so you can quickly create a Cobra application. no cap, it just hands you the scaffolding and lets you be the main character. πŸ‘‘


✨ AVAILABLE COMMANDS ✨

  • add β€” Add a command to a Cobra Application πŸŽ€
  • completion β€” Generate the autocompletion script for the specified shell 🌸
  • help β€” Help about any command 🫢
  • init β€” Initialize a Cobra Application 🌈

✨ OPTIONS ✨

  • -a, --author string β€” author name for copyright attribution (default β€œYOUR NAME”) ✍️
  • --config string β€” config file (default is $HOME/.cobra.yaml) πŸ—‚οΈ
  • -h, --help β€” help for cobra-cli πŸ™‹
  • -l, --license string β€” name of license for the project πŸ“œ
  • --viper β€” Use Viper for configuration 🐍

✨ SEE ALSO ✨


fr fr, go read those two next β€” they're the whole point of the add and init life. πŸ’œ

and that's a wrap bestie!! this page lives over at github.com/spf13/cobra-cli, dated Mar 2022 β€” iconic behavior from the Cobra Manual, we love to see it. mwah. πŸ’–βœ¨πŸŽ€πŸ¦‹