Skip to main content

Installing the JJHub CLI

The JJHub CLI (jjhub) is a Rust binary that operates in two modes:
  • Local mode: Uses jj-lib directly for offline operations
  • Remote mode: Communicates with the JJHub API for cloud operations

macOS and Linux

The JJHub CLI provides a unified installation script that automatically detects your operating system and architecture (x86_64 or arm64).
curl -fsSL https://get.jjhub.tech/cli | bash

From Source

Requires Rust 1.82+:
cargo install --git https://github.com/jjhub-dev/jjhub jjhub-cli

Verify Installation

jjhub --version
jjhub auth status

Configuration

The CLI reads configuration from:
  1. JJHUB_TOKEN environment variable (for authentication)
  2. ~/.config/jjhub/config.toml (for defaults)
  3. .jjhub/config.toml (repository-level settings)

Shell Completion

# bash
jjhub completion bash >> ~/.bashrc

# zsh
jjhub completion zsh >> ~/.zshrc

# fish
jjhub completion fish > ~/.config/fish/completions/jjhub.fish