Command-line tool
yq
brew/yq
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Process YAML, JSON, XML, CSV and properties documents from the CLI cli portable json golang yaml bash xml csv devops-tools yaml-processor properties splat
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id MikeFarah.yq -e scoop install yq
macOS
brew install yq
Linux
brew 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
Browse
Related command-line tools
- ahoy
Creates self documenting CLI programs from commands in YAML files cli devops yaml cli-app bash - naml
Convert Kubernetes YAML to Golang - butane
Translates human-readable Butane Configs into machine-readable Ignition Configs cli portable golang bash devops-tools… - shx
Portable Shell Commands for Node shelljs shell unix bash sh exec cli zsh - python-yq
Command-line YAML and XML processor that wraps jq - FreSH Portable
A fully-featured terminal-based text editor. cli portable terminal shell bash zsh - dhall-json
Dhall to JSON compiler and a Dhall to YAML compiler - json2yaml
A commandline utility to convert JSON to YAML / YML yml yaml json cli util
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents