Skip to main content

Installing the JJHub CLI

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

Prerequisites

The JJHub CLI requires Jujutsu (jj) to be installed and available on your PATH.

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

Verify Installation

jjhub --version
jjhub auth status

Configuration

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

Shell Completion

# bash
jjhub completion bash >> ~/.bashrc

# zsh
jjhub completion zsh >> ~/.zshrc

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