LinuxCommandLibrary

pnpx

Execute packages without installing them

TLDR

Run package without installing

$ pnpx [package] [args]
copy
Run specific version
$ pnpx [package]@[version] [args]
copy
Run with package name different from command
$ pnpx -p [package] [command]
copy

SYNOPSIS

pnpx [options] package [args]

DESCRIPTION

pnpx executes npm packages without permanently installing them, similar to npx. It downloads the package to a temporary location, runs the specified command, and cleans up afterward.
This is an alias for pnpm dlx. Use -p to specify a package name when the executable name differs from the package name. The @version suffix allows running a specific package version.

PARAMETERS

PACKAGE

Package to execute.
-p PKG
Package to install (if different from command).
-c CMD
Command to run.
--yes
Skip confirmation.
--no
Refuse to install.

CAVEATS

Alias for pnpm dlx. Requires pnpm installed.

HISTORY

pnpx was created as pnpm's equivalent to npx for package execution.

SEE ALSO

pnpm(1), npx(1), yarn-dlx(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community