Skip to main content

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
CommandDescription
dtctl auth initInitialize dtctl with an API key
dtctl auth logoutRemove the stored credentials
dtctl auth switchSwitch to a different API key

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