Skip to content
Wallace Ricardo edited this page Apr 11, 2026 · 5 revisions

gqlcli

A command-line client for any GraphQL API. Discover operations, run queries and mutations, and explore schemas — all from the terminal.

go install github.com/wricardo/gqlcli/cmd/gqlcli@latest

What you can do

# See what queries are available
gqlcli queries

# Run a query
gqlcli query '{ users { id name email } }'

# Run a mutation
gqlcli mutation \
  --mutation 'mutation CreateUser($input: CreateUserInput!) { createUser(input: $input) { id } }' \
  --input '{"name":"Alice","email":"alice@example.com"}'

# Explore a type
gqlcli describe User --args

# Point at any server
gqlcli queries --url https://api.example.com/graphql

Documentation

Using the CLI

Using gqlcli as a Go library

If you're building a Go CLI tool and want to use gqlcli as a library:

Clone this wiki locally