Skip to content

config

CLI の設定を管理します。

config get

設定値を取得します。

bash
lm config get <key>

対応キー: format, active_profile

config set

設定値を変更します。

bash
lm config set <key> <value>
キー説明
formattable/json/yaml/csvデフォルト出力フォーマット
active_profileプロファイル名アクティブプロファイル

config list

全設定値を表示します。

bash
lm config list

config validate

設定ファイルの整合性をチェックします。

bash
lm config validate
config.yaml:        ok (1 profile(s))
credentials.yaml:   ok
tokens.yaml:        ok (default: valid, staging: expired)
Active profile:     default

チェック対象:

  • config.yaml — YAML パース、プロファイル数
  • credentials.yaml — YAML パース
  • tokens.yaml — YAML パース、各トークンの有効期限

設定に問題がある場合は exit code 1 で終了します。