xvm-windows is the Windows version of xvm, and its usage is basically consistent with xvm.
Installation
git clone https://github.com/duan0120/xvm-windows.git %USERPROFILE%/.xvm
Configure environment variables
XVM_ROOT=%USERPROFILE%/.xvm
Add the following paths to %PATH%
%XVM_ROOT%\versions\node\default
%XVM_ROOT%\versions\go\default\bin
%XVM_ROOT%\versions\python\default
%XVM_ROOT%\versions\python\default\Scripts
Usage
Check version
xvm -v
Get help
xvm -h
xvm help node
Node.js
List available versions
xvm node ls-remote
xvm node ls-remote --lts
xvm node list
Install specific version
xvm node install v18.19.1
Uninstall specific version
xvm node uninstall v18.19.1
Switch version
xvm node use v18.19.1
Go
List available versions
xvm go ls-remote
xvm go list
Install specific version
xvm go install go1.19.2
# arch: amd64/arm64/386, default arch: amd64
xvm go install go1.13.10 --arch=amd64
Uninstall specific version
xvm go uninstall go1.19.2
Switch version
xvm go use go1.19.2
Python
List available versions
xvm python ls-remote
xvm python list
Install specific version
xvm python install 3.12.1
# arch: amd64/arm64/386, default arch: amd64
xvm python install 3.12.1 --arch=arm64
Create virtual environment
xvm python alias test 3.12.1
Activate virtual environment
xvm python use test
Uninstall specific version
xvm python uninstall 3.12.1
# remove environment
xvm python uninstall test
Switch version
xvm python use 3.12.1