CLI Options
jake [OPTIONS] [RECIPE] [ARGS...]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
RECIPE | Recipe to run (default: first recipe or @default) |
ARGS | Recipe parameters (name=value or positional) and args |
Argument ordering
Section titled “Argument ordering”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/--showis recipe-derived:jake --show build,jake -s build, andjake build --showall showbuild.
Options
Section titled “Options”| Option | Short | Description |
|---|---|---|
--help | -h | Show help message |
--version | -V | Show version |
--list | -l | List available recipes |
--all | -a | Show all recipes including hidden |
--dry-run | -n | Print commands without executing |
--verbose | -v | Show verbose output |
--silent | Suppress jake’s own status output (errors still shown) | |
--yes | -y | Auto-confirm all @confirm prompts |
--jakefile PATH | -f | Use specified Jakefile |
--watch [PATTERN] | -w | Watch and re-run on changes |
--jobs [N] | -j | Parallel jobs (default: CPU count) |
--show [RECIPE] | -s | Show recipe details (defaults to the recipe on the line) |
--summary | Print recipe names for scripts | |
--short | Output one recipe name per line | |
--json | Emit JSON for listing-style output | |
--group GROUP | Filter recipes to a specific group | |
--filter PATTERN | Filter recipe names by glob pattern | |
--type TYPE | Filter recipes by type (task, file, simple, external) | |
--groups | List available group names | |
--web | Start web UI server | |
--port PORT | Web UI port (default: 8420) | |
--external [TYPE] | Show external recipes (make/just) | |
--no-external | Hide external recipes from listing | |
--completions [SHELL] | Print shell completion script | |
--install | Install shell completions | |
--uninstall | Remove shell completions | |
--fmt | Format Jakefile | |
--check | Validate formatting (requires --fmt) | |
--dump | Print formatted Jakefile (requires --fmt) |
Examples
Section titled “Examples”# Run default recipejake
# Run specific recipejake build
# List all recipes including hiddenjake --list --all
# Run with verbose outputjake test --verbose
# Suppress jake's own status output (keeps recipe output and errors)jake --silent helpJAKE_SILENT=1 jake help
# Pass parametersjake deploy env=production
# Run with 4 parallel jobsjake -j4 all
# Watch and rebuildjake -w build
# Dry-run (show what would execute)jake -n deploy
# Use different Jakefilejake -f build.jake test
# Auto-confirm promptsjake -y deploy
# Machine-readable outputjake --summaryjake --list --shortjake --jsonjake --summary --jsonjake --groups --json
# Filter listingsjake --group dev --list --shortjake --filter "build*" --summaryjake --type file --summaryjake --groups
# Validate formattingjake --fmt --check -f build.jake
# Start web UIjake --webjake --web --port 9000jake --web --verbosejake --web -j4
# List external build system recipesjake --externaljake --external makejake --external just
# Run external recipesjake make.buildjake just.test
# External discovery follows the selected Jakefilejake -f tools/Jakefile make.buildWhen -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.
Interrupting a run
Section titled “Interrupting a run”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.
Exit Codes
Section titled “Exit Codes”| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Recipe failed |
| 2 | Recipe not found |
| 3 | Jakefile not found |
| 4 | Parse error |
Environment Variables
Section titled “Environment Variables”| Variable | Description |
|---|---|
JAKEFILE | Default Jakefile path |
JAKE_DRY_RUN | Enable dry-run mode |
JAKE_VERBOSE | Enable verbose output |
JAKE_YES | Auto-confirm prompts |
JAKE_JOBS | Default parallel job count |
NO_COLOR | Disable colored output |