DVM creates one Lima VM per project. The VM name is:
$DVM_PREFIX-$name
With the default prefix, dvm new myapp creates dvm-myapp.
dvm new myappCreation does this:
- creates the Lima VM from
DVM_TEMPLATE, defaulting totemplate:fedora - disables host directory mounts by default
- starts the VM
- runs core setup
- runs user setup scripts
- creates a per-VM SSH key at
~/.ssh/id_ed25519_myappinside the VM - prints the public SSH key
dvm myappThis is a shortcut for:
dvm enter myappThe shell starts in DVM_CODE_DIR, which defaults to ~/code in the guest.
Run a single command in the VM:
dvm ssh myapp uname -aPrint the VM's public GitHub SSH key:
dvm key myappRerun setup in one VM:
dvm setup myappRerun setup in every DVM-managed VM:
dvm setup-allThis is the intended way to refresh packages, config, and dotfiles snapshots. DVM does not remove packages automatically; removals should be explicit and manual.
dvm listdvm list shows VM names without the prefix.
dvm rm myappBefore deleting, DVM searches Git repositories under DVM_CODE_DIR in the VM. If any
repo has unstaged changes, staged changes, or untracked files, deletion is refused.
Force deletion:
dvm rm myapp --forceIf a GPG signing subkey was created for the VM, rm prints the recorded subkey
fingerprint and the matching revoke command. Deleting a VM does not revoke GPG keys
automatically.
Check local requirements and paths:
dvm doctorEnable zsh completion:
source <(dvm completion zsh)