# Execute ADB Shell Command

Run a shell command on a Cloud Phone and return its output.
- **Preconditions**: the phone must be powered on and not held by another member.
- **Effect**: entirely determined by the command. MoreLogin stores nothing and applies **no command allow-list and no length limit**; the privileges the command runs with are set by the device service. Enable global root separately if a command needs it.
- **Completion**: synchronous — `data` is the command output, not a task id.
- **Retry**: there is no execution record to consult, so a timeout leaves the outcome unknown. Only retry commands you know are safe to run twice.

Documented business errors: `33300`, `33301`. See [Error Codes](../Getting%20Started/error-codes.md) for what each code means. Any operation can additionally return the common codes.

Endpoint: POST /cloudphone/exeCommand
Version: 2026-09-05
Security: Authorization

## Security:

  - `Authorization` (unknown)
    http bearer JWT

## Request fields (application/json):

  - `id` (string, required)
    Cloud phone ID

  - `command` (string, required)
    Shell command to execute

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `code` (integer, required)
    Response code: 0 indicates success, >0 indicates failure

  - `data` (string, required)
    Response Information

  - `msg` (string | null, required)
    Response message:An error message will be returned when code is greater than 0

  - `requestId` (string)
    Unique request identifier; include it when contacting support

