DEV Community

Cover image for Install GitHub CLI on Windows
Sarah Lean 🏴󠁧󠁢
Sarah Lean 🏴󠁧󠁢

Posted on • Originally published at techielass.com

5 2

Install GitHub CLI on Windows

Let's discuss GitHub and the command line (CLI) tool that is available. I'll be covering how you can install the on your Windows machine using various different techniques.

What is GitHub CLI for?

The GitHub command line (CLI) tool can be used to carry out tasks relating to pull requests, issues and other GitHub tasks to your terminal. Meaning if you are working with code within your terminal and need to carry out a task with GitHub you don't have to leave that terminal session.

Each command starts with gh.

Install GitHub CLI with Winget

Windows Package Manager or winget is the built in package manager software on Windows 10 and Windows 11 machines. With winget you can install, upgrade and remove software through a command line. Winget is a Microsoft Open Source project.

You can use this command to install the GitHub CLI software:

winget install --id github.cli
Enter fullscreen mode Exit fullscreen mode

Install GitHub CLI with Chocolatey

Chocolatey is an open source package manager tool that can be used to help automate the installation, upgrade and removal of software on your Windows hardware.

If you already have Chocolately installed on your machine you can type in the following command to install GitHub CLI:

choco install gh
Enter fullscreen mode Exit fullscreen mode

Install GitHub CLI manually

You can install the software manually, "the old fashioned" way by downloading the file and then walking through the installation wizard.

You can find the latest release of the software here: https://github.com/cli/cli/releases/

You will find a bunch of file options to download, for Windows machines you'll need either the MSI, or ZIP versions depending on what your needs are.

*Go forth and install the GitHub CLI tool and have fun using it! *😊

Installation icon by Icons8

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

AWS Security LIVE!

Hosted by security experts, AWS Security LIVE! showcases AWS Partners tackling real-world security challenges. Join live and get your security questions answered.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️