Go command-line tool

A command-line tool in Go with Cobra: subcommands, --help, --json output, safe file and process handling and tests that drive the command tree without a real terminal. Ships as one binary.

What you build

  • A command-line tool with Cobra subcommands
  • --json output
  • Tests that drive the command tree; ships as one binary

What you need

StackGo · Cobra · go test
LevelIntermediate
PlatformDesktop
PlanPro
Needs on your computerGo
Setup questionsAbout 3 minutes

Start a project from one of these templates

Free plan on macOS. Pro is $10 a month or $96 a year.