How to install JQ on Mac by command-line?

Ross Brannigan picture Ross Brannigan · Jun 7, 2016 · Viewed 120.3k times · Source

I need to know the most efficient way of installing JQ on Mac (el capitan). The code is downloaded to my mac but I would like to know how I can install and operate the via the command line.

Answer

Ajeet Khan picture Ajeet Khan · Mar 13, 2018

You can install any application/packages with brew on mac. If you want to know the exact command just search your package on https://brewinstall.org and you will get the set of commands needed to install that package.

First open terminal and install brew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null

Now Install jq

brew install jq