mikefarah/yq
View on GitHub ↗ ★ 16,215 Go
yq is a portable command-line YAML, JSON, XML, CSV, TOML, HCL and properties processor
33 mentions on Hacker News by 27 people: 4 stories, 29 comments · first 2019-10-28 · latest 2026-04-27
20082026
-
csvkit ( https://github.com/wireservice/csvkit ) has a "csvlook" command, and yq ( https://github.com/mikefarah/yq ) supports CSV as an input format.
comment by bewuethr · 2026-04-27 · in Show HN: A terminal spreadsheet editor with Vim keybindings -
doesnt yq already do this? https://github.com/mikefarah/yq
comment by vivzkestrel · 2025-07-11 · in Yamlfmt: An extensible command line tool or library to format YAML files -
…I'm using jq and need a quick and easy performance boost. [1] https://github.com/01mf02/jaq [2] https://github.com/mikefarah/yq
comment by electromech · 2025-03-19 · in Make Ubuntu packages 90% faster by rebuilding them -
Just in case you didn't know: With https://github.com/mikefarah/yq you can just immediately translate YAMLs like yq some.yaml -o json
comment by couscouspie · 2024-12-08 · in JSON5 – JSON for Humans -
The “go” yq https://github.com/mikefarah/yq | yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor
comment by srott · 2024-08-19 · in Dasel: Select, put and delete data from JSON, TOML, YAML, XML and CSV -
What I often use to just get the full key paths is yq ( https://github.com/mikefarah/yq ), piping into grep when necessary yq -o=props <file> e.g. kind = Ingress metadata.name = hello spec.rules.0.host = localhost…
comment by Yasuraka · 2024-03-25 · in Show HN: Flatito, grep for YAML and JSON files -
https://github.com/mikefarah/yq Yq handles almost every format, and IMO easier to use.
comment by mutant · 2024-03-23 · in DuckDB as the New jq -
Really? What's wrong with https://github.com/mikefarah/yq ? Works quite fine.
comment by pdimitar · 2024-03-02 · in K8s Service Meshes: The Bill Comes Due -
…3 and 4 to be more like jq (but not quite the same for some reason) - yq has no if-then-else https://github.com/mikefarah/yq/issues/95 which is a poor design (or omission) in my opinion So yq works when you need to process YAML, it can…
comment by a-nikolaev · 2023-11-29 · in Jaq – A jq clone focused on correctness, speed, and simplicity -
Which yq? I prefer https://github.com/mikefarah/yq to https://github.com/kislyuk/yq .
comment by MrDrMcCoy · 2023-11-29 · in Jaq – A jq clone focused on correctness, speed, and simplicity -
…3.4.1 (Worth noting, the example uses an out of date yq, so a few modifictaions might be needed) https://github.com/mikefarah/yq
comment by freshteapot · 2023-10-09 · in HTTPie Desktop: cross-platform API testing client for humans -
…[1], another way is to use `yq -j` or `yj` [2] to convert to JSON and pipe it to `gron` [3]. [1] https://github.com/mikefarah/yq [2] https://github.com/sclevine/yj [3] https://github.com/tomnomnom/gron
comment by PhilippGille · 2023-09-28 · in That's a Lot of YAML -
…well it handles YAML corner cases or how many advanced features it's missing compared to jq. [0] https://github.com/mikefarah/yq
comment by TechBro8615 · 2023-03-27 · in Docker-compose.yml as a universal infrastructure interface -
…Or things like go run mvdan.cc/sh/v3/cmd/gosh@latest -c 'echo "cross platform shell"; go run github.com/mikefarah/yq/v3@latest r metadata.name <(kubectl get pod my-pod -o yaml)' Pretty awesome stuff, I'm always discovering new ways to use…
comment by moondev · 2023-02-12 · in Shfmt – format shell programs -
▲ 224
yq: command-line YAML, JSON, XML, CSV and properties processorstory by based2 · 2023-02-04 · 53 comments
-
Also look at `yq` - https://github.com/mikefarah/yq This is a wrapper to jq that also supports yaml and other file formats.
comment by charsi · 2022-10-28 · in Shell script best practices, from a decade of scripting things -
…attention to in the middle of the night with 2 hours left before traffic starts coming in. [0]: https://github.com/mikefarah/yq [1]: https://kustomize.io
comment by Bayart · 2022-08-10 · in Falling for Kubernetes -
https://github.com/mikefarah/yq
comment by nijave · 2022-05-16 · in Show HN: KittenDNS – Easy to setup, rule engine, LetsEncrypt compatible -
yq uses jq like syntax but works with YAML, JSON and XML. https://github.com/mikefarah/yq
comment by tzury · 2022-04-26 · in Zq: An easier and faster alternative to jq -
▲ 4
Yq – a lightweight and portable command-line YAML, JSON and XML processorstory by tzury · 2022-04-12 · 0 comments
-
you can now directly "go run" any import path go run github.com/mikefarah/yq/v3@3.4.1 It also works fine in shebang that expects input of script filepath at $1. For example "test.yaml" #!/usr/bin/env -S go run…
comment by moondev · 2022-03-11 · in Scripting with Go -
…TOML and HCL support, but not CSV. It's certainly not because there's a lack of these tools :p [1]: https://github.com/mikefarah/yq [2]: https://github.com/sclevine/yj
comment by mkroman · 2022-03-07 · in Select, put and delete data from JSON, TOML, YAML, XML and CSV files -
…* Awesome for scripting, no install step necessary For example, I like to use both yq 3.x and yq 4.x go run github.com/mikefarah/yq/v3@latest go run github.com/mikefarah/yq/v4@latest Disadvantages: * An index of "go runnable" cli programs…
comment by moondev · 2022-03-01 · in Homebrew 3.4.0 -
Thank you :-) You can use https://github.com/mikefarah/yq to convert yaml to json on the fly and pipe it into spyql. There’s an example in the Readme.
comment by dmoura · 2022-01-27 · in Show HN: SPyQL – SQL with Python in the middle -
…in milliseconds. [0] https://stackoverflow.com/a/1732454 [1] https://github.com/stedolan/jq [2] https://github.com/mikefarah/yq
comment by cfors · 2022-01-14 · in Grep one-liners as CI tasks -
▲ 5
Yq: A portable command-line YAML processorstory by thunderbong · 2021-08-24 · 0 comments
-
…or `.array[]`. Yq [1] syntax for that is much better, and yq can accept JSON files too. [1] https://github.com/mikefarah/yq
comment by kitd · 2020-07-01 · in Mastering Jq: Part 1 -
Highly recommend https://github.com/mikefarah/yq It can do everything with json as well and convert between
comment by moondev · 2020-03-19 · in Illustrated Jq Tutorial -
Personally I like https://github.com/mikefarah/yq It also converts between yaml and json with ease for writing and reading
comment by moondev · 2020-01-07 · in Show HN: jql – Easier jq Alternative with a Lispy Syntax Written in Go -
…increasing amount of yaml? Though there seems to be multiple competing tools by the same name... https://github.com/mikefarah/yq https://github.com/kislyuk/yq
comment by spoki0 · 2019-11-08 · in An Illustrated Guide to Useful Command Line Tools -
▲ 6
Yq is a portable command-line YAML processorstory by alexellisuk · 2019-10-28 · 1 comment