# Install codeberg-cli with Homebrew, apk, Nix

CLI for Codeberg. Version 0.5.5 via Homebrew; verified 2026-05-13.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

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

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:codeberg-cli
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/codeberg-cli>
- **Version:** 0.5.5
- **Source summary:** CLI for Codeberg
- **Homepage:** <https://codeberg.org/Aviac/codeberg-cli>
- **Repository:** <https://codeberg.org/Aviac/codeberg-cli>
- **Upstream docs:** <https://codeberg.org/Aviac/codeberg-cli#readme>
- **License:** AGPL-3.0-or-later
- **Source archive:** <https://codeberg.org/Aviac/codeberg-cli/archive/v0.5.5.tar.gz>
- **Last updated:** 2026-05-13T08:26:29-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- berg (cli)
- berg (alias)

## Dependencies

- openssl@3

## Build dependencies

- pkgconf
- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.5.5
- Package-manager updated: 2026-05-13
- Local data: ok
- Upstream repository: https://codeberg.org/Aviac/codeberg-cli
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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`.

### Sources

- <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>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [braid](https://www.automicvault.com/pkg/brew/braid/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [dura](https://www.automicvault.com/pkg/brew/dura/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [forgejo-cli](https://www.automicvault.com/pkg/brew/forgejo-cli/) - Shares av.db curated category or tags: cli, codeberg, developer-tools, git, version-control.
- [gcli](https://www.automicvault.com/pkg/brew/gcli/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-branchless](https://www.automicvault.com/pkg/brew/git-branchless/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-cinnabar](https://www.automicvault.com/pkg/brew/git-cinnabar/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-cola](https://www.automicvault.com/pkg/brew/git-cola/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-gui](https://www.automicvault.com/pkg/brew/git-gui/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-pages](https://www.automicvault.com/pkg/brew/git-pages/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.
- [git-pages-cli](https://www.automicvault.com/pkg/brew/git-pages-cli/) - Local package facts share a topical domain. Shared terms: cli, codeberg, developer, developer-tools, git.

## Combined YAML source

View the package source record on GitHub. [combined/codeberg-cli.yml](https://github.com/automic-vault/db/blob/main/combined/codeberg-cli.yml)


## Sources

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