KubeTidy Usage¶
This section walks through the most common ways to use KubeTidy day to day, whether you're working in PowerShell or through kubectl.
- PowerShell Usage for
Invoke-KubeTidy - Krew Plugin Usage for
kubectl kubetidy
Main workflows¶
- list clusters and contexts in a kubeconfig
- remove unreachable clusters
- keep selected clusters excluded from cleanup
- export selected contexts to a filtered kubeconfig
- merge multiple kubeconfig files
- preview changes with dry-run mode
- inspect a kubeconfig with
reportmode - emit structured
jsonoryamloutput for automation
For a full list of commands, flags, output modes, and merge behavior, see the CLI Reference.