Skip to content

Installation

GraphQL Analyzer has three main components you can install independently:

ComponentPurposeMost users need?
VS Code extensionIDE features in VS CodeYes
CLI (graphql)Validation/linting in CIYes
LSP serverIDE features in other editorsOnly for non-VS Code

The extension bundles the LSP server — no separate installation needed.

Install GraphQL Analyzer from the VS Code Marketplace, or search “GraphQL Analyzer” in the Extensions view (Ctrl/Cmd+Shift+X).

For VS Codium, Cursor, Windsurf, and other VS Code-compatible editors, install from the Open VSX Registry.

Manual installation:

  1. Download the .vsix for your platform from the releases page
  2. Install: code --install-extension <file>.vsix

Platform-specific packages:

PlatformFile
macOS (Apple Silicon)graphql-analyzer-darwin-arm64-*.vsix
macOS (Intel)graphql-analyzer-darwin-x64-*.vsix
Linux (x86_64)graphql-analyzer-linux-x64-*.vsix
Linux (ARM64)graphql-analyzer-linux-arm64-*.vsix
Windows (x64)graphql-analyzer-win32-x64-*.vsix

Homebrew (macOS/Linux):

Terminal window
brew install trevor-scheer/graphql-analyzer/graphql-analyzer

Install script (macOS/Linux):

Terminal window
curl --proto '=https' --tlsv1.2 -LsSf https://raw.githubusercontent.com/trevor-scheer/graphql-analyzer/main/scripts/install.sh | sh

Install script (Windows PowerShell):

Terminal window
irm https://raw.githubusercontent.com/trevor-scheer/graphql-analyzer/main/scripts/install.ps1 | iex

Via Cargo:

Terminal window
cargo install --git https://github.com/trevor-scheer/graphql-analyzer graphql-cli

Binary downloads:

PlatformFile
macOS (Apple Silicon)graphql-cli-aarch64-apple-darwin.tar.xz
macOS (Intel)graphql-cli-x86_64-apple-darwin.tar.xz
Linux (x86_64)graphql-cli-x86_64-unknown-linux-gnu.tar.xz
Linux (ARM64)graphql-cli-aarch64-unknown-linux-gnu.tar.xz
Windows (x64)graphql-cli-x86_64-pc-windows-msvc.zip

Download from the releases page.

For editors other than VS Code (Neovim, Helix, etc.), install the LSP server directly.

Via Cargo:

Terminal window
cargo install --git https://github.com/trevor-scheer/graphql-analyzer graphql-lsp

Binary downloads:

PlatformFile
macOS (Apple Silicon)graphql-lsp-aarch64-apple-darwin.tar.xz
macOS (Intel)graphql-lsp-x86_64-apple-darwin.tar.xz
Linux (x86_64)graphql-lsp-x86_64-unknown-linux-gnu.tar.xz
Linux (ARM64)graphql-lsp-aarch64-unknown-linux-gnu.tar.xz
Windows (x64)graphql-lsp-x86_64-pc-windows-msvc.zip

Download from the releases page.

Terminal window
git clone https://github.com/trevor-scheer/graphql-analyzer
cd graphql-analyzer
# Build CLI
cargo build --package graphql-cli --release
# Binary at target/release/graphql
# Build LSP server
cargo build --package graphql-lsp --release
# Binary at target/release/graphql-lsp