Trying to export binaries from Arduino CLI like I do in Arduino IDE

I'm doing a project with an ESP32, where I upload a binary file with OTA (with the AsyncElegantOTA library).
Well, the problem is that, when I upload an exported binary file with Arduino IDE it works, but when I try to do the same with Arduino CLI it doesn't.
I realize that both files are different, the exported binary file with Arduino IDE it's only one file (named otaesp.ino.nodemcu-32s.bin), but the exported binary file with Arduino CLI it's a directory (named esp32.esp32.nodemcu-32s, like the Arduino IDE file) with several files in it (otaesp.ino.bin, otaesp.ino.bootloader.bin, otaesp.ino.partitions.bin, etc.), and they weigh the same as the exported file with Arduino IDE.
So, my question is, there is a way to export with Arduino CLI into only one file, like Arduino IDE do?
I'm using this command
arduino-cli compile -b esp32:esp32:nodemcu-32s:UploadSpeed=115200 ./CodeFromGithub/otaesp/otaesp.ino -e

Thank you!

This one is equivalent to the otaesp.ino.nodemcu-32s.bin file produced by Sketch > Export compiled Binary in Arduino IDE 1.x.

If you don't have a use for the other files exported by arduino-cli compile, simply don't use them.

But the size of the file is not the same, neither is the content, there is something different between them. It may be some configuration thing? Maybe it is exporting differently because I am misconfiguring something.
Anyway I use the board details in order to avoid that, that's the reason why I wrote the :UploadSpeed=115200 in the end of the board descriptor, but I don't if it's correct.]
Thank you for the help

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.