Skip to content
MultiloginHelp Center

How to launch and stop cloud phones via CLI

You don't need a GUI to start and stop cloud phones. You will learn how to do it!

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 API token, 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: start a cloud phone

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

  1. Type a command xcli mobile-profiles-launch
  2. Add a flag to the command. CLI recognizes them. The required flag is --ids. In this flag you need to set the ID of the cloud phone. Separate several IDs with commas, for example:
    xcli mobile-profiles-shutdown --ids 1,2,3

    You can also separate several IDs by adding several --ids flags. For example:

    xcli mobile-profiles-launch --ids 1 --ids 2 --ids 3

  3. Press Enter.

Your profile is ready!

Step 4: stop a cloud phone

After using a cloud phone you can stop it via CLI too.

  1. Type a command xcli mobile-profiles-shutdown
  2. Add a flag to the command. CLI recognizes them. The required flag is --ids. In this flag you need to set the ID of the cloud phone. Separate several IDs with commas, for example:
    xcli mobile-profiles-shutdown --ids 1,2,3

    You can also separate several IDs by adding several --ids flags. For example:

    xcli mobile-profiles-shutdown --ids 1 --ids 2 --ids 3

  3. Press Enter.

Now you can start and stop cloud phones via CLI. Want to learn more about CLI? Read the following articles:

Stay in the loop

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

Get product updatesTelegram channelAsk other usersTelegram chatExplore use casesDiscord community