Skip to content

cbracken/dvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dvm: Dart Version Manager

A minimal tool for managing Dart SDK versions.

Installing

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.

Usage

Commands:

  • alias: manage Dart version aliases
  • help: display usage
  • implode: delete dvm and all installed Dart versions
  • install: install a Dart version
  • list: list installed Dart versions
  • listall: list all available Dart versions (--dev for dev channel)
  • upgrade: upgrade dvm to the latest version
  • use: select a Dart version to use (--default to set as default)
  • version: Display the dvm version number

Uninstalling

To remove dvm and all installed Dart versions:

dvm implode

Credits

Inspired by gvm.