Upgrade
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.
| Argument | Default | Purpose |
|---|---|---|
package | every pinned package | Only these packages: auth means @frigear-nu/auth. |
--to | the latest dist-tag | Target versions, e.g. auth@0.6.1,users@3.1.0. |
--dry-run | Print the report and change nothing. | |
--no-install | Skip pnpm install afterwards. | |
--report | frigear-upgrade.md | Where 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.