# 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 **Duration** parameter to determine for how long an undelivered command remains valid. </p>

## Android (AMAPI) commands

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

### Common parameters

- **Duration**: 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).
- **Request device info**: requires selecting which device information to request.
- **Add eSIM**: requires an **Activation code** and an **Activation state**.
- **Remove eSIM**: requires the eSIM **ICCID**.
- **Wipe**: supports a **Wipe reason message** (shown to users on personal devices) and optional wipe flags.

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