# 使用 Homebrew, apk, apt, MacPorts, Nix 安装 gcli

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

## 安装

```sh
sudo av install brew:gcli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gcli
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gcli
```

  证据: MacPorts ports tree: devel/gcli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add gcli
```

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

- Debian apt (92%):

```sh
sudo apt install gcli
```

  证据: Debian stable package indexes: gcli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#gcli
```

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

## 软件包事实

- **软件包键:** brew:gcli
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gcli>
- **版本:** 2.12.0
- **来源摘要:** Portable Git(hub|lab|tea)/Forgejo/Bugzilla CLI tool
- **主页:** <https://herrhotzenplotz.de/gcli/>
- **仓库:** <https://github.com/herrhotzenplotz/gcli>
- **上游文档:** <https://herrhotzenplotz.de/gcli/>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://github.com/herrhotzenplotz/gcli/archive/refs/tags/v2.12.0.tar.gz>
- **最后更新:** 2026-07-19T08:27:55Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gcli (cli)
- gcli (别名)

## 依赖

- lowdown
- openssl@3

## 构建依赖

- pkgconf
- readline

## macOS 提供的库

- curl
- libedit

## 安装行为

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

## 版本和新鲜度

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

GCLI is a portable command-line client for working with multiple software forges through one interface. Its README frames the project as an answer to single-forge tools: instead of remembering separate commands for GitHub, GitLab, Gitea, Forgejo, and Bugzilla, GCLI presents a shared CLI.

### 项目历史

The public GitHub repository was created in October 2021, while the project homepage and README both point to Sourcehut, GitLab, and GitHub development surfaces. The project is written as a small, portable C tool with few dependencies, manual pages, built-in help, and support for scripted and interactive use.

### 采用历史

The project homepage says GCLI is available in various distributions and asks users to submit packages for their preferred operating systems. The README lists tested systems across BSDs, Solaris and OmniOS, Debian and Devuan, Gentoo, Fedora, Alpine, Haiku, Minix, Darwin, and Windows/MSYS2, which signals a portability-first package culture.

### 使用方式

GCLI manages issues, merge requests, continuous integration, releases, and milestones from the terminal. It also integrates with Git and GoT, and its preferred contribution workflow is mailing-list based, with GitLab and GitHub mirrors accepted as alternatives.

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

GCLI is interesting because it deliberately avoids the modern pattern of one CLI per forge. For package maintainers, the notable traits are the C implementation, small dependency set, manual-page documentation, broad Unix portability testing, and explicit support for old-school email patch workflows.

### 时间线

- 2021: GitHub records the public GCLI repository creation.
- 2024: The official release archive contains the 1.0 and 2.x release series.
- 2026: The release archive lists 2.12.0, and the repository remained active in June 2026.

### Related projects

- GitHub CLI is named by the README as the single-forge contrast that motivated GCLI.
- GitLab, Gitea, Forgejo, GitHub, and Bugzilla are supported services.
- Git and GoT are supported version-control integrations.

### 来源

- <https://api.github.com/repos/herrhotzenplotz/gcli>
- <https://github.com/herrhotzenplotz/gcli>
- <https://herrhotzenplotz.de/gcli>
- <https://herrhotzenplotz.de/gcli/releases/>
- <https://raw.githubusercontent.com/herrhotzenplotz/gcli/master/README.md>


## 安全说明

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: ~/.config/gcli/config

## Credential files

- Unix: ~/.config/gcli/config
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gcli
- **Version Scheme:** 0
- **Revision:** 1
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - gcli - 2.3.0-1: normalized package name match | Debian stable package indexes: gcli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Git Forge CLI | https://herrhotzenplotz.de/gcli/
- Nix - gcli: normalized package name match | nixpkgs package indexes: pkgs/by-name/gc/gcli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gcli - 2.2.0-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: gcli from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Git Forge CLI | https://herrhotzenplotz.de/gcli/
- apk - gcli - 2.9.1-r1: normalized package name match | Alpine Linux edge package indexes: gcli from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Portable GitHub/GitLab/Gitea CLI tool | https://herrhotzenplotz.de/gcli/
- apk - gcli-doc - 2.9.1-r1: normalized package name match | Alpine Linux edge package indexes: gcli-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Portable GitHub/GitLab/Gitea CLI tool (documentation) | https://herrhotzenplotz.de/gcli/
- MacPorts - gcli: normalized package name match | MacPorts ports tree: devel/gcli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control 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.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [lowdown](https://pkg.so/zh-hans/brew/lowdown/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [sugarjar](https://pkg.so/zh-hans/brew/sugarjar/) - Shares pkgdb curated category or tags: cli, developer-tools, git, github, gitlab.
- [hub](https://pkg.so/zh-hans/brew/hub/) - Shares pkgdb curated category or tags: cli, developer-tools, git, github, version-control.
- [git-spice](https://pkg.so/zh-hans/brew/git-spice/) - Shares pkgdb curated category or tags: cli, developer-tools, git, github, gitlab.
- [ghorg](https://pkg.so/zh-hans/brew/ghorg/) - Shares pkgdb curated category or tags: cli, developer-tools, git, github, gitlab.
- [multi-gitter](https://pkg.so/zh-hans/brew/multi-gitter/) - Shares pkgdb curated category or tags: cli, developer-tools, git, github, gitlab.
- [lab](https://pkg.so/zh-hans/brew/lab/) - Shares pkgdb curated category or tags: cli, developer-tools, git, gitlab, version-control.
- [gitbackup](https://pkg.so/zh-hans/brew/gitbackup/) - Shares pkgdb curated category or tags: cli, developer-tools, git, github, gitlab.
- [microplane](https://pkg.so/zh-hans/brew/microplane/) - Shares pkgdb curated category or tags: cli, developer-tools, git, github, gitlab.
- [dura](https://pkg.so/zh-hans/brew/dura/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.
- [git-series](https://pkg.so/zh-hans/brew/git-series/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.

## Combined YAML source

View the package source record on GitHub. [combined/gcli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gcli.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
