# 使用 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
- **版本:** 2.12.0
- **来源摘要:** Portable Git(hub|lab|tea)/Forgejo/Bugzilla CLI tool
- **主页:** <https://herrhotzenplotz.de/gcli/>
- **仓库:** <https://github.com/herrhotzenplotz/gcli>
- **最后更新:** 2026-07-19T08:27:55Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gcli (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.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
## 其他软件包管理器记录

- 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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
