# lock

> Lock the iPhone and turn the screen off. Needs the phone on USB.

Source: https://zeptap.com/docs/cli/commands/lock



## Usage [#usage]

```sh
zeptap lock
```

## Options [#options]

Takes no arguments. Takes the [global options](https://zeptap.com/docs/cli#global-options).

## Details [#details]

* Runs in the Zeptap app over USB, with the iPhone trusting this Mac.
* See [Lock and unlock](https://zeptap.com/docs/features/lock-and-unlock).

## Examples [#examples]

```sh
$ zeptap lock -l 7
```

## MCP tool [#mcp-tool]

[`lock`](https://zeptap.com/docs/agents/tools#lock-and-unlock).
