kubectl how to list all contexts You can view all contexts via the config command $ kubectl config get-contexts