CLI plugin: package
| Primarily used for: Tanzu Kubernetes Grid, Tanzu Kubernetes Grid 2 with Supervisor, Tanzu Application Platform
The tanzu package
command group manages Tanzu packages. This command group includes the following commands:
tanzu package [FLAGS]
And
tanzu package [COMMAND]
You can run the above tanzu package
commands in either of the following modes:
kctrl
mode activated (default)kctrl
mode deactivated (deprecated)The sections below document the tanzu package
command group in the default mode.
--column
Filter to show only specific columns from tables. For example, --column=namespaces, name
.
--debug
Includes debug output.
-h
, --help
Help text.
--kube-api-burst
Sets the Kubernetes API client burst limit. Default value is 1000.
--kube-api-qps
Sets the Kubernetes API client QPS limit. Default value is 1000.
--kubeconfig
Path to the kubeconfig
file.
--kubeconfig-context
Overrides the current kubeconfig
context.
--kubeconfig-yaml
Passes the contents of the kubeconfig
file as YAML.
-y, --yes
When --yes
is specified, the command skips the confirmation step.
Manages available packages. For more information, see Packages.
Commands:
-h, --help
Help text.
Shows the details of an available package.
tanzu package available get AVAILABLE-PACKAGE-NAME [FLAGS]
And:
tanzu package available get AVAILABLE-PACKAGE-NAME/AVAILABLE-PACKAGE-VERSION [FLAGS]
To get the details of the contour.tanzu.vmware.com
package in the example-namespace
:
tanzu package available get contour.tanzu.vmware.com --namespace example-namespace
To get the details of v1.17.1+vmware.1-tkg.1 of the contour.tanzu.vmware.com
package in the example-namespace
:
tanzu package available get contour.tanzu.vmware.com/1.17.1+vmware.1-tkg.1 --namespace example-namespace
To get the OpenAPI schema of v1.17.1+vmware.1-tkg.1 of the contour.tanzu.vmware.com
package in example-namespace
:
tanzu package available get contour.tanzu.vmware.com/1.17.1+vmware.1-tkg.1 --namespace example-namespace --values-schema
--default-values-file-output
The location to which you want to save the default configuration of the package, for example, --default-values-file-output contour-data-values.yaml
. You edit and then pass this file to tanzu package install
when installing the package.
-h, --help
Help text.
-n, --namespace
The target namespace. If this flag is not specified, the Tanzu CLI targets the namespace set in kubeconfig
, which is set to default
by default.
-o, --output
Output format. Supported values are yaml
, json
, and table
.
--tty
Forces TTY-like output.
--values-schema
The OpenAPI schema of the package.
Lists all available packages and package versions.
tanzu package available list [FLAGS]
And:
tanzu package list AVAILABLE-PACKAGE-NAME [FLAGS]
To list available packages across all namespaces:
tanzu package available list --all-namespaces
To list available packages only in the default
namespace:
tanzu package available list
To list all versions of the contour.tanzu.vmware.com
package in the example-namespace
:
tanzu package available list contour.tanzu.vmware.com --namespace example-namespace
-A, --all-namespaces
When --all-namespaces
is specified, the command lists available packages from all namespaces.
-h, --help
Help text.
-n, --namespace
The target namespace. If this flag is not specified, the Tanzu CLI targets the namespace set in kubeconfig
, which is set to default
by default.
-o, --output
Output format. Supported values are yaml
, json
, and table
.
--summary
Shows a summarized list of available packages.
--tty
Forces TTY-like output.
--wide
Shows additional information about available packages.
Initializes the specified package. This is an experimental feature. For more information about experimental features, see TKG Feature States.
Installs the specified package. For more information, see Packages.
tanzu package install INSTALLED-PACKAGE-NAME --package AVAILABLE-PACKAGE-NAME --version AVAILABLE-PACKAGE-VERSION [FLAGS]
To install v1.17.1+vmware.1-tkg.1 of the contour.tanzu.vmware.com
package into example-namespace
, without waiting for package reconciliation to complete:
tanzu package install my-contour --package contour.tanzu.vmware.com --namespace example-namespace --version 1.17.1+vmware.1-tkg.1 --wait=false
To install v1.17.1+vmware.1-tkg.1 of the contour.tanzu.vmware.com
package into example-namespace
with the kubeconfig
option:
tanzu package install my-contour --package contour.tanzu.vmware.com --namespace example-namespace --version 1.17.1+vmware.1-tkg.1 --kubeconfig /tmp/my-cluster-kubeconfig
--dangerous-allow-use-of-shared-namespace
Lets you install packages into default
and other shared namespaces.
-h, --help
Help text.
-n, --namespace
The namespace in which to install the package. If --namespace
is not specified, the command targets the namespace set in kubeconfig
, which is set to default
by default.
-p, --package
The name of the package that you are installing.
--service-account-name
The name of an existing service account. This service account is used instead of the default service account to install the package.
--tty
Forces TTY-like output.
--values
Adds or keeps values passed to the PackageInstall
resource by specifying --values-file
. Set to true
by default.
--values-file
The path to the package configuration file.
-v, --version
The version of the package that you are installing.
--wait
Waits for package reconciliation to complete. The default setting is true
. To deactivate the default setting, specify --wait=false
.
--wait-check-interval
The time interval between two package reconciliation status checks. The default setting is 1s
.
--wait-timeout
The timeout value for --wait
. The default setting is 30m0s
.
--ytt-overlay-file
The path to a ytt
overlay file or directory.
--ytt-overlays
Adds or keeps ytt
overlays. Set to true
be default.
Manages installed packages. For more information, see Packages.
Additionally, with the integration kctrl
with Tanzu CLI, new commands are tanzu package installed
commands can be used that manage your package installation. For more information, see kctrl
Integration to learn more.
-h, --help
Help text.
Same as tanzu package install.
Deletes the specified package.
tanzu package installed delete INSTALLED-PACKAGE-NAME [FLAGS]
To delete the my-contour
package from my-package-namespace
:
tanzu package installed delete my-contour -n my-package-namespace
-h, --help
Help text.
-n, --namespace
The namespace of the package that you are deleting. If --namespace
is not specified, the command targets the namespace set in kubeconfig
, which is set to default
by default.
--tty
Forces TTY-like output.
--wait-check-interval
The time interval between two package deletion status checks. The default setting is 1s
.
--wait-timeout
The timeout value for package deletion status checks. The default setting is 5m0s
.
Shows the details of the specified package.
tanzu package installed get INSTALLED-PACKAGE-NAME [FLAGS]
To get the details of the my-contour
package installed in my-package-namespace
:
tanzu package installed get my-contour --namespace my-package-namespace
-h, --help
Help text.
-n, --namespace
The namespace of the installed package. If --namespace
is not specified, the command targets the namespace set in kubeconfig
, which is set to default
by default.
-o, --output
Output format. Supported values are yaml
, json
, and table
.
--tty
Forces TTY-like output.
--values
Gets values
for the package.
--values-file-output
The path to which you want to save the configuration values file.
Activates the reconciliation of the target PackageInstall
.
tanzu package installed kick INSTALLED-PACKAGE-NAME [FLAGS]
To activate the reconciliation of the my-contour
package:
tanzu package installed kick my-contour
-h
, help
Help text.
-n
, --namespace
The namespace of the installed package. If --namespace
is not specified, the command targets the namespace set in kubeconfig
, which is set to default
by default.
--tty
Forces TTY-like output.
--wait
Wait for reconciliation to complete. The default setting is true
. To deactivate the default setting, specify --wait=false
.
--wait-check-interval
The wait time between checks during package reconciliation. The default setting is 2s
.
--wait-timeout
The timeout value for --wait
. The default setting is 5m0s
.
Lists installed packages.
tanzu package installed list [FLAGS]
To list installed packages across all namespaces:
tanzu package installed list --all-namespaces
To list installed packages only in the default
namespace:
tanzu package installed list
To list installed packages in my-package-namespace
:
tanzu package installed list --namespace my-package-namespace
-A, --all-namespaces
When --all-namespaces
is specified, the command lists installed packages from all namespaces.
-h, --help
Help text.
-n, --namespace
The namespace of the installed package. If not specified, tanzu package installed list
targets the namespace set in kubeconfig
, which is set to default
by default.
-o, --output
Output format. Supported values are yaml
, json
, and table
.
--tty
Forces TTY-like output.
Pauses the reconciliation of the target PackageInstall
.
tanzu package installed pause INSTALLED-PACKAGE-NAME [FLAGS]
To pause the reconciliation of the my-contour
package:
tanzu package installed pause my-contour
-h
, help
Help text.
-n
, --namespace
The namespace of the installed package. If --namespace
is not specified, the command targets the namespace set in kubeconfig
, which is set to default
by default.
--tty
Forces TTY-like output.
Shows the status of the app created by the target PackageInstall
.
tanzu package installed status INSTALLED-PACKAGE-NAME [FLAGS]
To see the status for the my-contour
package:
tanzu package installed status my-contour
-h
, help
Help text.
-n
, --namespace
The namespace of the installed package. If --namespace
is not specified, the command targets the namespace set in kubeconfig
, which is set to default
by default.
--tty
Forces TTY-like output.
Updates the current version or configuration of the specified package.
tanzu package installed update INSTALLED-PACKAGE-NAME [FLAGS]
To update the my-contour
package installed in my-package-namespace
to v1.17.1+vmware.1-tkg.1:
tanzu package installed update my-contour --version 1.17.1+vmware.1-tkg.1 --namespace my-package-namespace
To update both the my-contour
package version and configuration:
tanzu package installed update my-contour -v 1.17.1+vmware.1-tkg.1 --values-file contour-default-values.yaml --namespace my-package-namespace
--dangerous-allow-use-of-shared-namespace
Lets you update packages in default
and other shared namespaces.
-h, --help
Help text.
-n, --namespace
The namespace of the installed package. If --namespace
is not specified, the command targets the namespace set in kubeconfig
, which is set to default
by default.
-p, --package-name
The name of the package that you are updating.
--tty
Forces TTY-like output.
--values
Adds or keeps values passed to the PackageInstall
resource by specifying --values-file
. Set to true
by default. When you update the version of the package only, the Tanzu CLI does not change the existing values for the package. If you want to delete the existing values when updating the version of the package, set the flag to false
.
--values-file
The path to the package configuration file.
-v, --version
The version that you are updating the package to.
--wait
Waits for package reconciliation to complete. The default setting is true
. To deactivate the default setting, specify --wait=false
.
--wait-check-interval
The time interval between two package reconciliation status checks. The default setting is 1s
.
--wait-timeout
The timeout value for --wait
. The default setting is 30m0s
.
--ytt-overlay-file
The path to a ytt
overlay file or directory.
--ytt-overlays
Adds or keeps ytt
overlays. Set to true
be default.
Releases the specified package. This is an experimental feature. For more information about experimental features, see TKG Feature States.
Manages package repositories. For more information, see Package Repositories.
Commands:
-h, --help
Help text.
Adds a package repository.
tanzu package repository add REPOSITORY-NAME --url REPOSITORY-URL [FLAGS]
To add the repository named my-repository
to my-repository-namespace
:
tanzu package repository add my-repository --url projects.registry.vmware.com/tkg/my-repo:v1.0.0 --namespace my-repository-namespace
The repository URL used above is an example.
--dangerous-allow-use-of-shared-namespace
Lets you add package repositories to default
and other shared namespaces.
-h, --help
Help text.
-n, --namespace
The target namespace. If this flag is not specified, the Tanzu CLI targets the namespace set in kubeconfig
, which is set to default
by default.
--tty
Forces TTY-like output.
--url
The OCI registry URL of the package repository bundle.
--wait
Waits for package repository reconciliation to complete. The default setting is true
. To deactivate the default setting, specify --wait=false
.
--wait-check-interval
The time interval between two checks of the package repository reconciliation status. The default setting is 1s
.
--wait-timeout
The timeout value for --wait
. The default setting is 5m0s
.
Deletes the specified package repository.
tanzu package repository delete REPOSITORY-NAME [FLAGS]
To delete my-repository
from my-repository-namespace
:
tanzu package repository delete my-repository --namespace my-repository-namespace
-h, --help
Help text.
-n, --namespace
The target namespace. If this flag is not specified, the Tanzu CLI targets the namespace set in kubeconfig
, which is set to default
by default.
--tty
Forces TTY-like output.
--wait
Waits for package repository reconciliation to complete. Defaults to true
. To deactivate the default setting, specify --wait=false
.
--wait-check-interval
The time interval between two checks of the package repository reconciliation status. The default setting is 1s
.
--wait-timeout
The timeout value for --wait
. The default setting is 5m0s
.
Shows the details of a package repository.
tanzu package repository get REPOSITORY-NAME [FLAGS]
To get the details of my-repository
from my-repository-namespace
:
tanzu package repository get my-repository --namespace my-repository-namespace
-h, --help
Help text.
-n, --namespace
The target namespace. If this flag is not specified, the Tanzu CLI targets the namespace set in kubeconfig
, which is set to default
by default.
-o, --output
Output format. Supported values are yaml
, json
, and table
.
--tty
Forces TTY-like output.
Activates the reconciliation of the target repository.
tanzu package repository kick [FLAGS]
To activate the reconciliation of my-repository
:
tanzu package repository kick --repository my-repository
-h
, help
Help text.
-n
, --namespace
The namespace of the installed package. If --namespace
is not specified, the command targets the namespace set in kubeconfig
, which is set to default
by default.
-r, --repository
Sets the repository name (required).
--tty
Forces TTY-like output.
--wait
Wait for reconciliation to complete. The default setting is true
. To deactivate the default setting, specify --wait=false
.
--wait-check-interval
The wait time between checks during package repository reconciliation. The default setting is 1s
.
--wait-timeout
The timeout value for --wait
. The default setting is 5m0s
.
Lists all package repositories.
tanzu package repository list [FLAGS]
To list package repositories across all namespaces:
tanzu package repository list --all-namespaces
To list package repositories only in the default
namespace:
tanzu package repository list
-A, --all-namespaces
When --all-namespaces
is not specified, the command lists package repositories from all namespaces.
-h, --help
Help text.
-n
, --namespace
The namespace of the installed package. If --namespace
is not specified, the command targets the namespace set in kubeconfig
, which is set to default
by default.
-o, --output
Output format. Supported values are yaml
, json
, and table
.
--tty
Forces TTY-like output.
This is an experimental feature. For more information about experimental features, see TKG Feature States.
Updates the URL of a package repository.
NoteDo not update the URL of the
tanzu-standard
package repository if the target cluster is connected to VMware Tanzu Mission Control.
tanzu package repository update REPOSITORY-NAME --url REPOSITORY-URL [FLAGS]
To update the URL of my-repository
in the default
namespace:
tanzu package repository update my-repository --url projects.registry.vmware.com/tkg/my-repo:v1.0.1
The repository URL used above is an example.
--dangerous-allow-use-of-shared-namespace
Lets you update package repositories in default
and other shared namespaces.
-h, --help
Help text.
-n, --namespace
The target namespace. If this flag is not specified, the Tanzu CLI targets the namespace set in kubeconfig
, which is set to default
by default.
--tty
Forces TTY-like output.
--url
The OCI registry URL of the package repository bundle.
--wait
Waits for package repository reconciliation to complete. The default setting is true
. To deactivate the default setting, specify --wait=false
.
--wait-check-interval
The time interval between two checks of the package repository reconciliation status. The default setting is 1s
.
--wait-timeout
The timeout value for --wait
. The default setting is 5m0s
.