CLI

CLI Installation

Install the Kubeadapt CLI via Homebrew, shell script, Go install, or build from source. Available for macOS, Linux, and Windows.

Install kubeadapt to query Kubernetes cost data from your terminal.

Homebrew

Homebrew is the recommended install method on macOS and Linux.

bash
brew install kubeadapt/tap/kubeadapt

To upgrade to the latest version:

bash
brew upgrade kubeadapt/tap/kubeadapt

Install script

The install script downloads the correct binary for your OS and architecture and places it in /usr/local/bin.

bash
curl -sSL https://raw.githubusercontent.com/kubeadapt/kubeadapt-cli/main/scripts/install.sh | bash

Go install

If you have Go installed, you can install directly from the module path.

bash
go install github.com/kubeadapt/kubeadapt-cli@latest
Note

Requires Go 1.26 or later. The binary will be placed in $GOPATH/bin (or $HOME/go/bin if GOPATH is not set).

Build from source

Clone the repository and build with Task.

bash
git clone https://github.com/kubeadapt/kubeadapt-cli.git cd kubeadapt-cli task build

The compiled binary will be in bin/.

Windows

Download the latest .zip from GitHub Releases, extract it, and add the binary to your PATH.

Uninstall

MethodCommand
Homebrewbrew uninstall kubeadapt/tap/kubeadapt
Install scriptrm /usr/local/bin/kubeadapt
Go installrm $(go env GOPATH)/bin/kubeadapt
Source buildRemove the cloned directory

Verify installation

After installing, confirm the binary is on your PATH:

bash
kubeadapt version

You should see output like:

text
kubeadapt v0.5.0 Commit: a1b2c3d Built: 2026-03-11T10:00:00Z Go version: go1.26.0 OS/Arch: darwin/arm64
Warning

If kubeadapt: command not found after installation, check that the binary location is in your PATH. For Homebrew: $(brew --prefix)/bin. For Go install: $(go env GOPATH)/bin. For the install script: /usr/local/bin.

Next