mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Change all references from .terraformrc to .opentfrc
This commit is contained in:
@@ -5,7 +5,7 @@ description: >-
|
||||
including credentials, plugin caching, provider installation methods, etc.
|
||||
---
|
||||
|
||||
# CLI Configuration File (`.terraformrc` or `terraform.rc`)
|
||||
# CLI Configuration File (`.opentfrc` or `opentf.rc`)
|
||||
|
||||
The CLI configuration file configures per-user settings for CLI behaviors,
|
||||
which apply across all Terraform working directories. This is separate from
|
||||
@@ -16,18 +16,18 @@ which apply across all Terraform working directories. This is separate from
|
||||
The configuration can be placed in a single file whose location depends
|
||||
on the host operating system:
|
||||
|
||||
* On Windows, the file must be named `terraform.rc` and placed
|
||||
* On Windows, the file must be named `opentf.rc` and placed
|
||||
in the relevant user's `%APPDATA%` directory. The physical location
|
||||
of this directory depends on your Windows version and system configuration;
|
||||
use `$env:APPDATA` in PowerShell to find its location on your system.
|
||||
* On all other systems, the file must be named `.terraformrc` (note
|
||||
* On all other systems, the file must be named `.opentfrc` (note
|
||||
the leading period) and placed directly in the home directory
|
||||
of the relevant user.
|
||||
|
||||
On Windows, beware of Windows Explorer's default behavior of hiding filename
|
||||
extensions. Terraform will not recognize a file named `terraform.rc.txt` as a
|
||||
extensions. OpenTF will not recognize a file named `opentfc.rc.txt` as a
|
||||
CLI configuration file, even though Windows Explorer may _display_ its name
|
||||
as just `terraform.rc`. Use `dir` from PowerShell or Command Prompt to
|
||||
as just `opentf.rc`. Use `dir` from PowerShell or Command Prompt to
|
||||
confirm the filename.
|
||||
|
||||
The location of the Terraform CLI configuration file can also be specified
|
||||
|
||||
@@ -148,7 +148,7 @@ export TF_REGISTRY_CLIENT_TIMEOUT=15
|
||||
The location of the [Terraform CLI configuration file](/terraform/cli/config/config-file).
|
||||
|
||||
```shell
|
||||
export TF_CLI_CONFIG_FILE="$HOME/.terraformrc-custom"
|
||||
export TF_CLI_CONFIG_FILE="$HOME/.opentfrc-custom"
|
||||
```
|
||||
|
||||
## TF_PLUGIN_CACHE_DIR
|
||||
|
||||
Reference in New Issue
Block a user