# cljfmt を Homebrew, Nix でインストール

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

## インストール

```sh
sudo av install brew:cljfmt
```

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

### macOS

- Homebrew (100%):

```sh
brew install cljfmt
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cljfmt
```

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

## パッケージ情報

- **パッケージキー:** brew:cljfmt
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/cljfmt>
- **バージョン:** 0.16.5
- **ソース概要:** Formatting Clojure code
- **ホームページ:** <https://github.com/weavejester/cljfmt>
- **リポジトリ:** <https://github.com/weavejester/cljfmt>
- **ライセンス:** EPL-1.0
- **ソースアーカイブ:** <https://github.com/weavejester/cljfmt/archive/refs/tags/0.16.5.tar.gz>
- **最終更新:** 2026-07-14T11:47:33Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- cljfmt (cli)
- cljfmt (エイリアス)

## ビルド依存関係

- graalvm
- leiningen

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.16.5
- マネージャ更新日: 2026-07-14
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/weavejester/cljfmt
- 検出された最新: 0.16.5 (最新)
## プロジェクトの歴史と使われ方

cljfmt is a formatter and checker for Clojure code, designed to fix formatting errors with minimal structural changes while following defaults based on the Clojure Style Guide.

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

cljfmt is maintained under James Reeves's weavejester namespace. The project presents itself as both a standalone CLI and a Clojure library for detecting and fixing formatting errors in Clojure source.

The changelog shows a long 0.x evolution from Leiningen-era plugin usage toward modern Clojure tooling. Version 0.10.0 added support for `clj -T` tools and Babashka use, 0.10.2 added prebuilt native binaries, 0.11.0 moved important CLI options into configuration, and 0.16.x continued tightening configuration and indentation behavior.

### 採用の歴史

cljfmt's adoption follows Clojure's build-tool culture: the README documents standalone binaries, Homebrew installation, Clojure CLI tools, Leiningen plugin usage, library usage, Babashka tasks, and editor integrations. The batch input records packages in Homebrew and Nix.

Editor integrations listed by upstream include Calva, CIDER, clojureVSCode, and vim-cljfmt, indicating that cljfmt became a formatting backend used beyond direct terminal invocation.

### 使われ方

Users run `cljfmt check` to detect formatting errors and `cljfmt fix` to rewrite files. Projects can configure behavior through `.cljfmt.edn`, `cljfmt.edn`, or a `:cljfmt` key in Leiningen's `project.clj`.

The indentation documentation explains Clojure-specific rules for macros and forms through `:indents` and `:extra-indents`, which is the core reason cljfmt is more than a generic pretty-printer.

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

cljfmt matters to package nerds because it packages Clojure style policy into a repeatable CLI used in CI, editors, and build tools. The move to prebuilt native binaries also made it friendlier to Homebrew-style formulae, where startup time and dependency weight matter.

For Clojure ecosystems, cljfmt is a representative example of a tool that must straddle Maven coordinates, Git-based Clojure tools, Leiningen plugins, Babashka tasks, standalone binaries, and editor integrations.

### タイムライン

- 2014: GitHub repository created.
- 2023: 0.10.0 adds Clojure CLI tool support and partial Babashka support.
- 2023: 0.10.2 adds prebuilt native binaries for the CLI.
- 2023: 0.11.0 splits indentation configuration and removes old CLI configuration keys.
- 2026: 0.16.0 ignores `.clj` config files by default and adds additional formatting options.
- 2026: 0.16.4 adds user-configuration validation.

### Related projects

- Related projects include zprint, the Clojure Style Guide, Leiningen, the official Clojure CLI tools, Babashka, Calva, CIDER, clojureVSCode, and vim-cljfmt.

### ソース

- <https://github.com/weavejester/cljfmt#readme>
- <https://github.com/weavejester/cljfmt/blob/master/CHANGELOG.md>
- <https://github.com/weavejester/cljfmt/blob/master/docs/INDENTS.md>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals


## 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: .cljfmt.edn, cljfmt.edn, project.clj (:cljfmt key)
## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cljfmt
- **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 - cljfmt: normalized package name match | nixpkgs package indexes: pkgs/by-name/cl/cljfmt/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.
- [leiningen](https://pkg.so/ja/brew/leiningen/) - Build dependency declared by Homebrew.
- [graalvm](https://pkg.so/ja/brew/graalvm/) - Build dependency declared by Homebrew.
- [swiftformat](https://pkg.so/ja/brew/swiftformat/) - Shares pkgdb curated category or tags: cli, code-style, developer-tools, formatter.
- [black](https://pkg.so/ja/brew/black/) - Shares pkgdb curated category or tags: cli, code-style, developer-tools, formatter.
- [stylua](https://pkg.so/ja/brew/stylua/) - Shares pkgdb curated category or tags: cli, code-style, developer-tools, formatter.
- [gofumpt](https://pkg.so/ja/brew/gofumpt/) - Shares pkgdb curated category or tags: cli, code-style, developer-tools, formatter.
- [ktfmt](https://pkg.so/ja/brew/ktfmt/) - Shares pkgdb curated category or tags: cli, code-style, developer-tools, formatter.
- [gnu-indent](https://pkg.so/ja/brew/gnu-indent/) - Shares pkgdb curated category or tags: cli, code-style, developer-tools, formatter.
- [yapf](https://pkg.so/ja/brew/yapf/) - Shares pkgdb curated category or tags: cli, code-style, developer-tools, formatter.
- [snakefmt](https://pkg.so/ja/brew/snakefmt/) - Shares pkgdb curated category or tags: cli, code-style, developer-tools, formatter.
- [scalariform](https://pkg.so/ja/brew/scalariform/) - Local package facts share a topical domain. Shared terms: cli, code, code-style, developer, developer-tools.
- [erlfmt](https://pkg.so/ja/brew/erlfmt/) - Local package facts share a topical domain. Shared terms: cli, code, code-style, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/cljfmt.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cljfmt.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
