Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CLI

mq-task [OPTIONS] [TASK]... [-- <ARGS>...] [COMMAND]

Several tasks can be named: mq-task lint test runs them in that order as one run, so a dependency they share runs once. Arguments after -- belong to a single task, so they cannot be combined with several.

Commands

CommandDescription
runRun a task
listList tasks (-a/--all includes private; --json prints name, description, aliases, depends, params, private and languages as JSON)
tuiSelect and run a task interactively
checkLook for mistakes without running anything (--strict, --json; see Checking a Task File)
graph [TASK]Print the dependency graph (--format text|mermaid)
completions <SHELL>Generate shell completions
initWrite a starter tasks.md (-o for another path); init --config writes a sample mq-task.toml

Options

OptionDescription
-f, --file <FILE>Markdown file (default: nearest tasks.md, else README.md; env MQ_TASK_FILE)
-c, --config <CONFIG>Configuration file (default: mq-task.toml next to the task file; env MQ_TASK_CONFIG)
-r, --runtime <LANG:COMMAND>Override a runtime
-e, --execution-mode <MODE>stdin, file or arg for overrides
--lang <LANG>Only run code blocks of this language
-v, --verbosePrint each code block (and its directory) on stderr before it runs
--dry-runShow what would run
--env <KEY=VALUE>Set an environment variable (repeatable)
-d, --dir <PATH>Working directory
--summaryDescribe the task (description, dependencies, parameters, options) instead of running it
--statusSay whether each task would run (up to date per status, or sources/outputs) without running anything; exit 1 when any would (details)
--no-depsRun only the named tasks, not their depends
-q, --quietPrint only task output and errors: no ▶, ↳ or ✔ lines
--timingsPrint how long each task took, and the totals, on stderr when the run ends
-w, --watchRe-run when sources, dotenv files or the task file change
--interval <DURATION>How often --watch checks for changes (default 300ms, minimum 50ms)
--parallelRun dependencies concurrently
-j, --jobs <N>Max concurrent tasks
--output <MODE>interleaved, prefixed or group (see Parallel Execution)
-k, --keep-goingContinue independent tasks after a failure
--no-cacheIgnore up-to-date checks (sources/outputs and status)
-y, --yesAnswer yes to every prompt