# Install tfautomv with Homebrew, Nix

Generate Terraform moved blocks automatically for painless refactoring. Version 0.7.0 via Homebrew; verified 2026-06-22.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install tfautomv
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## Package facts

- **Package key:** brew:tfautomv
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/tfautomv>
- **Version:** 0.7.0
- **Source summary:** Generate Terraform moved blocks automatically for painless refactoring
- **Homepage:** <https://github.com/busser/tfautomv>
- **Repository:** <https://github.com/busser/tfautomv>
- **Upstream docs:** <https://github.com/busser/tfautomv#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/busser/tfautomv/archive/refs/tags/v0.7.0.tar.gz>
- **Last updated:** 2026-06-22T14:06:28-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- tfautomv (cli)
- tfautomv (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.7.0
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/busser/tfautomv
- Upstream latest detected: v0.7.0 (current)
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **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

## Other Package-Manager Records

- 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


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [tfclean](https://www.automicvault.com/pkg/brew/tfclean/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, moved-blocks, terraform.
- [tfmv](https://www.automicvault.com/pkg/brew/tfmv/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, moved-blocks, refactoring.
- [iam-policy-json-to-terraform](https://www.automicvault.com/pkg/brew/iam-policy-json-to-terraform/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [terraform-docs](https://www.automicvault.com/pkg/brew/terraform-docs/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [tf-profile](https://www.automicvault.com/pkg/brew/tf-profile/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [tf-summarize](https://www.automicvault.com/pkg/brew/tf-summarize/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [repren](https://www.automicvault.com/pkg/brew/repren/) - Shares av.db curated category or tags: cli, developer-tools, refactoring.
- [tfcmt](https://www.automicvault.com/pkg/brew/tfcmt/) - Shares av.db curated category or tags: cli, developer-tools, terraform.

## Combined YAML source

View the package source record on GitHub. [combined/tfautomv.yml](https://github.com/automic-vault/db/blob/main/combined/tfautomv.yml)


## Sources

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