Deno Flags & Options
JavaScript and TypeScript runtime with built-in tooling.All Deno pages
- deno install --frozen: fail when deno.lock is out of datedeno install --frozen fails with The lockfile is out of date instead of rewriting deno.lock. Use it in CI; --frozen=false, deno.json lock settings and fixes.
- deno run --allow-read, --allow-env, --allow-net: Deno permission flagsDeno blocks file, network and env access unless granted with --allow-* flags; otherwise NotCapable: Requires read access. Scoped flags, -P and -A explained.
- deno run --check: type-check TypeScript before running itdeno run does not type-check since Deno 2; deno run --check runs tsc first and stops on TS errors. --check=all, deno check, per-command defaults and CI tips.
- deno run --env-file: load a .env file into Deno.envdeno run --env-file loads .env into Deno.env before the program starts; reading it still needs --allow-env. Precedence, several files, tasks and pitfalls.