The official GitHub command-line tool is best updated via the standard apt package manager if you installed it through the official repository. : gh version Use code with caution. Copied to clipboard Update command : sudo apt update sudo apt install gh Use code with caution. Copied to clipboard
: You can install a community-maintained fork for Ubuntu. github for ubuntu upd
To ensure you have the latest official versions and avoid suspicious links, use the official Ubuntu terminal : : sudo apt update sudo apt install git Use code with caution. Copied to clipboard Check current version The official GitHub command-line tool
The official GitHub CLI is a powerful tool for Ubuntu users that brings GitHub features directly to your terminal. Instead of switching to a browser, you can: Copied to clipboard GitHub Desktop Fork : You
Alternative: Snap or Homebrew (Linuxbrew) can also install gh if preferred.
Run these commands to confirm: