# 使用 Homebrew, apk, Nix 安装 ghi

查看 ghi 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:ghi
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ghi
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add ghi
```

  证据: Alpine Linux edge package indexes: ghi from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#ghi
```

  证据: nixpkgs package indexes: pkgs/by-name/gh/ghi/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:ghi
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ghi>
- **版本:** 1.2.1
- **来源摘要:** Work on GitHub issues on the command-line
- **主页:** <https://github.com/drazisil/ghi>
- **仓库:** <https://github.com/drazisil/ghi>
- **许可证:** MIT
- **源码归档:** <https://github.com/drazisil/ghi/archive/refs/tags/1.2.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ghi (cli)
- ghi (别名)

## macOS 提供的库

- ruby

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.2.1
- 本地数据: OK
- 上游仓库: https://github.com/drazisil/ghi
- 检测到的最新版本: 1.2.1 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

ghi is a Ruby command-line client for GitHub Issues, built around the idea that issue work can happen from a terminal and a user's editor instead of a browser.

### 项目历史

The maintained README states that ghi was originally created by Stephen Celis and later maintained by Drazi Crendraven. The drazisil repository was created in 2017 and published release 1.2.1 in 2022.

### 采用历史

ghi belongs to the older wave of small GitHub command-line tools that predated or complemented larger official CLIs. Its package-manager footprint and gem-style installation kept it useful for users who wanted direct issue commands inside Git repositories.

### 使用方式

Practitioners configure a GitHub personal access token with git config --global ghi.token, then use commands such as list, show, open, close, edit, comment, label, assign, and milestone. Because it reads Git configuration, the same file can act as both configuration and credential storage.

### 为什么软件包爱好者会关心

For package collectors, ghi is a compact example of Unix-style GitHub automation: one executable, git-config-backed settings, and commands that map closely to issue-tracker actions.

### 时间线

- 2017: The drazisil-maintained repository was created.
- 2022: Release 1.2.1 was published from the maintained repository.

### Related projects

- The maintained README points back to Stephen Celis's original ghi repository and wiki, and relates the tool to GitHub Issues and git config.

### 来源

- <https://api.github.com/repos/drazisil/ghi>
- <https://github.com/drazisil/ghi>
- <https://github.com/drazisil/ghi/releases/tag/1.2.1>
- <https://github.com/stephencelis/ghi>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

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.


## Configuration files

- Unix: ~/.gitconfig
- Windows: %USERPROFILE%\.gitconfig

## Credential files

- Unix: ~/.gitconfig
- Windows: %USERPROFILE%\.gitconfig
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ghi
- **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:** head, stable

## 其他软件包管理器记录

- Nix - ghi: normalized package name match | nixpkgs package indexes: pkgs/by-name/gh/ghi/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - ghi - 1.2.1-r2: normalized package name match | Alpine Linux edge package indexes: ghi from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | GitHub Issues on the command line | https://github.com/drazisil/ghi
- apk - ghi-doc - 1.2.1-r2: normalized package name match | Alpine Linux edge package indexes: ghi-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | GitHub Issues on the command line (documentation) | https://github.com/drazisil/ghi


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://pkg.so/zh-hans/package-publishers/) - Belongs to a package publishing or registry command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [gist](https://pkg.so/zh-hans/brew/gist/) - Shares pkgdb curated category or tags: cli, developer-tools, github, ruby.
- [gh](https://pkg.so/zh-hans/brew/gh/) - Shares pkgdb curated category or tags: cli, developer-tools, github.
- [rbenv](https://pkg.so/zh-hans/brew/rbenv/) - Shares pkgdb curated category or tags: cli, developer-tools, ruby.
- [asciidoctor](https://pkg.so/zh-hans/brew/asciidoctor/) - Shares pkgdb curated category or tags: cli, developer-tools, ruby.
- [onigmo](https://pkg.so/zh-hans/brew/onigmo/) - Shares pkgdb curated category or tags: cli, developer-tools, ruby.
- [hub](https://pkg.so/zh-hans/brew/hub/) - Shares pkgdb curated category or tags: cli, developer-tools, github.
- [tea](https://pkg.so/zh-hans/brew/tea/) - Shares pkgdb curated category or tags: cli, developer-tools, issues.
- [chruby](https://pkg.so/zh-hans/brew/chruby/) - Shares pkgdb curated category or tags: cli, developer-tools, ruby.
- [dra](https://pkg.so/zh-hans/brew/dra/) - Local package facts share a topical domain. Shared terms: cli, command-line, developer, developer-tools, github.
- [gistit](https://pkg.so/zh-hans/brew/gistit/) - Local package facts share a topical domain. Shared terms: cli, command-line, developer, developer-tools, github.
- [git-bug](https://pkg.so/zh-hans/brew/git-bug/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, issue, issue-tracking.

## Combined YAML source

View the package source record on GitHub. [combined/ghi.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ghi.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
