Keep your existing database, volumes, domain and environment settings. Current deployment examples use 1.84.0; check the target release notes before upgrading across versions.
- Export a full JSON backup and record the current version, data volume and environment settings. Keep a database/volume copy for rollback too.
- Update using the same deployment method below. Source builds require Node.js 24.
- Refresh existing tabs and check subscriptions, Wallet, Calendar and Reports. Test an enabled notification channel; verify MCP and ICS if you use them.
- Keep the old backup until those checks pass. A successful image pull or build alone does not establish a working upgrade.
Settings → General shows the running version and latest stable release. Automatic checks run at most hourly, including when the page returns to the foreground; opening Settings refreshes results older than five minutes. Tabs in the same browser share the cache. A dot marks a newer release, manual checks bypass the interval, and nothing upgrades automatically. Click the available-version badge to open upgrade instructions for your installation, a copyable command for the one-line installer, and a release-note excerpt with links to the full notes. Older cached checks show links until the next successful check.
Compatibility to check
- Separate settlement is optional; existing subscriptions retain their original mode. After enabling it, check the tracking start, arrears and bill/payment date differences.
- Public layouts and metric cards are optional. Check both editor preview and the signed-out public page after changes.
- Pause history, receipt periods and historical plan fields must remain intact. Old receipt formats can be converted on read; downgrading code does not undo that conversion.
- Since the Node-based self-hosting runtime,
INTERNAL_PORTis removed. KeepPORTand the data volume. NumericTRUST_PROXYvalues use automatic detection; review proxy settings. - Database migrations run during deployment/startup. Version 1.63.0 adds
0009_files.sql, creating the files table. Cloudflare uploads also need the optionalFILESR2 binding; Docker stores files under/data/files. Never assume rollback compatibility from the version number alone.
One-line install and upgrade (Debian/Ubuntu)
curl -fsSL https://calends.date/install.sh | sudo bashThe same command installs or upgrades with a private Node runtime, backs up existing data and preserves settings. Failed or interrupted upgrades restore the previous program and data. It starts the service on 127.0.0.1:8787 and does not configure a domain or web server; manage your reverse proxy and SITE_URL yourself. See Docker and systemd.
Cloudflare
If you deployed from the command line:
cd calendsgit pullnpm cinpm run deploynpm run deploy applies new migrations to the remote database after deploying. Even if that step were skipped, the Worker fills in missing migrations on its first request.
If you used one-click deploy, the repository lives in your own GitHub account. Sync it with upstream imetn/calends (Sync fork on GitHub, or merge manually) and Cloudflare rebuilds and deploys from your repository.
If you’ve edited wrangler.jsonc (custom domain, email binding), keep those changes when you pull.
Docker
docker pull xizozhe/calends:latestdocker stop calendsdocker rm calendsdocker run -d --name calends --restart unless-stopped \ -p 127.0.0.1:8787:8787 -v calends-data:/data \ xizozhe/calends:latestWith the prebuilt-image compose.yaml from the Docker guide, run these commands in its deployment directory:
docker compose pulldocker compose up -dThe docker run above is a minimal example. Reapply your original SITE_URL, TRUST_PROXY, SETUP_TOKEN, ports and other environment variables, and use the same data volume name.
Data lives in the volume, so removing the container loses nothing. The new container applies migrations before starting.
To pin a version and upgrade on your own schedule, use a version tag instead of latest, such as xizozhe/calends:1.84.0.
GHCR is an anonymous-pull alternative: replace xizozhe/calends with ghcr.io/imetn/calends, keeping the same tag in both the pull and run commands. Both registries provide latest, 1.84.0 and 1.84; pin an exact release such as 1.84.0 for controlled upgrades.
Source builds with Compose
For the repository’s docker/docker-compose.yml, rebuild from the updated source instead of pulling a prebuilt image. From the repository root:
git pullcd docker && docker compose up -d --builddocker compose logs calendsKeep the Compose project name calends and its existing calends_calends-data volume. This is separate from calends-data in the prebuilt-image examples; use the volume belonging to your deployment and do not run docker compose down -v.
Rolling back
Switching back to old code does not undo database migrations. Check that the old version can read the current schema before rolling back; a successful start alone does not prove compatibility.
If you need to restore data, keep a copy of the current database and restore the pre-upgrade backup on a compatible version. Do not give your only migrated database to an older version whose compatibility is unknown.