clean

🧹 Clean generated files and stale processes. By default, removes only the output directory (public/). Options: --cache Also remove build cache --all Remove both output and cache --stale-server Clean up stale 'bengal serve' processes

Command

clean

🧹 Clean generated files and stale processes. By default, removes only the output directory (public/). Options: --cache Also remove build cache --all Remove both output and cache --stale-server Clean up stale 'bengal serve' processes

Usage

Bash
bengal.site.clean [OPTIONS]

Options

Option Type Default Description
--force, -f boolean False Skip confirmation prompt
--cache boolean False Also remove build cache (.bengal/ directory)
--all boolean False Remove everything (output + cache)
--stale-server boolean False Clean up stale 'bengal serve' processes
--config path Path to config file (default: bengal.toml)

Arguments

Argument Type Required Description
source path No

Examples

Bash
  bengal clean                  # Clean output only
  bengal clean --cache          # Clean output and cache
  bengal clean --stale-server   # Clean up stale server processes