# tfclean を Homebrew でインストール

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

## インストール

```sh
sudo av install brew:tfclean
```

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

### macOS

- Homebrew (100%):

```sh
brew install tfclean
```

  証拠: local Homebrew formula metadata

## パッケージ情報

- **パッケージキー:** brew:tfclean
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/tfclean>
- **バージョン:** 0.0.19
- **ソース概要:** Remove applied moved block, import block, etc
- **ホームページ:** <https://github.com/takaishi/tfclean>
- **リポジトリ:** <https://github.com/takaishi/tfclean>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/takaishi/tfclean/archive/refs/tags/v0.0.19.tar.gz>
- **最終更新:** 2026-07-26T00:50:38+02:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

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

## ビルド依存関係

- go

## インストール挙動

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

## バージョンと鮮度

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

tfclean is a Terraform cleanup CLI that removes applied `moved`, `import`, and `removed` blocks from configuration files. It targets the maintenance phase after refactors or imports have already been applied.

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

The repository began in June 2024 with an initial implementation, README, and import-block support. v0.0.1 was tagged on 2024-07-01, and the changelog shows rapid iteration through parsing fixes and support for more Terraform block types.

By v0.0.4 the project had support for `removed` blocks and forced removal of all block types. Later releases added flags, pre-commit support, GitHub Action installation, aqua installation docs, S3 backend auto-detection, and parser refactoring.

### 採用の歴史

The README documents installation through the author's Homebrew tap, `go install`, aqua, GitHub Actions, and release binaries. It also includes a GitHub Actions workflow that runs tfclean and opens a pull request when cleanup changes are detected.

### 使われ方

Users point `tfclean` at a directory of Terraform files to remove all relevant blocks, or pass `--tfstate` so it removes only blocks that have already been applied. With S3 backends, the tool can detect state location from Terraform backend configuration in `.tf` files.

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

tfclean is a package-nerd maintenance tool: it exists because modern Terraform/OpenTofu workflows produce temporary declarative migration blocks that should eventually disappear. Installing it as a CLI or GitHub Action lets teams automate that cleanup without hand-editing HCL.

### タイムライン

- 2024-06-24: Repository initialized
- 2024-06-27: Import-block support commit
- 2024-07-01: v0.0.1 release
- 2024-08-31: v0.0.4 added removed-block and force-removal work
- 2025-07-19: v0.0.10 added GitHub Action support
- 2025-11-30: v0.0.15 added S3 backend auto-detection
- 2026-05-14: v0.0.18 release

### Related projects

- Terraform supplies the configuration files and state model tfclean inspects.
- GitHub Actions integration is documented for automated cleanup pull requests.
- aqua is documented as a declarative CLI version-manager installation path.

### ソース

- Official git tags and commit history from https://github.com/takaishi/tfclean
- <https://github.com/takaishi/tfclean/blob/main/CHANGELOG.md>
- <https://github.com/takaishi/tfclean/blob/main/README.md>


## セキュリティノート

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


## ソースデータベース詳細

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


## 関連リンク

- [Cloud CLI packages](https://pkg.so/ja/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [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.
- [go](https://pkg.so/ja/brew/go/) - Build dependency declared by Homebrew.
- [tfmv](https://pkg.so/ja/brew/tfmv/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, moved-blocks, terraform.
- [tfautomv](https://pkg.so/ja/brew/tfautomv/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, moved-blocks, terraform.
- [tfenv](https://pkg.so/ja/brew/tfenv/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [terraform-docs](https://pkg.so/ja/brew/terraform-docs/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [tfmigrate](https://pkg.so/ja/brew/tfmigrate/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [tf-summarize](https://pkg.so/ja/brew/tf-summarize/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [tfupdate](https://pkg.so/ja/brew/tfupdate/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [iam-policy-json-to-terraform](https://pkg.so/ja/brew/iam-policy-json-to-terraform/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [tf-profile](https://pkg.so/ja/brew/tf-profile/) - Local package facts share a topical domain. Shared terms: cli, code, developer, developer-tools, infrastructure.

## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
