DEV Community

CodeWithCaen
CodeWithCaen

Posted on • Originally published at tips.desilva.se

2

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.

Heroku

Deploy with ease. Manage efficiently. Scale faster.

Leave the infrastructure headaches to us, while you focus on pushing boundaries, realizing your vision, and making a lasting impression on your users.

Get Started

Top comments (0)

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay