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 jsonWhat 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.
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--api-key | string | API key (overrides the environment and config file) | ||
--api-url | string | API URL (overrides the environment and config file) | ||
--config | string | See Configuration | Config file path | |
--output | -o | string | table | Output format: table, json, yaml |
--no-color | bool | false | Disable colored output | |
--verbose | -v | bool | false | Print API request and response details to stderr |
--quiet | -q | bool | false | Suppress non-essential output (pagination footer, update notice); resume cursors are still printed |
Next steps
- Installation: install with Homebrew,
go install, or a release binary - Authentication: store your API key and connect to the API
- Command Reference: every command, flag, and example
- API Reference: the REST API that the CLI wraps