: After installation, run jq --version to ensure it is working correctly.
For macOS users, is an indispensable command-line tool designed to slice, filter, and transform JSON data with the same ease that sed or awk handle plain text. Because it is written in portable C and has zero runtime dependencies, you can install it on almost any Apple machine, whether it's a legacy Intel model or a modern Apple Silicon (M1/M2/M3) Mac. Top Ways to Download and Install jq on Mac 1. Using Homebrew (Recommended)
If you prefer not to use a package manager, you can download a standalone prebuilt binary directly from the official jq download page .
: macOS may block the binary because it is from an "unidentified developer." You can resolve this by clicking "Allow Anyway" in System Settings > Privacy & Security or by running: sudo xattr -dr com.apple.quarantine /usr/local/bin/jq Use code with caution. 3. Other Package Managers macos - How to instal JQ without homebrew? - Stack Overflow
for your architecture (e.g., jq-macos-arm64 for Apple Silicon or jq-osx-amd64 for Intel). Step 2: Make it executable : chmod +x ~/Downloads/jq-macos-arm64 Use code with caution. Step 3: Move to PATH : sudo mv ~/Downloads/jq-macos-arm64 /usr/local/bin/jq Use code with caution.
Homebrew is the most efficient way to manage jq on macOS. It handles all dependencies automatically and makes future updates simple. : brew install jq Use code with caution.
: You can view the formula details on the Homebrew Formulae page . 2. Manual Binary Download (Without Homebrew)