KubeHero docs

CLI reference

Every subcommand and every flag of the kubehero binary.

The kubehero binary is a Go single-static binary. Install with brew install kubehero, apt install kubehero, or download from GitHub Releases.

Global flags

FlagDefaultDescription
--clusterTarget cluster name. Falls back to current-context from kubeconfig.
--contextcurrentkubeconfig context to use.
--output, -otabletable, json, yaml, wide.
--verbose, -vVerbose logging.
--dry-runtrue for mutating commandsPreview changes without applying.

kubehero scan

Scan a cluster for rightsizing opportunities.

kubehero scan --cluster prod-us-east-1 --report waste
kubehero scan --report gpu
FlagValuesNotes
--reportwaste · gpu · overcommitWhich signal to rank by.
--namespace, -nNarrow to a single namespace.
--since7dObservation window (1h, 24h, 7d, 30d).

kubehero rightsize

Recommend or apply rightsizing for a workload.

kubehero rightsize vectordb-ingress --dry-run=true
kubehero rightsize vectordb-ingress --dry-run=false
FlagDefaultNotes
--dry-runtrueWhen false, mutates the workload. Safety caps from the matching RightsizingPolicy still apply.
--target-utilizationpolicyOverride targetUtilization for this call.

kubehero apply

Apply a BudgetPolicy, CeilingPolicy, or RightsizingPolicy from a YAML file.

kubehero apply -f policies/prod-budget.yaml

kubehero cap --arm

Arm a CeilingPolicy so its escalation plan can execute when triggered. No-op if the policy already has humanArm: false.

kubehero cap --arm --policy prod-monthly-ceiling

kubehero undo

Reverse the last action for an audit-log entry, within the cooldown window (default 10 minutes).

kubehero undo <audit-id>