CLI

Upgrade

The options of upgrade, which moves every @frigear-nu package to a new release and runs the migrations in between.

Upgrading walks through an upgrade and the report it writes. This page is the command's reference.

upgrade

pnpx @frigear-nu/cli@latest upgrade [package...] [--to <versions>] [--dry-run] [--no-install] [--report <file>]

Run the latest CLI: it carries the migrations of every release up to its own.

ArgumentDefaultPurpose
packageevery pinned packageOnly these packages: auth means @frigear-nu/auth.
--tothe latest dist-tagTarget versions, e.g. auth@0.6.1,users@3.1.0.
--dry-runPrint the report and change nothing.
--no-installSkip pnpm install afterwards.
--reportfrigear-upgrade.mdWhere the report goes, relative to the workspace root.

It moves every @frigear-nu/* pin of the workspace to its target version: the dependencies, devDependencies and peerDependencies of each workspace package, and the catalog, overrides and minimumReleaseAgeExclude entries of pnpm-workspace.yaml. Each range keeps its operator (0.3.4, ^0.5.1 and >=0.3.4 stay exact, caret and >=). workspace: and catalog: references are left alone, and it never downgrades.

Then it runs the migrations of every breaking release between the old and the new version. A migration rewrites what is safe to rewrite, such as moved route paths, and lists everything else with file:line and a docs link. The report is a checklist: the version table, what was rewritten, what to do by hand, and the next commands.

Next steps

  • Upgrading – work through the report, and the breaking changes by release.
  • Developing the CLI – add a migration for a breaking change.
Copyright © 2026