From 9168abc3e56d4d275b86f1011f848231103d76ad Mon Sep 17 00:00:00 2001 From: Kristin Laemmert Date: Thu, 20 Aug 2020 10:23:08 -0400 Subject: [PATCH] website/docs: clarify behavior of -state flag (#25928) * website: clarify behavior of -state option --- website/docs/commands/apply.html.markdown | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/website/docs/commands/apply.html.markdown b/website/docs/commands/apply.html.markdown index 9631dc1bc8..ee6649c593 100644 --- a/website/docs/commands/apply.html.markdown +++ b/website/docs/commands/apply.html.markdown @@ -57,7 +57,10 @@ The command-line flags are all optional. The list of available flags are: apply. * `-state=path` - Path to the state file. Defaults to "terraform.tfstate". - Ignored when [remote state](/docs/state/remote.html) is used. + Ignored when [remote state](/docs/state/remote.html) is used. This setting + does not persist and other commands, such as init, may not be aware of the + alternate statefile. To configure an alternate statefile path which is + available to all terraform commands, use the [local backend](/docs/state/local.html). * `-state-out=path` - Path to write updated state file. By default, the `-state` path will be used. Ignored when