What problem does it solve?
Stricli provides a structured, type-safe framework to build command-line interfaces in TypeScript, offering compile-time parameter validation, automatic help generation, and robust routing for complex CLIs.
Core Features & Use Cases
- Type-safe commands and route maps with compile-time checks for flags and positional parameters.
- Multi-runtime support (Node.js, Bun, Deno) with lazy-loading for large CLIs and route maps.
- Automatic help, built-in version display, and support for custom Contexts and LocalContext for stdio access.
- Ideal for building single-command CLIs, multi-command CLIs, and wrappers around existing tools for safer automation.
Quick Start
Create a new CLI by defining commands with buildCommand, wrap them with buildApplication, and run with run.