Skip to content

Commit 090b6ca

Browse files
Max Blackowlstronaut
authored andcommitted
docs(npx): clarify that arguments are passed to executed command
1 parent a864f80 commit 090b6ca

File tree

1 file changed

+2
-0
lines changed
  • docs/lib/content/commands

1 file changed

+2
-0
lines changed

docs/lib/content/commands/npx.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ description: Run a command from a local or remote npm package
1212

1313
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 `npm run`.
1414

15+
Run this command to execute a package's binary. Any options and arguments after the package name are passed directly to the executed command, not to npx itself. For example, `npx create-react-app my-app --template typescript` will pass `my-app` and `--template typescript` to the `create-react-app` command. To see what options a specific package accepts, consult that package's documentation (e.g., at npmjs.com or in its repository).
16+
1517
Whatever packages are specified by the `--package` option will be provided in the `PATH` of the executed command, along with any locally installed package executables.
1618
The `--package` option may be specified multiple times, to execute the supplied command in an environment where all specified packages are available.
1719

0 commit comments

Comments
 (0)