# Install sql-lint with Homebrew

SQL linter to do sanity checks on your queries and bring errors back from the DB. Version 1.0.2 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:sql-lint
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install sql-lint
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:sql-lint
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/sql-lint>
- **Version:** 1.0.2
- **Source summary:** SQL linter to do sanity checks on your queries and bring errors back from the DB
- **Homepage:** <https://github.com/joereynolds/sql-lint>
- **Repository:** <https://github.com/joereynolds/sql-lint>
- **Upstream docs:** <https://github.com/joereynolds/sql-lint#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/sql-lint/-/sql-lint-1.0.2.tgz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- sql-lint (cli)
- sql-lint (alias)

## Dependencies

- node

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.0.2
- Local data: ok
- Upstream repository: https://github.com/joereynolds/sql-lint
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

sql-lint is a command-line SQL linter for MySQL and PostgreSQL-oriented workflows. Its official documentation positions it as a sanity-check tool that reports local lint findings and can also bring back database-server errors.

### Project history

The GitHub repository was created in July 2018 and later moved its main development branch to `typescript`. The project reached a 1.0.0 release in June 2022, when the maintainer described it as stable and added command-line support for ignoring selected lint errors.

### Adoption history

The README documents npm and Yarn global installation, downloadable release binaries, and editor integration through external-tool support. The release history shows packaged Linux, macOS, and Windows binaries, which made the tool usable outside Node-centric setups.

### How it is used

sql-lint is usually run against files, directories, or stdin, for example `sql-lint .`, `sql-lint create-person.sql`, or piping a query into the command. Its configuration can be passed through CLI flags, discovered as `.sql-lint.json` while walking up from the current directory, or read from `~/.config/sql-lint/config.json`.

### Why package nerds care

Package nerds care about sql-lint because it is a small, composable CLI that brings SQL review into shells, editor integrations, and CI-style checks without requiring a full IDE. Its XDG-style global config and project-local config discovery match common Unix packaging expectations.

### Timeline

- 2018: GitHub repository created.
- 2020: v0.0.14 release improved recursive directory linting and simplified CLI arguments.
- 2022: v1.0.0 release declared the project stable.
- 2025: v1.0.1 release added directory-local config support and more SQL statement support.

### Related projects

- The README lists editor integration through ALE for Vim and Neovim and an Inline SQL extension for VS Code. It also overlaps culturally with SQL Language Server through the same SQL editing and linting niche.

### Sources

- <https://api.github.com/repos/joereynolds/sql-lint>
- <https://api.github.com/repos/joereynolds/sql-lint/releases>
- <https://github.com/joereynolds/sql-lint#readme>
- <https://github.com/joereynolds/sql-lint/blob/typescript/docs/files/configuration.md>
- <https://github.com/joereynolds/sql-lint/blob/typescript/docs/files/introduction.md>


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal


## 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

- Unix: .sql-lint.json, ~/.config/sql-lint/config.json

## Credential files

- Unix: .sql-lint.json, ~/.config/sql-lint/config.json
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** sql-lint
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [sqruff](https://www.automicvault.com/pkg/brew/sqruff/) - Shares av.db curated category or tags: cli, developer-tools, linter, linters, sql.
- [sqlfluff](https://www.automicvault.com/pkg/brew/sqlfluff/) - Shares av.db curated category or tags: cli, developer-tools, linter, sql.
- [sleek](https://www.automicvault.com/pkg/brew/sleek/) - Shares av.db curated category or tags: cli, developer-tools, sql.
- [sqlfmt](https://www.automicvault.com/pkg/brew/sqlfmt/) - Shares av.db curated category or tags: cli, developer-tools, sql.
- [sqlparse](https://www.automicvault.com/pkg/brew/sqlparse/) - Shares av.db curated category or tags: cli, developer-tools, sql.
- [standard](https://www.automicvault.com/pkg/brew/standard/) - Shares av.db curated category or tags: cli, developer-tools, linter, linters.
- [stylelint](https://www.automicvault.com/pkg/brew/stylelint/) - Shares av.db curated category or tags: cli, developer-tools, linter, linters.
- [yamllint](https://www.automicvault.com/pkg/brew/yamllint/) - Shares av.db curated category or tags: cli, developer-tools, linter, linters.
- [sql-language-server](https://www.automicvault.com/pkg/brew/sql-language-server/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, node, sql.
- [sql-migrate](https://www.automicvault.com/pkg/brew/sql-migrate/) - Package names and metadata indicate a similar tool family. Shared terms: cli, database, developer, developer-tools, sql.

## Combined YAML source

View the package source record on GitHub. [combined/sql-lint.yml](https://github.com/automic-vault/db/blob/main/combined/sql-lint.yml)


## Sources

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