glab-opentofu-init - Man Page

Initialize OpenTofu or Terraform.

Synopsis

glab opentofu init Ā [flags]

Description

Initialize OpenTofu or Terraform.

Options

-b, --binary="tofu" Name or path of the OpenTofu or Terraform binary to use for the initialization.

-d, --directory="." Directory of the OpenTofu or Terraform project to initialize.

Options Inherited from Parent Commands

-h, --help[=false] Show help for this command.

-R,  --repo="" Select another repository. Can use either OWNER/REPO or GROUP/NAMESPACE/REPO
format. Also accepts full URL or Git URL.

Example

# Initialize state with name production in working directory
$ glab opentofu init production

# Initialize state with name production in infra/ directory
$ glab opentofu init production -d infra/

# Initialize state with name production with Terraform
$ glab opentofu init production -b terraform

# Initialize state with name production with reconfiguring state
$ glab opentofu init production -- -reconfigure

See Also

glab-opentofu(1)

Referenced By

glab-opentofu(1).

Aug 2025 Auto generated by spf13/cobra