terrateam unlock
Release directory locks held by a pull request to allow other operations to proceed.
terrateam unlockterrateam unlock <pull-request-number> [pull-request-number...]terrateam unlock driftExamples
Section titled “Examples”Unlock Current PR’s Locks
Section titled “Unlock Current PR’s Locks”terrateam unlockReleases all locks owned by the current pull request.
Unlock Specific Pull Requests
Section titled “Unlock Specific Pull Requests”# Unlock locks from PR #123terrateam unlock 123
# Unlock locks from multiple PRsterrateam unlock 123 456 789Useful for cleaning up locks from closed or abandoned pull requests.
Unlock Drift Locks
Section titled “Unlock Drift Locks”terrateam unlock driftReleases the locks held by drift detection runs. drift can be combined with pull request numbers in one command.
The unlock command releases all locks owned by the specified pull request(s), or by drift runs when drift is given.
Access Control
Section titled “Access Control”Configure unlock permissions in access control.
Lock Management
Section titled “Lock Management”For more information about lock behavior and configuration, see lock management.
Related Commands
Section titled “Related Commands”- terrateam apply - Acquires locks on the applied directories and workspaces
- lock_policy - Controls when locks are acquired