Operate
Upgrade dimmi
Upgrade your self-hosted server to the latest release or a pinned version, and learn how to roll back safely.
Always back up your database first, then upgrade to the latest release with one command:
dimmictl updateWant a specific version? Pass --version (browse releases at github.com/dimmihq/dimmi/releases):
dimmictl update --version v1.2.3Check which version you are currently running with cat /opt/dimmi/VERSION.
What dimmictl update does
Section titled “What dimmictl update does”- Downloads the release’s stack files into
/opt/dimmi. - Updates
IMAGEin/opt/dimmi/.envtoghcr.io/dimmihq/dimmi:<version>and pulls it. - Runs
migrateto apply database migrations. - Starts
webandworkeron the new image only if migrations succeed, then waits up to 3 minutes forwebto become healthy.
Updates refresh compose.yaml, Caddyfile, postgres-init.sh, and .env.example, while keeping your .env untouched. If you customized compose.yaml or Caddyfile, your previous copy is saved beside it as .bak.
If a migration fails, web and worker stay off the new image. Inspect the error with dimmictl logs migrate.
Roll back to an earlier release
Section titled “Roll back to an earlier release”Running dimmictl update --version <earlier_version> switches the container image, but it does not undo database migrations. To roll back safely, restore your pre-upgrade database backup first, then run dimmictl update --version <earlier_version>.