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.

Visit https://github.com/cli/cli/releases/latest

Scroll down to the bottom of the page and find the assets
Find the en…


This content originally appeared on DEV Community and was authored by CodeWithCaen

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
  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.


This content originally appeared on DEV Community and was authored by CodeWithCaen


Print Share Comment Cite Upload Translate Updates
APA

CodeWithCaen | Sciencx (2024-09-01T17:06:13+00:00) How to upgrade your GitHub CLI (`gh`) version on Windows. Retrieved from https://www.scien.cx/2024/09/01/how-to-upgrade-your-github-cli-gh-version-on-windows/

MLA
" » How to upgrade your GitHub CLI (`gh`) version on Windows." CodeWithCaen | Sciencx - Sunday September 1, 2024, https://www.scien.cx/2024/09/01/how-to-upgrade-your-github-cli-gh-version-on-windows/
HARVARD
CodeWithCaen | Sciencx Sunday September 1, 2024 » How to upgrade your GitHub CLI (`gh`) version on Windows., viewed ,<https://www.scien.cx/2024/09/01/how-to-upgrade-your-github-cli-gh-version-on-windows/>
VANCOUVER
CodeWithCaen | Sciencx - » How to upgrade your GitHub CLI (`gh`) version on Windows. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/09/01/how-to-upgrade-your-github-cli-gh-version-on-windows/
CHICAGO
" » How to upgrade your GitHub CLI (`gh`) version on Windows." CodeWithCaen | Sciencx - Accessed . https://www.scien.cx/2024/09/01/how-to-upgrade-your-github-cli-gh-version-on-windows/
IEEE
" » How to upgrade your GitHub CLI (`gh`) version on Windows." CodeWithCaen | Sciencx [Online]. Available: https://www.scien.cx/2024/09/01/how-to-upgrade-your-github-cli-gh-version-on-windows/. [Accessed: ]
rf:citation
» How to upgrade your GitHub CLI (`gh`) version on Windows | CodeWithCaen | Sciencx | https://www.scien.cx/2024/09/01/how-to-upgrade-your-github-cli-gh-version-on-windows/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.