Installation
sqry is a Rust binary distributed via crates.io and buildable from source. This page covers all installation paths, shell completions, and how to build the MCP server separately.
Requirements
- Rust 1.90 or later with Edition 2024 (required — sqry uses Edition 2024 language features)
- Git — for cloning the repository when building from source
To install or update Rust:
# Install rustup (if not already installed)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Update to latest stable
rustup update stable
# Verify the version
rustc --version
# Should show: rustc 1.90.0 or higher
From crates.io
The simplest installation method. Cargo fetches, compiles, and installs sqry in one step:
cargo install sqry-cli
The sqry binary is placed in ~/.cargo/bin/. Make sure this directory is in your PATH (rustup adds it automatically on most systems).
All 35 language plugins are compiled in by default, including IaC languages (Terraform, Puppet, Pulumi).
From Source
Clone the repository and install from the local workspace:
git clone https://github.com/verivus-oss/sqry.git
cd sqry
cargo install --path sqry-cli
To build a release binary without installing it system-wide:
cargo build --release --package sqry-cli
The compiled binary is placed at target/release/sqry. You can copy it to any directory in your PATH:
cp target/release/sqry ~/.local/bin/sqry
Verify
Confirm the installation succeeded:
sqry --version
You should see output like sqry 4.4.2 (version numbers vary). To list all 35 supported languages and their file extensions:
sqry --list-languages
Shell Completions
sqry can generate completion scripts for Bash, Zsh, Fish, and PowerShell.
Bash:
sqry completions bash >> ~/.bashrc
# Or for system-wide completions:
sqry completions bash > /etc/bash_completion.d/sqry
Zsh:
sqry completions zsh > ~/.zfunc/_sqry
# Ensure ~/.zfunc is in your fpath in ~/.zshrc:
# fpath=(~/.zfunc $fpath)
# autoload -Uz compinit && compinit
Fish:
sqry completions fish > ~/.config/fish/completions/sqry.fish
PowerShell:
sqry completions powershell > sqry.ps1
# Source the file from your PowerShell profile
After adding completions, start a new shell session (or source the relevant file) for them to take effect.
MCP Binary
sqry includes a native MCP (Model Context Protocol) server that exposes 33 JSON-RPC tools for AI assistants such as Claude, Codex, Gemini, Cursor, and Windsurf.
The MCP server is in the sqry-mcp crate. Build it separately from the source tree:
git clone https://github.com/verivus-oss/sqry.git
cd sqry
cargo build --release --package sqry-mcp
The binary is placed at target/release/sqry-mcp. See sqry-mcp/README.md in the repository for assistant-specific configuration (Claude Desktop, Codex, Gemini CLI, Cursor, Windsurf).