yarn workspaces list — Yarn CLI reference
List the workspaces in the project
yarn workspaces list
List the workspaces in the project
This command prints the list of workspaces in the project.
-
If
--sinceis set, Yarn only lists workspaces modified since the specified ref. Without an explicit ref, Yarn uses thechangesetBaseRefsconfiguration. -
If
-R,--recursiveis set along with--since, Yarn will also list workspaces that depend on workspaces that have been changed since the specified ref, recursively followingdependenciesanddevDependenciesfields. -
If
--no-privateis set, Yarn omits workspaces whose manifest hasprivate: true.
If both -v,--verbose and --json are set, Yarn also returns cross-dependencies between workspaces (useful when you wish to automatically generate Bazel rules).
Also return the cross-dependencies between workspaces
Also list private workspaces
Only include workspaces that have been changed since the specified ref
Include dependents of changed workspaces when used with --since
Format the output as an NDJSON stream
Include a hash of each workspace dependency tree (requires --json)