Quick Start¶
Get started with TerraTidy in under 5 minutes.
Initialize Configuration¶
Create a .terratidy.yaml configuration file in your project:
This creates a default configuration:
version: 1
engines:
fmt:
enabled: true
style:
enabled: true
lint:
enabled: true
policy:
enabled: false
severity_threshold: warning
Run Checks¶
Check All Files¶
Check Specific Files or Directories¶
Check Only Changed Files (Git)¶
Run Individual Engines¶
# Format only
terratidy fmt
# Style checks only
terratidy style
# Lint only
terratidy lint
# Policy checks only
terratidy policy
Fix Issues¶
Auto-fix All Fixable Issues¶
Fix Formatting Only¶
Fix Style Issues¶
Output Formats¶
# Default text output
terratidy check
# JSON output
terratidy check --format json
# SARIF for GitHub Code Scanning
terratidy check --format sarif
# HTML report
terratidy check --format html > report.html
Common Workflows¶
CI/CD Check¶
Pre-commit Hook¶
Development Workflow¶
Next Steps¶
- Configuration - Customize TerraTidy
- Commands Reference - All available commands
- GitHub Actions - CI/CD integration