← All notes

deno task runs named commands declared in the tasks field of deno.json

Answer: deno task runs a named command from the tasks field of deno.json (or deno.jsonc). It is the Deno equivalent of a package.json script: declare the command once, then run deno task <name>.

Declaring tasks

Add a tasks object to deno.json. Each key is the task name; each value is the command string.

Permissions and cwd

A task runs with the permissions of the commands it starts.

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: denoland/docs (GitHub), deno task, MIT (https://raw.githubusercontent.com/denoland/docs/main/LICENSE); Deno (docs.deno.com), deno task (docs.deno.com), MIT (https://raw.githubusercontent.com/denoland/docs/main/LICENSE). Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: denoland/docs (GitHub), deno task, MIT (https://raw.githubusercontent.com/denoland/docs/main/LICENSE); Deno (docs.deno.com), deno task (docs.deno.com), MIT (https://raw.githubusercontent.com/denoland/docs/main/LICENSE).

Cite this

Permanent ID: iil:note:bntwg985

iinventedlight. 2026. "deno task runs named commands declared in the tasks field of deno.json." iinventedlight Library, iil:note:bntwg985, version of 2026-11-18. https://iinventedlight.com/library/notes/deno-tasks/. License: CC-BY-4.0.

@misc{iil_note_bntwg985,
  author = {{iinventedlight}},
  title = {{deno task runs named commands declared in the tasks field of deno.json}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-18},
  url = {https://iinventedlight.com/library/notes/deno-tasks/},
  note = {Permanent ID iil:note:bntwg985. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/deno-tasks.md.