CLICK-EXTRA-PREBAKE-VERSION(1) CLICK-EXTRA-PREBAKE-VERSION(1)

click-extra prebake version - Inject Git commit hash into `__version__`.

click-extra prebake version [OPTIONS]

Inject Git commit hash into `__version__`.

Appends the Git short hash as a PEP 440 local version identifier (for example `1.0.0.dev0` becomes `1.0.0.dev0+abc1234`).

Only modifies `.dev` versions without an existing `+` suffix. Release versions and already pre-baked versions are left untouched.

Git short hash to append. Auto-detected from HEAD if not provided.
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.

Git short hash to append. Auto-detected from HEAD if not provided.
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