yamlfmt

Extensible command-line tool to format and validate YAML files

brewmacoslinux
Try with needOr install directly
Source

About

Extensible command-line tool to format YAML files

Commands

yamlfmt

Examples

Format a single YAML file in place$ yamlfmt file.yaml
Format multiple YAML files in a directory$ yamlfmt *.yaml
Format YAML and output to stdout without modifying original$ yamlfmt -out - file.yaml