: While you can use command-line ( cmd ), the MiFlash tool is the recommended GUI tool. How to Use flash_all.bat (Step-by-Step)