Skip to main content

dtctl config set

Usage​

dtctl config set <key> <value>

Aliases​

s

Description​

Write a setting to the config file so every later command uses it.

Settable keys: api.base_url API endpoint every command is sent to, e.g. a test deployment output Default output format: text, wide, vertical or json

Use --api-url instead when you want to reach another endpoint just once, without changing the stored setting.

Example​

dtctl config set api.base_url https://console.dt.net.tr/api/v1
dtctl config set output json
CommandDescription
dtctl config listShow the current settings
dtctl config unsetRemove a setting

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