CLI Arguments Parser with Schema Validation

JSON →
library 1.0.6 ·javascript
verified May 27, 2026

cli-args-parser is an expressive and modern TypeScript library for parsing command-line arguments in Node.js environments (requiring Node.js >=18.0.0). Its core differentiator is the integration of Zod for robust, declarative schema validation, ensuring that CLI inputs conform to predefined types and structures. This prevents common errors by providing immediate feedback on invalid arguments or missing required options. Currently stable at version 1.0.6, the library focuses on a straightforward API for defining expected arguments, options, and flags, making it suitable for building well-structured and user-friendly CLI tools. Unlike more opinionated or heavier alternatives, it provides schema-driven validation out-of-the-box, simplifying argument processing and error handling. Release cadence appears stable with incremental 1.x updates.

total hits 21
actors 9 distinct systems
last hit 6d ago MetaBot
MetaBot
4
ByteDance
3
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada