Skip to content

yq

= ("[Website](" + this.website + ")") | = ("[Github](" + this.github + ")") | = ("[Documentation](" + this.docs + ")")
= ("> " + this.desc-short)

= ("[Documentation](" + this.docs + ")")

Commands🔗

Front Matter🔗

1
2
yq --front-matter=process '.a="chocolate"' <file>
yq --front-matter=extract '.a="chocolate"' <file>

Tests and comparison🔗

1
yq '.[] | tag="!!str"' # value is string

Output🔗

Formatting🔗

https://github.com/mikefarah/yq/discussions/1138

1
2
# double-quote strings
yq ... --style=double ...

References🔗