Important: This documentation covers Yarn 2.
For 1.x docs, see
yarn addyarn binyarn cache cleanyarn config getyarn config setyarn config unsetyarn configyarn constraints queryyarn constraints sourceyarn constraintsyarn dedupeyarn dlxyarn execyarn explain peer-requirementsyarn infoyarn inityarn installyarn linkyarn nodeyarn npm audityarn npm infoyarn npm loginyarn npm logoutyarn npm publishyarn npm tag addyarn npm tag listyarn npm tag removeyarn npm whoamiyarn packyarn patch-commityarn patchyarn plugin import from sourcesyarn plugin importyarn plugin listyarn plugin removeyarn plugin runtimeyarn rebuildyarn removeyarn runyarn searchyarn set resolutionyarn set version from sourcesyarn set versionyarn stageyarn unlinkyarn unplugyarn upyarn upgrade-interactiveyarn version applyyarn version checkyarn versionyarn whyyarn workspaceyarn workspaces focusyarn workspaces foreachyarn workspaces list

yarn unlink

Disconnect the local project from another one.


$> yarn unlink ...


Unregister a remote workspace in the current project :

yarn unlink ~/ts-loader

Unregister all workspaces from a remote project in the current project :

yarn unlink ~/jest --all

Unregister all previously linked workspaces :

yarn unlink --all

Unregister all workspaces matching a glob :

yarn unlink '@babel/*' 'pkg-{a,b}'




Unlink all workspaces belonging to the target project from the current one


This command will remove any resolutions in the project-level manifest that would have been added via a yarn link with similar arguments.