NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #3709 most downloaded on npm
Generates command-line usage information
Last release 7 months ago
02 Mar 2026
Release timing varies
gaps range from 9 days to 1.6 years
Some releases are documented
notes for 11 of 43 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
52 releases · first in 2015
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.
This release freshens up the codebase and dependency tree. There are no functional changes to the API or behaviour.
This release freshens up the codebase and dependency tree. There are no functional changes to the API or behaviour.
Nothing published for this version
Dropped support for node versions less than v12.20.
Nothing published for this version
Nothing published for this version
In the list of option definitions passed to an optionList, the name property is no longer mandatory. Previously, the following example would have thro
In the list of option definitions passed to an optionList, the name property is no longer mandatory. Previously, the following example would have thrown validation errors due to the lack of name properties.
const commandLineUsage = require('command-line-usage')
const usage = commandLineUsage([
{
header: 'Options',
optionList: [
{
description: 'Display this usage guide.',
alias: 'h',
type: Boolean
},
{
description: 'Timeout value in ms.',
alias: 't',
type: Number,
typeLabel: '{underline ms}'
}
]
}
])
console.log(usage)
Now, it returns the following output.
Options
-h Display this usage guide.
-t ms Timeout value in ms.
In the list of option definitions passed to an optionList , the name property is no longer mandatory. Previously, the following example would have thr
In the list of option definitions passed to an optionList , the name property is no longer mandatory. Previously, the following example would have thrown validation errors due to the lack of name properties.
const commandLineUsage = require ( 'command-line-usage' ) const usage = commandLineUsage ( [ { header : 'Options' , optionList : [ { description : 'Display this usage guide.' , alias : 'h' , type : Boolean } , { description : 'Timeout value in ms.' , alias : 't' , type : Number , typeLabel : '{underline ms}' } ] } ] ) console . log ( usage )
Now, it returns the following output.
Options
-h Display this usage guide. -t ms Timeout value in ms.
Assets 2 Loading
There was an error while loading. Please reload this page .
All reactions
Nothing published for this version
Support for node versions less than v8 removed.
lazyMultiple options. #22string. #23There have been no changes to the public API of this module. If you are using node v8 or above, you can upgrade safely.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Support for node versions less than v8 removed.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
All inline ansi formatting is now handled by chalk template literal syntax. Chalk benefits:
{red this is red {bold this is bold-red}})optionList table layout is now fully customisable by setting a tableOptions object.
If your usage guide does not use inline ansi formatting you can upgrade from v4 to v5 without change. If your guide does use ansi formatting you will need to upgrade the syntax, for example [underline](some text) becomes {underline some text}.
All inline ansi formatting is now handled by chalk template literal syntax . Chalk benefits:
All inline ansi formatting is now handled by chalk template literal syntax . Chalk benefits:
nested style support (e.g. {red this is red {bold this is bold-red}} )
256 colours and Truecolour support
actively maintained.
See here for example usage.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Removed support for Node less than v4.0.0. Users of old versions of Node can continue to use the previous version of this module.
Removed support for Node less than v4.0.0. Users of old versions of Node can continue to use the previous version of this module.
Removed support for Node less than v4.0.0. Users of old versions of Node can continue to use the previous version of this module.
Removed support for Node less than v4.0.0. Users of old versions of Node can continue to use the previous version of this module.
Assets 2 Loading
There was an error while loading. Please reload this page .
All reactions
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
The commandLineUsage() API changed. Previously, the usage guide template was fixed and you supplied an object containing template data. Now it takes a
The commandLineUsage() API changed. Previously, the usage guide template was fixed and you supplied an object containing template data. Now it takes an array of arbitrary section objects. You have full control over the content, you can add a section for anything you like.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →