Skip to content

Commit a5ab93d

Browse files
anshulguleriaAnshul Guleria
and
Anshul Guleria
authored
docs: add asdf commands for latest version (#124)
Co-authored-by: Anshul Guleria <[email protected]>
1 parent f029842 commit a5ab93d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,22 @@ cargo install deno
7575
**With [asdf](https://asdf-vm.com) and [asdf-deno](https://github.com/asdf-community/asdf-deno):**
7676

7777
```sh
78-
asdf plugin-add deno https://github.com/asdf-community/asdf-deno.git
78+
asdf plugin add deno
7979

80+
# Get latest version of deno available
81+
DENO_LATEST=$(asdf latest deno)
82+
83+
asdf install deno $DENO_LATEST
84+
85+
# Activate globally with:
86+
asdf global deno $DENO_LATEST
87+
88+
# Activate locally in the current folder with:
89+
asdf local deno $DENO_LATEST
90+
91+
#======================================================
92+
# If you want to install specific version of deno then use that version instead
93+
# of DENO_LATEST variable example
8094
asdf install deno 1.0.0
8195

8296
# Activate globally with:

0 commit comments

Comments
 (0)