跳到正文
本頁目錄

lip config

管理配置項。

配置保存在 config.yaml:Windows 為 %APPDATA%\lip\config.yaml,Linux/macOS 為 $XDG_CONFIG_HOME/lip/config.yaml。可用鍵請參見配置參考。

lip config get

shell
lip config get <KEY> [--json]

獲取並顯示指定配置鍵的值。使用 --json 時以 JSON 字符串輸出該值,而不是表格。

lip config set

shell
lip config set <KEY> <VALUE>

將配置鍵設置為給定值。

lip config list

shell
lip config list [--json]

列出所有配置鍵及其值。使用 --json 時以 JSON 對象輸出。

lip config delete

shell
lip config delete <KEY>

通過從配置文件中移除該鍵,將其重置為默認值。