48515c4fbd689f3cc2c00009a4d6a21e1e29388d
[platform/upstream/nodejs.git] / deps / npm / man / man3 / npm-version.3
1 .\" Generated with Ronnjs 0.3.8
2 .\" http://github.com/kapouer/ronnjs/
3 .
4 .TH "NPM\-VERSION" "3" "November 2013" "" ""
5 .
6 .SH "NAME"
7 \fBnpm-version\fR \-\- Bump a package version
8 .
9 .SH "SYNOPSIS"
10 .
11 .nf
12 npm\.commands\.version(newversion, callback)
13 .
14 .fi
15 .
16 .SH "DESCRIPTION"
17 Run this in a package directory to bump the version and write the new
18 data back to the package\.json file\.
19 .
20 .P
21 If run in a git repo, it will also create a version commit and tag, and
22 fail if the repo is not clean\.
23 .
24 .P
25 Like all other commands, this function takes a string array as its first
26 parameter\. The difference, however, is this function will fail if it does
27 not have exactly one element\. The only element should be a version number\.