# sql-formatter を Homebrew, Nix でインストール

sql-formatter のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install sql-formatter
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#sql-formatter
```

  証拠: nixpkgs package indexes: pkgs/by-name/sq/sql-formatter/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:sql-formatter
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/sql-formatter>
- **バージョン:** 15.8.2
- **ソース概要:** Whitespace formatter for different query languages
- **ホームページ:** <https://sql-formatter-org.github.io/sql-formatter/>
- **上流ドキュメント:** <https://sql-formatter-org.github.io/sql-formatter/>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://registry.npmjs.org/sql-formatter/-/sql-formatter-15.8.2.tgz>
- **最終更新:** 2026-06-22T14:17:23Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- sql-formatter (cli)
- sql-formatter (エイリアス)

## 依存関係

- node

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 all

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 15.8.2
- マネージャ更新日: 2026-06-22
- ローカルデータ: OK
- 上流リポジトリ: https://sql-formatter-org.github.io/sql-formatter/
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

SQL Formatter is a TypeScript and JavaScript library and CLI for pretty-printing SQL and related query languages.

### プロジェクトの歴史

The project was created in 2016 and its README says it started as a port of a PHP library before diverging substantially. It grew into a multi-dialect formatter supporting engines and query languages including BigQuery, ClickHouse, DB2, DuckDB, Hive, MariaDB, MySQL, N1QL, Oracle PL/SQL, PostgreSQL, Redshift, Snowflake, Spark, SQLite, Transact-SQL, Trino, and others.

### 採用の歴史

SQL Formatter is primarily distributed through the JavaScript package ecosystem, with the README recommending npm, yarn, pnpm, or bun. The supplied package metadata also shows Homebrew and Nix packaging for the CLI, and the organization maintains an official VS Code extension.

### 使われ方

The library exposes a `format` function for applications, while the CLI installs as `sql-formatter` and can format stdin or a file. It accepts language and config options, searches for `.sql-formatter.json` in the current or parent directories, and can also use a config path or JSON string passed with `--config`.

### パッケージ好きにとっての重要性

Package nerds care about SQL Formatter because it is a small, installable formatting primitive that can be embedded in editors, scripts, CI, and language tooling. Its appeal is broad dialect coverage and simple package-manager installation rather than a full SQL linting framework.

### タイムライン

- 2016: GitHub repository created and v0.0.1 published.
- 2026: v15.8.2 published on GitHub releases.

### Related projects

- The README credits the original PHP sql-formatter library as its starting point and links to official editor integrations, including the SQL Formatter VS Code extension.

### ソース

- GitHub API repository and releases metadata for sql-formatter-org/sql-formatter, accessed 2026-07-02
- <https://github.com/sql-formatter-org/sql-formatter>
- <https://raw.githubusercontent.com/sql-formatter-org/sql-formatter/master/package.json>
- <https://sql-formatter-org.github.io/sql-formatter/>
- input source_facts.package-manager


## セキュリティノート

sql-formatter に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、パッケージメタデータはここに公開されています。



## 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-formatter.json
## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** sql-formatter
- **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

## 他のパッケージマネージャ記録

- Nix - sql-formatter: normalized package name match | nixpkgs package indexes: pkgs/by-name/sq/sql-formatter/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [node](https://pkg.so/ja/brew/node/) - Runtime dependency declared by Homebrew.
- [pgformatter](https://pkg.so/ja/brew/pgformatter/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, sql.
- [prettier](https://pkg.so/ja/brew/prettier/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, javascript, typescript.
- [oxfmt](https://pkg.so/ja/brew/oxfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, javascript, typescript.
- [rubyfmt](https://pkg.so/ja/brew/rubyfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter.
- [jsonpp](https://pkg.so/ja/brew/jsonpp/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter.
- [snakefmt](https://pkg.so/ja/brew/snakefmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter.
- [odinfmt](https://pkg.so/ja/brew/odinfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter.
- [jsonfmt](https://pkg.so/ja/brew/jsonfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter.
- [sql-formatter](https://pkg.so/ja/npm/sql-formatter/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, developer, developer-tools, formatter, query.
- [sql-language-server](https://pkg.so/ja/brew/sql-language-server/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, node, sql.
- [sql-lint](https://pkg.so/ja/brew/sql-lint/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, node, sql.
- [sql-formatter](https://pkg.so/ja/npm/sql-formatter/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/sql-formatter.yml](https://github.com/mxcl/pkgdb/blob/main/combined/sql-formatter.yml)


## ソース

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