CLI
upgrade and version
hostwall upgrade and version: signed self-upgrades with rollback, and build information.
upgrade
Upgrade a binary install to the latest release. It needs sudo to replace /usr/local/bin/hostwall.
sudo hostwall upgradeWhat it does:
- Downloads the release archive for your platform,
checksums.txtandchecksums.txt.sigfrom GitHub releases. - Verifies the Ed25519 signature on
checksums.txtwith the release public key built into the binary, then the archive's SHA-256. If either check fails, nothing is changed. - Runs the new binary's
versionas a sanity check. - Replaces the binary, keeping the old one next to it as
hostwall.old. - If the systemd service is running, restarts it and waits up to 45 seconds for the new version to report a fresh heartbeat. If it doesn't, HostWall puts the old binary back and restarts the service again. Otherwise it prints
Restart hostwall to start using the new version.
| Flag | Meaning |
|---|---|
--check | Only report whether a newer version is available |
--version <tag> | Install this version instead of the latest, for example v0.1.2 |
--yes | Don't ask for confirmation |
--force | Install even if the version isn't newer. Also needed to replace a development (dev) build. |
sudo hostwall upgrade --checkInstalled: v0.1.0
Available: v0.1.1
A new version is available: run `sudo hostwall upgrade`. Notes: https://github.com/hostwall/hostwall/releases/tag/v0.1.1In Docker, pull the new image instead (see Install: Docker).
version
hostwall versionhostwall v0.1.0 (commit 1a2b3c4, built 2026-12-01T10:00:00Z, linux/amd64, go1.26.0)-v and --version work too. Include this line in bug reports.