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
Related Commands
| Command | Description |
|---|---|
| dtctl config list | Show the current settings |
| dtctl config unset | Remove a setting |
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 |