Terraform CLI Cheat Sheet/Refresh-only apply legacy

Preferred modern replacement for older refresh-only workflows.

Section: Locking and Recovery

Refresh-only apply legacy

bash
bash
terraform apply -refresh-only
Explanation

Preferred modern replacement for older refresh-only workflows.

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
Force unlock state
Release a stuck state lock by lock ID.
OpenIn sheetbashsame section
Apply with lock timeout
Wait for an existing state lock before failing.
OpenIn sheetbashsame section
Show Terraform version
Print the installed Terraform CLI version and provider versions in use.
OpenIn sheetbash1 tag match
Format current directory
Rewrite Terraform files to canonical style.
OpenIn sheetbash1 tag match
Create execution plan
Show the actions Terraform would take to reach the desired state.
OpenIn sheetbash1 tag match
Show outputs
Display all output values from state.
OpenIn sheetbash1 tag match