ESP32 Update WiFi Formware?

that topic was about it not working, this one is about how to update firmware. thought it better to keep separate