Packages

commander

15.1.0 · 7 Nov 2026MIT785.6M / weekRepositoryHomepagenpmAtom feed

Upgrading commander From 8.0.0 to 8.3.0

3 releases in betweenevery note read

Other targets from 8.0.0Latest15.1.0
  1. 8.0.0yours
  2. 8.1.0
  3. 8.2.0breaking
  4. 8.3.0target
3
changes to make
0
advisories fixed
6
new
0
fixes

Before you upgrade

Tick each one off as you go
  • Breaking8.2.0
  • Deprecated8.3.0
  • Deprecated8.3.0

Release by release

  1. 8.3.0

    Deprecation22 Oct 20211 new
    • Deprecated

      .command('*'), use default command instead

    • Deprecated

      on('command:*'), use .showSuggestionAfterError() instead

    • New

      .getOptionValueSource() and .setOptionValueWithSource(), where expected values for source are one of 'default', 'env', 'config', 'cli'

  2. 8.2.0

    Migration needed10 Sep 20212 new
    • Breaking

      TypeScript declaration of unimplemented Option method argumentRejected

    • New

      .showSuggestionAfterError() to show suggestions after unknown command or unknown option

    • New

      Add Option support for values from environment variables using .env()

  3. 8.1.0

    27 Jul 20213 new
    • New

      .copyInheritedSettings()

    • New

      Update Chinese translations for Commander v8

    • New

      Argument methods for .argRequired() and .argOptional()

1 other line we could not sort, mostly version bumps
  • Show error for unknown global option before subcommand (rather than just help)

    8.2.0

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.