tfclean
« Back to VersTracker
Description:
Remove applied moved block, import block, etc
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: terraform devops infrastructure cleanup cli
Install: brew install tfclean
About:
Tfclean is a command-line utility designed to clean up Terraform configuration files by removing specific blocks such as moved blocks and import blocks. This tool helps developers maintain cleaner, more readable infrastructure code by eliminating obsolete or redundant configuration elements. It streamlines the refactoring process for Terraform projects.
Key Features:
  • Removes moved blocks from Terraform configurations
  • Cleans up import blocks efficiently
  • Simple command-line interface
  • Helps maintain clean infrastructure code
Use Cases:
  • Cleaning up Terraform configurations after refactoring
  • Removing obsolete moved blocks from infrastructure code
  • Preparing Terraform code for production deployment
Alternatives:
  • terraform fmt – Built-in Terraform formatter that rewrites files but doesn't remove specific block types
  • sed/awk scripts – Manual text processing that requires custom regex patterns
Version History
Detected Version Rev Change Commit