gx update detects how gx was installed and runs the appropriate update command.
Usage
Behavior
gx detects the installation method by inspecting the binary’s path:
Homebrew (auto-detected)
If the binary is inside a Homebrew Cellar or Linuxbrew path, gx runs brew upgrade gx-git directly:
Other install methods
If gx cannot detect Homebrew, it shows manual instructions:
Homebrew Detection
gx resolves symlinks on the binary path and checks if it contains cellar, homebrew, or linuxbrew (case-insensitive). This covers standard Homebrew installations on both macOS and Linux.
If you installed via go install, updating is as simple as running the install command again: go install github.com/mubbie/gx-cli@latest