CLI
yq
Process YAML output from md-utils with Mike Farah's yq.
This documentation uses Mike Farah’s yq,
a command-line processor for YAML, JSON, XML, properties, CSV, and TSV. Other
unrelated tools also use the name yq, so confirm which implementation is
installed before following examples.
Request YAML from md-utils and continue the pipeline with yq:
md-utils fm dump posts/ --format yaml | yq '.frontMatter[].title'
yq uses jq-like expressions, but it is not a complete implementation of
jq. It also has format-specific behavior around YAML styles, comments, XML
attributes, and type inference. Consult its documentation before relying on
lossless round trips.