DEV Community

Farhan
Farhan

Posted on

2 1

yq - read YAML on terminal

yq

yq lets you read YAML files easily on the terminal. You can find key/values easily.

GitHub logo arriqaaq / yq

yq lets you read YAML files easily on the terminal. You can find key/values easily

yq

yq lets you read YAML files easily on the terminal. You can find key/values easily.

Motivation

Reading yaml configurations for k8s file becomes ardent through the terminal. yq helps reading/searching through the YAML easy. It uses tview and is inspired by tson.

asciicast

Installation

Grab the latest binary

$ cd "$(mktemp -d)"
$ curl -sL "https://github.com/arriqaaq/yq/releases/download/v0.1.0/yq_0.1.0_$(uname)_amd64.tar.gz" | tar xz
$ mv yq /usr/local/bin
# yq should be available now in your $PATH
Enter fullscreen mode Exit fullscreen mode

Usage

NAME:
   yq 

USAGE:
# from file
$ yq < test.json

# from kubectl
$ kubectl get pod kube-dns -n kube-system -oyaml | yq
Enter fullscreen mode Exit fullscreen mode

Bindings

YAMLtree

key description
s hide/show current node
S collaspe/expand all value nodes
/ or f search for key/values
q quit



Motivation

Reading yaml configurations for k8s file becomes ardent through the terminal. yq helps reading/searching through the YAML easy. It uses tview and is inspired by tson.

asciicast

Installation

Grab the latest binary

$ cd "$(mktemp -d)"
$ curl -sL "https://github.com/arriqaaq/yq/releases/download/v0.1.0/yq_0.1.0_$(uname)_amd64.tar.gz" | tar xz
$ mv yq /usr/local/bin
# yq should be available now in your $PATH
Enter fullscreen mode Exit fullscreen mode

Usage

NAME:
   yq 

USAGE:
# from file
$ yq < test.json

# from kubectl
$ kubectl get pod kube-dns -n kube-system -oyaml | yq
Enter fullscreen mode Exit fullscreen mode

Bindings

YAMLtree

key description
s hide/show current node
S collaspe/expand all value nodes
/ or f search for key/values
q quit

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free