yq

yq is a lightweight and portable command-line YAML processor

The aim of the project is to be the jq or sed of yaml files.

Install

On MacOS:

brew install yq

On Ubuntu and other Linux distros supporting snap packages:

snap install yq

or, Download latest binary or alternatively:

go get github.com/mikefarah/yq

View on GitHub