1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00
denoland-deno/docs/getting_started/installation.md
Kid a3e0766e6a
docs: match install section with website (#9665)
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2021-03-15 12:46:08 +01:00

1.9 KiB

Installation

Deno works on macOS, Linux, and Windows. Deno is a single binary executable. It has no external dependencies.

Download and install

deno_install provides convenience scripts to download and install the binary.

Using Shell (macOS and Linux):

curl -fsSL https://deno.land/x/install/install.sh | sh

Using PowerShell (Windows):

iwr https://deno.land/x/install/install.ps1 -useb | iex

Using Scoop (Windows):

scoop install deno

Using Chocolatey (Windows):

choco install deno

Using Homebrew (macOS):

brew install deno

Build and install from source using Cargo:

cargo install deno --locked

Deno binaries can also be installed manually, by downloading a zip file at github.com/denoland/deno/releases. These packages contain just a single executable file. You will have to set the executable bit on macOS and Linux.

Testing your installation

To test your installation, run deno --version. If this prints the Deno version to the console the installation was successful.

Use deno help to see help text documenting Deno's flags and usage. Get a detailed guide on the CLI here.

Updating

To update a previously installed version of Deno, you can run:

deno upgrade

This will fetch the latest release from github.com/denoland/deno/releases, unzip it, and replace your current executable with it.

You can also use this utility to install a specific version of Deno:

deno upgrade --version 1.0.1

Building from source

Information about how to build from source can be found in the Contributing chapter.