Purpose
Use command-line to query and manage instances and app configurations of MuMu Emulator 12, suitable for scenarios such as account matrices, batch power on/off, automation scripts, operations troubleshooting, etc.
Prerequisites
- Ensure the emulator version is V4.0.0.3179 or above, otherwise some commands are unavailable.
- Locate
MuMuManager.exe, common paths:X:\Program Files\Netease\MuMuPlayer-12.0\shell\MuMuManager.exe; local path example:C:\Program Files\Netease\MuMu\nx_main\MuMuManager.exe。 - It is recommended to use absolute paths, or add the
nx_maindirectory toPATH。
Usage Flow
- First use
infoto confirm available instances;-vsupports comma-separated lists orall。 - Select the needed tasks (create/clone/delete/rename/import/export/ADB/app/control/settings).
- Minimize the scope of impact as much as possible, and be cautious when performing write operations on
all.
Feature Quick Reference
Instance Management
infoView instance status and field descriptionscreate / clone / delete / renameCreate/clone/delete/rename instancesimport / exportBack up and restore.mumudata(optional--zip)
Common Pitfalls and Avoidance
- Before deleting an instance, close it first:
control -v <index> shutdown. If not closed, it may return{"errcode": -1, "errmsg": "not handle cmd"}。
Startup and Window Control
control launch / shutdown / restartStart/shut down/restart instancescontrol show_window / hide_window / layout_windowShow/hide/layout windows
App Management
control app install / uninstall / launch / close / infoUse package name or apk pathcontrol app info -iView installed apps and the current foreground app
System Tools
control tool funcCommon functions (screenshot, refresh, home, settings, security, etc.)control tool downcpuReduce CPUcontrol tool location / gyroVirtual location and gravity sensingcontrol shortcut create / deleteCreate/delete desktop shortcuts
Device Configuration and Emulation
settingRead/modify configuration, supports--all / --all_writable / --info / --pathsimulationModify emulation properties (IMEI/IMSI/Android ID/MAC, etc.)
ADB Commands
adb -cCommon shortcut commands (clear cache/screenshot/screen recording, etc.)adb -c "shell ..."Execute custom shell commands
Other
sortAuto-arrange windowsdriver install / uninstall -n lwfInstall/uninstall drivers (may require administrator privileges)- Auxiliary interface
apiUse only when necessary; stability depends on version
Reference
- See
references/mumu-manager-cli.md - Quick keyword search:
control appApp ManagementsettingConfiguration items and JSON modificationsimulationEmulation propertiesadbADB commandsdriverDriver management