Automic VaultAutomic Vault

brew

使用 Homebrew 安装 tfclean

查看 tfclean 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install tfclean

local Homebrew formula metadata

概览

软件包摘要

Remove applied moved block, import block, etc

命令和别名

  • tfclean

历史

项目历史与用法

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.

安全态势

尚未找到受保护工具覆盖

没有找到 tfclean 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
tfcleancli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-26
管理器版本0.0.19
管理器更新时间2026-07-09
本地数据OK
上游当前
检测到的最新版本v0.0.19

https://github.com/takaishi/tfclean

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:tfclean
版本0.0.19
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/tfclean
主页https://github.com/takaishi/tfclean
仓库https://github.com/takaishi/tfclean
上游文档https://github.com/takaishi/tfclean#readme
许可证MIT
源码归档https://github.com/takaishi/tfclean/archive/refs/tags/v0.0.19.tar.gz
最后更新2026-07-09T15:37:37Z
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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