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:
|
|
|
|
```
|
2018-06-20 03:42:00 +00:00
|
|
|
go get gopkg.in/mikefarah/yq.v2
|
2017-04-13 05:36:59 +00:00
|
|
|
```
|
|
|
|
|
2017-12-17 22:11:08 +00:00
|
|
|
[View on GitHub](https://github.com/mikefarah/yq)
|