System commands | Primarily used for: Tanzu CLI
The tanzu plugin
command group manages Tanzu CLI plugins. This command group includes the following commands:
tanzu plugin [COMMAND]
-h, --help
Help text.
Removes existing plugins from any previous CLI installations.
tanzu plugin clean [FLAGS]
To remove existing CLI plugins from your machine:
tanzu plugin clean
-h, --help
Help text.
Deletes the specified plugin.
tanzu plugin delete PLUGIN-NAME [FLAGS]
To delete my-plugin
:
tanzu plugin delete my-plugin
-h, --help
Help text.
-t, --target
The target with which the plugin that you are deleting is associated. Supported values are kubernetes
, or k8s
, and mission-control
, or tmc
.
-y, --yes
When --yes
is specified, the command skips the confirmation step.
Describes the specified plugin.
tanzu plugin describe PLUGIN-NAME [FLAGS]
To describe my-plugin
:
tanzu plugin describe my-plugin
-h, --help
Help text.
-t, --target
The target with which the plugin is associated. Supported values are kubernetes
, or k8s
, and mission-control
, or tmc
.
Installs the specified plugin. For more information, see Install New Plugins.
tanzu plugin install PLUGIN-NAME [FLAGS]
To install my-plugin
tanzu plugin install my-plugin
-h, --help
Help text.
-l, --local
The path to the local plugin discovery source that you want to use. For more information, see Install Local Plugins.
-t, --target
The target with which the plugin is associated. Supported values are kubernetes
, or k8s
, and mission-control
, or tmc
.
-v, --version
The version of the plugin. Defaults to latest
.
Lists available Tanzu CLI plugins.
tanzu plugin list [FLAGS]
To list available plugins:
tanzu plugin list
-h, --help
Help text.
-l, --local
The path to the local plugin discovery source that you want to use.
-o, --output
Output format. Supported values are yaml
, json
, and table
.
Manages plugin discovery sources. A discovery source provides metadata about available plugins, their supported versions, and how to download them.
Commands:
Adds a discovery source.
tanzu plugin source add [FLAGS]
To add a local discovery source, for example, my-local
:
tanzu plugin source add --name my-local --type local --uri path/to/local/discovery/source
To add an OCI discovery source, for example, my-oci
:
tanzu plugin source add --name my-oci --type oci --uri projects.registry.vmware.com/tkg/tanzu-plugins/standalone:latest
The URI used above is an example.
-h, --help
Help text.
-n, --name
The name of the discovery source.
-t, --type
The type of the discovery source. Supported values are oci
and local
.
-u, --uri
The URI of the discovery source. For the oci
type, the URI must be an OCI image.
Deletes the specified discovery source.
tanzu plugin source delete SOURCE-NAME [FLAGS]
To delete my-oci
:
tanzu plugin discovery delete my-oci
-h, --help
Help text.
Lists available discovery sources.
tanzu plugin source list [FLAGS]
To list available discovery sources:
tanzu plugin source list
-h, --help
Help text.
-o, --output
Output format. Supported values are yaml
, json
, and table
.
Updates the specified discovery source.
tanzu plugin source update SOURCE-NAME [FLAGS]
To update a local discovery source, for example, my-local
:
tanzu plugin source update my-local --type local --uri /tmp/path/to/local/discovery
To update an OCI discovery source, for example, my-oci
:
tanzu plugin source update my-oci --type oci --uri projects.registry.vmware.com/tkg/tanzu-plugins/standalone:latest
The URI used above is an example.
-h, --help
Help text.
-t, --type
The type of the discovery source. Supported values are oci
and local
.
-u, --uri
The URI of the discovery source. For the oci
type, the URI must be an OCI image.
Synchronizes Tanzu CLI plugins. For more information, see Sync New Plugins.
tanzu plugin sync [FLAGS]
To synchronize Tanzu CLI plugins:
tanzu plugin sync
-h, --help
Help text.
Upgrades the specified Tanzu CLI plugin.
tanzu plugin upgrade PLUGIN-NAME [FLAGS]
To upgrade my-plugin
:
tanzu plugin upgrade my-plugin
-h, --help
Help text.
-t, --target
The target with which the plugin is associated. Supported values are kubernetes
, or k8s
, and mission-control
, or tmc
.