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.
Advanced Install Options
Install (latest)
winget install GitHub.cliInstall (pinned version)
winget install --id GitHub.cli -e --version 2.92.0Upgrade
winget upgrade GitHub.cliUninstall
winget uninstall GitHub.cliFrequently 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.