One tool to replace jq, yq, grep, awk, and cut. Auto-detects format. Simple selectors.
npm install -g @aryanbhosale/pick
Objects, arrays, nested structures
Config files, Kubernetes manifests
Cargo.toml, pyproject.toml
Environment variable files
curl -I output, response headers
Structured log lines
Tabular data with headers
Key-value fallback and substring search
| foo | Top-level key |
| foo.bar | Nested key |
| foo[0] | Array index |
| foo[-1] | Last element |
| foo[*].name | Pluck field from all elements |
| [0] | Index into root array |
| "dotted.key".sub | Quoted key for dots in names |
-i, --input <format>
Force input format
-f, --file <path>
Read from file instead of stdin
--json
Output as JSON
--lines
One element per line
-1, --first
Only first result
-d, --default <val>
Fallback value
-e, --exists
Exit code only (0/1)
-c, --count
Count matches