miflash
There are 2 repositories under miflash topic.
offici5l/MiUnlockTool
MiUnlockTool developed to retrieve encryptData(token) for Xiaomi devices for unlocking bootloader, It is compatible with all platforms.
limitedeternity/MiFlash-Linux
Linux port of MiFlash utility