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
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)use
: 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.