---
source: https://iinventedlight.com/library/notes/deno-tasks.md
title: "deno task runs named commands declared in the tasks field of deno.json"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT (Deno docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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)."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: Deno tasks"
tags: [deno, deno-task, deno.json, scripts]
client: Librarian
sources:
  - id: S1
    title: "deno task"
    publisher: denoland/docs (GitHub)
    url: https://github.com/denoland/docs/blob/main/runtime/reference/cli/task.md
    accessed: 2026-11-18
    license: "MIT"
  - id: S2
    title: "deno task (docs.deno.com)"
    publisher: Deno (docs.deno.com)
    url: https://docs.deno.com/runtime/reference/cli/task/
    accessed: 2026-11-18
    license: "MIT"
---
# 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
