yq

Process and query YAML, JSON, XML, CSV and properties from CLI

brewmacoslinux
Try with needOr install directly
Source

About

Process YAML, JSON, XML, CSV and properties documents from the CLI

Commands

yq

Examples

Extract a specific field from a YAML file$ yq '.metadata.name' deployment.yaml
Convert YAML to JSON format$ yq -o=json config.yaml
Update a value in a YAML file$ yq '.spec.replicas = 3' deployment.yaml