Command

bengal.cache.inputs

List all input paths/globs that affect the build.

Use this to construct CI cache keys that properly invalidate
when any build input changes. The output includes:
  • Content and config directories (always)
  • Custom templates and static assets (if present)
  • Autodoc source directories (if enabled)
  • External reference indexes (local paths only)
  • Theme paths (if external theme configured)

Usage

bengal.cache.inputs [OPTIONS]

Options

Option Type Description
--config PATH

Path to config file (default: bengal.toml)

--format CHOICE

Output format (default: lines)

Default:lines
--verbose, -v flag BOOLEAN

Show source of each input pattern

Arguments

Argument Type Description
source PATH Default:.

Examples

        bengal cache inputs                  # One pattern per line
        bengal cache inputs --verbose        # Show where each pattern comes from
        bengal cache inputs --format json    # JSON output for scripting
    For CI (GitHub Actions):
        inputs=$(bengal cache inputs | tr '
' ' ')
        key: bengal-${{ hashFiles(inputs) }}