Skip to content

Latest commit

 

History

History
82 lines (58 loc) · 1.39 KB

File metadata and controls

82 lines (58 loc) · 1.39 KB

Install

Install DVM by cloning the repository and running install.sh. The installer creates a symlink to bin/dvm, so the checkout remains the DVM core.

Requirements

brew install lima

Make sure the install prefix is on your PATH:

mkdir -p "$HOME/.local/bin"

Stable Install

Use a signed release tag when installing for regular use:

git clone https://github.com/eshlox/dvm.git "$HOME/.local/share/dvm-core"
cd "$HOME/.local/share/dvm-core"
git fetch --tags --force
git tag -v vX.Y.Z
git checkout --detach vX.Y.Z
./install.sh --init

If tag verification fails, do not install that version.

Development Install

Use main only for development or testing:

git clone https://github.com/eshlox/dvm.git "$HOME/.local/share/dvm-core"
cd "$HOME/.local/share/dvm-core"
./install.sh --init

This creates:

~/.local/bin/dvm -> ~/.local/share/dvm-core/bin/dvm

Custom Name Or Prefix

./install.sh --name dvm-dev --prefix "$HOME/bin" --init

Verify

dvm help
dvm init

Update DVM

For a signed release:

cd "$HOME/.local/share/dvm-core"
git fetch --tags --force
git tag -v vX.Y.Z
git checkout --detach vX.Y.Z
./install.sh

For a development checkout:

cd "$HOME/.local/share/dvm-core"
git pull --ff-only
./install.sh

DVM intentionally does not support remote install commands like curl | sh.