OS Manuals

/usr/bin/yam

A sweet little formatter for YAML

From yam 0.2.70-r0 (os), captured 2026-11-09 by running yam --help (exit 0). permalink

format YAML files

Usage:
  yam <file>... [flags]

Flags:
  -c, --config string   path to a yam configuration YAML file
      --dedup strings   YAML path expression to a sequence node whose children should be deduplicated
      --final-newline   ensure file ends with a final newline character (default true)
      --gap strings     YAML path expression to a mapping or sequence node whose children should be separated by empty lines
  -h, --help            help for yam
      --indent int      number of spaces used to indent a line (default 2)
      --lint            don't modify files, but exit 1 if files aren't formatted
      --quote strings   YAML path expression to a node that should be quoted
      --sort strings    YAML path expression to a mapping or sequence node whose children should be sorted
      --trim-lines      trim any trailing spaces from each line (default true)
Options (10)
OptionDescriptionSource
-c, --config stringpath to a yam configuration YAML filehelp
--dedup stringsYAML path expression to a sequence node whose children should be deduplicatedhelp
--final-newlineensure file ends with a final newline character (default true)help
--gap stringsYAML path expression to a mapping or sequence node whose children should be separated by empty lineshelp
-h, --helphelp for yamhelp
--indent intnumber of spaces used to indent a line (default 2)help
--lintdon't modify files, but exit 1 if files aren't formattedhelp
--quote stringsYAML path expression to a node that should be quotedhelp
--sort stringsYAML path expression to a mapping or sequence node whose children should be sortedhelp
--trim-linestrim any trailing spaces from each line (default true)help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.