Skip to content

Instantly share code, notes, and snippets.

@khalidx
Created November 29, 2023 07:05
Show Gist options
  • Save khalidx/cd02470cc26eacbd695425c3af368277 to your computer and use it in GitHub Desktop.
Save khalidx/cd02470cc26eacbd695425c3af368277 to your computer and use it in GitHub Desktop.
Creating a new Go CLI application.

Replace <FirstName>, <LastName>, and <Email> with your information.

mkdir ./cli/ && cd ./cli/
go install github.com/spf13/cobra-cli@latest
cobra-cli init --author "<FirstName> <LastName> <Email>" --license MIT --viper
go mod tidy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment