mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-19 08:01:23 +00:00
Update cheatsheets
This commit is contained in:
29
npx
Normal file
29
npx
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# npx
|
||||
|
||||
> Execute binaries from `npm` packages.
|
||||
> More information: <https://github.com/npm/npx>.
|
||||
|
||||
- Execute the command from a local or remote `npm` package:
|
||||
|
||||
`npx {{command}} {{argument1 argument2 ...}}`
|
||||
|
||||
- In case multiple commands with the same name exist, it is possible to explicitly specify the package:
|
||||
|
||||
`npx --package {{package}} {{command}}`
|
||||
|
||||
- Run a command if it exists in the current path or in `node_modules/.bin`:
|
||||
|
||||
`npx --no-install {{command}} {{argument1 argument2 ...}}`
|
||||
|
||||
- Execute a specific command suppressing any output from `npx` itself:
|
||||
|
||||
`npx --quiet {{command}} {{argument1 argument2 ...}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`npx --help`
|
||||
Reference in New Issue
Block a user