CLI Reference
The installer drops an openhome command in ~/.local/bin. If it's not on
your PATH, add:
export PATH="$HOME/.local/bin:$PATH"
Commands
| Command | What it does |
|---|---|
openhome start | Start the hub (systemd user service, or the fallback launcher). |
openhome stop | Stop the hub. |
openhome restart | Restart — use after editing config or updating. |
openhome logs | Follow the hub logs (journalctl --user -u openhome-hub -f). |
openhome edit | Open the keys file ~/.openhome/openhome.env in $EDITOR. |
openhome run | Run the hub in the foreground (handy for debugging). |
With no argument it prints usage and the config path.
Under the hood
- Service unit:
~/.config/systemd/user/openhome-hub.service - Launcher:
~/.openhome/run-hub.sh(sources your env, execs the hub) - Config:
~/.openhome/openhome.env - Code:
~/openhome - Durable data:
~/openhome/services/hub/.data/(lights, scenes, cooking
history — crash‑safe JSON with .bak mirrors)
Raw systemd
systemctl --user status openhome-hub
systemctl --user restart openhome-hub
systemctl --user enable openhome-hub # start on boot
loginctl enable-linger $USER # keep it running after logout
journalctl --user -u openhome-hub -f # logs
Running without systemd
If there's no user systemd session, run it directly:
~/.openhome/run-hub.sh # or: openhome run
Next: Updating · Troubleshooting