Install the native KafScale CLI
kafscale-cli runs directly on Linux or macOS, on amd64 or arm64. It needs
neither Docker nor a Go toolchain when installed from a release archive.
Its commands are restore, prune and schema import; use a Kafka client
such as kcat for produce and consume.
Homebrew
On macOS or Linux, install the latest final release with Homebrew:
brew tap kafscale/platform https://github.com/KafScale/platform
brew install kafscale-cli
If brew says the tap is untrusted, run brew trust kafscale/platform once and
install again. A -rc or -dev tag is a GitHub pre-release and does not
update the Homebrew formula.
Download a release
Open GitHub releases and select
a release containing CLI assets. v2.1.0 is the first release that carries
them; older releases, including v2.0.1, have no binary attachments.
Each such release provides:
kafscale-cli_<version>_linux_amd64.tar.gzkafscale-cli_<version>_linux_arm64.tar.gzkafscale-cli_<version>_darwin_amd64.tar.gzkafscale-cli_<version>_darwin_arm64.tar.gzdocker-compose.yaml, with product images pinned to that releaseSHA256SUMS, covering the four archives and Compose file
The block below picks the archive for your operating system and CPU, verifies
its checksum, and extracts it only when the check passes. It downloads v2.1.0
unless you set VERSION to another tag with CLI assets first.
VERSION="${VERSION:-v2.1.0}"
OS="$(uname -s | tr '[:upper:]' '[:lower:]')"
case "$(uname -m)" in
x86_64 | amd64) ARCH=amd64 ;;
aarch64 | arm64) ARCH=arm64 ;;
*) ARCH="$(uname -m)" ;;
esac
ARCHIVE="kafscale-cli_${VERSION}_${OS}_${ARCH}.tar.gz"
BASE="https://github.com/KafScale/platform/releases/download/${VERSION}"
curl -fLO "$BASE/$ARCHIVE"
curl -fLO "$BASE/SHA256SUMS"
if command -v sha256sum >/dev/null 2>&1; then
SHA256_CHECK="sha256sum -c -"
else
SHA256_CHECK="shasum -a 256 -c -"
fi
grep " ${ARCHIVE}$" SHA256SUMS | $SHA256_CHECK && tar -xzf "$ARCHIVE"
./kafscale-cli --version
./kafscale-cli --help
Supported platforms are linux and darwin on amd64 and arm64. Install
the binary in a directory on your PATH, or continue using ./kafscale-cli.
For restore/prune, configure S3 and etcd access.
The operations guide covers Kubernetes
port-forwarding. kafscale-cli <command> --help lists each command’s flags.
Build from source
For unreleased changes, install the Go version in go.mod and run:
go build -o bin/kafscale-cli ./cmd/kafscale-cli
./bin/kafscale-cli --help