shyaml

Command-line YAML parser for querying and manipulating YAML files

brewmacoslinux
Try with needOr install directly
Source

About

Command-line YAML parser

Commands

shyaml

Examples

Extract a specific key value from a YAML file$ shyaml get-value database.host < config.yaml
Get a nested value using dot notation$ shyaml get-value server.port < settings.yaml
List all keys at a specific level in YAML structure$ shyaml keys < config.yaml