Skip to main content

bap run

The fastest way to execute recorded workflows. Compiles workflow steps into fused batches for fewer server calls, and leverages the action cache for repeat runs.

Usage

string
required
Name of the saved workflow to execute.
string
Parameter substitution in key=value format. Can be specified multiple times.
flag
Show the compiled execution plan without running it. Displays batch structure, fusion flags, and step reduction percentage.
flag
Force cache warming before execution. Pre-resolves selectors into the action cache.

Compilation

bap run compiles sequential workflow steps into optimized batches:
  • Adjacent interaction steps are merged into single act calls
  • Navigation steps get fused observe parameters
  • Fusion flags (preObserve, postObserve, responseTier) are applied automatically

Dry Run Output

Cache Warming

The action cache stores resolved CSS selectors from previous runs (24h TTL). On repeat executions, cached selectors skip the full resolution chain.
Cache manifests are saved after each run with batch timings and selector mappings for analysis.

Output

Use --format=json for machine-readable output. The JSON includes step-level timing, cache hit rates, and batch structure.

bap run vs bap workflow run