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

# adb

> Run an adb command against the device.

Runs an `adb` command against the connected Android device. The simplified form
takes the command as a single string.

<Note>Android only.</Note>

## Parameters

| Parameter | Type      | Required | Description                                                 |
| --------- | --------- | -------- | ----------------------------------------------------------- |
| `command` | `string`  | Yes      | The adb command to run.                                     |
| `args`    | `string`  | No       | Additional arguments for the command.                       |
| `saveAs`  | `string`  | No       | Variable to store this step's return value on `env.<name>`. |
| `retries` | `number`  | No       | Times to retry the step on failure before failing the test. |
| `skipped` | `boolean` | No       | Skip this step at execution time.                           |

## Shorthand

Command as a single string.

```yaml theme={null}
- adb: shell input keyevent 26
```

## Examples

```yaml theme={null}
- adb:
    command: shell pm clear
    args: com.example.shop # clear the app's data between runs
```

## Related

* [Test format](/core-concepts/test-format)
* [appium](/reference/mobile-commands/appium)
