General
// List of devices attached
fastboot devices
// Displays bootloader variables
fastboot getvar All
// Check for fastbootd
fastboot getvar is-userspace
* If it returns yes your devices uses fastbootd
* If no your device uses bootloader/fastboot mode
// Reboot device
fastboot reboot
Flashing
replace test.img with proper image name
// Flashing firmware
fastboot flash *Options test.img
* Example
fastboot flash recovery recovery.img
* Options
boot boot.img
recovery recovery.img
system system.img
userdata data.img
zip file.zip (Custom Rom)
Boot to Reboot
// Reboot into recovery
fastboot reboot recovery
// Temporary recovery
fastboot boot recovery.img
// Unlock Bootloader
fastboot oem unlock
* Status
fastboot oem device-info
fastboot getvar unlocked
// Temporary recovery
fastboot boot recovery.img