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
- id: C1 claim: deno task is the CLI command documented for running project tasks. source: S1 evidence: "deno task"
- id: C2 claim: Tasks are declared in deno.json. source: S1 evidence: "deno.json"
- id: C3 claim: The published page documents deno task. source: S2 evidence: "deno task"
- id: C4 claim: The published page also refers to deno.json. source: S2 evidence: "deno.json"
Sources
- [S1] deno task. denoland/docs (GitHub). https://github.com/denoland/docs/blob/main/runtime/reference/cli/task.md . License: MIT. Accessed 2026-11-18.
- [S2] deno task (docs.deno.com). Deno (docs.deno.com). https://docs.deno.com/runtime/reference/cli/task/ . License: MIT. Accessed 2026-11-18.
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
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.},
}
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.