Updating
Keeping your hub current is a one‑liner. Your keys and onboarded devices are
never touched by an update.
Update (recommended)
Re‑run the installer — it's idempotent and designed for this:
curl -fsSL https://openhome.studio/install | bash
It fetches the latest code into ~/openhome, updates dependencies, and restarts
the service. Your ~/.openhome/openhome.env and durable device/scene/cooking
data are preserved.
Update manually
cd ~/openhome
git pull --ff-only
npm install
openhome restart
Service management
The hub runs as a systemd user service that starts on boot and restarts on
crash:
openhome restart # or: systemctl --user restart openhome-hub
openhome logs # or: journalctl --user -u openhome-hub -f
See the CLI Reference for the full openhome command.
Rollback
cd ~/openhome
git log --oneline -n 10 # find a known‑good commit
git checkout <commit> # pin to it
openhome restart
To return to latest: git checkout main && git pull && openhome restart.
Deploying your own changes to the hub
If you edit hub source on the device, verify before restarting — on Pi SD cards
an unclean reboot can corrupt files:
node --experimental-strip-types --check services/hub/src/index.ts- After copying a file onto the device, run
syncand confirm
md5sum matches your source (a parse check alone isn't enough — see the SD
corruption note in Troubleshooting).
openhome restart, then verify/healthreturns 200 in a separate shell.
Next: CLI Reference · Troubleshooting