> ## Documentation Index
> Fetch the complete documentation index at: https://docs.diversion.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# lock

> List, acquire, or release file locks

The `lock` command manages [hard locks](/hard-locks): exclusive locks on files and folders that prevent other users from committing changes to the locked path until the lock is released.

<Note>Hard locks are available on **Studio** and **Enterprise** plans.</Note>

## List locks

Run without arguments to list all locks in the repository:

```bash theme={null}
dv lock
```

## Acquire a lock

```bash theme={null}
dv lock <path>
```

`<path>` is the file or folder to lock.

## Release a lock

```bash theme={null}
dv lock -d <path> [-f]
```

`<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](/hard-locks) guide.
