# unlock

> Unlock the iPhone with the passcode saved in Zeptap. The agent never sees the passcode. One attempt per call.

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



## Usage [#usage]

```sh
zeptap unlock
```

## Options [#options]

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

## Details [#details]

* Needs Bluetooth, a passcode saved in Zeptap, and agents allowed to unlock this iPhone. USB lets Zeptap confirm the result. See [Lock and unlock](https://zeptap.com/docs/features/lock-and-unlock).
* Run it once when the screen shows the lock screen or the passcode pad, or a command exits with code 5 because the phone is locked.
* It makes one attempt. If it fails, tell the user: a second call won't succeed where the first failed. Never type a passcode with `type`.

## Examples [#examples]

```sh
$ zeptap unlock -l 7 --look
```

## MCP tool [#mcp-tool]

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