All apps/yamlfmt

yamlfmt

yamlfmt

An extensible command line tool or library to format YAML files.

Runs as yamlfmt|macOS, Linux, Windows|github.com

Command form

ai-draft · 3 tasks · 10 fields

Format YAML files or directories, or preview/lint formatting. Flags must come before paths. Per-formatter options and stdin mode are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui yamlfmt
Format YAMLExample values, fixed in this page — nothing here reaches a terminal
Basic
Paths*
any
TasksEach one presets the form for one job
Format in place
Rewrites files.
paths
Preview changes
drypaths
Lint formatting
lintpaths
ParametersOnly these flags are editable in the form
Dry run (print diffs only)
boolean
-dry
Lint (exit 1 on differences)
boolean
-lint
Quiet (dry run / lint)
boolean
-quiet-q
Verbose (format mode)
boolean
-verbose-v
Config file
path
-conf
Doublestar path patterns
boolean
-dstar
Exclude patterns (comma separated)
string
-exclude
Exclude gitignored paths
boolean
-gitignore_excludes
Extra extensions (comma separated)
string
-extensions
Paths
path · positional 0 · repeatable
SourcesEvery flag above is checked against these
docs
| Dry Run | `-dry` | `yamlfmt -dry .` | Use Dry Run mode | | Lint | `-lint` | `yamlfmt -lint .` | Use Lint mode | | Quiet Mode | `-quiet`, `-q` | `yamlfmt -dry -q .` | Use quiet mode. Only has effect in Dry Run or Lint modes. |…
manualmain 2026-10-27

github.com

Before it fills your prompt, Otty checks the installed yamlfmt against its version. A form that does not match your version is not offered.