Skip to main content

dtctl auth switch

Usage​

dtctl auth switch

Description​

Replace the stored API key with a different one, without being asked to confirm.

Use this to move dtctl to another DT Cloud account. Because region IDs belong to the account that owns them, the active region is cleared when the key changes: run dtctl region init afterwards to select a region for the new account.

Example​

dtctl auth switch
CommandDescription
dtctl auth initInitialize dtctl with an API key
dtctl auth logoutRemove the stored credentials
dtctl auth statusShow which account dtctl is authenticated as

Global Flags​

OptionDescription
--api-urlSend this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1")
--config, -cSpecify a custom config file
Default: ~/.config/dtctl/config.yaml
--no-headersOmit the column headers, for scripting
Default: false
--output, -oOutput format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line
Default: text