# mikefarah/yq

yq is a portable command-line YAML, JSON, XML, CSV, TOML, HCL  and properties processor

Repository: https://github.com/mikefarah/yq
Canonical: https://ross.abutalabs.com/products/yq
Homepage: https://mikefarah.gitbook.io/yq/
Language: Go
License: MIT
License Family: permissive
Topics: yaml-processor, yaml, cli, golang, splat, devops-tools, portable, bash, xml, json, csv, properties, toml, hcl, terraform
Last push: 2026-08-25T10:19:22+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 98, longevity 100
- inputs: {"age_days": 3994, "days_push": 8, "days_rel": 13, "gap_med": 22, "n_releases_24m": 22}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 15882, forks 827 (observed 2026-08-28T04:11:14.335375+00:00)

## What it is
yq is a lightweight, portable command-line processor for YAML, JSON, XML, CSV, TOML, HCL, INI, and properties files, using jq-like syntax. Written in Go, it ships as a dependency-free binary for reading, updating, merging, and converting between structured data formats.

## Use cases
- extract values from yaml files in shell scripts
- convert json to yaml from the command line
- update kubernetes manifest files in place
- merge multiple yaml config files
- query and edit toml or xml files with jq-like syntax
- process csv and properties files in ci pipelines

## When to choose
- you need a single dependency-free binary for structured data manipulation
- you want jq-style expressions but for YAML and other formats
- you're editing config files in CI/CD pipelines or shell scripts

## When to avoid
- you need full jq feature coverage for complex JSON programs
- you prefer a library API inside a programming language rather than a CLI
- you need schema validation of YAML documents

## Facets
- artifact type: cli-tool
- maturity: stable
- function: parser, serialization, cli, developer-tools, json, yaml, csv
- domain: developer-tools, files
- platform: windows, cli, cross-platform
- tags: yaml-processor, jq-syntax, toml, xml, hcl, terraform, data-transformation, go-binary, command-line, devops, automation, linux, macos, docker

## Member repositories
- mikefarah/yq (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:14.335375+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:05:20.452096+00:00, confidence not recorded.
  - readme: https://github.com/mikefarah/yq (fetched 2026-08-28T04:11:14.335375+00:00, sha 9986d0243e44)
  - homepage: https://mikefarah.gitbook.io/yq/ (fetched 2026-08-29T08:03:14.697098+00:00, sha 9e5ede1980a9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
