You can plug it into the computer via USB with IO0 connected to GND, upload the firmware, unplug it - Arduino