No description
  • Rust 99.5%
  • Nix 0.4%
Find a file
Daniel Baumann d4d692b068
Releasing fastforward version 0.3.0-1~ffwd13+u1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-12-30 14:27:13 +01:00
.woodpecker Merging upstream version 0.3.0. 2025-12-30 14:25:52 +01:00
debian Releasing fastforward version 0.3.0-1~ffwd13+u1. 2025-12-30 14:27:13 +01:00
src Merging upstream version 0.3.0. 2025-12-30 14:25:52 +01:00
.cargo_vcs_info.json Merging upstream version 0.3.0. 2025-12-30 14:25:52 +01:00
.gitignore Adding upstream version 0.2.0. 2025-12-30 13:26:43 +01:00
build.rs Merging upstream version 0.3.0. 2025-12-30 14:25:52 +01:00
Cargo.lock Merging upstream version 0.3.0. 2025-12-30 14:25:52 +01:00
Cargo.toml Merging upstream version 0.3.0. 2025-12-30 14:25:52 +01:00
Cargo.toml.orig Merging upstream version 0.3.0. 2025-12-30 14:25:52 +01:00
Dockerfile Adding upstream version 0.2.0. 2025-12-30 13:26:43 +01:00
flake.lock Merging upstream version 0.3.0. 2025-12-30 14:25:52 +01:00
flake.nix Merging upstream version 0.3.0. 2025-12-30 14:25:52 +01:00
LICENSE-APACHE Adding upstream version 0.2.0. 2025-12-30 13:26:43 +01:00
LICENSE-MIT Adding upstream version 0.2.0. 2025-12-30 13:26:43 +01:00
README.md Merging upstream version 0.3.0. 2025-12-30 14:25:52 +01:00

forgejo-cli

CLI tool for interacting with Forgejo

Matrix Chat

Installation

Pre-built

Pre-built binaries are available for x86_64 Windows and Linux (GNU) on the releases tab.

From source

Install with cargo install

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

Fedora

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

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

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

Nix

A Nix flake is included in this repository that you may use. You could install it into your Nix profile, for example:

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

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

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

OCI Container

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

Usage

Instance-specific aliases

While you can just use the fj binary directly, it can be useful to alias it with the --host flag set, to create shorthands for certain instances.

# For example, a `cb` command for interacting with codeberg
alias cb="fj --host codeberg.org"
# Or code.forgejo.org
alias cfj="fj --host code.forgejo.org"
# Or any other instance you want!
# And the alias name can be whatever, as long as the `--host` flag is set.

Now, when you reference a repository such as forgejo/forgejo, it will implicitly get it from whichever alias you used!

$ cb repo info forgejo/forgejo
forgejo/forgejo
> Beyond coding. We forge.

Primary language is Go
# etc...

When using fj directly, you'd have to use a URL to access it.

$ fj repo info codeberg.org/forgejo/forgejo
forgejo/forgejo
> Beyond coding. We forge.

Primary language is Go
# etc...

# Notice the "cfj", trying to access code.forgejo.org, still works when you specify Codeberg in the repository name!
$ cfj repo info codeberg.org/forgejo/forgejo
forgejo/forgejo
> Beyond coding. We forge.

Primary language is Go
# etc...

Licensing

This project is licensed under either Apache License Version 2.0 or MIT License at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.