Skip to content

Updating ​

LazyTeams ships a built-in self-updater, so you can upgrade the TUI and its auth helper without manually downloading release assets. You can update directly from inside the application or via the command line.

Updating from the TUI (Interactive) ​

Whenever a newer release is published on GitHub, LazyTeams detects it on launch and displays an update banner in the footer:

[u] Update Available (vX.Y.Z)
  1. Press u from any primary workspace panel (if in an upload panel, switch to the left list panel first).
  2. A confirmation prompt appears in the interface asking you to approve the upgrade.
  3. The TUI downloads both binaries, verifies their SHA-256 checksums, and replaces them.
  4. Transparent restart: Once installation succeeds, the TUI restarts itself automatically, returning you to the updated client without needing to close and reopen your terminal.

Updating from the CLI ​

You can also run the updater directly from your terminal:

bash
lazyteams --update

--update compares the running version against the latest GitHub release. If a newer release exists, it:

  1. Prints which release is available and asks for confirmation.
  2. Downloads the lazyteams and lazyteams-auth binaries for your platform (Linux, macOS, or Windows; amd64 or arm64).
  3. Verifies each binary against the release's published SHA256SUMS and checks embedded version tags before touching existing files.
  4. Replaces both running binaries and relaunches or restarts the app.

If you are already on the latest version it reports Already up to date and exits.

Atomic Paired Updates & Rollback ​

lazyteams and lazyteams-auth work in tandem and must share the exact same version. The updater enforces this:

  • Paired installation: Both binaries are downloaded and replaced together.
  • Rollback protection: If the updater replaces the primary lazyteams binary but subsequently fails while installing lazyteams-auth (for example, due to a file lock or permission issue), it automatically restores the original lazyteams binary from backup.
  • Symlink preservation: If your binaries are symlinked (e.g. in ~/.local/bin), the updater follows the symlink to the real target file without breaking or replacing the symlink itself.
  • Permission checks: Validates write permissions in target directories before initiating file replacements.

GitHub Rate Limits & gh CLI Fallback ​

Checking releases anonymously via GitHub's public API can occasionally trigger HTTP 403 Rate Limit errors on busy networks or shared IPs.

LazyTeams automatically handles this: if anonymous requests hit a rate limit, the updater checks if the GitHub CLI (gh) is installed and authenticated. If found, it transparently falls back to gh api to fetch releases and download assets seamlessly.

Requirements & notes ​

  • Versioned builds and prereleases. A binary built directly with go build reports dev as its version, and --update always considers any release newer than dev. Prerelease suffixes (such as -dev or -beta.1) are stripped during semver comparison, so a prerelease build like v0.2.0-dev compares newer than v0.1.6, equal to v0.2.0 (avoiding downgrade prompts), and older than v0.2.1. Build with make build VERSION=vX.Y.Z or install a published release binary for version comparisons to be meaningful.
  • Writable install location. The binaries must be in a directory your user can write to (for example ~/.local/bin, not /usr/bin unless you own it).
  • Network access to github.com is required.
  • Both binaries are updated together. The auth helper is found next to the TUI binary as lazyteams-auth (or lazyteams-auth.exe on Windows).

Integrity & trust ​

Every download is fetched over HTTPS and must resolve to a GitHub host. Each binary is checked against the SHA256SUMS shipped in the same release; the updater refuses to proceed if that file is missing, and aborts on any checksum mismatch.

Note: this is transport integrity, not full code-signing. The checksum is published alongside the binaries it protects, so treat --update output as trusted only if you already trust the release author. See Security.