2014-09-16 15:38:50 -07:00
|
|
|
.TH "NPM\-RUN\-SCRIPT" "1" "September 2014" "" ""
|
2011-11-26 09:21:03 -08:00
|
|
|
.SH "NAME"
|
2014-09-24 14:41:07 -07:00
|
|
|
\fBnpm-run-script\fR \- Run arbitrary package scripts
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.P
|
|
|
|
.RS 2
|
|
|
|
.EX
|
|
|
|
npm run\-script [command] [\-\- <args>]
|
|
|
|
npm run [command] [\-\- <args>]
|
|
|
|
.EE
|
|
|
|
.RE
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.P
|
|
|
|
This runs an arbitrary command from a package's \fB"scripts"\fR object\.
|
2014-05-01 11:09:00 -07:00
|
|
|
If no package name is provided, it will search for a \fBpackage\.json\fR
|
2014-05-05 18:20:40 -07:00
|
|
|
in the current folder and use its \fB"scripts"\fR object\. If no \fB"command"\fR
|
|
|
|
is provided, it will list the available top level scripts\.
|
2011-11-26 09:21:03 -08:00
|
|
|
.P
|
|
|
|
It is used by the test, start, restart, and stop commands, but can be
|
|
|
|
called directly, as well\.
|
2014-09-24 14:41:07 -07:00
|
|
|
.SH SEE ALSO
|
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2014-09-16 15:38:50 -07:00
|
|
|
npm help 7 scripts
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2011-11-26 09:21:03 -08:00
|
|
|
npm help test
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2011-11-26 09:21:03 -08:00
|
|
|
npm help start
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2011-11-26 09:21:03 -08:00
|
|
|
npm help restart
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2011-11-26 09:21:03 -08:00
|
|
|
npm help stop
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|
2011-11-26 09:21:03 -08:00
|
|
|
|