Skip to content

CLI Options

jake [OPTIONS] [RECIPE] [ARGS...]
ArgumentDescription
RECIPERecipe to run (default: first recipe or @default)
ARGSRecipe parameters (name=value or positional) and args

Flags may appear anywhere on the command line — before or after the recipe name, interspersed with recipe arguments (clap-style). jake build -v, jake -v build, and jake build arg -v are all equivalent.

  • The first bare token is the recipe; later bare tokens are its arguments.
  • -- stops flag parsing: everything after it is forwarded to the recipe literally (jake run -- --port 8080).
  • An unknown flag before the recipe is an error; an unknown flag after the recipe is forwarded to the recipe as an argument.
  • -s/--show is recipe-derived: jake --show build, jake -s build, and jake build --show all show build.
OptionShortDescription
--help-hShow help message
--version-VShow version
--list-lList available recipes
--all-aShow all recipes including hidden
--dry-run-nPrint commands without executing
--verbose-vShow verbose output
--silentSuppress jake’s own status output (errors still shown)
--yes-yAuto-confirm all @confirm prompts
--jakefile PATH-fUse specified Jakefile
--watch [PATTERN]-wWatch and re-run on changes
--jobs [N]-jParallel jobs (default: CPU count)
--show [RECIPE]-sShow recipe details (defaults to the recipe on the line)
--summaryPrint recipe names for scripts
--shortOutput one recipe name per line
--jsonEmit JSON for listing-style output
--group GROUPFilter recipes to a specific group
--filter PATTERNFilter recipe names by glob pattern
--type TYPEFilter recipes by type (task, file, simple, external)
--groupsList available group names
--webStart web UI server
--port PORTWeb UI port (default: 8420)
--external [TYPE]Show external recipes (make/just)
--no-externalHide external recipes from listing
--completions [SHELL]Print shell completion script
--installInstall shell completions
--uninstallRemove shell completions
--fmtFormat Jakefile
--checkValidate formatting (requires --fmt)
--dumpPrint formatted Jakefile (requires --fmt)
Terminal window
# Run default recipe
jake
# Run specific recipe
jake build
# List all recipes including hidden
jake --list --all
# Run with verbose output
jake test --verbose
# Suppress jake's own status output (keeps recipe output and errors)
jake --silent help
JAKE_SILENT=1 jake help
# Pass parameters
jake deploy env=production
# Run with 4 parallel jobs
jake -j4 all
# Watch and rebuild
jake -w build
# Dry-run (show what would execute)
jake -n deploy
# Use different Jakefile
jake -f build.jake test
# Auto-confirm prompts
jake -y deploy
# Machine-readable output
jake --summary
jake --list --short
jake --json
jake --summary --json
jake --groups --json
# Filter listings
jake --group dev --list --short
jake --filter "build*" --summary
jake --type file --summary
jake --groups
# Validate formatting
jake --fmt --check -f build.jake
# Start web UI
jake --web
jake --web --port 9000
jake --web --verbose
jake --web -j4
# List external build system recipes
jake --external
jake --external make
jake --external just
# Run external recipes
jake make.build
jake just.test
# External discovery follows the selected Jakefile
jake -f tools/Jakefile make.build

When -f points at a Jakefile in another directory, external Makefile/Justfile discovery and delegated execution use that Jakefile’s directory as the base path.

Web UI runs inherit the CLI process’ --verbose and --jobs settings, forward browser-entered recipe params as name=value, validate @require before execution, and surface @confirm prompts back to the browser for interactive approval.

On SIGINT (Ctrl-C), SIGTERM, or SIGHUP, jake forwards the signal to every command it has running — to each child’s process group, so a recipe’s shell takes whatever it spawned down with it — and then re-raises the signal on itself, so the exit status reports the interruption the way any other program does.

This matters most for commands jake deliberately isolates into their own process group (@timeout, --web, and anything cancellable). The terminal’s own group-wide Ctrl-C never reaches those, so without the forwarding they would keep running after jake exited, reparented to init.

The build cache is not written when a run is interrupted, so a half-finished target is never recorded as up to date. The next run rebuilds it.

Limitation: jake does not escalate. It sends the signal it received and exits; it does not follow up with SIGKILL. A command that traps or ignores the signal — trap '' INT in a recipe, docker run, ssh, a long-lived port-forward — therefore survives, and is orphaned once jake is gone. This is deliberate: those commands usually trap the signal precisely so they can shut down gracefully, which can take seconds, and killing them outright would strand the work they were cleaning up. If a command ignores Ctrl-C, stop it directly (pkill, docker stop) or give it a @timeout, which does use SIGKILL once the deadline passes.

CodeMeaning
0Success
1Recipe failed
2Recipe not found
3Jakefile not found
4Parse error
VariableDescription
JAKEFILEDefault Jakefile path
JAKE_DRY_RUNEnable dry-run mode
JAKE_VERBOSEEnable verbose output
JAKE_YESAuto-confirm prompts
JAKE_JOBSDefault parallel job count
NO_COLORDisable colored output