terraform validate -json

Category: IaC & Automation

terraform validate -json

Validate configuration with JSON output

Runs the same checks as terraform validate but emits results as JSON with file and line details for each diagnostic. Editors and CI systems parse this output to highlight errors directly in source files. Related: terraform validate.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.