summaryrefslogtreecommitdiff
path: root/docs/tools/script_installer.md
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2020-07-31 11:12:20 +0200
committerGitHub <noreply@github.com>2020-07-31 11:12:20 +0200
commit4afb4b6e46de2ed536a3c9828d70d7799b5b6d03 (patch)
treeaa31f3ea3b5ca01a97e13a777eed51c7dcbd17c4 /docs/tools/script_installer.md
parent6e7208bec2911ac0d1729f334fc90bc50b8f9203 (diff)
feat: add $STD_VERSION replacement variable in docs (#6922)
Diffstat (limited to 'docs/tools/script_installer.md')
-rw-r--r--docs/tools/script_installer.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/tools/script_installer.md b/docs/tools/script_installer.md
index 68db10d61..e588a39d6 100644
--- a/docs/tools/script_installer.md
+++ b/docs/tools/script_installer.md
@@ -12,8 +12,8 @@ the specified CLI flags and main module. It is placed in the installation root's
Example:
```shell
-$ deno install --allow-net --allow-read https://deno.land/std/http/file_server.ts
-[1/1] Compiling https://deno.land/std/http/file_server.ts
+$ deno install --allow-net --allow-read https://deno.land/std@$STD_VERSION/http/file_server.ts
+[1/1] Compiling https://deno.land/std@$STD_VERSION/http/file_server.ts
✅ Successfully installed file_server.
/Users/deno/.deno/bin/file_server
@@ -22,7 +22,7 @@ $ deno install --allow-net --allow-read https://deno.land/std/http/file_server.t
To change the executable name, use `-n`/`--name`:
```shell
-deno install --allow-net --allow-read -n serve https://deno.land/std/http/file_server.ts
+deno install --allow-net --allow-read -n serve https://deno.land/std@$STD_VERSION/http/file_server.ts
```
The executable name is inferred by default:
@@ -36,7 +36,7 @@ The executable name is inferred by default:
To change the installation root, use `--root`:
```shell
-deno install --allow-net --allow-read --root /usr/local https://deno.land/std/http/file_server.ts
+deno install --allow-net --allow-read --root /usr/local https://deno.land/std@$STD_VERSION/http/file_server.ts
```
The installation root is determined, in order of precedence:
@@ -55,7 +55,7 @@ You must specify permissions that will be used to run the script at installation
time.
```shell
-deno install --allow-net --allow-read https://deno.land/std/http/file_server.ts -p 8080
+deno install --allow-net --allow-read https://deno.land/std@$STD_VERSION/http/file_server.ts -p 8080
```
The above command creates an executable called `file_server` that runs with