Install with winget
$ winget install --id GitHub.cli --exact --version 2.100.0Run in Command Prompt, PowerShell, or Windows Terminal. Prompts for any agreements.
Silent install command for GitHub CLI
GitHub CLI uses MSI (WiX). The silent install switches are /quiet /norestart.
msiexec.exe /i gh_2.100.0_windows_amd64.msi /quiet /norestart
For Intune admins
Stop chasing app updates. Pckgr patches them for you.
Automated application patching for Microsoft Intune. Pckgr keeps a curated library of 1,000+ apps continuously up-to-date in your tenant via Microsoft Graph - no manual repackaging, no chasing vendor sites.
Start free 30-day trialNo credit card required.
About
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.
Installers · v2.100.0
| Architecture | Type | Scope | Install | Download |
|---|---|---|---|---|
| x86 | Portable in ZIP | - | Direct | |
| x86 | MSI WiX | machine | Direct | |
| x64 | Portable in ZIP | - | Direct | |
| x64 | MSI WiX | machine | Direct | |
| arm64 | Portable in ZIP | - | Direct | |
| arm64 | MSI WiX | machine | Direct |
Copy a command tailored to that specific architecture, type, and scope - useful when winget would otherwise pick a different default.
Security
3 known CVEs via NVD
GitHub CLI (gh) is GitHub’s official command line tool. Prior to 2.93.0, GitHub CLI incorrectly includes authorization header in API requests to TUF repository mirrors via gh attestation, gh release verify, and gh release verify-asset commands. The CLI uses a shared HTTP client...
`gh` is GitHub’s official command line tool. From 1.6.0 to before 2.92.0, a security vulnerability has been identified in GitHub CLI that could allow terminal escape sequence injection when users view GitHub Actions workflow logs using gh run view --log or gh run view --log-fail...
The GitHub CLI version 2.6.1 and earlier are vulnerable to remote code execution through a malicious codespace SSH server when using `gh codespace ssh` or `gh codespace logs` commands. This has been patched in the cli v2.62.0. Developers connect to remote codespaces through an...
See a CVE that affects your fleet? Push the patched version to Intune in one click with Pckgr.
Related apps
More from GitHub, Inc. or browse cli, command-line, enterprise.
Frequently asked questions
How do I install GitHub CLI on Windows?
How do I install GitHub CLI silently for unattended deployment?
What are the silent install switches for GitHub CLI?
How do I uninstall GitHub CLI via winget?
Is GitHub CLI free?
Does GitHub CLI work on Windows 10?
How do I keep GitHub CLI up to date?
Recent versions
- 2.100.0latest
- 2.99.0
- 2.98.0
- 2.97.0
- 2.96.0
- 2.95.0
- 2.94.0
- 2.93.0
- 2.92.0
- 2.91.0