This topic tells you how to accept the EULAs, and install the Tanzu CLI and plug-ins on Tanzu Application Platform (commonly known as TAP).
Before downloading and installing Tanzu Application Platform packages, you must accept the End User License Agreements (EULAs) as follows:
-
Sign in to VMware Tanzu Network.
-
Accept or confirm that you have accepted the EULAs for each of the following:
To accept the Tanzu Application Platform EULA:
-
Go to Tanzu Application Platform.
-
Select the Click here to sign the EULA link in the yellow warning box under the release drop-down menu. If the yellow warning box is not visible, the EULA has already been accepted.
-
Select Agree in the bottom-right of the dialog box as seen in the following screenshot.
For information about the supported Kubernetes cluster providers and versions, see Kubernetes cluster requirements.
To set the Kubernetes cluster context:
-
List the existing contexts by running:
kubectl config get-contexts
For example:
$ kubectl config get-contexts CURRENT NAME CLUSTER AUTHINFO NAMESPACE aks-repo-trial aks-repo-trial clusterUser_aks-rg-01_aks-repo-trial * aks-tap-cluster aks-tap-cluster clusterUser_aks-rg-01_aks-tap-cluster
-
If you are managing multiple cluster contexts, set the context to the cluster that you want to use for the Tanzu Application Platform packages installation by running:
kubectl config use-context CONTEXT
Where
CONTEXT
is the cluster that you want to use. For example,aks-tap-cluster
.For example:
$ kubectl config use-context aks-tap-cluster Switched to context "aks-tap-cluster".
The Tanzu CLI and plug-ins enable you to install and use the Tanzu Application Platform functions and features.
The Tanzu CLI core {{ vars.tanzu-cli.url_version }} distributed with Tanzu Application Platform is forward and backward compatible with all supported Tanzu Application Platform versions. Run a single command to install the plug-in group version that matches the Tanzu Application Platform version on any target environment. For more information, see Install Plugins.
Use a package manager to install Tanzu CLI on Windows, Mac, or Linux OS. Alternatively, download and install manually from Tanzu Network, VMware Customer Connect, or GitHub.
Basic installation instructions are provided below. For more information including how to install the Tanzu CLI and CLI plug-ins in Internet-restricted environments, see the [VMware Tanzu CLI](https://docs.vmware.com/en/VMware-Tanzu-CLI/{{ vars.tanzu-cli.url_version }}/tanzu-cli/index.html) documentation.
Note To retain an existing installation of the Tanzu CLI, move the CLI binary from
/usr/local/bin/tanzu
orC:\Program Files\tanzu
on Windows to a different location before following the steps below.
Install using a package manager : To install the Tanzu CLI using a package manager:
-
Follow the instructions for your package manager below. This installs the latest version of the CLI available in the package registry.
-
Homebrew (MacOS):
brew update brew install vmware-tanzu/tanzu/tanzu-cli
-
Chocolatey (Windows):
choco install tanzu-cli
The
tanzu-cli
package is part of the main Chocolatey Community Repository. When a newtanzu-cli
version is released, it might not be available immediately. If the above command fails, run:choco install tanzu-cli --version TANZU-CLI-VERSION
Where
TANZU-CLI-VERSION
is the Tanzu CLI version you want to install.For example:
choco install tanzu-cli --version {{ vars.tanzu-cli.version }}
-
APT (Debian or Ubuntu):
sudo mkdir -p /etc/apt/keyrings/ sudo apt-get update sudo apt-get install -y ca-certificates curl gpg curl -fsSL https://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub | sudo gpg --dearmor -o /etc/apt/keyrings/tanzu-archive-keyring.gpg echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/tanzu-archive-keyring.gpg] https://storage.googleapis.com/tanzu-cli-os-packages/apt tanzu-cli-jessie main" | sudo tee /etc/apt/sources.list.d/tanzu.list sudo apt-get update sudo apt-get install -y tanzu-cli
-
YUM or DNF (RHEL):
cat << EOF | sudo tee /etc/yum.repos.d/tanzu-cli.repo [tanzu-cli] name=Tanzu CLI baseurl=https://storage.googleapis.com/tanzu-cli-os-packages/rpm/tanzu-cli enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub EOF sudo yum install -y tanzu-cli # If you are using DNF, run sudo dnf install -y tanzu-cli.
-
-
Check that the correct version of the CLI is properly installed.
tanzu version version: v{{ vars.tanzu-cli.version }} ...
Install from a binary release : Complete the following steps:
-
Download the Tanzu CLI binary from one of the following locations:
-
VMware Tanzu Network
- Go to VMware Tanzu Network.
- Choose the {{ vars.tap_version }} release from the Release dropdown menu.
- Click the tanzu-core-cli-binaries item from the result set.
- Download the Tanzu CLI binary for your operating system.
-
VMware Customer Connect
- Go to VMware Customer Connect.
- Download the Tanzu CLI binary for your operating system.
-
GitHub
- Go to [Tanzu CLI release v{{ vars.tanzu-cli.version }} on GitHub](https://github.com/vmware-tanzu/tanzu-cli/releases/tag/v{{ vars.tanzu-cli.version }}).
- Download the Tanzu CLI binary for your operating system, for example,
tanzu-cli-windows-amd64.tar.gz
.
-
-
Use an extraction tool to unpack the binary file:
-
macOS:
tar -xvf tanzu-cli-darwin-amd64.tar.gz
-
Linux:
tar -xvf tanzu-cli-linux-amd64.tar.gz
-
Windows:
Use the Windows extractor tool to unzip
tanzu-cli-windows-amd64.zip
.
-
-
Make the CLI available to the system:
-
cd to the directory containing the extracted CLI binary
-
macOS:
Install the binary to
/usr/local/bin
:install tanzu-cli-darwin_amd64 /usr/local/bin/tanzu
-
Linux:
Install the binary to
/usr/local/bin
:sudo install tanzu-cli-linux_amd64 /usr/local/bin/tanzu
-
Windows:
- Create a new
Program Files\tanzu
folder. - Copy the
tanzu-cli-windows_amd64.exe
file into the newProgram Files\tanzu
folder. - Rename
tanzu-cli-windows_amd64.exe
totanzu.exe
. - Right-click the
tanzu
folder, select Properties > Security, and make sure that your user account has the Full Control permission. - Use Windows Search to search for
env
. - Select Edit the system environment variables and click the Environment Variables button.
- Select the
Path
row under System variables, and click Edit. - Click New to add a new row and enter the path to the Tanzu CLI. The path value must not include the
.exe
extension. For example,C:\Program Files\tanzu
.
- Create a new
-
-
Check that the correct version of the CLI is properly installed:
tanzu version version: v{{ vars.tanzu-cli.version }} ...
There is a group of Tanzu CLI plug-ins which extend the Tanzu CLI Core with Tanzu Application Platform specific feature functionality. The plug-ins can be installed as a group with a single command. Versioned releases of the Tanzu Application Platform specific plug-in group align to each supported Tanzu Application Platform version. This makes it easy to switch between different versions of Tanzu Application Platforms environments.
Use the following commands to search for, install, and verify Tanzu CLI plug-in groups.
tanzu plugin group search --show-details
tanzu plugin group search --name vmware-tap/default --show-details
Install the version of the Tanzu Application Platform plug-in group matching your target environment
tanzu plugin install --group vmware-tap/default:v{{ vars.tanzu-cli.plugin_group_version }}
tanzu plugin group get vmware-tap/default:v{{ vars.tanzu-cli.plugin_group_version }}
tanzu plugin list
For air-gapped installation, see the [Installing the Tanzu CLI in Internet-Restricted Environments](https://docs.vmware.com/en/VMware-Tanzu-CLI/{{ vars.tanzu-cli.url_version }}/tanzu-cli/index.html#internet-restricted-install) section of the Tanzu CLI documentation.
For online installation:
- [Deploy Cluster Essentials*](https://{{ vars.staging_toggle }}.vmware.com/en/Cluster-Essentials-for-VMware-Tanzu/{{ vars.url_version }}/cluster-essentials/deploy.html)
- Install Tanzu Application Platform package and profiles
For air-gapped installation:
- [Deploy Cluster Essentials*](https://{{ vars.staging_toggle }}.vmware.com/en/Cluster-Essentials-for-VMware-Tanzu/{{ vars.url_version }}/cluster-essentials/deploy.html)
- Install Tanzu Application Platform in your air-gapped environment
For installation on AWS Cloud:
- Create AWS Resources for Tanzu Application Platform
- [Deploy Cluster Essentials*](https://{{ vars.staging_toggle }}.vmware.com/en/Cluster-Essentials-for-VMware-Tanzu/{{ vars.url_version }}/cluster-essentials/deploy.html)
- Install Tanzu Application Platform package and profiles on AWS
For installation on Azure Cloud:
- Create Azure Resources for Tanzu Application Platform
- [Deploy Cluster Essentials*](https://{{ vars.staging_toggle }}.vmware.com/en/Cluster-Essentials-for-VMware-Tanzu/{{ vars.url_version }}/cluster-essentials/deploy.html)
- Install Tanzu Application Platform package and profiles on Azure
For installation on OpenShift clusters:
- [Deploy Cluster Essentials*](https://{{ vars.staging_toggle }}.vmware.com/en/Cluster-Essentials-for-VMware-Tanzu/{{ vars.url_version }}/cluster-essentials/deploy.html)
- Install the Tanzu Application Platform package and profiles
For GitOps (beta) installation:
-
[Deploy Cluster Essentials*](https://{{ vars.staging_toggle }}.vmware.com/en/Cluster-Essentials-for-VMware-Tanzu/{{ vars.url_version }}/cluster-essentials/deploy.html)
-
Install Tanzu Application Platform through GitOps with External Secrets Operator (ESO)
-
Install Tanzu Application Platform through Gitops with Secrets OPerationS (SOPS)
* When you use a VMware Tanzu Kubernetes Grid cluster, you do not need to install Cluster Essentials because the contents of Cluster Essentials are already installed on your cluster.