Template for a CLI using TypeScript.
This CLI has only one command: init. It prompts the user for a project name and then prints a message with the name.
- Bun - Package Manager
- Clack - CLI Prompts
- Commander - CLI Framework
- picocolors - Colors for the Terminal
- TypeScript - JavaScript with Syntax
- Biome with Ultracite core preset - Linting and Formatting
- Zod - Validation
- tsdown - Bundler
- tsx - TypeScript runner
- Run
bun installto install dependencies. - Run
bun run devto execute the CLI (usingtsx).
build- Builds the CLI usingtsdown.build:silent- Builds the CLI usingtsdownwithout showing the output.start- Starts the CLI usingbun.dev- Runs the CLI usingtsx.dev:node- Runs the CLI usingbun. Builds the CLI usingbuild:silentand executes it usingstart.format- Formats the code usingbiome.format:fix- Formats the code usingbiome.lint- Checks the code usingbiome.pub:beta- Builds the CLI usingbuildand publishes it to thebetatag.pub:next- Builds the CLI usingbuildand publishes it to thenexttag.pub:release- Builds the CLI usingbuildand publishes it to thelatesttag.typecheck- Checks the code usingtsc.