Command-line tool
python-yq
brew/python-yq
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Command-line YAML and XML processor that wraps jq
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
pipx install yq
macOS
brew install python-yq pipx install yq
Linux
brew install python-yq pipx install yq
Output a YAML file, in pretty-print format (v4+)
yq eval path/to/file.yaml
Output a YAML file, in pretty-print format (v3)
yq read path/to/file.yaml -C
Output the first element in a YAML file that contains only an array (v4+)
yq eval '.[0]' path/to/file.yaml
Related command-line tools
- pawk
Python line processor (like AWK) - gomplate
Command-line Golang template processor - osmosis
Command-line OpenStreetMap data processor - nconvert
A command line batch image processor that is compatible with several image formats. - yaml2json
Command-line tool convert from YAML to JSON - yamlfmt
Extensible command-line tool to format YAML files - xslt3
SaxonJS XSLT 3.0 processor: command line interface to SaxonJS xslt xslt3.0 xpath3.1 xpath xml saxon dom json xsl… - shodan
Python library and command-line utility for Shodan
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents