mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
562 B
Plaintext
30 lines
562 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# npm version
|
|
|
|
> Bump a node package version.
|
|
> More information: <https://docs.npmjs.com/cli/npm-version>.
|
|
|
|
- Display version:
|
|
|
|
`npm version`
|
|
|
|
- Bump the minor version:
|
|
|
|
`npm version minor`
|
|
|
|
- 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}}"`
|