diff --git a/README.md b/README.md index 13ca22eb..49ad730f 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ Available Commands: get Displays one or many contexts from the kubeconfig file. help Help about any command merge Merge the kubeconfig files in the specified directory. + rename Rename the contexts of kubeconfig use Sets the current-context in a kubeconfig file version Prints the kubecm version @@ -125,6 +126,15 @@ kubecm delete my-context kubecm use test ``` +### Rename context + +```bash +# Renamed dev to test +kubecm rename -o dev -n test +# Renamed current-context name to dev +kubecm rename -n dev -c +``` + ## Contribute Feel free to open issues and pull requests. Any feedback is highly appreciated!