Print array items from a YAML path.
Section: Read and query YAML with yq
Read a list
bash
bash
yq '.features[]' config.yamlExplanation
Useful for iterating over YAML sequences in shell scripts.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Read and query YAML with yq