dtctl auth status
Usage
dtctl auth status
Aliases
whoami
Description
Show the credentials and active region dtctl is currently configured with: the (masked) access key, whether a secret key is stored, the active region ID, the API endpoint and the config file all of it is read from. This command works offline and never sends the key anywhere.
Example
dtctl auth status
Response
In text output (the default), this command returns the following columns: Setting, Value.
Pass --output json to get the full response object instead.
Example output:
Setting Value
------- -----
Config file /home/you/.config/dtctl/config.yaml
API endpoint https://console.dt.net.tr/api/v1
Access key 5e62******a804
Secret key set
Region ID 1
Related Commands
| Command | Description |
|---|---|
| dtctl auth init | Initialize dtctl with an API key |
| dtctl auth logout | Remove the stored credentials |
| 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 |