CLICK-EXTRA-PREBAKE-ALL(1) CLICK-EXTRA-PREBAKE-ALL(1)

click-extra prebake all - Pre-bake `__version__`, all git fields and all build fields in one pass.

click-extra prebake all [OPTIONS]

Pre-bake `__version__`, all git fields and all build fields in one pass.

Scans each target file for empty `__<field>__` dunder placeholders, resolves their values from the current Git state and build host, and injects them.

Also appends the Git short hash to `.dev` versions in `__version__` (same as `prebake version`).

Supported git fields:

git_branch, git_long_hash, git_short_hash, git_date, git_tag

Supported build fields:

build_time, build_os, build_target, build_target_arch

Additional computed fields (`__git_tag_sha__`, `__git_distance__`,
`__git_dirty__`) are baked if their dunder placeholder exists and a git
resolution is available. Fields without a placeholder in the source file
are skipped silently.

Path to __init__.py to modify. Auto-discovered from the console scripts in pyproject.toml or setup.cfg if not provided.
Show this message and exit.

Path to __init__.py to modify. Auto-discovered from the console scripts in pyproject.toml or setup.cfg if not provided.
Show this message and exit.

0
Success.
1
A runtime error, an aborted prompt (Ctrl-D), or a declined confirmation.
2
A usage error: unknown option, invalid value, missing operand, or an unparsable configuration file.
130
Interrupted with Ctrl-C: the process ends by SIGINT, reported as 130.

Kevin Deldycke

2026-10-21 9.5.0.dev0