Release a stuck state lock by lock ID.
Section: Locking and Recovery
Force unlock state
bash
bash
terraform force-unlock LOCK_IDExplanation
Release a stuck state lock by lock ID.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Locking and Recovery
Refresh-only apply legacy
Preferred modern replacement for older refresh-only workflows.
Show Terraform version
Print the installed Terraform CLI version and provider versions in use.
Create execution plan
Show the actions Terraform would take to reach the desired state.