Skip to content

Instantly share code, notes, and snippets.

@dbrtly
Last active August 4, 2025 02:36
Show Gist options
  • Save dbrtly/b734b18d8b33b73e997d225a8c60bd0b to your computer and use it in GitHub Desktop.
Save dbrtly/b734b18d8b33b73e997d225a8c60bd0b to your computer and use it in GitHub Desktop.
How to install Jujutsu/jj on google cloud shell
#/usr/local/bin/
# download and decompress binary, add executable permission, move app to apps dir
# set variables
TAG_NAME=$(gh release list --repo jj-vcs/jj --limit 1 --json tagName | jq -r '.[0].tagName')
if [[ "$(uname -m)" == *x86* ]]; then ARCH="x86_64"; else ARCH="aarch64"; fi
OS_TYPE=$(uname -s | tr '[:upper:]' '[:lower:]')
# download release
gh release download --repo jj-vcs/jj --pattern "*${TAG_NAME}*${ARCH}*${OS_TYPE}*" --output - | tar --extract -z
# alternative download command
# wget "https://github.com/jj-vcs/jj/releases/download/${version}/jj-${version}-${arch}-unknown-linux-musl.tar.gz" -O - | tar -xz
chmod +x jj
mv jj "${XDG_BIN_HOME}"
# configure auto-completion
echo "source <(jj util completion)" > ~/.customize_environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment