--- id: docs_cli_workspaces guide: docs_cli layout: guide ---

Show information about your workspaces.

### What is a workspace? To learn more about workspaces, check these links: - [Workspaces in Yarn]({{url_base}}/blog/2017/08/02/introducing-workspaces) - [Workspaces]({{url_base}}/docs/workspaces) ### Commands ##### `yarn workspaces info [--json]` This command will display the workspace dependency tree of your current project. ```sh yarn workspaces info ``` ``` yarn workspaces vx.x.x { "create-subscription": { "location": "packages/create-subscription", "workspaceDependencies": [], "mismatchedWorkspaceDependencies": [] }, ... "react-noop-renderer": { "location": "packages/react-noop-renderer", "workspaceDependencies": [ "react-reconciler" ], "mismatchedWorkspaceDependencies": [] }, "react-reconciler": { "location": "packages/react-reconciler", "workspaceDependencies": [], "mismatchedWorkspaceDependencies": [] }, ... } ``` ##### `yarn workspaces run ` This will run the chosen Yarn command in each workspace. ```sh yarn workspaces run test ``` This will invoke the test script for each workspace. This will also pass forward flags and can be useful for CI processes. ```sh yarn workspaces run test --ci ```