Tools
Practical
By Samson Tanimawo, PhD
Published Feb 7, 2026
4 min read
yq: jq for YAML
yq applies jq syntax to YAML.
Live workflow · 3 working · 1 queuedLive
Signal · gather Working
Decide · pick action Working
Apply · with verify Working
Learn · update playbook Queued
Syntax
yq '.spec.replicas' file.yaml extracts values.
Same syntax as jq.
Kubernetes
yq edit on k8s manifests is faster than sed.
Used in helmfile, kustomize workflows.
Alternatives
mikefarah/yq is the popular fork. Original kislyuk/yq wraps jq.
Pick mikefarah/yq for most use cases.