Once it was the time when CWM was the custom recovery technique for most Android devices, but later on it was gradually replaced by the TWRP and now TeamWin Recovery Project (TWRP) is used as the go-to custom recovery system in most of the Android devices.
Step 2: Download and Install ADB and Fastboot from here
Step 3: Enable USB debugging on your Android device
Step 4: Go to Settings > About Phone > Tap Seven Times on Build Number > Developer Options will Enabled.
Step 5: Move back to Setting and open Developer Options > Check USB Debugging box
Step 6: Open TWRP .img file.
Step 7: Open Command Windows inside the folder by pressing Shift + Right Click anywhere in the empty space and select for Open Command Windows Here
Step 8: Now connect device with PC and type this into the command opened Windows to boot the device into fastboot/bootloader mode adb reboot bootloader
Step 9: In case of permission, click on Allow USB Debugging and OK
Step 10: After the boots of device into bootloader mode, provide the command into command windows to flash the TWRP file. fastboot flash recovery twrp-2.8.x.x-xxx.img
Step 11: After the installation of TWRP, use this command to reboot the device, fastboot reboot