Skip to main content
The bake command runs tasks from your bakefile.py. It uses the nearest bakefile.py in the current directory or its parents, else the Global bakefile.py (see Finding bakefile.py). Run bake --help to see all available commands and options, and which file was loaded.

Basic execution

Task arguments are typed CLI options, so bake test --help documents each task. See Commands.

Dry-run mode

Preview what would happen without executing:
Commands print instead of running. See Context for how ctx.run respects dry-run.

Chaining commands

Run multiple commands sequentially:
If any command fails, the chain stops.

Options

Override defaults when running bake:

Logging flags

-v / -vv / -vvv (env BAKE_LOG_VERBOSITY 0-3) control bakefile’s internal logs, plus per-module levels with --bake-log and format with --log-pretty. See Logging and Console Output for the full reference. This only affects logs, not console.echo, print, or command output.

Machine-readable docs

The docs site serves machine-readable endpoints alongside the HTML pages. bake --help and bakefile --help advertise these in their afterword:
Last modified on November 22, 2026