Skip to content

CLI

CLI Overview

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

Last updated


kubeadapt is a command-line client for the Kubeadapt REST API. It lists clusters, workloads, nodes, namespaces, teams, and departments with their hourly cost, and fetches rightsizing recommendations.

Output is a table by default; use -o json or -o yaml for scripts and CI.

bash
kubeadapt get clusters -o json

What you can do

  • Cost visibility: hourly cost by cluster, namespace, workload, pod, team, or department
  • Rightsizing recommendations: list pending, applied, dismissed, or archived recommendations with estimated hourly savings
  • Workload inspection: view CPU and memory requests, usage, replica counts, and hourly cost per workload
  • Node data: list nodes and node groups with instance type, zone, capacity type, and hourly cost
  • CI/CD integration: pipe JSON output to jq, feed it into scripts, or run it in GitHub Actions workflows

Global flags

These flags apply to every command.

FlagShortTypeDefaultDescription
--api-keystringAPI key (overrides the environment and config file)
--api-urlstringAPI URL (overrides the environment and config file)
--configstringSee ConfigurationConfig file path
--output-ostringtableOutput format: table, json, yaml
--no-colorboolfalseDisable colored output
--verbose-vboolfalsePrint API request and response details to stderr
--quiet-qboolfalseSuppress non-essential output (pagination footer, update notice); resume cursors are still printed

Next steps