Overrides and Script Parameters
OmegaFlow provides two ways to change a selected recording from the command line. They solve different problems.
rec.*: override recording configuration
Use rec.* to replace a recording config value for one invocation:
omegaflow recording=demo rec.capture.headless=false
omegaflow recording=demo rec.audio.enabled=false
omegaflow recording=demo rec.outputs.asset_dir=preview/demo
The override is merged after workspace defaults and the recording's config
directive. It can change production behavior, but cannot change metadata,
authored pane or beat structure, generated fields, or OmegaFlow's private
_... metadata.
rec.* is useful for diagnosis, local previews, and deliberate one-off output
variants. If a value defines the normal project behavior, put it in
recordings/config.yaml or the recording's config directive so the build
remains reproducible without a remembered command.
The accepted keys are the same as Recording Configuration.
script_params.*: supply declared inputs
A recording can declare shell-safe parameters and their defaults:
config:
parameters:
name: world
repetitions:
default: 1
Override only declared names:
omegaflow recording=greeting +script_params.name=OmegaFlow
omegaflow recording=greeting +script_params.repetitions=3
The + is Hydra syntax for adding a key to the initially empty
script_params mapping.
Unknown parameter names fail configuration instead of being ignored. Resolved
values must be strings, numbers, or booleans and are exported to the recording
shell as recording_param_<name>:
printf 'hello %s\n' "$recording_param_name"
Use script parameters when a recording intentionally exposes an input. Use
rec.* when you need to override OmegaFlow recording configuration itself.
Precedence
For recording data, the effective order is:
- the recording schema defaults;
recordings/config.yamlworkspace defaults;- the selected recording's
configdirective; and - command-line
rec.*overrides.
script_params.* does not participate in that merge. It replaces defaults
declared under parameters after the recording config has been resolved.