Berry's CLI is similar to npm/pnpm but with intentional renamings. Memorize the small differences and the muscle memory transfers.
yarn add <pkg> adds a runtime dep. yarn add --dev <pkg> (note: --dev, not -D) adds a dev dep. yarn remove <pkg> removes one. yarn install installs everything; yarn install --immutable is Berry's npm ci equivalent — strict, CI-friendly, fails if the lockfile would change.
yarn up <pkg> upgrades a package (Berry-specific verb; npm/pnpm use upgrade). yarn upgrade-interactive opens a TUI to pick which packages to bump.
yarn dlx <tool> runs a tool without installing — Berry's npx. yarn workspaces foreach run build runs a script across every workspace package; yarn workspaces list enumerates them.
yarn node script.js runs Node with PnP runtime injected — necessary because PnP code can't run under plain node without setup. (If you use nodeLinker: node-modules in .yarnrc.yml to disable PnP, plain node works fine.)