From e9afe320c00e6c098d2a3d3656f1a23b43712a22 Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Fri, 8 Dec 2023 12:43:22 -0500 Subject: [PATCH] Add doc to use package managers to upgrade the CLI (#608) Signed-off-by: Marc Khouzam --- docs/quickstart/install.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/docs/quickstart/install.md b/docs/quickstart/install.md index 5316b9ee9..681b4f4ad 100644 --- a/docs/quickstart/install.md +++ b/docs/quickstart/install.md @@ -43,6 +43,8 @@ brew tap vmware-tanzu/tanzu # Only needs to be done once for the machine brew install tanzu-cli ``` +To upgrade to a new release: `brew update && brew upgrade tanzu-cli` + To uninstall: `brew uninstall tanzu-cli` #### Installing a Specific Version @@ -53,11 +55,11 @@ a specific version by first extracting it to a local tap: ```console brew tap-new local/tap -brew extract --version=0.90.1 vmware-tanzu/tanzu/tanzu-cli local/tap -brew install tanzu-cli@0.90.1 +brew extract --version=1.0.0 vmware-tanzu/tanzu/tanzu-cli local/tap +brew install tanzu-cli@1.0.0 # To uninstall such an installation -brew uninstall tanzu-cli@0.90.1 +brew uninstall tanzu-cli@1.0.0 ``` #### Installing a Pre-Release @@ -93,9 +95,11 @@ you can explicitly specify the version you want to install using the `--version` ```console choco install tanzu-cli --version -# example: choco install tanzu-cli --version 0.90.0 +# example: choco install tanzu-cli --version 1.0.0 ``` +To upgrade to a new release: `choco upgrade tanzu-cli` + To uninstall: `choco uninstall tanzu-cli` #### Installing a Specific Version @@ -136,6 +140,8 @@ sudo apt update sudo apt install -y tanzu-cli ``` +To upgrade to a new release: `sudo apt update && sudo apt upgrade -y tanzu-cli` + To uninstall: `sudo apt remove tanzu-cli` #### Installing a Specific Version @@ -188,6 +194,8 @@ EOF sudo yum install -y tanzu-cli # dnf install can also be used ``` +To upgrade to a new release: `sudo yum update -y tanzu-cli` + To uninstall: `sudo yum remove tanzu-cli` #### Installing a Specific Version