This post is written and tested using Nexus 5 (Hammerhead), but the methods should work on most of other Android devices.
This post is talking about how to install TWRP Recovery Nexus 5. CyanogenMod now LineageOS, Resurrection Remix, Bliss OS, etc) in your Android devices you need to have a custom recovery software installed on it. If you want to install custom Android ROM (e.g. TWRP is a popular open-source custom recovery software available for many Android devices.