Skip to main content
Version: 0.9.x

tctl login

tctl login

Configures the credentials for the given user

Synopsis

Configures the credentials for the given user.

This command will exchange the given credentials for an access token that can be stored in the configuration profile. If the credentials are not provided as arguments to the login command, an interactive prompt will ask for all required information.

Credentials can also be configured in the following environment variables:

  • TCTL_LOGIN_TENANT
  • TCTL_LOGIN_USERNAME
  • TCTL_LOGIN_PASSWORD

The token exchange is done using the cluster settings defined in the current profile, and the user information will be stored in a user with the name <cluster name>-<username>. This user will be also set as the user for the current profile.

tctl login [flags]

Options

      --tenant string     Name of the tenant
--username string Username
--password string Password
-h, --help help for login

Options inherited from parent commands

      --config string    Path to the  file to use
--debug Print debug messages for all requests and responses
-p, --profile string Use specific profile (default "default")