| title | init |
|---|---|
| description | Initialize dtvem on your system. |
| order | 13 |
| category | user-guide |
| parent | Commands Reference |
Initialize dtvem on your system.
> dtvem init
> dtvem init --yes
> dtvem init --user| Flag | Description |
|---|---|
--user |
Use User PATH instead of System PATH (Windows: no admin required) |
--yes, -y |
Skip confirmation prompts |
- Creates the dtvem directory structure
- Configures PATH to include
~/.dtvem/shims- Standard: Adds to System PATH (requires admin on Windows)
- User (
--user): Adds to User PATH (no admin required)
- Updates shell configuration files as needed
~/.dtvem/
├── shims/ # Shim executables (added to PATH)
├── versions/ # Installed runtime versions
├── config/ # Global configuration
└── cache/ # Cached data
dtvem init updates your shell configuration to add shims to PATH:
| Shell | Configuration File |
|---|---|
| Bash | ~/.bashrc |
| Zsh | ~/.zshrc |
| Fish | ~/.config/fish/config.fish |
| PowerShell | $PROFILE |
# Interactive initialization (standard)
> dtvem init
Creating dtvem directory structure...
Add ~/.dtvem/shims to PATH? [Y/n] y
Updating ~/.bashrc...
✓ dtvem initialized!
Restart your terminal, then run:
dtvem install python 3.12.0
dtvem global python 3.12.0
# Non-interactive initialization
> dtvem init --yes
# User installation (no admin required on Windows)
> dtvem init --userAfter running dtvem init:
- Restart your terminal — Required for PATH changes
- Install a runtime —
dtvem install python 3.12.0 - Set global version —
dtvem global python 3.12.0
You can switch between standard and user installation by running dtvem init again:
# Switch to user install
> dtvem init --user
# Switch back to system install (requires admin)
> dtvem initWhen switching, dtvem will warn about cleaning up the old PATH entry.
- Getting Started — Installation guide
- install — Install runtimes