2021-12-14 21:41:17 -05:00
|
|
|
---
|
|
|
|
|
description: Command Line Arguments
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# Command Line Arguments
|
|
|
|
|
|
|
|
|
|
When your configuration includes a `cloud` block, commands that
|
2023-09-21 05:57:47 -04:00
|
|
|
make local modifications to OpenTofu state and then push them back up to the remote workspace
|
2021-12-14 21:41:17 -05:00
|
|
|
accept the following option to modify that behavior:
|
|
|
|
|
|
|
|
|
|
- `-ignore-remote-version` - Override checking that the local and remote
|
2023-09-21 05:57:47 -04:00
|
|
|
OpenTofu versions agree, making an operation proceed even when there is
|
2021-12-14 21:41:17 -05:00
|
|
|
a mismatch.
|
|
|
|
|
|
|
|
|
|
State-modification operations usually require using a local version of the
|
2023-09-21 05:57:47 -04:00
|
|
|
OpenTofu CLI that is compatible with the OpenTofu version selected
|
2021-12-14 21:41:17 -05:00
|
|
|
in the remote workspace settings. This prevents the
|
|
|
|
|
local operation from creating a new state snapshot that the workspace's
|
|
|
|
|
remote execution environment cannot decode.
|
|
|
|
|
|
|
|
|
|
We recommend against using this option unless absolutely necessary. Overriding this check can result
|
2023-08-25 05:09:18 -04:00
|
|
|
in a cloud backend workspace that is no longer able to complete remote operations with the currently
|
2023-09-21 05:57:47 -04:00
|
|
|
selected version of OpenTofu.
|