But this is not recommended to use in all cases.
Clean all: Select this one before flashing to wipe everything from the device including storage system data etc.Just connect the phone in fastboot mode and select the file and click on flash. The process for flashing any file is very tough but this tool made it very simple. Mi Flash Tool is a tool by Xiaomi to flash firmware or Stock ROMs on Xiaomi devices.