Kubectl Use Context -
: You don't have to manually specify URLs, certificates, or users every time you change environments. kubectl context like a pro - DEV Community
kubectl use context dev kubectl config current-context # Output: dev kubectl use context
A companion to kubectx specifically for switching between namespaces. : You don't have to manually specify URLs,