That is the wrong command.
fastboot flash recovery recovery.img
fastboot flash boot is flashing recovery as your rom, then it is loading and you are loading a new rom which overwrites the boot.img you just flashed therefore never having a recovery. every time you flash "fastboot flash boot *.img" it is killing your rom. flash recovery properly and reinstall rom
Sent from my HTC One_M8 using xda app-developers app