.nh .TH "glab" "1" "Aug 2025" "Auto generated by spf13/cobra" "" .SH NAME glab-opentofu-init - Initialize OpenTofu or Terraform. .SH SYNOPSIS \fBglab opentofu init [flags]\fP .SH DESCRIPTION Initialize OpenTofu or Terraform. .SH OPTIONS \fB-b\fP, \fB--binary\fP="tofu" Name or path of the OpenTofu or Terraform binary to use for the initialization. .PP \fB-d\fP, \fB--directory\fP="." Directory of the OpenTofu or Terraform project to initialize. .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB-h\fP, \fB--help\fP[=false] Show help for this command. .PP \fB-R\fP, \fB--repo\fP="" Select another repository. Can use either \fBOWNER/REPO\fR or \fBGROUP/NAMESPACE/REPO\fR format. Also accepts full URL or Git URL. .SH EXAMPLE .EX # 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 .EE .SH SEE ALSO \fBglab-opentofu(1)\fP