Follow these steps to set up the necessary tools and environment variables.
- Download
jq
from the official releases page.- Choose
jq-win64.exe
if you’re on a 64-bit system.
- Choose
- Rename the downloaded file to
jq.exe
. - Move
jq.exe
to a directory that is in your system’sPATH
(e.g.,C:\Windows\System32
or create a folder likeC:\Program Files\jq
and add it to thePATH
). - Verify the installation by opening Command Prompt or PowerShell and running:
jq --version
- If you use Chocolatey (Windows package manager), you can install
jq
using:choco install jq
- Verify the installation by running:
jq --version
Most Linux distributions include jq
in their package managers. Use the following commands based on your Linux distribution:
-
Debian/Ubuntu:
sudo apt-get install jq
-
Fedora:
sudo dnf install jq
-
Arch Linux:
sudo pacman -S jq
- Download the binary from the official releases page.
- Move the
jq
binary to/usr/local/bin
and set the correct permissions:sudo mv jq-linux64 /usr/local/bin/jq sudo chmod +x /usr/local/bin/jq
- Verify the installation by running:
jq --version
To permanently add the GitHub token as an environment variable:
- Press
Win + X
and choose System. - Click Advanced system settings > Environment Variables.
- Under User variables, click New.
- Set the Variable name to
GITHUB_TAGS_TOKEN
and the Variable value to your personal GitHub token. - Click OK and Apply to save the changes.
To verify, open a new Command Prompt or PowerShell and run:
echo %GITHUB_TAGS_TOKEN%
To add the GitHub token permanently:
- Open your shell’s configuration file (
~/.bashrc
or~/.zshrc
). - Add the following line to the file:
export GITHUB_TAGS_TOKEN=your_generated_token
- Save the file and apply the changes by running:
source ~/.bashrc # or ~/.zshrc if using zsh
To verify, open a new terminal and run:
echo $GITHUB_TAGS_TOKEN