Adb sideload flashing file type recovery or fastboot
adb is unrelated to fastboot, you can either run adb commands with usb-debugging enabled in boot mode, or adb sideload command in recovery mode. fastboot commands work with fastboot mode only (no adb commands accepted) and requires unlocked bootloader