GitHub CLI

by GitHub, Inc.

Take GitHub to the command line

v2.92.0 MIT wix x64

Install with winget

Open PowerShell or Command Prompt and run:

winget install GitHub.cli

Copied to clipboard!

1Open PowerShell or Command Prompt
2Paste and run the command above
3Follow any on-screen prompts to complete installation

About GitHub CLI

GitHub CLI (gh) is a command-line tool that brings pull requests, issues, GitHub Actions, and other GitHub features to your terminal, so you can do all your work in one place.

clicommand-lineenterprisefossgitgithubopen-sourceterminaltoolutility

Advanced Install Options

Install (latest)winget install GitHub.cli
Install (pinned version)winget install --id GitHub.cli -e --version 2.92.0
Upgradewinget upgrade GitHub.cli
Uninstallwinget uninstall GitHub.cli

Frequently Asked Questions

How do I install GitHub CLI using winget?
Open PowerShell or Windows Terminal and run: winget install GitHub.cli. Winget comes pre-installed on Windows 10 (1809+) and Windows 11.
What is GitHub CLI?
Take GitHub to the command line
Is GitHub CLI free to use?
GitHub CLI is distributed under the MIT license. Check the publisher’s site for full licensing details.
How do I update GitHub CLI with winget?
Run winget upgrade GitHub.cli in PowerShell or Windows Terminal to upgrade to the latest available version.
How do I uninstall GitHub CLI?
Run winget uninstall GitHub.cli to remove GitHub CLI from your system.