Skip to main content
The lock command manages hard locks: exclusive locks on files and folders that prevent other users from committing changes to the locked path until the lock is released.
Hard locks are available on Studio and Enterprise plans.

List locks

Run without arguments to list all locks in the repository:

Acquire a lock

<path> is the file or folder to lock.

Release a lock

<path> is the file or folder to unlock. [-f] force-releases a lock held by another user. This requires admin permissions. For how hard locks behave across branches and workspaces, see the Hard Locks guide.