Package
command-line-args
A mature, feature-complete library to parse command-line options.
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
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
- v6 first release 6.0.0, 5 Jul 2024
- v5 first release 5.0.0, 17 Jan 2018
- v4 first release 4.0.0, 31 Jan 2017
- v3 first release 3.0.0, 29 May 2016
- v2 first release 2.0.0, 12 Oct 2015
- v1 first release 1.0.0, 13 Aug 2015
- v0 first release 0.0.0, 26 May 2014
Recent releases
| Version | Published |
|---|---|
| 6.0.2 | 23 Mar 2026 |
| 6.0.1 | 28 Oct 2024 |
| 6.0.0 | 5 Jul 2024 |
| 5.2.1 | 29 Jan 2022 |
| 5.2.0 | 29 Jul 2021 |
| 5.1.3 | 12 Jul 2021 |
| 5.1.2 | 11 Jul 2021 |
| 5.1.1 | 31 Mar 2019 |
| 5.1.0 | 24 Mar 2019 |
| 5.0.2 | 7 Feb 2018 |
| 5.0.1 | 19 Jan 2018 |
| 5.0.0 | 17 Jan 2018 |
| 4.0.7 | 9 Aug 2017 |
| 4.0.6 | 30 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- jsDelivr
https://cdn.jsdelivr.net/npm/command-line-args@6.0.2/ - unpkg
https://unpkg.com/command-line-args@6.0.2/ - esm.sh
https://esm.sh/command-line-args@6.0.2
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| jackspeak | 81.1m | - | 7 months ago | ESM + CommonJS | - |
| yargs | 194.7m | - | 4 days ago | ESM only | - |
| clipanion | 3.6m | - | 2 years ago | ESM + CommonJS | - |
| optimist | 3.5m | - | 12 years ago | CommonJS | - |
| commander | 375.2m | - | 3 months ago | ESM only | - |
| yargs-parser | 193.6m | - | 1 year ago | ESM only | - |
| mri | 16.4m | - | 5 years ago | ESM + CommonJS | - |
Indexability: Indexed.