pnpm dlx
Aliases: pnpx
is an alias for pnpm dlx
Fetches a package from the registry without installing it as a dependency, hotloads it, and runs whatever default command binary it exposes.
For example, to use create-react-app
anywhere to bootstrap a react app without
needing to install it under another project, you can run:
pnpm dlx create-react-app ./my-app
This will fetch create-react-app
from the registry and run it with the given arguments.
You may also specify which exact version of the package you'd like to use:
pnpm dlx create-react-app@next ./my-app