Combine multiple YAML files into one document.
Section: Edit and transform YAML with yq
Merge YAML files
bash
bash
yq ea '. as $item ireduce ({}; . * $item )' base.yaml override.yamlExplanation
Common in layered configuration workflows.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Edit and transform YAML with yq