Automic VaultAutomic Vault

brew

Install sqruff with Homebrew, apk, Nix, scoop

Fast SQL formatter/linter. Version 0.39.0 via Homebrew; verified 2026-07-03.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install sqruff

local Homebrew formula metadata

Linux

Alpine Linux apkverified · 92%
sudo apk add sqruff

Alpine Linux edge package indexes · sqruff · source: dl-cdn.alpinelinux.org

Nixverified · 92%
nix profile install nixpkgs#sqruff

nixpkgs package indexes · pkgs/by-name/sq/sqruff/package.nix · source: api.github.com

Windows

Scoopverified · 92%
scoop install main/sqruff

Scoop official bucket manifest trees · bucket/sqruff.json · source: api.github.com

overview

Package summary

Fast SQL formatter/linter

Commands and aliases

  • sqruff

history

Project history and usage

sqruff is a Rust-written SQL linter and formatter packaged as a fast, portable developer CLI.

Project history

The official sqruff README describes the project as a SQL linter and formatter written in Rust, with configurable linting, automated formatting, speed, and portability as core goals. Official repository metadata places public development in 2023.

The official README presents a package-manager-first quickstart for macOS with brew install sqruff, plus documentation for pip, cargo, and binary downloads. Release pages show continued fast iteration with tagged releases through the 0.3x series.

Adoption history

The supplied package-manager facts show sqruff available through Homebrew, Alpine, Nix, and Scoop. That cross-platform packaging matches the README's portability pitch and makes the tool suitable for local editors, pre-commit hooks, and CI lint jobs.

How it is used

The README's basic workflow is to install sqruff, run sqruff lint with a SQL dialect such as postgres, and optionally create a .sqruff file in the project root so subsequent lint runs can infer configuration.

Why package nerds care

Package nerds care about sqruff because SQL formatting and linting often sit in awkward dependency territory between data teams, Python tools, Rust binaries, and editor integrations. sqruff's appeal is that the formatter/linter can be shipped as one fast CLI across package managers.

Timeline

  • 2023: Official repository metadata reports public repository creation.
  • 2024: GitHub issue history shows users configuring .sqruff in project roots for editor and SQL dialect workflows.
  • 2026: Release page shows active 0.3x releases with downloadable assets.

Related projects

  • The official documentation connects sqruff to SQL dialect workflows, editor/CI usage, and Quary's hosted playground and docs.

security posture

Risk level: blue

broad file, network, media, or database tool signal.

Risk classifier

blue risk · medium confidence · tool

Why

  • broad file, network, media, or database tool signal

Signals

  • text:sql

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
.sqruff

executables

Installed executables

CommandKindExposureNote
sqruffcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version0.39.0
manager updated2026-07-03
local dataok
upstreamcurrent
latest detectedv0.39.0

https://github.com/quarylabs/sqruff

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:sqruff
Version0.39.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/sqruff
Homepagehttps://github.com/quarylabs/sqruff
Repositoryhttps://github.com/quarylabs/sqruff
Upstream docshttps://github.com/quarylabs/sqruff#readme
LicenseApache-2.0
Source archivehttps://github.com/quarylabs/sqruff/archive/refs/tags/v0.39.0.tar.gz
Last updated2026-07-03T15:51:03Z
Pulseupdated
Build dependenciesrust
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namesqruff
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

sqruff

nix profile install nixpkgs#sqruff
  • normalized package name match
  • Matched by: Sqruff
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/sq/sqruff/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

sqruff 0.25.26-r0

Fast SQL formatter/linter

https://playground.quary.dev/

sudo apk add sqruff
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: sqruff
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Sqruff
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: sqruff from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

sqruff-doc 0.25.26-r0

Fast SQL formatter/linter (documentation)

https://playground.quary.dev/

sudo apk add sqruff-doc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: sqruff
  • normalized package name match
  • Matched by: Sqruff
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: sqruff-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
Scoop95%

main/sqruff

scoop install main/sqruff
  • normalized package name match
  • Matched by: Sqruff
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/sqruff.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment