esptool

ESP8266 and ESP32 serial bootloader utility for flashing firmware

brewmacoslinux
Try with needOr install directly
Source

About

ESP8266 and ESP32 serial bootloader utility

Commands

esptool.py

Examples

Flash firmware to ESP32 device on COM port$ esptool.py -p /dev/ttyUSB0 -b 460800 write_flash -z 0x1000 firmware.bin
Read flash memory from ESP8266 and save to file$ esptool.py -p /dev/ttyUSB0 read_flash 0x0 0x100000 flash_backup.bin
Erase entire flash memory on connected device$ esptool.py -p /dev/ttyUSB0 erase_flash