Can we program NodeMCU externally without using arduino IDE

Hi,

I am trying to upload codes in my nodeMCU OTA without arduino IDE.
Is this feasible, what basic knowledge is needed, or where to look?
I am planning to upload via REST API

esptool from command line over USB

espota from command line over WiFi with ArduinoOTA in running sketch

webserver update over WiFi with sketch checking the update sever

This is what I use: Programming ESP8266 Without Compiling EVERY Time - #28 by PieterP - Programming Questions - Arduino Forum

Pieter

Thank you all. I haven't started to work on this yet.
I will get back to you if i face any issue while doing.
Thanks again

Juraj:
webserver update over WiFi with sketch checking the update sever

Hi Juraj,
can you please explain me this part?

Or use the ESP8266 as the server, and upload the firmware from a client:
https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266HTTPUpdateServer/examples/SecureHTTPSUpdater/SecureHTTPSUpdater.ino

I think this is what Juraj meant:

shariq_azim:
Hi Juraj,
can you please explain me this part?

ESP8266HTTPUpdateServer library
I didn't test it, yet