Update
Update or roll back between sessions. Restarting the node interrupts active leases and tunnels.
See Backup for what to save before updating.
New nodes listen on UDP 4001. An update preserves the listener in your existing
weftd config.yaml. If you change it, update any firewall rules, router forwards,
advertised addresses, and consumer seeds that use the old port. For bridged Compose,
the container port in compose.yaml must match the configured listener; the
published host port can stay the same.
With the node running, update to the latest release as the user who installed Weft:
weft update
weft info
For a specific release, use weft update vX.Y.Z with the desired tag.
Roll back: weft update --rollback restores the two binaries and service unit, then restarts the service.
In your existing project directory, replace the WEFT_IMAGE line in .env with the one from the target release. Merge any required Compose file changes and keep the same project name.
| Network | Update command |
|---|---|
| Consumer or bridge-network provider | docker compose up -d --pull always |
| Host-network provider | docker compose -f compose.yaml -f compose.host.yaml up -d --pull always |
Run weft info to check the version and peer ID.
Roll back: Restore the previous WEFT_IMAGE and any Compose files you changed. Rerun the matching command above without --pull always.