Define once and reuse many times.
Section: Anchors and aliases
Anchor and alias
yaml
yaml
defaults: &defaults
retries: 3
timeout: 30
api:
<<: *defaults
url: https://api.example.comExplanation
Anchors reduce repetition and keep repeated config blocks synchronized.
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
Merge shared mappings
Combine a base config with environment-specific overrides.
Catch duplicate mapping keys
Lint for repeated keys that override silently in some parsers.