yq is the name of two tools for interpreting and processing YAML (one Python based and one Go/CLI based).
yq is the name of two independent tools:
Python yq is a wrapper of jq that reads YAML in, transforms it into JSON and then executes the given commands via
jq
on it. It also supports processing XML via the executablexq
. [GitHub, Documentation, Change log, Issues, PyPI]Go yq implements actions similar to jq natively on YAML, which means that it can process YAML-specific entities like tags, which Python yq can't. [Github, Documentation]
The two tools do not share the same command line interface and are, in general, not interchangeable with each other. When asking questions about them, you should indicate which one you are using.