adb wait-for-device adb reboot-bootloader fastboot devices
Note: You can copy the code without having to worry about the prefix.