Skip to content
JS
Package

command-line-args

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

v6.0.2, 23 Mar 2026MITESM + CommonJSTypes: NoneCLI tools and terminal utilities
$ npm install command-line-args

Key numbers

As of 25 Sept 2026
Weekly downloads
5.7m
+107% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
4
Direct, from package.json
Last release
6 months ago
v6.0.2
GitHub stars
719
103 forks
Open issues / PRs
7 / 0
Contributors
-
Commits, last 52 weeks
2

Downloads

Last week 2026-09-15 to 2026-09-21
02.5m5m7.5m10mSept 2025Mar 2026Sept 2026High 8.4m (28 Jul 2026)Low 1.8m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

5,728,525 downloads last week, 27,894,906 in the last month. The 12-month change of +107% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
163 in total
Latest version
6.0.2, 23 Mar 20266 months ago
First published
26 May 2014
Last push to GitHub
16 Sept 20268 days before the snapshot
Repository archived
No
Open issues
7
Open pull requests
0
Commits, last 52 weeks
2
Dependents on npm
2,959

Major versions

  1. v6 first release 6.0.0, 5 Jul 2024
  2. v5 first release 5.0.0, 17 Jan 2018
  3. v4 first release 4.0.0, 31 Jan 2017
  4. v3 first release 3.0.0, 29 May 2016
  5. v2 first release 2.0.0, 12 Oct 2015
  6. v1 first release 1.0.0, 13 Aug 2015
  7. v0 first release 0.0.0, 26 May 2014

Recent releases

VersionPublished
6.0.223 Mar 2026
6.0.128 Oct 2024
6.0.05 Jul 2024
5.2.129 Jan 2022
5.2.029 Jul 2021
5.1.312 Jul 2021
5.1.211 Jul 2021
5.1.131 Mar 2019
5.1.024 Mar 2019
5.0.27 Feb 2018
5.0.119 Jan 2018
5.0.017 Jan 2018
4.0.79 Aug 2017
4.0.630 May 2017
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=12.20
Runtimes
-
Unpacked size (npm)
66 kB
Dependencies (4)
typicalarray-backfind-replacelodash.camelcase
Peer dependencies (1)
@75lb/nature
npm install command-line-args
  • jsDelivrhttps://cdn.jsdelivr.net/npm/command-line-args@6.0.2/
  • unpkghttps://unpkg.com/command-line-args@6.0.2/
  • esm.shhttps://esm.sh/command-line-args@6.0.2
PackageWeekly downloadsGzipLast releaseModuleComparison
jackspeak81.1m-7 months agoESM + CommonJS-
yargs194.7m-4 days agoESM only-
clipanion3.6m-2 years agoESM + CommonJS-
optimist3.5m-12 years agoCommonJS-
commander375.2m-3 months agoESM only-
yargs-parser193.6m-1 year agoESM only-
mri16.4m-5 years agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.