GitHub

Best Node.js CLI libraries

Libraries for parsing arguments and building command line tools. commander leads with about 736M real installs a week, followed by yargs with about 372M.

packagereal installs / weeknpm / weeknoiselast releaseconfidence
1. commanderthe complete solution for node.js command-line programs 736M 735,971,970 under 1% May 2026 high
2. yargsyargs the modern, pirate-themed, successor to optimist. 372M 371,877,715 under 1% Sep 2026 high
3. minimistparse argument options 229M 228,560,280 under 1% Feb 2023 high
4. cacSimple yet powerful framework for building command-line apps. 67.5M 67,489,640 under 1% Oct 2026 high
5. meowCLI app helper 50M 49,998,759 under 1% Feb 2026 high
6. cittyElegant CLI Builder 48.6M 48,574,085 under 1% Apr 2026 high
7. @oclif/corebase library for oclif CLIs 16.5M 16,475,293 under 1% Nov 2026 high
8. clipanionType-safe CLI library / framework with no runtime dependencies 6.22M 6,223,014 under 1% Sep 2024 high

Ranked by real installs. That measures use, not quality: read the notes below before choosing. Mirror spikes and crawlers removed. CI and dependency installs still count, so this is not a head count. Noise: the share of npm's count that mirror spikes and crawlers account for. What remains still includes CI and dependency installs. Rows are refreshed in rotation, the oldest here on Nov 6, 2026.

How do they differ?

Commander and yargs cover most command line tools. minimist only parses arguments, and much of its count comes from other packages depending on it. oclif is a full framework for large CLIs with plugins. meow, cac and citty are smaller options, and Clipanion is a type-safe one.

Check a package