ESP32 flash memory size

Or, more direct in a CLI

PS C:\Users\Max\temp\cond_macro> python C:\Users\Max\.platformio\packages\tool-esptoolpy\esptool.py flash_id
esptool.py v3.1
Found 2 serial ports
Serial port COM4
Connecting........_
Detecting chip type... ESP32
Chip is ESP32-D0WDQ6 (revision 0)
Features: WiFi, BT, Dual Core, Coding Scheme None
Crystal is 40MHz
MAC: 24:0a:c4:04:26:38
Uploading stub...
Running stub...
Stub running...
Manufacturer: c8
Device: 4016
Detected flash size: 4MB     
Hard resetting via RTS pin...