-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Daniel Arndt edited this page Mar 19, 2026
·
2 revisions
CLI Example is a reusable template for building command-line tools with TypeScript, Commander, Tsup, Vitest, and GitHub Actions.
The README stays intentionally short. The detailed maintenance docs live in the docs/ folder.
- CLI entrypoint with separated command registrars
-
corelayer for errors, common types, and utilities -
serviceslayer for reusable logic - example commands with arguments, options, and help text
- build, lint, typecheck, and test scripts
- GitHub Actions for CI and publishing
cli-example --help
cli-example --version
cli-example hello --name world
cli-example math sum 10 20 30
cli-example math multiply 2 3 4
cli-example system info
cli-example text digits "Order #AB-123"
cli-example array unique red blue red green
cli-example random pick apple banana orangenpm install
npm run build
npm run cli -- --help
npm run cli -- system info
npm run cli -- math average 5 10 15- Project structure overview
- Adding a command and service
- Core layer overview
- DevOps overview
- DevOps customization
- .npmrc overview
- GitHub token overview
- Publishing
Repository template maintained by Daniel Arndt.