To view available Kubernetes contexts, use the `kubectl config get-contexts` command. This lists all contexts in your kubeconfig file, helping you manage multiple environments effectively. To see the current context, use `kubectl config current-context`.
kubectl config get-contexts
kubectl config current-context