Configuration Precedence
The CLI resolves configuration from command-line options, YAML, environment variables, and defaults. Command-line values take priority over mapping file values.
The important rule is: the leftmost configured value wins. Environment variables are only supported for authentication and API target settings.
General Rule
For most check, CSV, output, PDF, filter, and folder settings:
- Command-line option
- YAML mapping file
- Built-in default
In short:
CLI flag -> YAML (--map) -> Default
Examples:
--col-vat-idoverridescolumns.vatId.--in-encodingoverridesinput.encoding.--pdfenables PDF even ifdefaults.pdfis false.--no-pdfdisables PDF even ifdefaults.pdfis true.--no-signdisables signing even ifdefaults.signis true.
Recommended Usage
Put fixed settings in the YAML mapping file:
- CSV delimiter and encoding.
- Column mapping.
- Output column selection.
- PDF defaults.
- Folder mode settings such as pattern, minimum file age, and duplicate mode.
Use command-line flags for one-off changes:
--env test--base-url--out--dry-run--force-new-vor--verbose
This keeps automated jobs repeatable while still letting you override behavior for a specific run.
Authentication
Token resolution:
--tokenOPTIMUS_TOKEN- empty value
Real API runs fail when the final token is empty. Dry runs do not require a token.
API Target
API target resolution:
--base-urlOPTIMUS_BASE_URL--envOPTIMUS_ENV- Production URL
--env and OPTIMUS_ENV support:
testprod
For API target settings, the effective priority is:
CLI flag -> Environment variable -> Default
YAML does not currently define token, environment, or base URL values.
Check Type
Check type resolution:
--standard--qualifieddefaults.checkType
The final value must be Standard or Qualified. The CLI accepts lowercase YAML values such as standard and qualified.
Retry Duration
Retry duration resolution:
--retry-durationdefaults.retryDurationNone
Accepted values are:
NoneOneHourTwoHoursFourHoursEightHoursTwentyFourHours
The CLI also normalizes short forms such as 1h, 2h, 4h, 8h, and 24h.
Output Columns
Output column resolution:
--out-columnsoutput.columns- Default output columns
Unknown output columns cause a configuration error unless the column is defined under customColumns.