yarn dlx — Yarn CLI reference
Install a temporary package and run it
Docs/Reference/CLI/dlx
yarn dlx
Install a temporary package and run it
yarn dlx <NAME> <ARGS…>
This command installs packages in a temporary project and runs a binary from that temporary install. The binary runs from the current working directory.
By default Yarn installs the package named by the command. Use -p,--package to install one or more packages while running a binary with a different name.
yarn dlx is intended for one-off commands. It doesn’t record the installed packages in your project, so it shouldn’t replace yarn add for dependencies you rely on.
Suppress the install unless it errors
The package(s) to install before running the command