# olef device

Source: https://olef.dev/docs/reference/cli/device

Generated from **Olef 3.0.2**. [All commands](https://olef.dev/docs/reference/commands) · [Capabilities and requirements](https://olef.dev/docs/reference/capabilities)

These entries describe available commands, not a sequence to run. Check prerequisites before changing app, device, or cloud state. Global options are listed in the [command catalog](https://olef.dev/docs/reference/commands#global-options).

## olef device

Device & system controls (info, shell, power, orientation, clipboard, …)

```bash
olef device --help
```

Output: **json**.

### olef device info

Detailed device info (model, fingerprint, locale, density)

```bash
olef device info --help
```

Output: **json**.

| Argument | Description |
| --- | --- |
| `--json` | Accepted for compatibility; output is always JSON. |

### olef device shell

Run a shell command on the device

```bash
olef device shell --help
```

Output: **json**.

| Argument | Description |
| --- | --- |
| `<cmd>` | **Required.** |
| `--timeout-ms <TIMEOUT_MS>` | Kill the command and fail if it runs longer than this (milliseconds) Default: `30000`. |
| `--json` | Accepted for compatibility; output is always JSON. |

### olef device wake

Wake the screen / turn the display on

```bash
olef device wake --help
```

Output: **json**.

| Argument | Description |
| --- | --- |
| `--json` | Accepted for compatibility; output is always JSON. |

### olef device sleep

Put the display to sleep

```bash
olef device sleep --help
```

Output: **json**.

| Argument | Description |
| --- | --- |
| `--json` | Accepted for compatibility; output is always JSON. |

### olef device unlock

Wake and dismiss the keyguard

```bash
olef device unlock --help
```

Output: **json**.

| Argument | Description |
| --- | --- |
| `--json` | Accepted for compatibility; output is always JSON. |

### olef device orientation

Get (no value) or set the screen orientation

```bash
olef device orientation --help
```

Output: **json**.

| Argument | Description |
| --- | --- |
| `<value>` |  |
| `--json` | Accepted for compatibility; output is always JSON. |

### olef device clipboard

Get (no value) or set the clipboard

```bash
olef device clipboard --help
```

Output: **json**.

| Argument | Description |
| --- | --- |
| `<value>` |  |
| `--json` | Accepted for compatibility; output is always JSON. |

### olef device notifications

Open the notification shade

```bash
olef device notifications --help
```

Output: **json**.

| Argument | Description |
| --- | --- |
| `--json` | Accepted for compatibility; output is always JSON. |

### olef device quick-settings

Open quick settings

```bash
olef device quick-settings --help
```

Output: **json**.

| Argument | Description |
| --- | --- |
| `--json` | Accepted for compatibility; output is always JSON. |

### olef device open-url

Open a URL via an ACTION_VIEW intent

```bash
olef device open-url --help
```

Output: **json**.

| Argument | Description |
| --- | --- |
| `<url>` | **Required.** |
| `--json` | Accepted for compatibility; output is always JSON. |
