commands.sh

npm version

all

Bump a node package version.

More info →

Options (1)

-m, --messageboolean

Bump the major version with a custom commit message

Example: npm version major {{[-m|--message]}} "{{Upgrade to %s for reasons}}"

Examples (5)

Display version

Bump the minor version

Set a specific version

npm version version

Bump the patch version without creating a Git tag

npm version patch --no-git-tag-version

Bump the major version with a custom commit message

npm version major [-m|--message] "Upgrade to %s for reasons"
made by @shridhargupta | data from tldr-pages