yq
Verified for current stable LTS
Yq Commands
Yq command syntax with verified terminal examples.
Commands
8 commands for Yq
yq Operations
Yq Command: Merge Files Output Stdout V3
yq merge <path/to/file1.yaml> <path/to/file2.yaml> -C yq Operations
Yq Command: Merge Files Output Stdout V4
yq eval-all 'select(filename == "<path/to/file1.yaml>") * select(filename == "<path/to/file2.yaml>")' <path/to/file1.yaml> <path/to/file2.yaml> yq Operations
Yq Command: Output First Element Array V3
yq read <path/to/file.yaml> '[0]' yq Operations
Yq Command: Output First Element Array V4
yq eval '.[0]' <path/to/file.yaml> yq Operations
Yq Command: Output Yaml Pretty Print V3
yq read <path/to/file.yaml> -C yq Operations
Yq Command: Output Yaml Pretty Print V4
yq eval <path/to/file.yaml> yq Operations
Yq Command: Set Key Value V3
yq write -i <path/to/file.yaml> '<key>' '<value>' yq Operations
Yq Command: Set Key Value V4
yq eval '.<key> = "<value>"' -i <path/to/file.yaml> Suggest a Yq Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Yq workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.