Skip to content
MultiloginHelp Center

How to create cloud phones via CLI

Want to create a cloud phone without using GUI? Here's how you can do it!

➡️ To create an Android cloud phone with CLI, start CLI and sign in → run mobile-profiles-create with the required cloud-phone and proxy flags → press Enter.

Before you start

  • Multilogin installed and running
  • CLI signed in
  • a role that allows cloud-phone creation

Step 1: launch CLI

Launch Multilogin, then open Command Prompt or Terminal, go to the CLI folder and run CLI executable:

Windows

  1. Go to the CLI folder:
    C:/Users/%username%/mlx/deps/cli
  2. Run xcli.exe

macOS

  1. Go to the CLI folder:
    /Users/%username%/mlx/deps/cli
  2. Run ./xcli:
    ./xcli

Linux

  1. Go to the CLI folder:
    /home/%username%/mlx/deps/cli
  2. Run ./xcli:
    ./xcli

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: sign in to authenticate

In order to get your create a cloud phone in CLI, you will need to first sign in to your account via the login command.

Windows

  1. Paste this prompt to sign in: 
    xcli login --username 'your username' --password 'your password'
  2. Replace values of the flags  (--username and --password) with your email and password
Windows Command Prompt showing a successful Multilogin CLI login.

macOS

  1. Paste this prompt to sign in: 
    ./xcli login --username 'your username' --password 'your password'
  2. Replace values of the flags  (--username and --password) with your email and password
macOS Terminal showing a successful Multilogin CLI login.

Linux

  1. Paste this prompt to sign in: 
    ./xcli login --username 'your username' --password 'your password'
  2. Replace values of the flags  (--username and --password) with your email and password
Ubuntu terminal showing a successful Multilogin CLI login.

Step 3: type the command and flags

One thing is remaining – type a command, and you are all set. 

  1. Type a command xcli mobile-profiles-create
  2. Add flags to the command. CLI recognizes them by --. The required flags are:
    1. --profile-name: cloud phone name shown in Multilogin
    2. --mobile-type: set the OS and its version for your profile. Don't forget to put it under quotation marks. E.g., ‘Android 12’
    3. --proxy: add the full proxy string (including port, server, protocol, and password), for example: socks5://user:pass@host:port 

      This step mentions only mandatory flags. The latest chapter explains the other flags. 

  3. Press Enter.

Your profile is ready!

List of flags for profile creation

General flags

h or --help provides info about the command (which flags you can add to it)
--mobile-type (required) OS and its version for your profile. Don't forget to put it under quotation marks. E.g., ‘Android 12’

--net-type   

networking type. 0 = Wi-Fi, 1 = Mobile (default 1)
--phone-name phone device name (in Android settings)
--profile-name (required) name of new cloud phone (in Multilogin interface)

--phone-number

mobile phone number, automatically generated if empty

--profile-note

profile note

--proxy

(required) sets the full proxy string, for example: socks5://user:pass@host:port

--quantity

quantity of phones to create (1 by default)

--surface-brand

phone brand name

--surface-model

phone model name

--tags

sets tags (separated by commas)

Global flags

 -f, --folder string folder to use ("Default folder" by default)

Geolocation flags

--mobile-city city of the cloud phone
--mobile-language language of the cloud phone
--mobile-province province of the cloud phone
--mobile-region region of the cloud phone

Stay in the loop

Catch the latest updates, exchange advice, explore practical use cases.

Get product updatesTelegram channelAsk other usersTelegram chatExplore use casesDiscord community