oc config rename-context

Rename a context from the kubeconfig file

Example usage
  # Rename the context 'old-name' to 'new-name' in your kubeconfig file
  oc config rename-context old-name new-name