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.
- Visit https://github.com/cli/cli/releases/latest
- Scroll down to the bottom of the page and find the assets
- 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
- Download the file
- Open the ZIP archive
- 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
- This is probably
- 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
- 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
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/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.