Add a value to a sequence in place.
Section: Edit and transform YAML with yq
Append to a YAML array
bash
bash
yq -i '.features += ["coach me"]' config.yamlExplanation
A clean way to automate config changes without manual editing.
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 Edit and transform YAML with yq