A minimal tool for managing Dart SDK versions.
In your home directory, run:
git clone https://github.com/cbracken/dvm.git .dvm
Add the following to your .bashrc
or .zshrc
:
if [[ -f ~/.dvm/scripts/dvm ]]; then
. ~/.dvm/scripts/dvm
fi
Optionally, installation in a custom location is supported by setting and
exporting DVM_ROOT
in your environment prior to the above invocation.
Commands:
alias
: manage Dart version aliaseshelp
: display usageimplode
: delete dvm and all installed Dart versionsinstall
: install a Dart versionlist
: list installed Dart versionslistall
: list all available Dart versions (--dev
for dev channel)upgrade
: upgrade dvm to the latest versionuse
: select a Dart version to use (--default
to set as default)version
: Display the dvm version number
To remove dvm and all installed Dart versions:
dvm implode
Inspired by gvm.