CLI

CLI Overview

Query Kubernetes cluster costs, workloads, and optimization recommendations from your terminal. Table, JSON, and YAML output for scripts and CI.

kubeadapt is a command-line tool for querying Kubernetes cluster costs and optimization data via the Kubeadapt API. List clusters, inspect workloads, pull cost breakdowns by team or department, and fetch rightsizing recommendations directly from your terminal.

Output formats include table (default), JSON, and YAML, making it easy to integrate with scripts and CI pipelines.

bash
kubeadapt get clusters -o json

What you can do

  • Cost visibility: break down spending by cluster, namespace, team, or department
  • Rightsizing recommendations: list pending, applied, or dismissed recommendations with estimated savings
  • Workload inspection: view CPU/memory requests, efficiency scores, and per-workload costs
  • Node and storage data: list nodes, node groups, and persistent volumes with cost info
  • CI/CD integration: pipe JSON output to jq, feed into scripts, or use in GitHub Actions workflows
Note

Requires a Kubeadapt account and API key. Generate one at app.kubeadapt.io or see Authentication.

Global flags

These flags apply to every command.

FlagShortTypeDefaultDescription
--api-keystringAPI key (overrides stored config)
--api-urlstringAPI URL (overrides config)
--configstring~/.kubeadapt/config.yamlConfig file path
--output-ostringtableOutput format: table, json, yaml
--no-colorboolfalseDisable colored output
--verbose-vboolfalseEnable debug logging

Next steps