Build a CLI tool
Build a command-line tool with subcommands, flags, help text, and UNIX-standard exit codes. Covers invalid-input handling and follows CLI best practices.
Preview
Copy prompt
Write a [Language] CLI tool named [name] that supports the following commands and flags: [List commands and flags]. Use [CLI library, e.g. Commander, Click, Cobra] to structure the tool. Add descriptive help text for every command and flag, validate inputs and surface clear error messages for invalid usage, return meaningful UNIX exit codes, and include at least one usage example in the help output.
More
Code Generation
Prompts
