Skip to Content
HostWall
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 upgrade

What it does:

  1. Downloads the release archive for your platform, checksums.txt and checksums.txt.sig from GitHub releases.
  2. Verifies the Ed25519 signature on checksums.txt with the release public key built into the binary, then the archive's SHA-256. If either check fails, nothing is changed.
  3. Runs the new binary's version as a sanity check.
  4. Replaces the binary, keeping the old one next to it as hostwall.old.
  5. 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.
FlagMeaning
--checkOnly report whether a newer version is available
--version <tag>Install this version instead of the latest, for example v0.1.2
--yesDon't ask for confirmation
--forceInstall even if the version isn't newer. Also needed to replace a development (dev) build.
sudo hostwall upgrade --check
Installed: 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.1

In Docker, pull the new image instead (see Install: Docker).

version

hostwall version
hostwall 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.

Edit this page on GitHub

On this page