dtctl config set
Kullanım
dtctl config set <key> <value>
Takma Adlar
s
Açıklama
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.
Örnek
dtctl config set api.base_url https://console.dt.net.tr/api/v1
dtctl config set output json
İlgili Komutlar
| Command | Description |
|---|---|
| dtctl config list | Geçerli ayarları gösterin |
| dtctl config unset | Bir ayarı kaldırın |
Genel Bayraklar
| Option | Description |
|---|---|
--api-url | Bu komutu farklı bir API uç noktasına gönderin, örneğin bir test ortamına (varsayılan "https://console.dt.net.tr/api/v1") |
--config, -c | Özel bir yapılandırma dosyası belirtin Varsayılan: ~/.config/dtctl/config.yaml |
--no-headers | Betik yazımı için sütun başlıklarını gizleyin Varsayılan: false |
--output, -o | Çıktı biçimi: text, wide, vertical, json. text terminale sığdırır, wide hiçbir zaman kısaltmaz, vertical her alanı ayrı satırda yazar Varsayılan: text |