opentofu/website/docs
Laura Martin 6e1e614a56 Change -force to -auto-approve when destroying
Since an early version of Terraform, the `destroy` command has always
had the `-force` flag to allow an auto approval of the interactive
prompt. 0.11 introduced `-auto-approve` as default to `false` when using
the `apply` command.

The `-auto-approve` flag was introduced to reduce ambiguity of it's
function, but the `-force` flag was never updated for a destroy.

People often use wrappers when automating commands in Terraform, and the
inconsistency between `apply` and `destroy` means that additional logic
must be added to the wrappers to do similar functions. Both commands are
more or less able to run with similar syntax, and also heavily share
their code.

This commit updates the command in `destroy` to use the `-auto-approve` flag
making working with the Terraform CLI a more consistent experience.

We leave in `-force` in `destroy` for the time-being and flag it as
deprecated to ensure a safe switchover period.
2018-02-01 00:14:42 +00:00
..
backends Correct typo 2018-01-24 11:02:12 -05:00
commands Change -force to -auto-approve when destroying 2018-02-01 00:14:42 +00:00
configuration Merge pull request #17087 from hashicorp/f-versioning-docs-updates 2018-01-25 14:56:08 -05:00
import Adding documentation for all supported imports in the Heroku provider (#16312) 2017-11-06 16:57:57 +00:00
internals website: updated docs for the module registry protocol 2017-11-01 07:22:20 -07:00
modules Merge pull request #17087 from hashicorp/f-versioning-docs-updates 2018-01-25 14:56:08 -05:00
plugins website: don't recommend "providers" block in CLI config 2017-09-29 14:03:09 -07:00
providers Website Docs: add community providers (#17149) 2018-01-22 16:31:52 -06:00
provisioners add agent_identity in the connection docs 2018-01-08 17:14:10 -05:00
registry Update not on TFE Module Registry availability 2017-12-11 19:04:54 -08:00
state add gcs to the backends that support workspaces 2017-12-14 10:25:03 -05:00
index.html.markdown provider/terraform: reorganize for merge into core 2017-11-02 10:46:31 -07:00