Skip to main content

CLI Reference

This page lists every Nadle command-line flag. It is generated from Nadle's source (packages/nadle/src/core/options/cli-options.ts), so it always matches the installed version.

Usage

nadle [tasks...] [options]
  • tasks... — One or more task names to run, in order. Task names are positional arguments. A task may be a bare name (build) or workspace-qualified (docs:build).
  • options — Any of the flags listed below.
  • -- — Everything after a bare -- is passed through verbatim to the underlying task (for example nadle test -- --watch forwards --watch to the test runner).

Flags

FlagTypeDefaultDescription
--config, -cstring<cwd>/nadle.config.{js,mjs,ts,mts}Path to config file
--list, -lbooleanfalseList all available tasks
--list-workspacesbooleanfalseList all available workspaces
--parallelbooleanfalseRun all specified tasks in parallel regardless of their order, while still respecting task dependencies.
--dry-run, -mbooleanfalseRun specified tasks in dry run mode
--watch, -wbooleanfalseRe-run the requested tasks when their inputs change
--graph(empty) | tree | mermaidPrint the task dependency graph instead of executing (tree or mermaid)
--explainstringExplain why a task runs, what depends on it, and its inputs, instead of executing
--sincestringRun only the requested tasks affected by changes since the given git ref
--whybooleanfalseExplain each task's cache outcome (hit/miss and what changed)
--stacktracebooleanfalsePrint stacktrace on error
--show-configbooleanfalsePrint the resolved configuration
--config-keystringundefinedPath to a specific resolved configuration value, using dot/bracket notation
--footerboolean!isCI && isTTYEnables the in-progress summary footer during task execution
--reporterstringdefaultOutput reporter: a built-in ('default'/'agent') or a plugin-registered reporter name
--no-cachebooleanfalseDisable task caching. All tasks will be executed and their results will not be stored
--cache-dirstring<projectDir>/node_modules/.cache/nadleDirectory to store task cache results
--clean-cachebooleanfalseDeletes all files in the cache directory. Can be used with --cache-dir to specify a custom location
--summarybooleanfalsePrint a summary at the end of the run: task durations, critical path, and cache-miss hotspots
--exclude, -xstring[]Tasks to exclude from execution
--log-levelerror | log | info | debuglogSet the logging level
--min-workersstringOs.availableParallelism() - 1Minimum number of workers (integer or percentage)
--max-workersstringOs.availableParallelism() - 1Maximum number of workers (integer or percentage)