cobra-cli-init(1)

cobra-cli-init1

Initialize a cobra application

Usage

cobra-cli init [PATH] [OPTIONS]

Overview

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)

Aliases

init, initialize, initialise, create

Options

-h, --help

help for init

Options inherited from parent command

-a, --author string

author name for copyright attribution (default “YOUR NAME”)

--config string

config file (default is $HOME/.cobra.yaml)

-l, --license string

name of license for the project

--viper

Use Viper for configuration

Releases

Unchanged in 2 releases since Debian 12 (Bookworm).

  1. 12–13

From cobra-cli 1.3.0-3+b17 in Debian 13 (Trixie). Parsed by carta from the page's man source.