-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Wallace Ricardo edited this page Apr 11, 2026
·
5 revisions
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# 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- Installation — Install the binary or add the library to your project
- CLI-Usage — Queries, mutations, schema exploration, and common patterns
- Command-Reference — Complete flag reference for every command
-
Configuration —
.gqlcli.jsonenvironments, auth headers, URL precedence -
Authentication — HTTP login/logout flows backed by
.gqlcli.jsonenvironments -
Output-Formats —
toon,json,table,llm,compact - Batch-Operations — Execute multiple operations in one request with jq filtering
-
Claude-Integration — Install the
gqlcliskill for Claude Code
If you're building a Go CLI tool and want to use gqlcli as a library:
- Library-HTTP-Mode — Wrap an external GraphQL API
- Library-Inline-Mode — Embed a gqlgen schema directly in your binary
- Example-Application — Complete working example