2017-12-17 22:11:08 +00:00
|
|
|
# yq
|
|
|
|
yq is a lightweight and portable command-line YAML processor
|
2017-04-13 05:36:59 +00:00
|
|
|
|
|
|
|
The aim of the project is to be the [jq](https://github.com/stedolan/jq) or sed of yaml files.
|
|
|
|
|
2017-12-24 19:30:49 +00:00
|
|
|
## Install
|
2018-02-16 16:24:59 +00:00
|
|
|
On MacOS:
|
2017-12-24 19:30:49 +00:00
|
|
|
```
|
|
|
|
brew install yq
|
|
|
|
```
|
2018-02-16 16:24:59 +00:00
|
|
|
On Ubuntu and other Linux distros supporting `snap` packages:
|
|
|
|
```
|
|
|
|
snap install yq
|
|
|
|
```
|
2018-06-12 00:16:54 +00:00
|
|
|
On Ubuntu 16.04 or higher from Debian package:
|
|
|
|
```
|
|
|
|
sudo add-apt-repository ppa:rmescandon/yq
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install yq -y
|
|
|
|
```
|
2017-12-24 19:30:49 +00:00
|
|
|
or, [Download latest binary](https://github.com/mikefarah/yq/releases/latest) or alternatively:
|
|
|
|
```
|
2020-01-13 05:58:11 +00:00
|
|
|
GO111MODULE=on go get github.com/mikefarah/yq/v3
|
2017-04-13 05:36:59 +00:00
|
|
|
```
|
|
|
|
|
2017-12-17 22:11:08 +00:00
|
|
|
[View on GitHub](https://github.com/mikefarah/yq)
|