# Commands

 The Device editor provides a **Commands** panel to send remote commands to a managed device. Available commands depend on the platform (Android or Apple) and device state.

<p class="callout info"> If the device is not currently online, the command will be delivered and executed as soon as the device connects to the Internet. For Android commands you can set the **Validity** parameter to determine for how long an undelivered command remains valid. </p>

## Android (AMAPI) commands

 For Android devices, the Commands panel includes a **Validity** field (value + unit) and a **Command** selector. Some commands require additional parameters, which appear dynamically when you select the command.

### Common parameters

- **Validity**: how long the command is valid if it cannot be executed immediately.
- **Command**: choose which action to send to the device.

### Commands with additional fields

- **Reset password**: requires **New password** and **Confirm new password**. Optional toggles include **Lock now**, **Require entry**, and **Do not ask for credentials on boot**.
- **Clear app data**: requires the target **Package name**.
- **Start lost mode**: requires a **Lost message** and supports optional contact fields (street address, organization, phone number, email).
- **Wipe**: supports a **Wipe reason message** (shown to users on personal devices) and optional wipe flags, including **Wipe eSIMs**.

<p class="callout info"> The eSIM commands (**Add eSIM**, **Remove eSIM**, **Request EID**) are available in the dedicated [**SIMs management**](https://enterprise.cerberusapp.com/docs/books/user-manual/page/sims-management "SIMs management") panel. </p>

### Command history

 Below the send controls, the dashboard shows a command history table. The table is sortable and supports pagination. Some rows can be expanded to view additional parameters or execution details.

#### Android history columns

- **Creation date**
- **Command**
- **Validity**
- **Status**
- **Error**
- **Execution date**

## Apple (MDM) commands

 For Apple devices, the Commands panel provides a **Command** selector. Some commands require additional inputs. As with Android, a command history table is shown below.

### Commands with additional fields

- **InstallApplication**: requires the application **Bundle ID**.
- **SendNotification**: requires a **Notification message** (maximum length 200 characters).

#### Apple history columns

- **Creation date**
- **Command**
- **Status**
- **Status time**

## Refresh

 Use the refresh action in the Commands panel to reload the command history.