Via the phone terminal like @tafitson recommended is possible, but the phone is no longer detected via adb via computer.
When the device is in fasboot/bootloader mode it is never recognized via adb. You need to have fastboot installed and with that command it should be recognized.