terraform validate command reference | Terraform | HashiCorp Developer

The `terraform validate` command validates the syntax of Terraform configuration files in a directory.