# 使用 Homebrew, apk, Nix 安装 codeberg-cli

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install codeberg-cli
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add codeberg-cli
```

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

- Nix (92%):

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

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

## 软件包事实

- **软件包键:** brew:codeberg-cli
- **软件包管理器:** Homebrew
- **版本:** 0.5.5
- **来源摘要:** CLI for Codeberg
- **主页:** <https://codeberg.org/Aviac/codeberg-cli>
- **最后更新:** 2026-07-16T12:50:32Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- berg (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Codeberg CLI was an independent command-line client for Codeberg and Forgejo-style forges, published as the `berg` command. Its own repository is now archived and directs users toward the better-maintained Forgejo CLI.

### 项目历史

The Codeberg repository was created on 2023-01-10. Codeberg's API describes it as a CLI tool for Forgejo similar to `gh`, `glab`, and `tea`, and the first public release, v0.1.0, was published on 2023-01-29.

The README now begins with an archived notice saying the project was discontinued because of lack of maintainer time, and recommends `forgejo-contrib/forgejo-cli` as a similar, more official tool.

### 采用历史

The input package facts list distribution through Homebrew, Alpine APK, and Nix, showing that the tool escaped its upstream forge and reached common Unix package channels. Its official repository also advertised a crates.io package badge, consistent with Rust CLI distribution.

Release metadata shows a short but multi-year maintenance arc from 2023 releases through v0.5.1 in 2025, after which the project was archived.

### 使用方式

The intended use was to provide a forge CLI for Codeberg or Forgejo users, analogous to GitHub's `gh`, GitLab's `glab`, and Gitea's `tea`. The Homebrew formula exposes the `berg` executable.

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

The package is interesting mostly as a transition artifact in the Forgejo/Codeberg tooling ecosystem: a third-party Rust CLI that filled a gap before users were steered toward a more official Forgejo CLI. For package maintainers, its archived status matters more than feature depth because downstream packages may need replacement or removal planning.

### 时间线

- 2023-01-10: Codeberg repository created.
- 2023-01-29: v0.1.0 public release published.
- 2024-05-02: v0.4.0 release published.
- 2025-09-27: v0.5.1 release published.
- 2025: README marks the project archived and recommends Forgejo CLI.

### Related projects

- The README explicitly points users to https://codeberg.org/forgejo-contrib/forgejo-cli. The Codeberg API description also compares the tool to `gh`, `glab`, and `tea`.

### 来源

- <https://codeberg.org/Aviac/codeberg-cli>
- <https://codeberg.org/api/v1/repos/Aviac/codeberg-cli>
- <https://codeberg.org/api/v1/repos/Aviac/codeberg-cli/releases>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - codeberg-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/codeberg-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - codeberg-cli - 0.5.5-r1: normalized package name match | Alpine Linux edge package indexes: codeberg-cli from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | CLI Tool for Codeberg similar to gh and glab | https://codeberg.org/RobWalt/codeberg-cli
- apk - codeberg-cli-bash-completion - 0.5.5-r1: normalized package name match | Alpine Linux edge package indexes: codeberg-cli-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for codeberg-cli | https://codeberg.org/RobWalt/codeberg-cli
- apk - codeberg-cli-fish-completion - 0.5.5-r1: normalized package name match | Alpine Linux edge package indexes: codeberg-cli-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for codeberg-cli | https://codeberg.org/RobWalt/codeberg-cli
- apk - codeberg-cli-zsh-completion - 0.5.5-r1: normalized package name match | Alpine Linux edge package indexes: codeberg-cli-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for codeberg-cli | https://codeberg.org/RobWalt/codeberg-cli


## Combined YAML source

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