Skip to content

Command install

Chen Su edited this page Jul 26, 2022 · 3 revisions

Command install

Available since v0.1.0.

Download and install the latest or the specific Deno from network. It will skip the download step if binary file was downloaded.

Usage

dvm install [version] [--registry=<registry>]

Option Parameters

  • version

    Specify the installing Deno version. DVM will install the version read from .dvmrc file, or the latest Deno version if the version parameter is not provided.

  • --registry=<registry>

    Since v0.3.4.

    Specify the Deno binary files downloading registry, and the registry downloading link must be <registry>/<version>/deno_<os_arch>.[gz|zip]. Default is https://github.com/denoland/deno/releases/download.

  • --quiet

    Since v0.6.0

    Run command with quiet mode, it'll hide most of the output messages.

Example

  • Install the latest Deno (no .dvmrc file in the current directory):

    dvm install
    # No .dvmrc file found
    #
    # try to getting deno latest version ...
    # Downloading and installing deno v1.15.2...
    # Deno v1.15.2 has installed.
  • Install the specific Deno:

    dvm install v1.0.0
    # Downloading and installing deno v1.0.0...
    # Deno v1.0.0 has installed.
  • Install with .dvmrc file:

    cat .dvmrc
    # v1.0.0
    dvm install
    # Downloading and installing deno v1.0.0...
    # Deno v1.0.0 has installed.
Clone this wiki locally