DEV Community

CodeWithCaen
CodeWithCaen

Posted on • Originally published at tips.desilva.se

How to upgrade your GitHub CLI (`gh`) version on Windows

Here is how to update your GitHub CLI version on Windows. This guide assumes you have already installed GitHub CLI on your system.

  1. Visit https://github.com/cli/cli/releases/latest
  2. Scroll down to the bottom of the page and find the assets
  3. Find the entry for your system architecture (amd64 or arm64)
# Example
GitHub CLI 2.X.X windows amd64
GitHub CLI 2.X.X windows arm64
Enter fullscreen mode Exit fullscreen mode
  1. Download the file
  2. Open the ZIP archive
  3. Open the director where your current version is installed
    • This is probably C:\Program Files\GitHub CLI
    • Run where.exe gh to find the path if you are unsure
  4. Copy the gh.exe file from the ZIP archive to the directory where your current version is installed
    • You will be prompted to replace the existing file
    • You may also need to provide administrator permissions
  5. Run gh --version to verify the installation

Done! You have successfully updated GitHub CLI on Windows.

Top comments (0)