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