This guide explains how to install the Cilium and Hubble command-line tools on a Linux system.
Before you deploy Cilium in your Kubernetes cluster, you’ll need to install two command-line tools locally: the Cilium CLI and the Hubble CLI. This guide walks you through downloading, verifying, and installing both CLIs on Linux.
Make sure you have curl, sha256sum, and tar installed. You’ll also need sudo privileges to copy the binary into /usr/local/bin.
Copy
Ask AI
# Determine the latest stable version and target architectureCILIUM_CLI_VERSION=$(curl -s https://raw.githubusercontent.com/cilium/cilium-cli/main/stable.txt)CLI_ARCH=amd64if [ "$(uname -m)" = "aarch64" ]; then CLI_ARCH=arm64fi# Download the tarball and its SHA-256 checksumcurl -L --fail --remote-name-all \ https://github.com/cilium/cilium-cli/releases/download/${CILIUM_CLI_VERSION}/cilium-linux-${CLI_ARCH}.tar.gz{,.sha256sum}# Verify the checksum before extractionsha256sum --check cilium-linux-${CLI_ARCH}.tar.gz.sha256sum# Extract and install the binarysudo tar xzvf cilium-linux-${CLI_ARCH}.tar.gz -C /usr/local/bin# Remove downloaded filesrm cilium-linux-${CLI_ARCH}.tar.gz{,.sha256sum}
This process:
Fetches the correct binary for your CPU architecture.
Validates it with the downloaded SHA-256 checksum.
# Get the latest stable Hubble version and set architectureHUBBLE_VERSION=$(curl -s https://raw.githubusercontent.com/cilium/hubble/master/stable.txt)HUBBLE_ARCH=amd64if [ "$(uname -m)" = "aarch64" ]; then HUBBLE_ARCH=arm64fi# Download the Hubble tarball and checksumcurl -L --fail --remote-name-all \ https://github.com/cilium/hubble/releases/download/${HUBBLE_VERSION}/hubble-linux-${HUBBLE_ARCH}.tar.gz{,.sha256sum}# Validate the downloadsha256sum --check hubble-linux-${HUBBLE_ARCH}.tar.gz.sha256sum# Install the binarysudo tar xzf hubble-linux-${HUBBLE_ARCH}.tar.gz -C /usr/local/bin# Cleanuprm hubble-linux-${HUBBLE_ARCH}.tar.gz{,.sha256sum}
hubble v1.16.0 compiled with go1.22.5 on linux/amd64
For alternative versions, browse the Hubble GitHub releases page.Now that both the Cilium and Hubble CLIs are installed, you’re ready to proceed with deploying Cilium onto your Kubernetes cluster.