summaryrefslogtreecommitdiff
path: root/deps/npm/man/man1/npm-exec.1
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/man/man1/npm-exec.1')
-rw-r--r--deps/npm/man/man1/npm-exec.19
1 files changed, 8 insertions, 1 deletions
diff --git a/deps/npm/man/man1/npm-exec.1 b/deps/npm/man/man1/npm-exec.1
index 17d436812e..5628bda39d 100644
--- a/deps/npm/man/man1/npm-exec.1
+++ b/deps/npm/man/man1/npm-exec.1
@@ -1,4 +1,4 @@
-.TH "NPM\-EXEC" "1" "November 2020" "" ""
+.TH "NPM\-EXEC" "1" "December 2020" "" ""
.SH "NAME"
\fBnpm-exec\fR \- Run a command from a local or remote npm package
.SS Synopsis
@@ -14,9 +14,11 @@ npx <pkg>[@<specifier>] [args\.\.\.]
npx \-p <pkg>[@<specifier>] <cmd> [args\.\.\.]
npx \-c '<cmd> [args\.\.\.]'
npx \-p <pkg>[@<specifier>] \-c '<cmd> [args\.\.\.]'
+Run without \-\-call or positional args to open interactive subshell
alias: npm x, npx
+common options:
\-\-package=<pkg> (may be specified multiple times)
\-p is a shorthand for \-\-package only when using npx executable
\-c <cmd> \-\-call=<cmd> (may not be mixed with positional arguments)
@@ -28,6 +30,11 @@ This command allows you to run an arbitrary command from an npm package
(either one installed locally, or fetched remotely), in a similar context
as running it via \fBnpm run\fP\|\.
.P
+Run without positional arguments or \fB\-\-call\fP, this allows you to
+interactively run commands in the same sort of shell environment that
+\fBpackage\.json\fP scripts are run\. Interactive mode is not supported in CI
+environments when standard input is a TTY, to prevent hangs\.
+.P
Whatever packages are specified by the \fB\-\-package\fP option will be
provided in the \fBPATH\fP of the executed command, along with any locally
installed package executables\. The \fB\-\-package\fP option may be