tofu plan
Generate and show OpenTofu execution plans. More information: https://opentofu.org/docs/cli/commands/plan/.
- Generate and show the execution plan in the currently directory:
tofu plan
- Show a plan to destroy all remote objects that currently exist:
tofu plan -destroy
- Show a plan to update the Tofu state and output values:
tofu plan -refresh-only
- Specify values for input variables:
tofu plan -var '=' -var '='
- Focus Tofu's attention on only a subset of resources:
tofu plan -target
- Output a plan as JSON:
tofu plan -json
- Write a plan to a specific file:
tofu plan -no-color >
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
