Materialize merged values for inspection.

Section: Anchors and aliases

Expand anchors with yq

bash
bash
yq 'explode(.)' config.yaml
Explanation

Helpful when you want to see the fully resolved YAML after merges and aliases.

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 Anchors and aliases
Anchor and alias
Define once and reuse many times.
OpenIn sheetyamlsame section
Merge multiple anchors
Compose config from several reusable blocks.
OpenIn sheetyamlsame section
Merge shared mappings
Combine a base config with environment-specific overrides.
OpenIn sheetyamlsame section
Reuse environment variables
Avoid copying the same environment block.
OpenIn sheetyaml2 tag match
Reuse CI step fragments
Share common setup across jobs.
OpenIn sheetyaml1 tag match
Catch duplicate mapping keys
Lint for repeated keys that override silently in some parsers.
OpenIn sheetbash1 tag match