The Tanzu Service Mesh CLI is integrated with the VMware Tanzu command-line interface (Tanzu CLI) as a plugin. You use the Tanzu Service Mesh plugin to perform the Tanzu Service Mesh CLI commands from the Tanzu CLI.

You can use the Tanzu CLI to perform tasks to create and manage your VMware Tanzu infrastructure. With the Tanzu CLI, you can download plugins that provide commands that perform different functions for different Tanzu products, including Tanzu Service Mesh. A Tanzu CLI plugin is an executable binary that packages a group of CLI commands. For more information about the Tanzu CLI, see the VMware Tanzu CLI Documentation.

To be able to use the Tanzu Service Mesh CLI commands from the Tanzu CLI, you must install the Tanzu Service Mesh plugin.

Prerequisites

Procedure

  1. Run the following command.
    tanzu plugin install service-mesh

    This command installs the latest version of the plugin. To install a specific version of the plugin, specify the version with the version flag. For example, to install version 1.0.0 of the plugin, run:

    tanzu plugin install service-mesh --version 1.0.0

    The Tanzu Service Mesh plugin is downloaded from the Tanzu CLI plugins repository and is installed.

  2. To verify that you installed the Tanzu Service Mesh plugin successfully, run the following command.
    tanzu plugin list

    The list of plugins in the output includes the Tanzu Service Mesh plugin and shows the version of the plugin.

What to do next

To start using the Tanzu Service Mesh CLI, you need to Log in to the Tanzu Service Mesh CLI.

To get Help on all the available CLI commands, run tanzu sm -h.