- The Command Line
- CLI Configuration
- Environment Variables
Environment Variables
OpenTofu refers to a number of environment variables to customize various aspects of its behavior. None of these environment variables are required when using OpenTofu, but they can be used to change some of OpenTofu's default behaviors in unusual situations, or to increase output verbosity for debugging.
TF_LOG​
Enables detailed logs to appear on stderr which is useful for debugging. For example:
export TF_LOG=trace
To disable, either unset it, or set it to off
. For example:
export TF_LOG=off
For more on debugging OpenTofu, check out the section on Debugging.