A portable command-line YAML, JSON, XML, CSV, TOML, HCL and properties processor
open sourceMITself-hostablefree
yq (mikefarah) uses jq-like syntax to read, update and convert YAML, JSON, XML, INI, properties, CSV and TSV. It can edit files in place while preserving comments, merge documents and convert between formats. It is a dependency-free Go binary.
Ways to install
App stores
Package managers
Problems it solves
- update one value in a Kubernetes YAML file from a CI script
- jq does not understand YAML
- read a key from a docker-compose file in bash
- convert YAML to JSON or JSON to YAML on the command line
- edit YAML in place without destroying the comments
- merge two YAML config files
- query XML like I query JSON with jq
- bump an image tag in a Helm values file automatically
Features
- jq-like syntax
- in-place edits
- comment preservation
- format conversion
- merging
- single binary
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what yq does.
