Configures the Tanzu CLI.
System commands | Primarily used for: Tanzu CLI
Syntax:
tanzu config [COMMAND]
-h, --help
Help text.
Manages custom certificate configuration for a given host.
Available commands:
Adds a custom certificate configuration.
tanzu config cert add [FLAGS]
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
--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
.
Deletes a custom certificate configuration.
tanzu config cert delete [HOST] [FLAGS]
To delete the custom certificate for test.vmware.com
:
tanzu config cert delete test.vmware.com
-h, --help
Help text.
Lists available certificate configurations.
tanzu config cert list [FLAGS]
To list available certificate configurations in yaml
format:
tanzu config cert list -o yaml
-h, --help
Help text.
-o, --output
Output format. Supported values are yaml
, json
, and table
.
Updates a custom certificate configuration.
tanzu config cert update [HOST] [FLAGS]
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
--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
.
Manages the status of the end-user license agreement (EULA) for the Tanzu CLI.
Available commands:
Enables you to accept the EULA for the Tanzu CLI.
tanzu config eula accept [FLAGS]
To accept the EULA for the Tanzu CLI:
tanzu config eula accept
-h, --help
Help text.
Shows and enables you to accept the EULA for the Tanzu CLI.
tanzu config eula show [FLAGS]
To show the EULA for the Tanzu CLI:
tanzu config eula show
-h, --help
Help text.
Gets the current configuration of the Tanzu CLI.
tanzu config get [FLAGS]
To get the current configuration:
tanzu config get
-h, --help
Help text.
Initializes the default Tanzu CLI configuration.
tanzu config init [FLAGS]
To initialize the default configuration:
tanzu config init
-h, --help
Help text.
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.
tanzu config set PATH VALUE [FLAGS]
NoteThe command allows setting
VALUE
to an empty string.
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
-h, --help
Help text.
Unsets configuration values at the specified path. Supported paths are features.global.FEATURE
, features.PLUGIN.FEATURE
, and env.VARIABLE
.
tanzu config unset PATH [FLAGS]
To unset AZURE_NODE_MACHINE_TYPE
in the configuration of the Tanzu CLI:
tanzu config unset env.AZURE_NODE_MACHINE_TYPE
-h, --help
Help text.