How to use ADB with cloud phones using CLI
You can use CLI with ADB to connect to and control Android cloud phones from your terminal. This helps you run commands, automate workflows, and manage cloud phones without relying only on manual actions in the app.
ADB (Android Debug Bridge) is a tool that lets your computer communicate with an Android device. In Multilogin, you can use ADB with cloud phones running Android 11 or later.
Before using CLI to run cloud phones, launch the app.
Keep in mind: ADB requires a cloud phone running Android 11 or later. It is not compatible with Android 10.
Who can use this feature?
- 👨💻 Account owner and manager
- 💰 Available on all paid plans
Step 1: launch CLI
Open CLI before you start working with cloud phones. You can open it from the app folder or your computer terminal. Follow the article for more details: How to start working with CLI. Also look for the following article: How to use CLI commands for cloud phones.
Step 2: log in to authenticate
To get your API token, log in to your account using the login command. Select your OS and follow the instructions below.
Windows
- Paste this prompt to log in:
xcli login --username 'your username' --password 'your password' - Replace values of the flags (
--usernameand--password) with your email and password

macOS
- Paste this prompt to log in:
./xcli login --username 'your username' --password 'your password' - Replace values of the flags (
--usernameand--password) with your email and password

Linux
- Paste this prompt to log in:
./xcli login --username 'your username' --password 'your password' - Replace values of the flags (
--usernameand--password) with your email and password

Step 3: type the command and flags
- Copy the ID of your cloud phone, you can find it via the following command:
- Windows:
cli mobile-profiles-phone-list - macOS/Linux:
./xcli mobile-profiles-phone-list
- Windows:
- Launch the profile:
- Windows:
cli mobile-phone-launch <ID> - macOS/Linux:
./xcli mobile-phone-launch <ID>
- Windows:
If you want to launch cloud phones without opening the graphical interface, use this command instead:
mobile-profiles-phone-start
- After the cloud phone has finished loading, enable ADB for the cloud phone:
- Windows:
cli mobile-profiles-adb-set --ids <ID> --enable - macOS/Linux:
./xcli mobile-profiles-adb-set --ids <ID> --enable
- Windows:
- Type the following command to copy info for ADB access via terminal:
- Windows:
cli mobile-profiles-adb-info --ids <ID> - macOS/Linux:
./xcli mobile-profiles-adb-info --ids <ID>
- Windows:
Save the IP, port, and pwd values. You will need them to connect through ADB.
Step 4: connect from your terminal
Copy the values from the previous step and use them with the commands below.
- Copy the connection command – it'll look like this:
adb connect IP:port - Run the command in the terminal – you’ll see a message:
connected to IP:port - Copy the authentication command – it'll look like this:
adb -s IP:port shell glogin pwd - Run the command in the terminal – you’ll see a message:
glogin success
After authentication, you can run ADB commands on your cloud phone. If you work with several cloud phones at the same time, always include this part: -s IP:port.
Keep the cloud phone running while you use ADB. If you stop the cloud phone, ADB turns off automatically, and the old connection command will stop working.

FAQ
Why cannot I connect to ADB?
Check that:
- Your cloud phone is running
- The Android version is 11 or later
- You enabled ADB for this phone
Does ADB work after I stop my cloud phone?
No. ADB disconnects automatically when the cloud phone stops.
Can I control multiple cloud phones?
Yes. Add -s IP:port to your commands to select a specific cloud phone.
- Learn more about CLI commands: How to use CLI commands for cloud phones
- Learn how to automate cloud phone workflows: How to automate Pinterest posting on cloud phones with Appium