From a5b2d2e8b9f29f2ee25d8b0f5c74c1e5b81b778c Mon Sep 17 00:00:00 2001 From: Evgeny Varnavskiy Date: Wed, 9 Apr 2025 21:37:37 -0400 Subject: [PATCH] Replace sc with Set-Content --- website/docs/cli/commands/state/pull.mdx | 2 +- website/docs/cli/commands/state/push.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/cli/commands/state/pull.mdx b/website/docs/cli/commands/state/pull.mdx index 2d851fbc19..839b3d85b3 100644 --- a/website/docs/cli/commands/state/pull.mdx +++ b/website/docs/cli/commands/state/pull.mdx @@ -24,4 +24,4 @@ You cannot use this command to inspect the Terraform version of the remote state, as it will always be converted to the current Terraform version before output. --> **Note:** Terraform state files must be in UTF-8 format without a byte order mark (BOM). For PowerShell on Windows, use `Set-Content` to automatically encode files in UTF-8 format. For example, run `terraform state pull | sc terraform.tfstate`. +-> **Note:** Terraform state files must be in UTF-8 format without a byte order mark (BOM). For PowerShell on Windows, use `Set-Content` to automatically encode files in UTF-8 format. For example, run `terraform state pull | Set-Content terraform.tfstate`. diff --git a/website/docs/cli/commands/state/push.mdx b/website/docs/cli/commands/state/push.mdx index 0f42379cfb..5acf7962ae 100644 --- a/website/docs/cli/commands/state/push.mdx +++ b/website/docs/cli/commands/state/push.mdx @@ -18,7 +18,7 @@ If PATH is "-" then the state data to push is read from stdin. This data is loaded completely into memory and verified prior to being written to the destination state. --> **Note:** Terraform state files must be in UTF-8 format without a byte order mark (BOM). For PowerShell on Windows, use `Set-Content` to automatically encode files in UTF-8 format. For example, run `terraform state push | sc terraform.tfstate`. +-> **Note:** Terraform state files must be in UTF-8 format without a byte order mark (BOM). For PowerShell on Windows, use `Set-Content` to automatically encode files in UTF-8 format. For example, run `terraform state push | Set-Content terraform.tfstate`. Terraform will perform a number of safety checks to prevent you from making changes that appear to be unsafe: