> ## 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.

# addFile

> Push a file onto the device.

Pushes a file from the host onto the device at a target location. There is no
simplified form. `path` and `location` are required.

## Parameters

| Parameter  | Type      | Required | Description                                                 |
| ---------- | --------- | -------- | ----------------------------------------------------------- |
| `path`     | `string`  | Yes      | Path to the file on the host.                               |
| `location` | `string`  | Yes      | Destination path on the device.                             |
| `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.                           |

## Examples

```yaml theme={null}
- addFile:
    path: ./fixtures/avatar.png # source on the host
    location: /sdcard/Download/avatar.png # destination on the device
```

## Related

* [Test format](/core-concepts/test-format)
* [Files integration](/integrations/files)
