| Crates.io | codeberg-cli |
| lib.rs | codeberg-cli |
| version | 0.5.0 |
| created_at | 2023-02-08 18:46:44.837463+00 |
| updated_at | 2025-09-15 19:24:46.591849+00 |
| description | CLI Tool for codeberg similar to gh and glab |
| homepage | https://codeberg.org/Aviac/codeberg-cli |
| repository | https://codeberg.org/Aviac/codeberg-cli |
| max_upload_size | |
| id | 780120 |
| size | 607,615 |
If you want to support me: My Liberapay Account
CLI Tool for Codeberg similar to gh and glab.
For API communication reasons, the package depends on openssl package. Please make sure to install this with your systems respective package manager before continuing.
The easiest way to install the berg command is using cargo. (If you haven't installed rust/cargo yet, take a look here)
Clone the repo and install berg with
cargo install --path .
Anywhere, just run
cargo install codeberg-cli
An unofficial COPR repository is available. Fedora users can install codeberg-cli with
sudo dnf copr enable lihaohong/codeberg-cli
sudo dnf install codeberg-cli
If you see an error about copr not being an available command, run sudo dnf install dnf-plugins-core.
Run the following:
sudo xbps-install codeberg-cli
Run the following:
nix-shell -p codeberg-cli
or
nix develop nixpkgs#codeberg-cli
Run the following:
brew install codeberg-cli
After that, the berg command should be available for you. Check it with berg -V
berg 0.4.0
Run berg -h for the help menu. Each subcommand also has it's own help menu
Codeberg/Forgejo CLI app
Usage: berg [OPTIONS] <COMMAND>
Commands:
api API subcommands
auth Authentication subcommands
config Config subcommands
user User subcommands
issue Issue subcommands
pull Pull request subcommands
label Label subcommands
release Release subcommands
repo Repository subcommands
milestone Milestone subcommands
notification Notification subcommands
completion Print completion script
help Print this message or the help of the given subcommand(s)
Options:
<omitted>
If you want to use this tool with instances of forgejo other than codeberg.org this is possible through extra configuration either through files or through environment variables:
berg config generate. Please take a look at the command line options via the --help flag. Please also note that you can check the current configuration values and where they are sourced from via berg config info.berg config info. The environment variable names are the option names prefixed by BERG_. Example: base_url in config files is equivalent to BERG_BASE_URL in environment variablesPlease note that the environment variables take precedence over the config file options. Also: There exist several visibility ranges for config files (local vs. global) and berg tries to resolve this recursively starting from the most local path walking upwards. Local configurations take precedence over global ones.
BERG_BASE_URL=localhost:8000 berg auth login
Please take a look at CONTRIBUTING.md before opening PRs. We can't accept PRs which don't stick to the guidelines.
The development of codeberg-cli has gone to sleep several times due to me being busy. I just want to encourage you checking out similar other projects which are trying to achieve some similar goals:
fjo - A collective approach of re-writing codeberg-cliforgejo-cli - A CLI application for interacting with forgejo in general