Dump provider schemas for automation or debugging tools.
Section: Debugging
Inspect provider schemas
bash
bash
terraform providers schema -json > providers-schema.jsonExplanation
Dump provider schemas for automation or debugging tools.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Debugging
Enable TRACE logs
Turn on maximum logging detail for hard-to-diagnose issues.
Write debug log to file
Capture debug logs into a file for later analysis.
Use detailed exit codes
Return 0 for no changes, 2 for changes, 1 for errors; useful in CI.
Upgrade after version changes
Refresh provider selections and lock file after changing constraints.
Legacy 0.13 upgrade helper
Legacy helper command that updated provider source declarations in Terraform 0.13.