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
Related Commands
| Command | Description |
|---|---|
| dtctl auth init | Initialize dtctl with an API key |
| dtctl auth logout | Remove the stored credentials |
| dtctl auth status | Show which account dtctl is authenticated as |
Global Flags
| Option | Description |
|---|---|
--api-url | Send this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1") |
--config, -c | Specify a custom config file Default: ~/.config/dtctl/config.yaml |
--no-headers | Omit the column headers, for scripting Default: false |
--output, -o | Output format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line Default: text |