LinuxCommandLibrary

npx

npx

TLDR

Execute the command from a local or remote npm package

$ npx [command] [argument1 argument2 ...]
copy


In case multiple commands with the same name exist, it is possible to explicitly specify the package
$ npx --package [package] [command]
copy


Run a command if it exists in the current path or in node_modules/.bin
$ npx --no-install [command] [argument1 argument2 ...]
copy


Execute a specific command suppressing any output from npx itself
$ npx --quiet [command] [argument1 argument2 ...]
copy


Display help
$ npx --help
copy

Copied to clipboard