Back to Codeberg

Installation

forgejo-contrib-forgejo-cli-wiki-installation.md

latest4.1 KB
Original Source

forgejo-contrib/forgejo-cli

Watch20

Star402

Fork

You've already forked forgejo-cli

51

CodeIssues 44Pull requests 8Releases 11Packages 2WikiActivity

Page: Installation

Pages

ActionsAuthenticationBuildingHomeInstallationIssuesOrganizationsPRsRepositoriesUsers

HTTPS

No results

12 Installation Fluffinity edited this page 2026-06-19 17:51:07 +02:00

#Table of Contents

Pre-built

Pre-built binaries are available for x86_64 Windows and x86_64 & aarch64 Linux (GNU) on the releases tab. Download the appropriate one for your platform and place it somewhere in your PATH

Alternatively, use cargo-binstall:

sh
cargo binstall forgejo-cli

From source

If you have Rust installed, you can install fj with cargo install --locked

sh
# Latest version
cargo install --locked forgejo-cli
# From `main`
cargo install --locked --git https://codeberg.org/forgejo-contrib/forgejo-cli.git --branch main

From Package Managers

Debian and Ubuntu

forgejo-cli is included in the official repositories as of Debian unstable and Ubuntu questing (25.10).

sh
sudo apt install forgejo-cli

Fedora and RHEL

An unofficial COPR repository is available. Fedora users can install forgejo-cli with

sh
sudo dnf copr enable lihaohong/forgejo-cli
sudo dnf install forgejo-cli

The above commands also works for RHEL 9+ and alikes (e.g. AlmaLinux)

If you see an error about copr not being an available command, run sudo dnf install dnf-plugins-core.

Guix

If it's not already done, you need to update Guix (Guix is rolling release):

sh
guix pull

Once done you can then install forgejo-cli with the following command:

sh
guix install forgejo-cli

Homebrew

forgejo-cli is included in Homebrew

sh
brew install forgejo-cli

Nix

forgejo-cli is available in nixpkgs. As well, a Nix flake is included in this repository that you may use. You could install it into your Nix profile, for example:

sh
nix profile install git+https://codeberg.org/forgejo-contrib/forgejo-cli

...or include it in the flake inputs of your NixOS system:

nix
{
  inputs = {
    # ...
    forgejo-cli.url = "git+https://codeberg.org/forgejo-contrib/forgejo-cli";
  };
  # ...
}

OCI Container

forgejo-cli is available as an OCI container for use in CI, at codeberg.org/cyborus/forgejo-cli:latest