# 使用 Homebrew, Nix, pacman, zypper 安装 forgejo-cli

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

## 安装

```sh
sudo av install brew:forgejo-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install forgejo-cli
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#forgejo-cli
```

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

- pacman (92%):

```sh
sudo pacman -S forgejo-cli
```

  证据: Arch Linux sync databases: forgejo-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install forgejo-cli
```

  证据: openSUSE Tumbleweed package metadata: forgejo-cli from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:forgejo-cli
- **软件包管理器:** Homebrew
- **版本:** 0.6.0
- **来源摘要:** CLI tool for interacting with Forgejo
- **主页:** <https://codeberg.org/forgejo-contrib/forgejo-cli>
- **最后更新:** 2026-07-19T08:28:20Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fj (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.6.0
## 项目历史与用法

Forgejo CLI is fj, a command-line client for interacting with Forgejo instances. The README positions it as analogous to gh, glab, or tea, but for Forgejo.

### 项目历史

The official Codeberg repository was created in July 2023 under forgejo-contrib. Its README describes a CLI that handles Forgejo-specific tasks alongside, rather than replacing, git.

The project provides commands for issues, pull requests, repositories, organizations, teams, stars, watches, and releases, and points users to its Codeberg wiki for installation and usage details.

### 采用历史

Forgejo CLI followed Forgejo's emergence as an independent software forge by filling the ecosystem gap for a first-class terminal client.

The release API shows early 0.0.x releases in January 2024, v0.1.0 in August 2024, and continued releases through v0.5.0 in April 2026.

### 使用方式

Users install prebuilt binaries from the Codeberg releases tab or package-manager builds, then use fj to open, edit, comment on, close issues, create and merge pull requests, manage repositories and teams, and publish releases.

The README explicitly says fj is not meant to replace git; it covers Forgejo API and hosting workflows that git itself does not handle.

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

Forgejo CLI matters because every forge tends to accumulate a native command-line client: gh for GitHub, glab for GitLab, tea for Gitea, and fj for Forgejo.

For package indexes, it is a good example of an ecosystem companion package whose identity is tied to a host application's API rather than to a standalone file format or runtime.

### 时间线

- 2023: The forgejo-contrib/forgejo-cli repository is created on Codeberg.
- 2024: v0.0.2 and v0.0.3 are published in January.
- 2024: v0.1.0 is published in August.
- 2025: v0.3.0 is published in May.
- 2026: v0.5.0 is published in April.

### Related projects

- Forgejo CLI is related to Forgejo itself and to other forge CLIs named by its README: GitHub CLI gh, GitLab CLI glab, and Gitea's tea.
- It is hosted under forgejo-contrib, alongside other community-maintained Forgejo ecosystem projects.

### 来源

- <https://codeberg.org/api/v1/repos/forgejo-contrib/forgejo-cli>
- <https://codeberg.org/api/v1/repos/forgejo-contrib/forgejo-cli/releases?limit=10>
- <https://codeberg.org/forgejo-contrib/forgejo-cli>
- <https://codeberg.org/forgejo-contrib/forgejo-cli/raw/branch/main/README.md>
- <https://codeberg.org/forgejo-contrib/forgejo-cli/wiki/Installation>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - forgejo-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/fo/forgejo-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - forgejo-cli - 0.6.0-2: normalized package name match | Arch Linux sync databases: forgejo-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | CLI application for interacting with Forgejo | https://codeberg.org/forgejo-contrib/forgejo-cli
- zypper - forgejo-cli - 0.6.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: forgejo-cli from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | CLI application for interacting with Forgejo | https://codeberg.org/Cyborus/forgejo-cli


## Combined YAML source

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


## 来源

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