Upgrade Sellbase
- Read what changed. Check the changelog of the new
sellbasepackage (node_modules/sellbase/assets/CHANGELOG.md), especially "What your agent should review". - Dry run first. Run
npx sellbase upgrade --dry-run. It lists pending migrations, applies them inside a transaction that is rolled back, and reports errors without touching data. It also lists which files would change. - Apply. Run
npx sellbase upgrade. It:- saves a backup of the
sellbaseschema in.sellbase/backups/(withpg_dumpwhen available); - applies the migrations;
- redeploys the Sellbase functions (hosted projects);
- refreshes skills, rules and the
CLAUDE.mdsection; - runs the doctor.
- saves a backup of the
- Components the owner edited are never overwritten. For each one,
upgradewrites.sellbase/updates/<file>.diffwith the upstream change. Merge those diffs by hand, keeping the site's design, then delete them. - Verify. Run
store_statusandtest_purchase(test mode). If something fails, follow the hints. To roll back, restore the backup:psql "$DB_URL" -f .sellbase/backups/<file>.sql. Then tell the owner.
Never edit the Sellbase migrations (listed in .sellbase/manifest.json) or supabase/functions/sellbase-* by hand: upgrades replace them.
Raw Markdown for agents: skills/upgrade/SKILL.md · Edit on GitHub