# tfmv を Homebrew, MacPorts でインストール

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

## インストール

```sh
sudo av install brew:tfmv
```

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

### macOS

- Homebrew (100%):

```sh
brew install tfmv
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tfmv
```

  証拠: MacPorts ports tree: sysutils/tfmv/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:tfmv
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.0.0
- **ソース概要:** CLI to rename Terraform resources and generate moved blocks
- **ホームページ:** <https://github.com/suzuki-shunsuke/tfmv>
- **リポジトリ:** <https://github.com/suzuki-shunsuke/tfmv>
- **最終更新:** 2026-07-26T00:50:39+02:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- tfmv (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.0.0
## プロジェクトの歴史と使われ方

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.

### タイムライン

- 2025: GitHub tags list v0.2.8 in July and v1.0.0 in December.
- 2026: Homebrew formula metadata lists stable version 1.0.0 with bottled builds.

### Related projects

- Terraform moved blocks
- Terraform CLI
- Jsonnet

### ソース

- <https://formulae.brew.sh/api/formula/tfmv.json>
- <https://github.com/suzuki-shunsuke/tfmv#readme>
- <https://github.com/suzuki-shunsuke/tfmv/tags>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- MacPorts - tfmv: normalized package name match | MacPorts ports tree: sysutils/tfmv/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
