pnpm Workspaces/Filter exact package

Target a single package by name.

Section: Workspace Filter Recipes

Filter exact package

bash
bash
pnpm --filter @acme/api build
Explanation

Target a single package by name.

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 Filter Recipes
Filter dependents
Run command on a package and all dependents.
OpenIn sheetbashsame section
Filter dependencies
Run command on a package and all its dependencies.
OpenIn sheetbashsame section
Filter changed since branch
Target packages changed since a Git ref and their dependents.
OpenIn sheetbashsame section
Filter by glob
Target packages that match a glob pattern.
OpenIn sheetbashsame section
Filter by path
Target packages selected by filesystem path.
OpenIn sheetbashsame section
Create pnpm-workspace.yaml
Define the workspace root and included package globs.
OpenIn sheetbash2 tag match