Yq: Difference between revisions
Jump to navigation
Jump to search
Line 24: | Line 24: | ||
mv /tmp/yq_linux_amd64 yq /bin/yq | mv /tmp/yq_linux_amd64 yq /bin/yq | ||
chmod a+x /bin/yq | chmod a+x /bin/yq | ||
=Operations= |
Revision as of 19:56, 14 January 2020
External
Internal
DEPLETE
Overview
yq is a lightweight and portable command-line YAML processor. It is written in Go and it consists in a single portable binary. It can be used to query a YAML file using a YAML path, to update a YAML file for a YAML path or using a script file, to create a YAML file or merge YAML files. The update operation creates any missing path elements. yq can also be used to convert YAML files to JSON and JSON files to YAML.
Version
yq --version yq version 2.4.1
Installation
Mac
brew install yq
Linux
cd /tmp wget https://github.com/mikefarah/yq/releases/download/${yq_version}/yq_linux_amd64 mv /tmp/yq_linux_amd64 yq /bin/yq chmod a+x /bin/yq