From df466c704122377f1eca23cb5a140148b5455205 Mon Sep 17 00:00:00 2001 From: guoxudong Date: Tue, 26 Nov 2019 11:15:54 +0800 Subject: [PATCH] update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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!