What problem does it solve?
This skill guides developers in quickly building TypeScript CLIs using Bun, reducing boilerplate and enabling consistent CLI tooling across projects.
Core Features & Use Cases
- Minimal CLI scaffolding to expose a command interface and handle basic args.
- Subcommand patterns and command registries to manage multiple actions.
- Output formatting options including human-readable and JSON modes for scriptability.
- Distribution guidance covering packaging, shebang usage, and executable permissions for seamless local deployment.
- Real-world scenarios include building project tools, automation scripts, and developer utilities that integrate with pipelines.
Quick Start
Install Bun and create a new CLI file under scripts, add a shebang, make it executable, and run it directly or via bun. For example: create scripts/cli.ts with a basic command that prints a greeting, then run bun scripts/cli.ts hello. Then extend with subcommands and observe help output.