Deno Commands
JavaScript and TypeScript runtime with built-in tooling.All Deno pages
- deno add npm:package: add an npm or JSR dependency to a Deno projectdeno add npm:pkg or jsr:@scope/pkg adds a dependency to the deno.json import map (or package.json) and deno.lock. Versions, --dev, removal and pitfalls.
- deno compile: build a standalone executable from a TypeScript filedeno compile -o app main.ts builds one standalone executable with the Deno runtime inside. Bake in permissions, cross-compile with --target, include files.
- deno fmt --check: check formatting in CI without changing filesdeno fmt --check reports files that are not formatted and exits 1 without writing them; plain deno fmt rewrites them. Use it in CI next to deno lint and tests.
- deno test: run tests in Deno and filter a single testdeno test runs every Deno.test case with type-checking and exits 1 on failure. Filter one test with --filter, grant permissions, collect coverage and more.