--- id: docs_cli_workspace guide: docs_cli layout: guide --- To learn more about workspaces, check these links: - [Workspaces in Yarn](https://yarnpkg.com/blog/2017/08/02/introducing-workspaces) - [Workspaces](https://yarnpkg.com/en/docs/workspaces) ##### `yarn workspace ` This will run the chosen Yarn command in the selected workspace. Example: ```sh yarn workspace awesome-package add react react-dom --dev ``` This will add `react` and `react-dom` as `devDependencies` in your `packages/awesome-package/package.json`. If you want to remove a package: ```sh yarn workspace web-project remove some-package ``` The example above would remove `some-package` from `packages/web-project/package.json`.