1 .TH "NPM\-VERSION" "3" "October 2016" "" ""
3 \fBnpm-version\fR \- Bump a package version
8 npm\.commands\.version(newversion, callback)
13 Run this in a package directory to bump the version and write the new
14 data back to the package\.json file\.
16 If run in a git repo, it will also create a version commit and tag, and
17 fail if the repo is not clean\.
19 Like all other commands, this function takes a string array as its first
20 parameter\. The difference, however, is this function will fail if it does
21 not have exactly one element\. The only element should be a version number\.