tanzu config

Configures the Tanzu CLI.

Usage

System commands | Primarily used for: Tanzu CLI

Syntax:

tanzu config [COMMAND]

Global Flags

-h, --help

Help text.

tanzu config cert

Manages custom certificate configuration for a given host.

Available commands:

tanzu config cert add

Adds a custom certificate configuration.

Usage

tanzu config cert add [FLAGS]

Examples

To add a CA certificate for test.vmware.com:

tanzu config cert add --host test.vmware.com --ca-cert PATH-TO-CERTIFICATE

To add a CA certificate for test.vmware.com:8443:

tanzu config cert add --host test.vmware.com:8443 --ca-cert PATH-TO-CERTIFICATE

To skip certificate verification for test.vmware.com:

tanzu config cert add --host test.vmware.com  --skip-cert-verify true

Flags

--ca-cert

The path to the CA certificate.

-h, --help

Help text.

--host

The host address or the host address and port number.

--insecure

Allows the use of HTTP when communicating with the host. Defaults to false.

--skip-cert-verify

Skips the server’s TLS certificate verification. Defaults to false.

tanzu config cert delete

Deletes a custom certificate configuration.

Usage

tanzu config cert delete [HOST] [FLAGS]

Example

To delete the custom certificate for test.vmware.com:

tanzu config cert delete test.vmware.com

Flags

-h, --help

Help text.

tanzu config cert list

Lists available certificate configurations.

Usage

tanzu config cert list [FLAGS]

Example

To list available certificate configurations in yaml format:

tanzu config cert list -o yaml

Flags

-h, --help

Help text.

-o, --output

Output format. Supported values are yaml, json, and table.

tanzu config cert update

Updates a custom certificate configuration.

Usage

tanzu config cert update [HOST] [FLAGS]

Examples

To update the CA certificate for test.vmware.com:

tanzu config cert update test.vmware.com --ca-cert PATH-TO-CERTIFICATE

To update the CA certificate for test.vmware.com:5443:

tanzu config cert update test.vmware.com:5443 --ca-cert PATH-TO-CERTIFICATE

To skip certificate verification for test.vmware.com:

tanzu config cert update test.vmware.com  --skip-cert-verify true

Flags

--ca-cert

The path to the CA certificate.

-h, --help

Help text.

--insecure

Allows the use of HTTP when communicating with the host. Supported values are true and false.

--skip-cert-verify

Skips the server’s TLS certificate verification. Supported values are true and false.

tanzu config eula

Manages the status of the end-user license agreement (EULA) for the Tanzu CLI.

Available commands:

tanzu config eula accept

Enables you to accept the EULA for the Tanzu CLI.

Usage

tanzu config eula accept [FLAGS]

Example

To accept the EULA for the Tanzu CLI:

tanzu config eula accept

Flags

-h, --help

Help text.

tanzu config eula show

Shows and enables you to accept the EULA for the Tanzu CLI.

Usage

tanzu config eula show [FLAGS]

Example

To show the EULA for the Tanzu CLI:

tanzu config eula show

Flags

-h, --help

Help text.

tanzu config get

Gets the current configuration of the Tanzu CLI.

Usage

tanzu config get [FLAGS]

Example

To get the current configuration:

tanzu config get

Flags

-h, --help

Help text.

tanzu config init

Initializes the default Tanzu CLI configuration.

Usage

tanzu config init [FLAGS]

Example

To initialize the default configuration:

tanzu config init

Flags

-h, --help

Help text.

tanzu config set

Sets the value for the specified path. Supported paths are features.global.FEATURE, features.PLUGIN.FEATURE, and env.VARIABLE. For more information, see Tanzu CLI Configuration.

Usage

tanzu config set PATH VALUE [FLAGS]
Note

The command allows setting VALUE to an empty string.

Examples

To set TANZU_CLI_CEIP_OPT_IN_PROMPT_ANSWER to Yes in the configuration of the Tanzu CLI:

tanzu config set env.TANZU_CLI_CEIP_OPT_IN_PROMPT_ANSWER Yes

To enable the dual-stack-ipv4-primary feature for the cluster plugin:

tanzu config set features.cluster.dual-stack-ipv4-primary true

Flags

-h, --help

Help text.

tanzu config unset

Unsets configuration values at the specified path. Supported paths are features.global.FEATURE, features.PLUGIN.FEATURE, and env.VARIABLE.

Usage

tanzu config unset PATH [FLAGS]

Example

To unset AZURE_NODE_MACHINE_TYPE in the configuration of the Tanzu CLI:

tanzu config unset env.AZURE_NODE_MACHINE_TYPE

Flags

-h, --help

Help text.

check-circle-line exclamation-circle-line close-line
Scroll to top icon