Upgrading and rolling back
Content, settings and revisions are files in your Git repository, so an upgrade is reversible by design.
Upgrade
Section titled “Upgrade”- Commit or stash your work (
git statusmust be clean). - Update the packages:
pnpm up wuppy. - Run
pnpm wuppy upgrade. It applies the data migrations between the version recorded in.wuppy/version.jsonand the installed one, then records the new version. Most releases need no data change. - Run
pnpm wuppy typesto refreshwuppy-env.d.ts, thenpnpm wuppy doctor.
Read the release notes (CHANGELOG.md) first; breaking changes are listed there.
Roll back
Section titled “Roll back”- Data changes made by the upgrade:
git checkout . && git clean -fd .wuppy/data. - The packages:
pnpm add wuppy@<previous version>. wuppy upgraderefuses to run when the installed version is older than the data, so an accidental downgrade cannot silently corrupt files. Restore from Git or a backup (Settings -> Backups) instead.