The Fastboot method works even when your device is in bootloop due to some reasons. Turn off download the stock firmware your device, then hold Volume Up + Power together to boot into the TWRP recovery.
XiaoMiTool V2 was developed thanks to user donations. I appreciated the generosity of people that recognized my work and decided to give me some money. The instructions for all Xiaomi, Mi, Redmi, and even POCO smartphones are common. This method could be really helpful when reinstalling the “Xiaomi Redmi Note 4X firmware” on your device.
Xiaomi Mi Flash flashes stock ROM firmware already known as fastboot files. Recover Xiaomi smartphones and related smart objects
It is the ability to flash these ZIP files that make the custom recovery the go-to choice for a lot of users. TWRP has made it extremely easy to flash any custom ROM (whether your device is A-only or A/B partition). But when it comes to flashing stock firmware, users opt for the Fastboot Command technique.