terraform/website/docs/cli/commands/force-unlock.html.md

31 lines
990 B
Markdown

---
layout: "docs"
page_title: "Command: force-unlock"
sidebar_current: "docs-commands-force-unlock"
description: "terraform force-unlock manually unlocks the state for a configuration. It does not modify your infrastructure."
---
# Command: force-unlock
Manually unlock the state for the defined configuration.
This will not modify your infrastructure. This command removes the lock on the
state for the current configuration. The behavior of this lock is dependent
on the backend being used. Local state files cannot be unlocked by another
process.
## Usage
Usage: `terraform force-unlock [options] LOCK_ID [DIR]`
Manually unlock the state for the defined configuration.
This will not modify your infrastructure. This command removes the lock on the
state for the current configuration. The behavior of this lock is dependent
on the backend being used. Local state files cannot be unlocked by another
process.
Options:
* `-force` - Don't ask for input for unlock confirmation.