Skip to content

config 命令 ​

管理 vx 配置。

语法 ​

bash
vx config <subcommand> [options]

子命令 ​

show ​

显示当前配置。

bash
vx config show

get ​

获取配置值。

bash
vx config get <key>

set ​

设置配置值。

bash
vx config set <key> <value>

reset ​

重置为默认配置。

bash
vx config reset

edit ​

在编辑器中打开配置文件。

bash
vx config edit

示例 ​

bash
# 显示所有配置
vx config show

# 获取特定值
vx config get defaults.auto_install

# 设置值
vx config set defaults.auto_install true

# 重置配置
vx config reset

# 编辑配置文件
vx config edit

配置键 ​

键描述默认值
defaults.auto_install自动安装缺失的工具true
defaults.parallel_install并行安装工具true
defaults.cache_duration缓存持续时间7d

参见 ​

基于 MIT 许可证发布