packages/ui or apps/web/src/components) rather than the repository root.
The --cwd Flag
Use the --cwd (or -c) flag to instruct the CLI to operate inside a specific package directory:
Why --cwd instead of --path?
--pathonly overrides where files are written on disk without updating context.--cwdtreats the specified folder as the active root:- Detects
components.jsonand path aliases frompackages/ui/tsconfig.json. - Installs npm packages directly into
packages/ui/package.json. - Resolves lockfiles from the monorepo root automatically.
- Detects