Skip to content
/ dvm Public

๐Ÿš€ Fast and simple version manger for Deno without runtime dependencies

License

Notifications You must be signed in to change notification settings

axetroy/dvm

Folders and files

NameName
Last commit message
Last commit date
Jan 13, 2023
Sep 4, 2021
Mar 2, 2022
Dec 2, 2022
Mar 2, 2022
Dec 19, 2020
Mar 8, 2021
Jan 13, 2021
Mar 19, 2022
Jan 13, 2021
Jan 13, 2021
Mar 22, 2022
Mar 17, 2022
Mar 17, 2022
Dec 2, 2022
Dec 2, 2022
Mar 2, 2022
Dec 10, 2019

Repository files navigation

dvm

English | ไธญๆ–‡็ฎ€ไฝ“

Build Status Go Report Card Latest Version 996.icu Repo Size

dvm

dvm is a command-line tool to manage Deno versions.

Focus on the simplest way to manage versions.

Features:

  • Cross-platform support
  • Easy to use
  • No runtime dependencies
  • Zero configuration
  • Fully compatible with installed Deno
Command Description
dvm current Display currently activated version of Deno
dvm ls List installed versions
dvm ls-remote List remote versions available for install
dvm install <version> | latest Download and install specified/latest Deno version
dvm uninstall <version> Uninstall specified Deno version
dvm use <version> Use specified Deno version
dvm unused Unused Deno
dvm exec <version> [commands] Run Deno command on <version>
dvm upgrade [version] Upgrade dvm
dvm destroy Uninstall dvm

Usage

Whether you have installed Deno or not will not affect the use of dvm.

# install
$ dvm install v0.26.0
$ deno -V
deno v0.26.0

# use another version
$ dvm install v0.25.0
$ dvm use v0.25.0
$ deno -V
deno v0.25.0

# uninstall deno
$ dvm uninstall v0.25.0

# for more command
$ dvm --help

Install

  1. Cask(Cross-Platform)

    cask install github.com/axetroy/dvm
  2. Shell (Mac/Linux)

    curl -fsSL https://github.com/release-lab/install/raw/v1/install.sh | bash -s -- -r=axetroy/dvm
  3. PowerShell (Windows):

    $r="axetroy/dvm";iwr https://github.com/release-lab/install/raw/v1/install.ps1 -useb | iex
  4. Github release page

    download the executable file and put the executable file to $PATH

  5. Build and install from source using Golang (All platforms)

    go install github.com/axetroy/dvm/cmd/dvm@v1.3.11

Upgrade

You can re-download the executable and overwrite the original file.

or run the following command to upgrade

$ dvm upgrade # upgrade to latest
$ dvm upgrade v0.2.0 # Update to specified version

Uninstall

run the following command to uninstall dvm or remove dvm executable file and $HOME/.dvm folder by manual

$ dvm destroy

Related

justjavac/dvm Node.js implement

imbsky/dvm Reason implement

License

The Anti-996 License