config
config
Section titled “config”Validate and inspect Arxo configuration files.
Subcommands
Section titled “Subcommands”validate
Section titled “validate”Validate a config file (syntax, preset, metrics, policy).
arxo config validatearxo config validate --config my-config.yamlParameters (validate)
Section titled “Parameters (validate)”| Parameter | Description |
|---|---|
--config | Path to config YAML (default: ./arxo.yaml) |
Example
Section titled “Example”# Validate default arxo.yamlarxo config validate
# Validate custom config before usearxo config validate --config ci-config.yamlWhat Is Validated
Section titled “What Is Validated”- YAML syntax
- Preset names
- Metric IDs
- Policy invariant structure
- Required fields
Exit codes and errors
Section titled “Exit codes and errors”| Exit code | Meaning |
|---|---|
0 | Config is valid |
| Non-zero | Config file not found, invalid YAML, or schema/preset/metric/policy error |
Use --config path/to/file.yaml to validate a specific file. See Troubleshooting for common config issues.
See also
Section titled “See also”- Configuration — YAML structure and options
- Troubleshooting — Common config and validation issues