kubectl config

Manage kubeconfig

medium risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

View and switch contexts. See the flags and examples below, and run `man kubectl` for the full reference.

Common flags
FlagMeaning
get-contextsList
current-contextShow
use-contextSwitch
set-context --current --namespaceSet default namespace
Examples
kubectl config get-contextsList contexts · explain & risk-check →
Related
kubeconfig
Open the full explainer →More in Kubernetes & Helm

Reference text is hand-written and may be incomplete — check man kubectl for your version. Test destructive commands on a non-production system first.