Install the gs CLI
The CLI is a single Go binary named gs. Prebuilt binaries need nothing else; building it yourself requires Go 1.24 or newer.
Option A — prebuilt binary (quickest)
curl -fsSL https://gitslice.io/install.sh | sh
Downloads the latest release for Linux or macOS (amd64 or arm64), verifies its checksum, and installs it to ~/.local/bin. Windows and other builds are on the releases page.
To read and check the script before running it: each release carries its own copy, listed in that release's checksums, and the same file is in the public GitHub mirror at the release tag.
curl -fsSLO https://gitslice.io/releases/latest/download/install.sh
curl -fsSL https://gitslice.io/releases/latest/download/checksums.txt | grep ' install.sh$' | sha256sum -c -
tag=$(curl -fsSI https://gitslice.io/releases/latest | sed -n 's#^[Ll]ocation: .*/tag/##p' | tr -d '\r')
curl -fsSL "https://raw.githubusercontent.com/gitslice-io/gitslice/$tag/web/public/install.sh" | cmp - install.sh
less install.sh && sh install.sh
Or with Homebrew (macOS and Linux)
brew install gitslice-io/tap/gitslice
Installs gs with its shell completions. Upgrade it with brew upgrade gitslice. Ghostscript also installs a gs command, so the two cannot be installed together with Homebrew.
Option B — go install
go install gitslice.io/gitslice/cmd/gs@latest
Make sure your Go bin directory is on PATH:
export PATH="$PATH:$(go env GOPATH)/bin"
Option C — build from source
git clone https://gitslice.io/git/gitslice/gitslice.git gitslice-src
cd gitslice-src/gitslice/gitslice
make install # builds gs (and gitslice-server) into your Go bin
Gitslice hosts its own source in the public slice gitslice/gitslice. Clones keep the account-rooted layout, so the module sits under gitslice/gitslice/.
Verify
gs defaults to the hosted endpoint, so you can sign in right away. Point at a different server with --server or GS_SERVER_ADDR.
gs version
gs auth login
gs auth status