dtctl auth logout
Usage
dtctl auth logout [flags]
Description
Remove the stored API key and the active region from your local config file, leaving dtctl unauthenticated. The API key itself is not revoked — delete it in the DT Cloud console if you no longer want it to work. Run dtctl auth init to authenticate again.
Example
dtctl auth logout
dtctl auth logout --force
Flags
| Option | Description |
|---|---|
--force, -f | Remove the credentials without asking for confirmation Default: false |
Related Commands
| Command | Description |
|---|---|
| dtctl auth init | Initialize dtctl with an API key |
| dtctl auth status | Show which account dtctl is authenticated as |
| dtctl auth switch | Switch to a different API key |
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 |