Command

bengal.cache.hash

Compute deterministic hash of all build inputs.

Use this as a CI cache key for accurate invalidation.

The hash includes:

  • All input file contents (frombengal cache inputs)
  • Relative file paths (for determinism across machines)
  • Bengal version (by default, for cache invalidation on upgrades)

Usage

bengal.cache.hash [OPTIONS]

Options

Option Type Description
--config PATH

Path to config file (default: bengal.toml)

--include-version flag BOOLEAN

Include Bengal version in hash (recommended, default: true)

Arguments

Argument Type Description
source PATH Default:.

Examples

    bengal cache hash                     # Include version (recommended)
    bengal cache hash --no-include-version  # Exclude version