A Nimbus release has two parts: the @cloudflare/nimbus-docs package, which you upgrade like any dependency, and changes to starter and registry files, which live in your repo and change only when you take them. This page walks through both, and nimbus-docs migrate lists every step your version jump needs. Ownership explains why they’re separate.
Commit your work first, so every change the upgrade makes shows in git diff.
Update the package
npm i @cloudflare/nimbus-docs@latestyarn add @cloudflare/nimbus-docs@latestpnpm add @cloudflare/nimbus-docs@latestbun add @cloudflare/nimbus-docs@latestRun the migrations
npx @cloudflare/nimbus-docs migrateyarn nimbus-docs migratepnpm nimbus-docs migratebunx @cloudflare/nimbus-docs migratemigratecompares the version your site last reviewed, recorded innimbus.json, with the one you installed. It lists:- Migrations it can apply to your code, such as a renamed option. It asks before writing;
--dry-runand--diffshow the plan without writing. - Required upgrade reviews: changes you must make by hand, each with the files affected, what to do, and how to check it.
- Optional upgrade entries: improvements you can adopt now or later, such as a redesigned component.
Work through the required reviews. Then run the command
migrateprints at the end,migrate --yes, to record the new version innimbus.json. Ifnimbus.jsondoesn’t say which version you came from, pass it:migrate --from 0.17.0.- Migrations it can apply to your code, such as a renamed option. It asks before writing;
Take starter changes
npx @cloudflare/nimbus-docs outdatedyarn nimbus-docs outdatedpnpm nimbus-docs outdatedbunx @cloudflare/nimbus-docs outdatedoutdatedlists the starter files, such as layouts andglobals.css, that changed upstream since your site was created. For a file you haven’t edited, take the new version:npx @cloudflare/nimbus-docs diff src/layouts/DocsLayout.astro --applyyarn nimbus-docs diff src/layouts/DocsLayout.astro --applypnpm nimbus-docs diff src/layouts/DocsLayout.astro --applybunx @cloudflare/nimbus-docs diff src/layouts/DocsLayout.astro --applyFor a file you have edited, run
diffwithout--applyto see both sets of changes, and merge by hand.Take registry changes
For components you installed with
nimbus-docs add, reinstall the onesoutdatedlists:npx @cloudflare/nimbus-docs add api-layout --overwriteyarn nimbus-docs add api-layout --overwritepnpm nimbus-docs add api-layout --overwritebunx @cloudflare/nimbus-docs add api-layout --overwrite--overwritereplaces files you haven’t edited and asks about the ones you have. Without a terminal it keeps edited files and lists them.
Verify
npx @cloudflare/nimbus-docs checkyarn nimbus-docs checkpnpm nimbus-docs checkbunx @cloudflare/nimbus-docs checknpm run buildyarn run buildpnpm run buildbun run buildcheck exits with no errors, the build passes, and outdated lists no required package API work. Look through the site, then commit.
If something breaks
- A build error that names a renamed option or removed helper usually has a migration: run
migrateagain and read its output. - An error from a file you own, such as a layout, means it needs the upstream change: compare it with
diff <file>.
Each package’s changelog, on npm and in the repository, lists what each release changed.
Next steps
- Troubleshooting: common errors by their exact text.
- Ownership: which files an upgrade touches.
- CLI: every
outdated,diffandmigrateflag.