deno Verified current stable Not installed? Package Management

Deno / List And Run Tasks From Deno Json

List And Run Tasks From Deno Json

Easily list and execute tasks defined in your deno.json configuration file using deno task.

$
Terminal
deno task

When To Use

Use this command to manage project tasks defined in deno.json.

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
Available tasks:
  build   Build the project
  test    Run tests

Running task: build
Building project... Done!

Command Breakdown

What each part is doing

deno
Base Command
The executable that performs this operation. Here it runs Deno before the shell applies any redirect operators.

How To Run

Execution path

  1. Step 1

    Create a deno.json file with defined tasks.

  2. Step 2

    Run 'deno task' to list available tasks.

  3. Step 3

    Execute a specific task by typing 'deno task <task_name>'.

Alternative Approaches

Comparable commands in other tools

Alternative package management tools for the same job.