WinRVM is a fast, lightweight Ruby Version Manager specifically designed for Windows. It combines a high-performance Rust core with a native PowerShell integration to manage parallel Ruby installations effortlessly.
- Fast & Efficient: Core logic written in Rust.
- Native PowerShell Integration: Seamlessly switches Ruby versions in your current session.
- Portable: Downloads and manages portable RubyInstaller builds (no admin rights required for usage).
- Zero Dependencies: Does not require an existing Ruby installation to bootstrap.
- Windows 10/11
- PowerShell 5.0+ or PowerShell Core (pwsh)
- Rust (for building from source)
-
Clone the repository:
git clone https://github.com/DaveEshopGuide/winrvm.git cd winrvm
-
Run the installer:
.\install.ps1
This script will:
- Build the binary.
- Install files to
~/.winrvm. - Add the module to your PowerShell profile.
Note: You may need to restart your terminal or run
. $PROFILEfor changes to take effect.
-
Clone the repository:
cd winrvm-core cargo build --release cd ..
-
Install the binary: Create the directory and copy the binary:
New-Item -ItemType Directory -Force -Path "$HOME\.winrvm\bin" Copy-Item "winrvm-core\target\release\winrvm-core.exe" -Destination "$HOME\.winrvm\bin\winrvm-core.exe"
-
Enable the PowerShell Module: Add the module to your PowerShell profile to load it automatically:
Add-Content $PROFILE "`nImport-Module 'C:\path\to\winrvm\winrvm.psm1'"
Replace
C:\path\to\winrvm\with the actual path where you cloned the repo.Or just import it for the current session:
Import-Module ./winrvm.psm1
See what versions of Ruby can be installed (fetched from RubyInstaller releases):
winrvm list-remoteDownload and extract a specific version (includes DevKit UCRT builds):
winrvm install 3.3.9Set the Ruby version for the current PowerShell session:
winrvm use 3.3.9
ruby -vSee what you have installed locally:
winrvm listRemove a version:
winrvm uninstall 3.3.9WinRVM uses a split architecture:
winrvm-core(Rust): Handles network requests, downloading 7-zip archives, extraction, and file management. It is installed to~/.winrvm/bin/winrvm-core.exe.winrvm(PowerShell): A wrapper function that intercepts theusecommand. It captures the output from the Rust binary (which tells it where the bin path is) and modifies the$env:Pathof the running PowerShell process.
MIT