tanzu login

Logs you in to Tanzu.

Important

The tanzu login command is deprecated. Use tanzu context instead.

Usage

System command: | Primarily used for: Tanzu CLI

Syntax:

tanzu login [FLAGS]
tanzu login [COMMAND]

Aliases

login, lo, and logins

Available Command

tanzu login completion

Ignore this command. To enable command completion for Tanzu CLI commands, use tanzu completion.

Examples

To choose from available servers:

tanzu login

To log in to a server, for example, my-mgmt-cluster, using the --endpoint option:

tanzu login --endpoint "https://login.example.com" --name my-mgmt-cluster

To log in to my-mgmt-cluster using the --kubeconfig and --context options:

tanzu login --kubeconfig /tmp/path/to/kubeconfig --context my-mgmt-cluster-admin@my-mgmt-cluster --name my-mgmt-cluster

To log in to my-mgmt-cluster using the default kubeconfig path and the --context option:

tanzu login --context my-mgmt-cluster-admin@my-mgmt-cluster --name my-mgmt-cluster

To log in to an existing server, for example, my-mgmt-cluster:

tanzu login --server my-mgmt-cluster

Flags

--apiToken

The Tanzu API token for global login.

--context

The kubeconfig context of the target server.

--endpoint

The endpoint that you are logging in to.

--endpoint-ca-certificate

The path to the endpoint CA certificate.

-h, --help

Help text.

--insecure-skip-tls-verify

Skips TLS certificate verification when using --endpoint.

--kubeconfig

The path to the kubeconfig file of the management cluster. If only the --context flag is set, tanzu login reads the KUBECONFIG environment variable. If the KUBECONFIG environment variable is not set, the default kubeconfig path, $HOME/.kube/config, is used.

--name

The name of the server.

--server

The name of the existing server that you are logging in to.

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