Blog
Notes and deep dives on building type-safe command line tools with Zod schemas.
Type-Safe CLI Parsing with Zod
How to describe a command-line interface as a Zod schema so parsing, validation, help output, and TypeScript types all come from one source.
Why Your CLI Parser Should Not Run Your Commands
Parsing argv and executing a command are two jobs. Splitting them makes commands testable, middleware unnecessary, and error handling ordinary code.
Commander and Yargs Alternatives for TypeScript CLIs
An honest comparison of builder-based CLI parsers and the schema-first approach, and when each one is the right choice.