↑ Return to Android

Manually Flash Android OS

Download the image to flash.
Nexus/ Pixel – https://developers.google.com/android/images

Unpack the zip file and you are left with a bunch of files.

Install adb and fastboot
brew install android-platform-tools

Put your phone into fastboot mode by pressing and holding the buttons
Vol Down + Power

If you want to unlock the bootloader to allow for custom recovery images, now is the time to do so
fastboot oem unlock

Now time to wipe the devices:

fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system

NOTE: For the remainder of this, you will need to be in the same directory as the Android image you just unpacked
Flash the bootloader and reboot the device

fastboot flash bootloader "name of bootloader"
fastboot reboot-bootloader

Flash the radio and reboot the device

fastboot flash radio "name of radio"
fastboot reboot-bootloader

Now you can either update the rest in one command
fastboot -w update "name of zip file"

OR you can do it all piecemeal

fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash cache cache.img

If you are going complete stock

fastboot erase userdata
fastboot flash userdata userdata.img

Now reboot to finish
fastboot reboot

Thanks to jhawkkw for the help