10 Best Node.js CLI Arguments Libraries

Curated by the Openbase team and community.Learn more

Curated by the Openbase team and community. Learn more

com

commander

node.js command-line interfaces made easy

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.6/ 5
24
Top Feedback
6Great Documentation
4Easy to Use
3Bleeding Edge
GitHub Stars
21K
Weekly Downloads
71M
Last Commit
1mo ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

yargs

yargs the modern, pirate-themed successor to optimist.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.2/ 5
11
Top Feedback
1Easy to Use
1Performant
1Poor Documentation
GitHub Stars
9K
Weekly Downloads
62M
Last Commit
9d ago
Bundle Size (min+gzip)
N/A
Tree-Shakeable
cla

command-line-args

A mature, feature-complete library to parse command-line options.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
1Great Documentation
1Easy to Use
GitHub Stars
563
Weekly Downloads
985K
Last Commit
3mos ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

argparse

CLI arguments parser for node.js. JS port of python's argparse module.

License Icon
License: Python-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.0/ 5
5
Top Feedback
4Easy to Use
1Highly Customizable
1Poor Documentation
GitHub Stars
417
Weekly Downloads
29M
Last Commit
10mos ago
Bundle Size (min+gzip)
12.9KB
Not Tree-Shakeable
min

minimist

parse argument options

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.0/ 5
3
Top Feedback
3Easy to Use
2Great Documentation
1Buggy
GitHub Stars
5K
Weekly Downloads
40M
Last Commit
2yrs ago
Bundle Size (min+gzip)
1.30KB
Not Tree-Shakeable
mri

mri

Quickly scan for CLI flags and arguments

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.0/ 5
1
Top Feedback
1Easy to Use
GitHub Stars
428
Weekly Downloads
2M
Last Commit
1mo ago
Bundle Size (min+gzip)
N/A
Tree-Shakeable
res

respond

An interactive & asynchronous CLI/CMD interface based on node-suppose (https://github.com/jprichardson/node-suppose)

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
1Performant
GitHub Stars
4
Weekly Downloads
642
Last Commit
8yrs ago
Bundle Size (min+gzip)
0.39KB
Not Tree-Shakeable
sc

shipit-captain

Run Shipit tasks from Gulp, or any task runner. Includes Inquirer.js prompts, CLI arguments, customized logging, and more.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.0/ 5
1
Top Feedback
1Easy to Use
GitHub Stars
23
Weekly Downloads
31
Last Commit
5yrs ago
Bundle Size (min+gzip)
258.0KB
Not Tree-Shakeable

@run-z/optionz

Run-z command line options parser

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
274
Last Commit
9d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
pa

process.argv

light-weight command line arguments parser for cli application

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
3
Weekly Downloads
12K
Last Commit
1yr ago
Bundle Size (min+gzip)
2.40KB
Not Tree-Shakeable

cli-list

Parse comma-separated argument lists.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
8
Weekly Downloads
85K
Last Commit
2yrs ago
Bundle Size (min+gzip)
0.22KB
Not Tree-Shakeable

cli-argparse

Lightweight argument parser

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
5
Weekly Downloads
715
Last Commit
6yrs ago
Bundle Size (min+gzip)
1.49KB
Not Tree-Shakeable
pa

pipe-args

POSIX compliant pipe argument parser for node CLI apps

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
278
Last Commit
N/A
Bundle Size (min+gzip)
12.5KB
Not Tree-Shakeable
ap

arg-parser

node cli arguments parser

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
2
Weekly Downloads
46
Last Commit
3yrs ago
Bundle Size (min+gzip)
1.34KB
Not Tree-Shakeable

@augu/larg

👾 A very lightweight Node.js argument parser

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
2
Last Commit
3yrs ago
Bundle Size (min+gzip)
1.16KB
Not Tree-Shakeable
cr

cli_router

A router for parsing command line flags and arguments in your Node CLI scripts.

License Icon
License: BSD-2-Clause
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
8
Weekly Downloads
1
Last Commit
9yrs ago
Bundle Size (min+gzip)
5.11KB
Not Tree-Shakeable