Scroll to navigation

YQ(1) User Commands YQ(1)

NAME

yq - Command-line YAML processor - jq wrapper for YAML documents

DESCRIPTION

usage: yq [options] <jq filter> [input file...]

[--indentless-lists] [--explicit-start] [--explicit-end] [--in-place] [--version] [jq_filter] [files ...]

yq: Command-line YAML processor - jq wrapper for YAML documents

yq transcodes YAML documents to JSON and passes them to jq. See https://github.com/kislyuk/yq for more information.

positional arguments:

jq_filter files

options:

show this help message and exit
Transcode jq JSON output back into YAML and emit it
Transcode jq JSON output back into YAML and emit it. Preserve YAML tags and styles by representing them as extra items in their enclosing mappings and sequences while in JSON. This option is incompatible with jq filters that do not expect these extra items.
When using --yaml-output, specify output grammar (the default is 1.1 and will be changed to 1.2 in a future version). Setting this to 1.2 will cause strings like 'on' and 'no' to be emitted unquoted.
When using --yaml-output, specify string wrap width
When using --yaml-output, indent block style lists (sequences) with 0 spaces instead of 2
When using --yaml-output, always emit explicit document start ("---")
When using --yaml-output, always emit explicit document end ("...")
Edit files in place (no backup - use caution)
show program's version number and exit

SEE ALSO

The full documentation for yq is maintained as a Texinfo manual. If the info and yq programs are properly installed at your site, the command

info yq

should give you access to the complete manual.

September 2024 yq 3.4.3