Get Deno

Get Deno

Getting started with Deno is easy. Unlike other languages you might be familiar with, Deno only uses a single executable for all of its functionality.

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

For other ways to install or to install different versions, see the deno.land/#installation docs.

Confirm Deno works on your system by running the remote welcome module.

deno run https://deno.land/std/examples/welcome.ts
  
Download https://deno.land/std/examples/welcome.ts
Warning Implicitly using latest version (0.103.0) for https://deno.land/std/examples/welcome.ts
Download https://deno.land/std@0.103.0/examples/welcome.ts
Check https://deno.land/std/examples/welcome.ts
Welcome to Deno!
  

Deno lets you know with a warning that you ran a remote module without explicitly specifying a version. It defaulted to the latest module version. You can specify the version like this:

deno run https://deno.land/std@0.103.0/examples/welcome.ts
  
Check https://deno.land/std@0.103.0/examples/welcome.ts
Welcome to Deno!
  

Upgrade Deno

When you want to upgrade Deno on your system, run deno upgrade.

deno upgrade
  
Looking up latest version
Found latest version 1.12.2
Checking https://github.com/denoland/deno/releases/download/v1.12.2/deno-aarch64-apple-darwin.zip
Deno is upgrading to version 1.12.2 Archive: /var/folders/my/d7wknx5x35s5v13f91pftpn00000gn/T/.tmppzgK1b/deno.zip
inflating: 27.4 MiB / 27.4 MiB (100.0%)
deno Upgraded successfully