The fire tv will do it automatically upon boot when connected to internet.
HTC ONE M8: S-OFF
ROM: ViperOneM8
RECOVERY: TWRP
KERNEL: Stock