# Install ghi with Homebrew, apk, Nix

Work on GitHub issues on the command-line. Version 1.2.1 via Homebrew; verified 2026-04-20.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ghi
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add ghi
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:ghi
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/ghi>
- **Version:** 1.2.1
- **Source summary:** Work on GitHub issues on the command-line
- **Homepage:** <https://github.com/drazisil/ghi>
- **Repository:** <https://github.com/drazisil/ghi>
- **Upstream docs:** <https://github.com/drazisil/ghi#readme>
- **License:** MIT
- **Source archive:** <https://github.com/drazisil/ghi/archive/refs/tags/1.2.1.tar.gz>
- **Last updated:** 2026-04-20T01:22:06Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- ghi (cli)
- ghi (alias)

## Uses from macOS

- ruby

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.2.1
- Package-manager updated: 2026-04-20
- Local data: ok
- Upstream repository: https://github.com/drazisil/ghi
- Upstream latest detected: 1.2.1 (current)
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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 Details

- **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

## Other Package-Manager Records

- 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [gh](https://www.automicvault.com/pkg/brew/gh/) - Shares av.db curated category or tags: cli, developer-tools, github, github-cli.
- [git-bug](https://www.automicvault.com/pkg/brew/git-bug/) - Shares av.db curated category or tags: cli, developer-tools, issue-tracking.
- [hub](https://www.automicvault.com/pkg/brew/hub/) - Shares av.db curated category or tags: cli, developer-tools, github, github-cli.
- [gist](https://www.automicvault.com/pkg/brew/gist/) - Shares av.db curated category or tags: cli, developer-tools, github, ruby.
- [anycable-go](https://www.automicvault.com/pkg/brew/anycable-go/) - Shares av.db curated category or tags: cli, developer-tools, ruby.
- [brew-gem](https://www.automicvault.com/pkg/brew/brew-gem/) - Shares av.db curated category or tags: cli, developer-tools, ruby.
- [chruby](https://www.automicvault.com/pkg/brew/chruby/) - Shares av.db curated category or tags: cli, developer-tools, ruby.
- [cucumber-ruby](https://www.automicvault.com/pkg/brew/cucumber-ruby/) - Shares av.db curated category or tags: cli, developer-tools, ruby.
- [gistit](https://www.automicvault.com/pkg/brew/gistit/) - Local package facts share a topical domain. Shared terms: cli, command-line, developer, developer-tools, github.
- [imessage-ruby](https://www.automicvault.com/pkg/brew/imessage-ruby/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, command-line, developer, developer-tools, line.

## Combined YAML source

View the package source record on GitHub. [combined/ghi.yml](https://github.com/automic-vault/db/blob/main/combined/ghi.yml)


## Sources

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