Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/axetroy/dvm

๐Ÿš€ Fast and simple version manger for Deno without runtime dependencies
https://github.com/axetroy/dvm

deno dvm version-manager

Last synced: 10 days ago
JSON representation

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

Awesome Lists containing this project

README

        

![dvm](https://socialify.git.ci/axetroy/dvm/image?description=1&font=KoHo&forks=1&issues=1&language=1&logo=https%3A%2F%2Fdeno.land%2Flogo.svg&owner=1&pattern=Circuit%20Board&pulls=1&stargazers=1&theme=Light)

English | [ไธญๆ–‡็ฎ€ไฝ“](README_zh-CN.md)

[![Build Status](https://github.com/axetroy/dvm/workflows/ci/badge.svg)](https://github.com/axetroy/dvm/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/axetroy/dvm)](https://goreportcard.com/report/github.com/axetroy/dvm)
![Latest Version](https://img.shields.io/github/v/release/axetroy/dvm.svg)
[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu)
![Repo Size](https://img.shields.io/github/repo-size/axetroy/dvm.svg)

## dvm

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

Focus on the simplest way to manage versions.

Features:

- [x] Cross-platform support
- [x] Easy to use
- [x] No runtime dependencies
- [x] Zero configuration
- [x] 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 \ \| latest | Download and install specified/latest Deno version |
| dvm uninstall \ | Uninstall specified Deno version |
| dvm use \ | Use specified Deno version |
| dvm unused | Unused Deno |
| dvm exec \ [commands] | Run Deno command on \ |
| dvm upgrade [version] | Upgrade dvm |
| dvm destroy | Uninstall dvm |

### Usage

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

```bash
# 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](https://github.com/axetroy/cask.rs)(Cross-Platform)

```bash
cask install github.com/axetroy/dvm
```

2. Shell (Mac/Linux)

```bash
curl -fsSL https://github.com/release-lab/install/raw/v1/install.sh | bash -s -- -r=axetroy/dvm
```

3. PowerShell (Windows):

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

4. [Github release page](https://github.com/axetroy/dvm/releases)

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

5. Build and install from source using [Golang](https://golang.org) (All platforms)

```bash
go install github.com/axetroy/dvm/cmd/[email protected]
```

### Upgrade

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

or run the following command to upgrade

```bash
$ 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

```shell
$ dvm destroy
```

### Related

[justjavac/dvm](https://github.com/justjavac/dvm) Node.js implement

[imbsky/dvm](https://github.com/imbsky/dvm) Reason implement

### License

The [Anti-996 License](LICENSE)