mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
34 lines
652 B
Plaintext
34 lines
652 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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`
|