Skip to content

vfox

字数: 0 字 时长: 0 分钟

使用体验

管理 python

使用体验一般,无法查看已有sdk,需要自己搜索,比较麻烦。命令也是比较麻烦

window

PowerShell环境下执行

安装 vfox

sh
scoop install vfox

# 挂载vfox到你的Shell
if (-not (Test-Path -Path $PROFILE)) { New-Item -Type File -Path $PROFILE -Force }; Add-Content -Path $PROFILE -Value 'Invoke-Expression "$(vfox activate pwsh)"'

# 如果 PowerShell 提示:在此系统上禁止运行脚本,那么请你以管理员身份重新运行 PowerShell输入如下命令
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
# 之后输入 Y,按回车
y

安装版本

sh
vfox add python
vfox install python@3.13.5
vfox ls
# 打开新的终端
vfox use -g python@3.13.5

vfox remove python
sh
vfox - vfox is a tool for runtime version management.
vfox available      List all available plugins
vfox add [--alias <sdk-name> --source <url/path> ] <plugin-name>  Add a plugin or plugins from official repository or custom source, `--alias` and `--source` are not supported when adding multiple plugins.
vfox remove <sdk-name>          Remove a plugin
vfox update [<sdk-name> | --all] Update a specified or all plugin(s)
vfox info <sdk-name>            Show plugin info
vfox search <sdk-name>          Search available versions of a SDK
vfox install <sdk-name>@<version> Install the specified version of SDK
vfox uninstall <sdk-name>@<version> Uninstall the specified version of SDK
vfox use [--global --project --session] <sdk-name>[@<version>]   Use the specified version of SDK for different scope
vfox list [<sdk-name>]              List all installed versions of SDK
vfox current [<sdk-name>]           Show the current version of SDK
vfox config [<key>] [<value>]       Setup, view config
vfox cd [--plugin] [<sdk-name>]     Launch a shell in the VFOX_HOME, SDK directory, or plugin directory
vfox upgrade                    Upgrade vfox to the latest version 
vfox help                      Show this help message