Install the CLI
Use the Prebuilt Binary
-
Download the binary:
# Choose your architecture (amd64 or arm64). ARCH="amd64" # Download the release binary. curl -LO "https://github.com/longhorn/cli/releases/download/1.7.0/longhornctl-linux-${ARCH}"
-
Validate the binary:
# Download the checksum for your architecture. curl -LO "https://github.com/longhorn/cli/releases/download/1.7.0/longhornctl-linux-${ARCH}.sha256" # Verify the downloaded binary matches the checksum. echo "$(cat longhornctl-linux-${ARCH}.sha256 | awk '{print $1}') longhornctl-linux-${ARCH}" | sha256sum --check
-
Install the binary:
sudo install longhornctl-linux-${ARCH} /usr/local/bin/longhornctl
-
Verify installation:
longhornctl version
Build From Source
See this document in the GitHub repository.