HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

tofu — Create and deploy infrastructure as code to cloud providers. Open-source fork of Terraform. More inf

Submitted by: @import:tldr-pages··
0
Viewed 0 times
createcommandinfrastructureandtofuclicodedeploy

Problem

How to use the tofu command: Create and deploy infrastructure as code to cloud providers. Open-source fork of Terraform. More information: <https://opentofu.org/docs/cli/commands/>.

Solution

tofu — Create and deploy infrastructure as code to cloud providers. Open-source fork of Terraform. More information: <https://opentofu.org/docs/cli/commands/>.

Initialize a new or existing OpenTofu configuration:
tofu init


Verify that the configuration files are syntactically valid:
tofu validate


Format configuration according to OpenTofu language style conventions:
tofu fmt


Generate and show an execution plan:
tofu plan


Build or change infrastructure:
tofu apply


Destroy Tofu-managed infrastructure:
tofu destroy

Code Snippets

Initialize a new or existing OpenTofu configuration

tofu init

Verify that the configuration files are syntactically valid

tofu validate

Format configuration according to OpenTofu language style conventions

tofu fmt

Generate and show an execution plan

tofu plan

Build or change infrastructure

tofu apply

Context

tldr-pages: common/tofu

Revisions (0)

No revisions yet.