Saltar al contenido principal
Version: 6.x

pnpm dlx

Added in: v6.13.0

Busca un paquete desde el registro sin tener que intalarlo como una dependencia, se carga al momento, y corre cualquier comando binario por defecto que expone.

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.

Since v6.23.1 you may also specify which exact version of the package you'd like to use:

pnpm dlx create-react-app@next ./my-app

Options

--package <name>

The package to install before running the command.

Example:

pnpm --package=@pnpm/meta-updater dlx meta-updater --help
pnpm --package=@pnpm/meta-updater@0 dlx meta-updater --help

As of v6.14.5, multiple packages can be provided for installation:

pnpm --package=yo --package=generator-webapp dlx yo webapp --skip-install

--silent, -s

Added in: v6.17.0

Only the output of the executed command is printed.