Ana içeriğe geç

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​

CommandDescription
dtctl config listGeçerli ayarları gösterin
dtctl config unsetBir ayarı kaldırın

Genel Bayraklar​

OptionDescription
--api-urlBu 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-headersBetik 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