認証情報アクセス
Reads GitHub CLI tokens and can print or use them for API calls.
brew / 承認ゲート
gh のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
エージェント安全性
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.
インストール
brew install ghlocal Homebrew formula metadata
sudo dnf install ghFedora Rawhide package metadata · gh · ソース: dl.fedoraproject.org
nix profile install nixpkgs#ghnixpkgs package indexes · pkgs/by-name/gh/gh/package.nix · ソース: api.github.com
sudo zypper install ghopenSUSE Tumbleweed package metadata · gh · ソース: download.opensuse.org
choco install ghChocolatey community package catalog · gh · ソース: community.chocolatey.org
scoop install main/ghScoop official bucket manifest trees · bucket/gh.json · ソース: api.github.com
winget install --id GitHub.cli -eWindows Package Manager source index · GitHub.cli · ソース: cdn.winget.microsoft.com
概要
GitHub command-line tool
履歴
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.
承認ゲート
ローカルの承認ゲートシードには gh 用のルールが 7 件含まれます。対象エントリポイント: gh。重大度ラベル: 重大, 高。カバレッジ: partial、レビュー日: 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.yml実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
gh | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
インストールメタデータ
| パッケージキー | brew:gh |
|---|---|
| バージョン | 2.96.0 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/gh |
| ホームページ | https://cli.github.com/ |
| リポジトリ | https://github.com/cli/cli |
| 上流ドキュメント | https://cli.github.com/manual/gh |
| ライセンス | MIT |
| ソースアーカイブ | https://github.com/cli/cli/archive/refs/tags/v2.96.0.tar.gz |
| 最終更新 | 2026-07-03T00:29:16Z |
| Pulse | updated |
| ビルド依存関係 | go |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| 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 |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
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 -eソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.