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)- Press u from any primary workspace panel (if in an upload panel, switch to the left list panel first).
- A confirmation prompt appears in the interface asking you to approve the upgrade.
- The TUI downloads both binaries, verifies their SHA-256 checksums, and replaces them.
- 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:
lazyteams --update--update compares the running version against the latest GitHub release. If a newer release exists, it:
- Prints which release is available and asks for confirmation.
- Downloads the
lazyteamsandlazyteams-authbinaries for your platform (Linux, macOS, or Windows; amd64 or arm64). - Verifies each binary against the release's published
SHA256SUMSand checks embedded version tags before touching existing files. - 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
lazyteamsbinary but subsequently fails while installinglazyteams-auth(for example, due to a file lock or permission issue), it automatically restores the originallazyteamsbinary 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 buildreportsdevas its version, and--updatealways considers any release newer thandev. Prerelease suffixes (such as-devor-beta.1) are stripped during semver comparison, so a prerelease build likev0.2.0-devcompares newer thanv0.1.6, equal tov0.2.0(avoiding downgrade prompts), and older thanv0.2.1. Build withmake build VERSION=vX.Y.Zor 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/binunless you own it). - Network access to
github.comis required. - Both binaries are updated together. The auth helper is found next to the TUI binary as
lazyteams-auth(orlazyteams-auth.exeon 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
--updateoutput as trusted only if you already trust the release author. See Security.