Define key-value pairs in YAML.
Section: Scalars, maps, and sequences
Simple mapping
yaml
yaml
name: ExpressYou
plan: premium
active: trueExplanation
Mappings are the YAML equivalent of objects or dictionaries. Keys should be consistent and human readable.
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 Scalars, maps, and sequences
Parse YAML with Python
Quickly verify that a YAML file loads successfully.
Pretty-print YAML with yq
Read and normalize YAML output from the command line.