dasel

Query and modify JSON, YAML, TOML, XML, and CSV files from the CLI

brewmacoslinux
Try with needOr install directly
Source

About

JSON, YAML, TOML, XML, and CSV query and modification tool

Commands

dasel

Examples

extract value from JSON by key path$ dasel -f data.json '.users[0].name'
pretty print and view YAML file structure$ dasel -f config.yaml
update JSON value at specific path$ dasel -f data.json -w '.settings.theme' 'dark'
convert between JSON and YAML formats$ dasel -f data.json -o yaml '.'
search for specific data in CSV files$ dasel -f records.csv '.[] | select(.status == "active")'