macOS
brew install tfmvlocal Homebrew formula metadata
sudo port install tfmvMacPorts ports tree · sysutils/tfmv/Portfile · source: api.github.com
brew
CLI to rename Terraform resources and generate moved blocks. Version 1.0.0 via Homebrew; verified from local package data.
install
brew install tfmvlocal Homebrew formula metadata
sudo port install tfmvMacPorts ports tree · sysutils/tfmv/Portfile · source: api.github.com
overview
CLI to rename Terraform resources and generate moved blocks
history
tfmv is a Terraform refactoring CLI by suzuki-shunsuke for renaming resources, data sources, and modules while generating Terraform moved blocks. Its README frames the tool around the practical problem of changing Terraform block names without losing state continuity.
The project emerged in the Terraform 1.x era after moved blocks became the standard way to record address changes in configuration. The README demonstrates a focused workflow: scan Terraform files, rename matching block labels, update references, and emit moved blocks, with no need to run terraform init for the shown rename operation.
Adoption appears specialized rather than broad: Homebrew lists tfmv as a bottled formula at version 1.0.0 and reports low-volume installs. That pattern fits a maintenance utility used when teams perform Terraform module or naming cleanups rather than a daily Terraform wrapper.
tfmv is used from a Terraform working tree with replacement rules, regular expressions, or Jsonnet-driven rename logic. The README shows examples such as replacing hyphens with underscores, filtering addresses with include/exclude regular expressions, writing moved blocks to moved.tf or another file, and recursively scanning Terraform files while ignoring directories such as .git and .terraform.
For package-manager users, tfmv is a small example of the Terraform ecosystem spawning single-purpose CLIs around state-safe refactoring. Its Homebrew and MacPorts packaging make it convenient for infrastructure engineers who want a one-command tool during large address-renaming migrations.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
tfmv | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/suzuki-shunsuke/tfmv
install metadata
| Package key | brew:tfmv |
|---|---|
| Version | 1.0.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/tfmv |
| Homepage | https://github.com/suzuki-shunsuke/tfmv |
| Repository | https://github.com/suzuki-shunsuke/tfmv |
| Upstream docs | https://github.com/suzuki-shunsuke/tfmv#readme |
| License | MIT |
| Source archive | https://github.com/suzuki-shunsuke/tfmv/archive/refs/tags/v1.0.0.tar.gz |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | tfmv |
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
tfmv
sudo port install tfmvsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.