DOKK / manpages / debian 12 / cobra-cli / cobra-cli-init.1.en
COBRA-CLI-INIT(1) Cobra Manual COBRA-CLI-INIT(1)

cobra-cli-init - Initialize a Cobra Application

cobra-cli init [PATH] [OPTIONS]

Initialize (cobra-cli init) will create a new application, with a license and the appropriate structure for a Cobra-based CLI application.

cobra-cli init must be run inside of a Go module (please run “go mod init <MODNAME>” first)

init, initialize, initialise, create

help for init

author name for copyright attribution (default “YOUR NAME”)
config file (default is $HOME/.cobra.yaml)
name of license for the project
Use Viper for configuration

cobra-cli(1), cobra-cli-add(1)

Mar 2022 github.com/spf13/cobra-cli