HotupdaterHot Updater
Guides

Doctor

Since v0.30.0+

Check Hot Updater package versions and server infrastructure.

Overview

Use hot-updater doctor to check two things:

  • All Hot Updater packages use compatible versions
  • Your deployed infrastructure server is not outdated

Run it after upgrading Hot Updater, or when OTA updates behave differently after a package update.

npx hot-updater doctor

In an interactive terminal, the command asks for your server base URL. Press Enter to skip the server check.

Check Infrastructure

To check the deployed server in CI or a non-interactive shell, pass the public update-check base URL.

npx hot-updater doctor --server-base-url https://updates.example.com/api/check-update

doctor appends /version and checks:

https://updates.example.com/api/check-update/version

Example success output:

Checking the health of Hot Updater.
hot-updater CLI version: x.x.x
Server version endpoint: https://updates.example.com/api/check-update/version
Server version: x.x.x
Required infrastructure version: x.x.x
✅ Server infrastructure is up to date.
✅ All Hot Updater checks passed!
Doctor check complete.

Update Package Versions

If doctor reports version mismatches, update every Hot Updater package in package.json to the same compatible version, then run your package manager install command.

Update Outdated Infrastructure

If your server is outdated, doctor prints:

Infrastructure update required. Deploy server infrastructure version x.x.x or newer.

How to fix it depends on how you run Hot Updater:

  • Self-hosted server using createHotUpdater: update all Hot Updater packages together, including @hot-updater/server, then redeploy your server.
  • Managed providers (aws, cloudflare, supabase, firebase): run npx hot-updater init again and redeploy the generated provider infrastructure.

Options

OptionDescription
--server-base-url <url>Check deployed infrastructure at <url>/version.