| title | Getting Started |
|---|---|
| description | Install dtvem and get up and running in minutes. |
| order | 0 |
| category | user-guide |
Get dtvem installed and managing your runtimes in just a few minutes.
Windows (PowerShell as Administrator):
irm dtvem.io/install.ps1 | iexRequires administrator privileges. Adds dtvem to System PATH for all users.
macOS / Linux:
curl -fsSL dtvem.io/install.sh | bashWindows (PowerShell):
iex "& { $(irm dtvem.io/install.ps1) } -UserInstall"Does not require administrator privileges. Adds dtvem to User PATH.
macOS / Linux:
curl -fsSL dtvem.io/install.sh | bash -s -- --user-installNote: On Windows, System PATH is evaluated before User PATH. If you have system-installed runtimes (Node.js, Python, Ruby), they will take priority over dtvem-managed versions with user installation.
| Platform | Install Directory | Shims Directory |
|---|---|---|
| Windows | %USERPROFILE%\.dtvem |
%USERPROFILE%\.dtvem\shims |
| macOS | ~/.dtvem |
~/.dtvem/shims |
| Linux | ~/.local/share/dtvem |
~/.local/share/dtvem/shims |
On all platforms, dtvem supports the XDG Base Directory Specification. If $XDG_DATA_HOME is set, dtvem uses $XDG_DATA_HOME/dtvem instead.
Set DTVEM_ROOT before installing to use a custom location:
Windows (PowerShell as Administrator):
[Environment]::SetEnvironmentVariable("DTVEM_ROOT", "C:\dtvem", "Machine")
$env:DTVEM_ROOT = "C:\dtvem"
irm dtvem.io/install.ps1 | iexmacOS / Linux:
# Add to shell profile, then source it or restart terminal
export DTVEM_ROOT=/opt/dtvem
curl -fsSL dtvem.io/install.sh | bash- Download the latest release from GitHub Releases
- Extract the archive (contains
dtvemanddtvem-shim) - Move both binaries to a directory in your PATH (e.g.,
/usr/local/bin) - Run
dtvem initto configure your shell, then restart your terminal
Alternatively, you can place the binaries in any directory and manually add it to the beginning of your system PATH before running dtvem init.
After installation, verify that dtvem is working:
> dtvem --versionInstall a specific version of a runtime:
# Install Python 3.12
> dtvem install python 3.12.0
# Install Node.js 20
> dtvem install node 20.10.0Set a default version to use system-wide:
> dtvem global python 3.12.0
> dtvem global node 20.10.0Pin versions for your project by creating a .dtvem/runtimes.json file:
> dtvem local python 3.12.0This creates a config file that ensures everyone on your team uses the same version. Commit it to Git!
If your project already has a .dtvem/runtimes.json, install all runtimes at once:
> dtvem installSee which versions are active:
> dtvem current
> dtvem list python- Core Concepts — Learn how dtvem works
- Commands — Full command documentation
- Configuration — Environment variables and config files