A minimal tool for managing Dart SDK versions.
In your home directory, run:
git clone https://github.com/cbracken/dvm.git .dvmAdd the following to your .bashrc or .zshrc:
if [[ -f ~/.dvm/scripts/dvm ]]; then
. ~/.dvm/scripts/dvm
fiOptionally, 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 (--devfor dev channel)upgrade: upgrade dvm to the latest versionuse: select a Dart version to use (--defaultto set as default)version: Display the dvm version number
To remove dvm and all installed Dart versions:
dvm implodeInspired by gvm.