You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Bump last_modified.
- Replace four-paragraph intro with two that get to the point and stop
presupposing the reader followed the docs in order.
- Rename 'An example subcommand - deno run' to 'Running scripts', which
is what the section actually covers.
- Rewrite the verb-fragment intros on the lock-file and cache sections
('Affect commands...') into proper sentences with a subject.
- Drop the empty 'Runtime flags' meta-heading; its sub-sections now sit
directly under 'Common flags'.
- Replace bare '>' shell prompts in the type-checking examples with
unprefixed commands to match the rest of the page.
- Expand the one-line 'Permission flags' section into a short summary
that names the major flags and their short forms.
- Rename 'Other runtime flags' to 'Inspector and environment flags' so
the heading describes the table.
- Fix two 'here' anchor texts.
Copy file name to clipboardExpand all lines: runtime/getting_started/command_line_interface.md
+29-40Lines changed: 29 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
last_modified: 2025-11-05
2
+
last_modified: 2026-05-28
3
3
title: Command line interface
4
4
description: "A comprehensive guide to using Deno's command-line interface (CLI). Learn about running scripts, managing permissions, using watch mode, and configuring Deno's runtime behavior through command-line flags and options."
5
5
oldUrl:
@@ -9,26 +9,15 @@ oldUrl:
9
9
- /runtime/manual/tools/
10
10
---
11
11
12
-
Deno is a command line program. The Deno command line interface (CLI) can be
13
-
used to run scripts, manage dependencies, and even compile your code into
14
-
standalone executables. You may be familiar with some simple commands having
15
-
followed the examples thus far. This page will provide a more detailed overview
16
-
of the Deno CLI.
12
+
The Deno CLI runs scripts, manages dependencies, and compiles code into
13
+
standalone executables. Each subcommand (`run`, `test`, `compile`, etc.) has its
14
+
own flags; run `deno help` or `deno <subcommand> --help` to see them.
17
15
18
-
The Deno CLI has a number of subcommands (like `run`, `init` and `test`, etc.).
19
-
They are used to perform different tasks within the Deno runtime environment.
20
-
Each subcommand has its own set of flags and options (eg --version) that can be
21
-
used to customize its behavior.
16
+
For the complete list of subcommands and flags, see the
17
+
[CLI reference](/runtime/reference/cli/). The rest of this page walks through
18
+
the most useful flags in more detail.
22
19
23
-
You can view all of the available commands and flags by running the `deno help`
24
-
subcommand in your terminal, or using the `-h` or `--help` flags.
25
-
26
-
Check out the [CLI reference guide](/runtime/reference/cli/) for a further
27
-
documentation on all the subcommands and flags available. We'll take a look at a
28
-
few commands in a bit more detail below to see how they can be used and
29
-
configured.
30
-
31
-
## An example subcommand - `deno run`
20
+
## Running scripts
32
21
33
22
You can run a local TypeScript or JavaScript file by specifying its path
34
23
relative to the current working directory:
@@ -166,22 +155,23 @@ running browser page on its own.
166
155
167
156
### Integrity flags (lock files)
168
157
169
-
Affect commands which can download resources to the cache: `deno install`,
170
-
`deno run`, `deno test`, `deno doc`, and `deno compile`.
158
+
These flags apply to commands that download resources to the cache
0 commit comments