Upgrade many client projects
Goal
Roll a spine-framework (and app-package) release across N client projects without drift, forgotten projects, or half-applied schemas.
Prerequisites
- The release exists —
npm view spine-framework versionsshows the target version (and each app package's version). - A list of the client projects — for agencies this is worth keeping in one file you can loop over.
- Each project's
## Environmentsladder — upgrades walk it like any other change.
Steps
- Read the release notes first. The GitHub release notes name the migrations, breaking changes, and required consumer steps — they decide whether a project can take this release unmodified (e.g. a peer-floor crossing changes
create-*deps). Per project, in a loop — upgrade the code:
cd <client-project> npm i spine-framework@<version> npx spine-framework upgrade --dry-run # what will change npx spine-framework upgrade # apply — never --force on autopilot npm install npm run verify # frozen manifest clean--dry-runoutput worth reading: modified.framework/files mean the project patched core — stop and resolve per-project rather than forcing.Then the schema (only if the release carries migrations — the notes say):
npx spine-framework migrations status # pending? npx spine-framework migrate # apply — coordinate on shared DBsSchema-before-code matters if the project deploys continuously: migrate before the new deploy lands. On a shared Supabase,
migrateis a team event (seeguide/06-join-an-existing-project.md).App packages second, same pattern:
npx spine-framework update-app <pkg> # verifies baseline from lockfileOnly where the app's peer range covers the new framework — the release notes say when it doesn't (peer-floor crossing = bump the scaffolder deps, see the versioning page).
- Walk each project's own ladder. The upgrade is a change like any other: each project's
## Environmentsdecides gate/promote/post- landing.spine-shipwalks it; the hand-off rung still waits for the client's go-ahead. - Track the wave. For N projects, record per-project: version reached, migrations applied, ladder rung reached, anomalies. A simple checklist table beats a script — the failure modes are per-project and need per-project judgment.
Verify
- Every project:
npm run verifyclean,migrations statusshows nothing pending, its ladder walked to wherever the client allows. - No project left between "framework upgraded" and "migrations applied."
Common mistakes
--forceby default — a modified.framework/file is a forked core; forcing past it hides the fork forever. Resolve it once.- Upgrading code before schema — new code against old schema is the classic production break (see
operations/recovery.mdfor the reverse trap). - Treating projects identically — custom
netlify.tomlcustom_*blocks, local.framework/edits, and per-client## Environmentsladders make every project genuinely different. - Forgetting
update-app—upgradesyncs the framework; installed app packages need their ownupdate-apppass.
Reference
- Upgrade — the single-project mechanics.
- Versioning and compatibility — what a minor vs patch release may change.
- Declare your environments — the ladder each upgrade walk ends in.