Skip to content

Self-Update & Dry-Run

Microbase includes a fail-closed self-updater available in both the Admin UI (Settings → Application → System Update) and the CLI.

Every update — whether dry-run or live — performs strict verification before touching your executable:

  1. Queries GitHub Releases (with a 5-minute cache and automatic web-redirect fallback if api.github.com returns HTTP 403/429).
  2. Downloads the OS/architecture archive and checksums.txt.
  3. Computes the SHA-256 digest and aborts immediately if checksums.txt is missing or the digest does not match.
  4. Extracts the binary and validates its native executable header (ELF, Mach-O, or Windows PE).
  5. Verifies write permission to the running executable path.

Test the entire download and SHA-256 verification flow without modifying the running binary:

Terminal window
./microbase update --dry-run
./microbase update --dry-run --to v0.12.18

Or click Dry-Run Verify in Settings → Application → System Update.

Terminal window
# Check only
./microbase update --check
# Update to latest release
./microbase update
# Update or rollback to a specific tag
./microbase update --to v0.12.18

After updating, restart Microbase (systemctl restart microbase or re-run ./microbase) to activate the new version.