-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Wallace Ricardo edited this page May 29, 2026
·
3 revisions
Pre-built binaries are available for macOS, Linux, and Windows on the Releases page.
macOS / Linux — one-liner (auto-detects OS and architecture):
curl -fsSL https://raw.githubusercontent.com/wricardo/gqlcli/main/install.sh | bashInstalls to /usr/local/bin/gqlcli. Override with INSTALL_DIR:
INSTALL_DIR=~/.local/bin curl -fsSL https://raw.githubusercontent.com/wricardo/gqlcli/main/install.sh | bashApple Silicon (M1/M2/M3):
curl -L https://github.com/wricardo/gqlcli/releases/latest/download/gqlcli_darwin_arm64.tar.gz | tar xz
sudo mv gqlcli /usr/local/bin/Intel:
curl -L https://github.com/wricardo/gqlcli/releases/latest/download/gqlcli_darwin_amd64.tar.gz | tar xz
sudo mv gqlcli /usr/local/bin/x86_64:
curl -L https://github.com/wricardo/gqlcli/releases/latest/download/gqlcli_linux_amd64.tar.gz | tar xz
sudo mv gqlcli /usr/local/bin/ARM64:
curl -L https://github.com/wricardo/gqlcli/releases/latest/download/gqlcli_linux_arm64.tar.gz | tar xz
sudo mv gqlcli /usr/local/bin/Download gqlcli_windows_amd64.zip from the Releases page, extract it, and move gqlcli.exe to a directory in your PATH.
gqlcli --helpIf you have Go 1.20+ installed:
go install github.com/wricardo/gqlcli/cmd/gqlcli@latestThe binary is installed to $GOPATH/bin or $HOME/go/bin. Make sure that directory is in your PATH.
git clone https://github.com/wricardo/gqlcli.git
cd gqlcli
make installThe install target builds and copies the binary to $GOPATH/bin.
Other useful targets:
make build # Build to ./bin/gqlcli
make dev # Build and run tests
make help # List all targetsgo get github.com/wricardo/gqlcliThen import:
import gqlcli "github.com/wricardo/gqlcli/pkg"For usage examples, see Library-HTTP-Mode and Library-Inline-Mode.
# Binary: re-download from the Releases page, or:
go install github.com/wricardo/gqlcli/cmd/gqlcli@latest
# From source:
cd gqlcli && git pull && make install