A minimal, opinionated starter for building CLI tools with Bun and TypeScript.
- Bun runtime and package manager
- TypeScript with @total-typescript/tsconfig
- ESLint with @antfu/eslint-config (linting + formatting)
- consola for elegant CLI output
- VS Code settings for ESLint integration
- GitHub Actions for linting on PRs
- Claude Code hooks for auto-linting after edits
# Clone the template (clean, no git history)
bunx degit jtotty/bun-cli-template my-cli
# Navigate and install
cd my-cli
bun install
# Run the CLI
bun run dev- Update
nameinpackage.json - Update
CLAUDE.mdwith project-specific instructions - Initialize git:
git init && git add . && git commit -m "Initial commit"
bun run dev # Run src/index.ts
bun run lint # Check for linting issues
bun run lint:fix # Auto-fix linting issuesMIT