ArduinoIDE 2 AppImage use as arduino-cli

Hello!

Is it possible to use ArduinoIDE AppImage as arduino-cli?

It's in there. You can extract it. There may be more direct ways to do it, but if nothing else, you can start the IDE from it, which in turn also runs cli as a background process. Then something like (reformatted slightly)

$ file $(pgrep -a arduino-cli | cut -d ' ' -f 2)
/tmp/.mount_arduinzql6GD/resources/app/lib/backend/resources/arduino-cli:
ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked,
Go BuildID=J_IuOgXKgVcXQiid_Qyz/3lZNfffkX52oYXtwQPni/RIb1PmoKkRyBSxn-diTj/UnucEj2Zi-JJoQcikgeX, with debug_info, not stripped

(pgrep even has tab completion suggesting current process names.) The first part is the full path as mounted. Copy it somewhere more handy.

Sadly. So in tty without Xserver AppImage impossible to use?

Hi @evily. Please provide a detailed description of what you are trying to accomplish.

Your question was interpreted as "can I use the copy of the Arduino CLI tool that is bundled with the AppImage Package of the Arduino IDE application". However, it doesn't make sense to do that since you could much more easily just install a standalone copy of Arduino CLI.

Your question was very vague, so this makes me think that you are actually trying to accomplish something different. In order to effectively assist you, we must first fully understand what it is that you want assistance with.

Hello!

I'm sorry. I thought wrongly that arduino-cli has a lot of dependencies. I just install without any problems. Thank you!

You are welcome. I'm glad the standalone installation of Arduino CLI is working for you.

It is true that Arduino CLI relies on various helper tools to do things like compile and upload Arduino sketches, however, it is good about automatically installing these for you as needed.

And as for the Arduino CLI application itself, it is quite convenient that it is simply a single executable file.

Regards, Per