yq YAML and Structured Data Processor
Process, query, and transform YAML, JSON, XML, CSV, TOML, and properties files from the command line using yq. Supports jq-like expressions for reading, updating, and converting between formats.
What it does
yq YAML and Structured Data Processor
Process, query, and transform YAML, JSON, XML, CSV, TOML, and properties files from the command line using yq. Supports jq-like expressions for reading, updating, and converting between formats.
Installation
Use the upstream install or setup path that matches your environment:
- brew install yq
-
Run with Docker or Podman
- docker run --rm -v "${PWD}":/workdir mikefarah/yq '.a.b[0].c' file.yaml
- docker run --rm --security-opt=no-new-privileges --cap-drop all --network none \
Requirements and caveats from upstream:
