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

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

click-extra prebake all [OPTIONS]

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

Scans each target file for empty __<field>__ dunder placeholders, resolves their values from the current Git state, 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

Additional fields (e.g. __git_tag_sha__) 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 [project.scripts] if not provided.
Show this message and exit.

Path to __init__.py to modify. Auto-discovered from [project.scripts] if not provided.
Show this message and exit.

0
Success.
1
A runtime error, or an aborted prompt (Ctrl-C, a declined confirmation).
2
A usage error: unknown option, invalid value, missing operand, or an unparsable configuration file.

Kevin Deldycke

2026-06-15 7.20.0.dev0