TF_CLI_ARGS
The environment variable that adds extra arguments to every Terraform command, or to one command with a suffix.
In more detail
TF_CLI_ARGS applies to all commands, while TF_CLI_ARGS_plan or TF_CLI_ARGS_apply target one. Pipelines use it to add flags such as -no-color without editing each step.
Example
TF_CLI_ARGS_plan="-no-color"Related terms
- TF_LOG — The environment variable that turns on Terraform's detailed logs and sets their level.
Taught in
- Verbose Logging: TF_LOG And Friends — HashiCorp Terraform Associate (004) Exam Prep