# 使用 Homebrew, Nix, winget 安装 ghr

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

## 安装

```sh
sudo av install brew:ghr
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ghr
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ghr
```

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

### Windows

- winget (92%):

```sh
winget install --id cataggar.ghr -e
```

  证据: Windows Package Manager source index: cataggar.ghr from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:ghr
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ghr>
- **版本:** 0.18.3
- **来源摘要:** Upload multiple artifacts to GitHub Release in parallel
- **主页:** <https://github.com/tcnksm/ghr>
- **仓库:** <https://github.com/tcnksm/ghr>
- **许可证:** MIT
- **源码归档:** <https://github.com/tcnksm/ghr/archive/refs/tags/v0.18.3.tar.gz>
- **最后更新:** 2026-07-25T20:55:22-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ghr (cli)
- ghr (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.18.3
- 管理器更新时间: 2026-07-25
- 本地数据: OK
- 上游仓库: https://github.com/tcnksm/ghr
- 检测到的最新版本: v0.18.3 (当前)
## 项目历史与用法

ghr is a release-engineering CLI for creating GitHub Releases and uploading release artifacts in parallel.

### 项目历史

The ghr repository was created in July 2014, with an initial v0.1.0 release published days later. Its README presents a Go-oriented release workflow: build artifacts, tag a release, and use `ghr TAG PATH` to create a GitHub Release and upload the files.

The tool developed around the practical needs of release automation: reading repository information from `.git/config`, accepting `GITHUB_TOKEN`, supporting GitHub Enterprise through `GITHUB_API`, replacing or recreating assets, marking draft or prerelease releases, and later exposing a GitHub Action wrapper for workflow files.

### 采用历史

ghr became useful in the era when projects began publishing multi-platform binaries as GitHub Release assets. The README's demo centers on cross-compiled Go binaries, and the documented Action support shows how the same tool moved into CI-based release pipelines.

### 使用方式

Practitioners use ghr after a build job has produced a directory of archives, checksums, installers, or other assets. A typical run supplies a tag and path, with optional title, body, commitish, draft, prerelease, replace, delete, generated notes, and parallel upload settings.

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

Package nerds care about ghr because it is release plumbing: it turns build output into a GitHub Release page with assets, which downstream package managers and install scripts often consume.

### 时间线

- 2014: GitHub repository created.
- 2014: v0.1.0 initial release published.
- 2021: GitHub automatic release notes support arrived in GitHub, and ghr later documented a `-generatenotes` flag.
- 2020s: README documents a reusable GitHub Action interface.

### Related projects

- The README compares ghr with aktau/github-release and connects it to GitHub Releases, GitHub Enterprise, GitHub Actions, Go cross-compilation, checksums, and CI build artifacts.

### 来源

- <https://api.github.com/repos/tcnksm/ghr>
- <https://github.com/tcnksm/ghr>
- <https://github.com/tcnksm/ghr#readme>
- <https://github.com/tcnksm/ghr/releases/tag/v0.1.0>
- <https://pkg.go.dev/github.com/tcnksm/ghr>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ghr
- **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 - ghr: normalized package name match | nixpkgs package indexes: pkgs/by-name/gh/ghr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- winget - cataggar.ghr: normalized package name match | Windows Package Manager source index: cataggar.ghr from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [actionlint](https://pkg.so/zh-hans/brew/actionlint/) - Shares pkgdb curated category or tags: cli, developer-tools, github-actions.
- [act](https://pkg.so/zh-hans/brew/act/) - Shares pkgdb curated category or tags: cli, developer-tools, github-actions.
- [sentry-cli](https://pkg.so/zh-hans/brew/sentry-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, release-management.
- [commitizen](https://pkg.so/zh-hans/brew/commitizen/) - Shares pkgdb curated category or tags: cli, developer-tools, release-management.
- [gitversion](https://pkg.so/zh-hans/brew/gitversion/) - Shares pkgdb curated category or tags: cli, developer-tools, release-management.
- [tf-summarize](https://pkg.so/zh-hans/brew/tf-summarize/) - Shares pkgdb curated category or tags: cli, developer-tools, github-actions.
- [pinact](https://pkg.so/zh-hans/brew/pinact/) - Shares pkgdb curated category or tags: cli, developer-tools, github-actions.
- [eget](https://pkg.so/zh-hans/brew/eget/) - Shares pkgdb curated category or tags: cli, developer-tools, github-releases.
- [github-release](https://pkg.so/zh-hans/brew/github-release/) - Local package facts share a topical domain. Shared terms: artifacts, cli, developer, developer-tools, github.
- [changelogen](https://pkg.so/zh-hans/brew/changelogen/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, github, github-releases.
- [dra](https://pkg.so/zh-hans/brew/dra/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, github, management.

## Combined YAML source

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


## 来源

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