yq
Quick Usage Guide
yq '.a.b[0].c' file.yamlyq '.a.b[0].c' < file.yamlyq -i '.a.b[0].c = "cool"' file.yamlNAME=mike yq -i '.a.b[0].c = strenv(NAME)' file.yaml# merge two files
yq -n 'load("file1.yaml") * load("file2.yaml")'
# merge using globs:
# note the use of `ea` to evaluate all the files at once
# instead of in sequence
yq ea '. as $item ireduce ({}; . * $item )' path/to/*.ymlInstall
Known Issues / Missing Features
Last updated