yarn unplug — Yarn CLI reference

Mark packages to be unpacked on disk

Docs/Reference/CLI/unplug

yarn unplug

Mark packages to be unpacked on disk

yarn unplug <PATTERNS…>

This command stores dependenciesMeta entries that force matching packages to be unplugged when installed.

An unplugged package is extracted into pnpUnpluggedFolder instead of being loaded directly from its archive. This is useful for debugging or for packages that need real files on disk, such as packages with native sources or shell scripts.

The setting is persistent. Use --revert or edit the top-level manifest, then run yarn install to apply the change.

By default, only direct dependencies from the current workspace are affected. If -A,--all is set, direct dependencies from the entire project are affected. Using the -R,--recursive flag will affect transitive dependencies as well as direct ones.

This command accepts glob patterns inside the scope and name components (not the range). Make sure to escape the patterns to prevent your own shell from trying to expand them.

#--revertboolean

Remove the unplugged flag for the selected packages

#--all, -Aboolean

Unplug direct dependencies from the entire project

#--recursive, -Rboolean

Unplug both direct and transitive dependencies

#--jsonboolean

Format the output as an NDJSON stream