A modern template for building command-line applications with TypeScript, Commander.js, and best practices.
CLI Template is a comprehensive starting point for developers looking to build professional command-line applications. Built with TypeScript and Commander.js, it provides a solid foundation with modern development tools and best practices baked in.
The template comes pre-configured with everything needed for CLI development, including interactive mode support, table output formatting with cli-table3, progress bars with cli-progress, and comprehensive testing setup with Vitest. The project structure is designed to be intuitive and scalable.
One of the standout features is the complete CI/CD setup with GitHub Actions for automated testing, code quality checks with CodeQL, and automated releases. The template also includes VitePress documentation, making it easy to create professional documentation for your CLI tools.
CLI Template follows a modular architecture with clear separation of concerns. Commands are organized in the commands/ directory, utilities are isolated in utils/, and type definitions are centralized in types/. The build process uses tsup for fast, optimized bundling with support for both CommonJS and ES modules. The testing setup uses Vitest for unit testing with coverage reporting.
Solution: Implemented a modular command system using Commander.js subcommands, allowing easy addition of new commands without modifying the core structure
Solution: Built example commands for tables, progress bars, and interactive modes, demonstrating best practices for each pattern with multiple variations
Solution: Configured GitHub Actions workflows for testing, code quality checks with CodeQL, and automated semantic versioning releases
Solution: Integrated VitePress for documentation with pre-configured guides, API references, and examples that can be easily customized
Professional car detailing and furniture cleaning service website offering comprehensive cleaning solutions with modern Polish interface.
Professional electrical and construction services company website showcasing comprehensive solutions with modern Polish interface.
A streaming platform for finding and watching anime series and movies with Polish subtitles.