This quick start assumes you have already installed ml-cli (see Download & Installation) and that the MoreLogin client is running locally.
Confirm that the local httpServer is reachable:
ml-cli statusIf MoreLogin is not running, the CLI will fail during port resolution.
If the endpoint requires authentication, log in first:
ml-cli login --api-id your-api-id --api-key your-api-keyYou can also provide the token through an environment variable:
export ML_API_KEY=your-token
ml-cli env listList browser environments:
ml-cli env list
ml-cli env list --page-no 1 --page-size 20
ml-cli env list --env-name testYou can start an environment by id, envId, or uniqueId/sn:
ml-cli env start --id 1001
ml-cli env start --env-id 1868548141708648448
ml-cli env start --unique-id SN001Create a proxy first:
ml-cli proxy create \
--proxy-name local-http \
--proxy-ip 127.0.0.1 \
--proxy-port 7890 \
--proxy-type 0 \
--proxy-provider 0Then assign it to an environment:
ml-cli env set-proxy \
--env-ids 1001 \
--proxy-ip 127.0.0.1 \
--proxy-port 7890 \
--proxy-type 0 \
--proxy-provider 0 \
--proxy-name local-httpList cloud phones:
ml-cli cloudphone listCreate a cloud phone:
ml-cli cloudphone create --sku-id 10004 --quantity 1Fetch details:
ml-cli cloudphone info --id 123456List schedule templates and tasks:
ml-cli schedule template-market --page-no 1 --page-size 20
ml-cli schedule list --page-no 1 --page-size 20Create a one-time task:
ml-cli schedule create-once-task \
--cloud-phone-id 123456 \
--schedule-name once-task-demo \
--template-id 888 \
--template-parameter '{}'For endpoints with many fields, passing raw JSON is often faster:
ml-cli env create-advanced \
--json-data '{"browserTypeId":1,"operatorSystemId":1,"envName":"cli-adv-test"}'CLI flags and --json-data can be combined. Explicit flags override matching keys from the JSON payload:
ml-cli env set-proxy \
--env-ids 1001 \
--json-data '{"proxy":{"proxyProvider":"0","proxyIp":"1.1.1.1"}}' \
--proxy-ip 127.0.0.1The CLI prints raw JSON, which works well with shell pipelines:
ml-cli status | jq '.status'
ml-cli env processes | jq '.data[].pid'Could not detect MoreLogin port: MoreLogin is not running, IPC is unavailable, or no--portwas provided- business failure with exit code
0: the HTTP request succeeded, but the JSON response contains an application-level error ml-cli env arrangeon Linux: the current implementation does not support it and exits immediately