# 使用 Homebrew, Nix 安装 tfautomv

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

## 安装

```sh
sudo av install brew:tfautomv
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tfautomv
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#tfautomv
```

  证据: nixpkgs package indexes: pkgs/by-name/tf/tfautomv/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:tfautomv
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/tfautomv>
- **版本:** 0.7.0
- **来源摘要:** Generate Terraform moved blocks automatically for painless refactoring
- **主页:** <https://github.com/busser/tfautomv>
- **仓库:** <https://github.com/busser/tfautomv>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/busser/tfautomv/archive/refs/tags/v0.7.0.tar.gz>
- **最后更新:** 2026-07-26T00:50:38+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- tfautomv (cli)
- tfautomv (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.7.0
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/busser/tfautomv
- 检测到的最新版本: v0.7.0 (当前)
## 项目历史与用法

tfautomv is a Terraform and OpenTofu refactoring assistant that detects create/delete pairs in plans and generates `moved` blocks or `terraform state mv` commands. Its purpose is to preserve state when resources are renamed or moved in code.

### 项目历史

The project started in April 2022 with design documentation, followed by a July 2022 MVP and v0.1.0 tag. The README now marks the tool stable and used in production, with maintenance mostly limited to dependency updates and bug reports.

The tool grew from generating Terraform moved blocks into supporting state move commands, cross-directory moves, OpenTofu through `--terraform-bin`, preplanned files, verbosity for unmatched resources, and ignore rules for provider quirks.

### 采用历史

The README documents Homebrew, a shell installer, Arch/Yay, asdf, releases, and source builds. The package input also records Homebrew and Nix availability, matching the tool's Unix-centric target audience.

### 使用方式

Users run `tfautomv` in a Terraform working directory after a pure refactor. The tool runs or reads a plan, identifies likely state-preserving moves, writes `moves.tf`, or emits shell commands for `terraform state mv` review and execution.

The official workflow recommends separating structural refactors from configuration changes, running tfautomv, applying the generated moves until the plan shows no infrastructure changes, and then making attribute changes separately.

### 为什么软件包爱好者会关心

tfautomv is significant to Terraform package users because it automates a formerly manual refactoring chore. It also tracks the post-Terraform-fork ecosystem by explicitly supporting OpenTofu while retaining Terraform-compatible command semantics.

### 时间线

- 2022-04-16: First design commit
- 2022-07-14: MVP implementation commit
- 2022-07-15: v0.1.0 tag
- 2023-11-15: v0.5.4 tag
- 2024-02-13: v0.6.0 tag
- 2025-06-06: v0.7.0 tag

### Related projects

- Terraform supplies plan/state semantics and the moved-block syntax.
- OpenTofu is supported through the `--terraform-bin` flag.
- Terragrunt is discussed as a wrapper-script integration rather than a direct binary replacement.

### 来源

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


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

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

## 其他软件包管理器记录

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


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [tfmigrate](https://pkg.so/zh-hans/brew/tfmigrate/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, opentofu, terraform.
- [tfupdate](https://pkg.so/zh-hans/brew/tfupdate/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, opentofu, terraform.
- [tfschema](https://pkg.so/zh-hans/brew/tfschema/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, opentofu, terraform.
- [tfclean](https://pkg.so/zh-hans/brew/tfclean/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, moved-blocks, terraform.
- [tfmv](https://pkg.so/zh-hans/brew/tfmv/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, moved-blocks, terraform.
- [terragrunt](https://pkg.so/zh-hans/brew/terragrunt/) - Shares pkgdb curated category or tags: cli, developer-tools, opentofu, terraform.
- [tfenv](https://pkg.so/zh-hans/brew/tfenv/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [terraform-docs](https://pkg.so/zh-hans/brew/terraform-docs/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.

## Combined YAML source

View the package source record on GitHub. [combined/tfautomv.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tfautomv.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
- external package-manager database matches
- cross-ecosystem install command graph
