Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 721 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 721 Bytes

[DEPRECATED] jsqry-cli

⚠️ This project is superseded by jsqry-cli2 ⚠️

Command-line jsqry (like jq)

$ echo '[{"a":1},{"a":2}]' | jsqry 'a' # query
[1, 2]

$ echo '[{"a":1},{"a":2}]' | jsqry -1 'a' # first
1

The output is pretty-printed by default.

Install

Sorry, but only Linux x64 is supported at the moment. Hopefully this will improve.

To install or update the tool simply run the command below.

$ sudo bash -e -c "
curl -L https://github.com/jsqry/jsqry-cli/releases/download/v0.0.1/jsqry-linux-amd64.gz \
    | zcat > /usr/local/bin/jsqry
chmod +x /usr/local/bin/jsqry
echo \"jsqry \$(jsqry -v) installed successfully\" 
"