Unsterwerx

upgrade

Checks for newer versions of Unsterwerx and installs them. The upgrade process downloads the latest release tarball and replaces the current binary.

Usage

bash
unsterwerx upgrade [OPTIONS]

Options

OptionShortTypeDefaultDescription
--checkflagCheck for updates only (does not install)
--forceflagRe-download and reinstall even if already up to date
--from-filepathUpgrade from a local tarball for offline/air-gapped environments
--checksumstringSHA-256 checksum for --from-file verification. Required unless an adjacent SHA256SUMS file exists

Examples

Check for updates

bash
unsterwerx upgrade --check
Checking for updates...
  Installed:  0.4.4
  Latest:     0.4.4

Already up to date (0.4.4).

Upgrade to latest

bash
unsterwerx upgrade

Force reinstall

bash
unsterwerx upgrade --force

Exit Codes

CodeMeaning
0Already up to date (with --check) or upgrade successful
1Update available (with --check) or upgrade failed
2Update server unreachable (network error during --check)

Notes