website/docs: clarify behavior of -state flag (#25928)

* website: clarify behavior of -state option
This commit is contained in:
Kristin Laemmert 2020-08-20 10:23:08 -04:00 committed by GitHub
parent 2e829a0d54
commit 9168abc3e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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