Accès aux identifiants
Reads GitHub CLI tokens and can print or use them for API calls.
brew / portes d'approbation
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de gh pour les workflows d'agents IA.
sécurité des agents
gh is the GitHub control-plane CLI for repositories, releases, issues, and authenticated developer state.
Reads GitHub CLI tokens and can print or use them for API calls.
Can modify repositories, pull requests, releases, secrets, and organization state.
Can create releases, upload assets, and trigger release automation.
Use GitHub token protection plus approval gates for write and token-display commands.
Permit status and read-only queries; require approval for token output, release creation, repo writes, and workflow dispatch.
installation
brew install ghlocal Homebrew formula metadata
sudo port install ghMacPorts ports tree · devel/gh/Portfile · Source: api.github.com
sudo apt install ghDebian stable package indexes · gh · Source: deb.debian.org
sudo dnf install ghFedora Rawhide package metadata · gh · Source: dl.fedoraproject.org
nix profile install nixpkgs#ghnixpkgs package indexes · pkgs/by-name/gh/gh/package.nix · Source: api.github.com
sudo zypper install ghopenSUSE Tumbleweed package metadata · gh · Source: download.opensuse.org
choco install ghChocolatey community package catalog · gh · Source: community.chocolatey.org
scoop install main/ghScoop official bucket manifest trees · bucket/gh.json · Source: api.github.com
winget install --id GitHub.cli -eWindows Package Manager source index · GitHub.cli · Source: cdn.winget.microsoft.com
aperçu
GitHub command-line tool
historique
GitHub CLI, invoked as `gh`, is GitHub's official command-line tool for working with pull requests, issues, repositories, releases, Actions, authentication, and GitHub API data from a terminal.
GitHub created the cli/cli repository in October 2019 and opened the project as a new official CLI distinct from the older community `hub` tool. GitHub announced the beta in February 2020 and released GitHub CLI 1.0 in September 2020.
The README frames `gh` as a standalone tool that brings GitHub concepts next to `git` and source code work. The project grew into a cross-platform Go CLI with first-party manuals, release binaries, package repositories, GitHub Enterprise support, extension support, API helpers, and later supply-chain features such as build provenance attestations for release artifacts.
GitHub CLI has broad adoption because it is distributed through GitHub's own package repositories and release binaries, package managers such as Homebrew and WinGet, and GitHub-hosted Actions runner images. Its first-party status made it a standard automation interface for GitHub workflows in shells and CI jobs.
Practitioners use `gh` to create and review pull requests, triage issues, clone and browse repositories, trigger or inspect Actions workflows, manage releases and gists, authenticate to GitHub hosts, call the GitHub API, and script repository operations without leaving the command line.
For package and automation ecosystems, `gh` is important because it gives GitHub an official, versioned executable surface. Package maintainers can depend on consistent commands across macOS, Linux, and Windows, while CI authors can use a preinstalled or easily installed binary instead of hand-rolling API calls.
portes d'approbation
La graine locale de portes d'approbation contient 7 règles pour gh. Points d'entrée couverts : gh. Niveaux de sévérité : critique, élevé. Couverture : partial, revu le 2026-05-21.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
$XDG_CONFIG_HOME/gh/config.yml~/.config/gh/config.yml%AppData%\GitHub CLI\config.ymlCredential-bearing paths to review before unattended agent runs.
$XDG_CONFIG_HOME/gh/hosts.yml~/.config/gh/hosts.yml%AppData%\GitHub CLI\hosts.ymlexécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
gh | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
métadonnées d'installation
| Clé du paquet | brew:gh |
|---|---|
| Version | 2.96.0 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/gh |
| Page d'accueil | https://cli.github.com/ |
| Dépôt | https://github.com/cli/cli |
| Docs amont | https://cli.github.com/manual/gh |
| Licence | MIT |
| Archive source | https://github.com/cli/cli/archive/refs/tags/v2.96.0.tar.gz |
| Dernière mise à jour | 2026-07-03T00:29:16Z |
| Pulse | updated |
| Dépendances de compilation | go |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gh |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
gh 2.46.0-3
GitHub CLI, GitHub’s official command line tool
sudo apt install ghgh
nix profile install nixpkgs#ghgh 2.45.0-1build1
GitHub CLI, GitHub’s official command line tool
sudo apt install ghgh 2.93.0-1.fc45
GitHub's official command line tool
sudo dnf install ghgh 2.93.0-1.1
The official CLI for GitHub
sudo zypper install ghgh-bash-completion 2.93.0-1.1
Bash Completion for gh
sudo zypper install gh-bash-completiongh-fish-completion 2.93.0-1.1
Fish completion for gh
sudo zypper install gh-fish-completiongh-zsh-completion 2.93.0-1.1
ZSH Completion for gh
sudo zypper install gh-zsh-completiongh
sudo port install ghgh
choco install ghmain/gh
scoop install main/ghGitHub.cli
winget install --id GitHub.cli -episte source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.