SPIFFS - LittleFS - Arduino
Upload to Filesystem using SPIFFS
The only way I found is to use the Arduino IDE. Couldn't find a way currently to make it work with arduino-cli
Install the tool, and follow directions at https://github.com/esp8266/Arduino/blob/master/doc/filesystem.rst
Could not get working with LittleFS yet