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
Copy file name to clipboardExpand all lines: runtime/getting_started/command_line_interface.md
+5-26Lines changed: 5 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
last_modified: 2026-05-28
3
3
title: Command line interface
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."
4
+
description: "Practical patterns for Deno's command-line interface: passing script arguments, runtime flag ordering, watch mode and its exclusions, and hot module replacement."
|`target`, `outDir`, `outFile`, `rootDir`| Delete. Deno never emits: code runs directly on the latest V8, and `deno check` type-checks without producing output. |
93
+
|`declaration`, `declarationMap`, `emitDeclarationOnly`| Delete. No emit. Use [`deno doc`](/runtime/reference/cli/doc/) for API documentation. |
94
+
|`sourceMap`, `inlineSourceMap`, `inlineSources`| Delete. Stack traces map to your TypeScript sources automatically. |
95
+
|`esModuleInterop`, `allowSyntheticDefaultImports`| Delete. Deno is ESM-native and handles CommonJS interop in the runtime. |
96
+
|`importHelpers`, `noEmitHelpers`, `downlevelIteration`| Delete. No downleveling happens, so no helpers are emitted. |
97
+
|`resolveJsonModule`| Delete. Import JSON with an attribute instead: `import data from "./data.json" with { type: "json" }`. |
98
+
|`skipLibCheck`| Delete. Deno does not type-check dependencies by default (`deno check --all` opts in). |
99
+
|`module`, `moduleResolution`| Usually delete. Deno defaults to `nodenext`; the supported values are listed in the table below. |
100
+
|`lib`, `types`| Usually delete. Deno's defaults cover its runtime; keep `lib` only for cross-runtime code (see ["lib" property](#using-the-lib-property)). |
101
+
|`strict`, `noImplicit*`, `noUnused*`, other check flags | Keep the ones you want, in `deno.json`'s `compilerOptions`. Note Deno's defaults are already strict (table below). |
102
+
|`paths`, `baseUrl`| Keep if needed for type-time path mapping, or replace with [import maps](/runtime/fundamentals/modules/), which also work at runtime. |
103
+
82
104
## TS Compiler Options
83
105
84
106
Here is a table of compiler options that can be changed, their default in Deno
@@ -179,8 +201,8 @@ using any APIs exclusive to one or the other. In such cases, a typical
179
201
180
202
This should allow most code to be type checked properly by Deno.
181
203
182
-
If you expect to run the code in Deno with the `--unstable` flag, then you
183
-
should add that library to the mix as well:
204
+
If your code uses APIs that are gated behind one of the `--unstable-*` flags,
205
+
add the `deno.unstable` library to the mix as well:
0 commit comments