Skip to content

❗️DEPRECATED❗️ Command-line jsqry (like jq)

Notifications You must be signed in to change notification settings

jsqry/jsqry-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[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\" 
"