commander
15.1.0 · 7 Nov 2026MIT735.1M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgradeLatest releases
All 105 releases- 15.x · latest line
15.1.0
7 Nov 2026- Deprecated
cmd.storeOptionsAsProperties() - Deprecated
cmd.combineFlagAndOptionalValue() Accept uppercase E exponent in negative number arguments
Fixed
Accept uppercase E exponent in negative number arguments
Support Unicode variadic option placeholders
Increment node inspector port for
--inspect-waitwhen spawn an executable subcommandIncrement node inspector port for IPv6 hosts when spawn an executable subcommand
Preserve the help option's group when a conflicting flag is hidden
Global option values with unknown source should mask local option value source in
cmd.getOptionValueSourceWithGlobals()
Changed
Limit Pull Requests to reduce volume and improve quality
Undeprecate
InvalidOptionArgumentError
Deprecated
- Deprecated
cmd.storeOptionsAsProperties() - Deprecated
cmd.combineFlagAndOptionalValue()
15.0.0
29 May 2026Show excess command-arguments in error message
Update example to use compatible character for MINGW64
Commander 15 is ESM only. This is expected to be seamless for ESM consumers, but some CommonJS consumers may hit issues with tooling requiring configuration for ESM-only dependencies. See Migration Tips below.
The release of Commander 15 moves Commander 14 into maintenance. Commander 14 will get security updates for
12 months (to May 2027). For more info see Release Policy.Added
Show excess command-arguments in error message
Fixed
- Breaking
only lone
--no-*option sets default option value totrue, default not implicitly set when define both positive and negative option in either order
Update example to use compatible character for MINGW64
Changed
- Breaking
migrated Commander implementation from CommonJS to ESM
- Breaking
Commander 15 requires Node.js v22.12.0 or higher (for
require(esm)).
Deleted
- Breaking
removed deprecated export of
commander/esm.mjs
Migration Tips
Commander 15 is ESM only, but this does not mean you need to migrate to ESM to use it. Importing ESM from CommonJS is
supported by Node.js, and Bun, and Deno. Hopefully it Just Works for you! However, you may be using a different runtime or
some other part of your setup that may not yet natively support importing ESM from CommonJS, such as your testing framework
or bundler.If you have problems using Commander 15 in your environment, one option is stay on Commander 14 for now. Commander 14 will
get security updates until May 2027 and things will hopefully improve for your setup in the meantime.- 14.x · maintenance
14.0.3
31 Jan 2026Release Policy document
Old major versions now supported for 12 months instead of just previous major version, to give predictable end-of-life
date (#2462)Clarify typing for deprecated callback parameter to
.outputHelp()
Added
Release Policy document
Changes
Old major versions now supported for 12 months instead of just previous major version, to give predictable end-of-life
date (#2462)Clarify typing for deprecated callback parameter to
.outputHelp()Simple readability improvements to README
Dependency tracking · free for 3 projects
Know when your own dependencies move
commander shipped a new major in the last 12 months, among 3 releases. inlinr shows which of your projects are behind, and what the upgrade breaks.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Reading releases, release notes and advisories…
Registry facts last checked 12 Nov 2026. Releases and advisories last read 12 Nov 2026.