.nh .TH "glab" "1" "Sep 2026" "Auto generated by spf13/cobra" "" .SH NAME glab-opentofu-state-lock - Lock the given state. .SH SYNOPSIS \fBglab opentofu state lock [flags]\fP .SH DESCRIPTION Locking a state prevents others from modifying it until it is unlocked, which avoids concurrent writes that could corrupt the state. .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. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted. .SH EXAMPLE .EX glab opentofu state lock production .EE .SH SEE ALSO \fBglab-opentofu-state(1)\fP