Tools

YAML

Structured config — scalars, dicts, lists, and anchors.

Scalars

name: Ada Lovelace
age: 42
active: true
ratio: 3.14
nothing: null

Dicts & lists

person:
  name: Ada
  role: engineer

fruits:
  - apple
  - banana
  - cherry

Inline style

{a: 1, b: 2}Inline dict
[1, 2, 3]Inline list
"string"Quoted string (forces string type)

Multiline strings

key: |Literal block — preserves newlines exactly
key: >Folded block — collapses to single line

Anchors & aliases

defaults: &defaults
  timeout: 30
  retries: 3

production:
  <<: *defaults
  url: https://prod.example.com

staging:
  <<: *defaults
  url: https://staging.example.com