# yq

> A portable command-line YAML, JSON, XML, CSV, TOML, HCL and properties processor

Source: https://talira.ai/catalog/yq-2m106xgh
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [data / cli processing](https://talira.ai/categories/data/cli-processing), [developer tools / cli / json](https://talira.ai/categories/developer-tools/cli/json)
- Platforms: macos, linux, windows, cli, docker
- Licence: MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Creator: mikefarah

yq (mikefarah) uses [jq](https://talira.ai/catalog/jq-ck6s82nt.md)-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.

## Links

- Website: https://mikefarah.gitbook.io/yq/
- GitHub: https://github.com/mikefarah/yq
- Docs: https://mikefarah.gitbook.io/yq/

## Ways to install

### App stores

- [Snap](https://talira.ai/catalog/snap-3jtdmjpc.md): <https://snapcraft.io/yq>[^1]

### Package managers

- [WinGet](https://talira.ai/catalog/winget-g927bz13.md): <https://github.com/microsoft/winget-pkgs/tree/master/manifests/m/MikeFarah/yq>[^1]
- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/yq>[^2]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/yq>[^3]

## 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

## Trust

Overall: 0.72 out of 1.
Signals: maintenance 1.00, adoption 0.84, momentum 0.63, community 0.91, backing 0.20, extensibility 0.20.

- last commit 12 days ago
- 87 commits in the last 90 days
- latest release v4.54.3 15 days ago
- 16.3k GitHub stars
- 183 contributors
- accepts sponsorship (Github)
- created by mikefarah

## Alternatives

- [jq](https://talira.ai/catalog/jq-ck6s82nt.md): Command-line JSON processor
- [gron](https://talira.ai/catalog/gron-5hrs15k0.md): Make JSON greppable!

## Sources

[^1]: https://github.com/mikefarah/yq/blob/master/README.md (checked 20 Nov 2026)
[^2]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^3]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
