Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation

PlatformCommand
Arch (AUR)paru -S jj-release
Arch (AUR, full)paru -S jj-release-full
Fedora (COPR)sudo dnf copr enable sayless88/jj-release && sudo dnf install jj-release
Fedora (COPR, full)sudo dnf install jj-release-full
Nixnix run github:saylesss88/jj-release
From sourcecargo install --git https://github.com/saylesss88/jj-release
Cargo Binstallcargo binstall jj-release

Requires jj on your PATH.


Features

jj-release uses Cargo features to keep the binary lean, only compile in support for the forges and publish targets you actually use.

Default Features

The default build includes GitHub and GitLab support:

cargo install jj-release

Forge Features

FeatureEnablesRequires
githubGitHub releases and PRs via ghgh CLI
gitlabGitLab releases and MRs via glabglab CLI
giteaGitea releases and PRs via REST APIGITEA_TOKEN
forgejoForgejo/Codeberg via REST API (includes gitea)FORGEJO_TOKEN
# Forgejo/Codeberg only, no GitHub or GitLab
cargo install jj-release --no-default-features --features forgejo

Publish Features

FeatureEnables
publish-aurPublishing to the Arch User Repository
publish-coprPublishing to Fedora COPR
# Full build with all forges and publish targets
cargo install jj-release --features full

Library Features

If you’re using jj_release_core as a library:

[dependencies]
# Default: GitHub + GitLab
jj_release_core = "0.9.0"

# Forgejo/Codeberg support
jj_release_core = { version = "0.9.0", features = ["forgejo"] }

# Everything
jj_release_core = { version = "0.9.0", features = ["full"] }

NixOS & Flakes

The flake provides two packages depending on the features you need:

  • Default (default): Includes the github and gitlab features.
  • Full (jj-release-full): Includes the full feature flag.

Try it out without installing:

Run the default package:

nix run github:saylesss88/jj-release

Run the full package:

nix run github:saylesss88/jj-release#jj-release-full

Add to your NixOS configuration via Flakes:

First, add the input to your flake.nix:

# In your flake.nix:
inputs.jj-release.url = "github:saylesss88/jj-release";

Then, in your configuration.nix (assuming inputs is passed via specialArgs), add your preferred package to environment.systemPackages:

{ inputs, pkgs, ... }: {
  environment.systemPackages = [
    # Choose ONE of the following:

    # 1. For the default build (GitHub/GitLab only):
    inputs.jj-release.packages.${pkgs.stdenv.hostPlatform.system}.default

    # 2. For the full build:
    inputs.jj-release.packages.${pkgs.stdenv.hostPlatform.system}.jj-release-full
  ];
}

Arch Linux

paru -S jj-release

Fedora

You can install jj-release from the unofficial COPR repository. This repository provides pre-compiled binaries built automatically for Fedora systems.

First, enable the repository:

sudo dnf copr enable sayless88/jj-release

Then install the package:

sudo dnf install jj-release