Define the workspace root and included package globs.
Section: Workspace Basics
Create pnpm-workspace.yaml
bash
bash
cat > pnpm-workspace.yaml <<'YAML'
packages:
- packages/*
- apps/*
YAMLExplanation
Define the workspace root and included package globs.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Workspace Basics
Install workspace dependencies
Inside a workspace, pnpm installs dependencies for all projects by default.
List workspace packages
Show workspace packages and their top-level dependencies.
Run command from workspace root only
Run a command in the workspace root context.
Add a dependency to workspace root
Install a dependency into the workspace root package.json.
Deploy one workspace package
Copy a package with isolated production dependencies to a target directory.