Skip to main content
Silent Mode allows you to run tasks without printing the command being executed, which is useful for keeping the console output clean. There are four ways to enable silent mode:
  1. At the command level
  2. At the task level
  3. Globally in the Taskfile or using the --silent flag
  4. Redirect output to /dev/null
Taskfile.yaml
version: '3'

silent: true # global silent mode

tasks:
  silent-command-task:
    cmds:
      - cmd: echo "This command runs silently"
        silent: true

  silent-task:
    silent: true
    cmds:
      - echo "This task runs silently"

  silent-task-with-redirect:
    cmds:
      - echo "This output is discarded" > /dev/null
You can also enable silent mode from the CLI without modifying the Taskfile:
task --silent <task-name>

Build docs developers (and LLMs) love