Hi. I'm just wondering if there is a best version of arduino cli for Raspberry Pi 3B. (Bookworm). I have arduino ide 1.8.. installed and it seem to work well, but the only cli version I have found is an AppImage which is not supported by the 3B.
Any advice would be greatly appreciated, and many thanks
Have you looked at the official releases page? There's versions for 64 bit ARM, 32 bit ARMv7 and 32 bit ARMv6. No AppImage required. Download the one appropriate to your hardware and OS (in your case either the 64 bit version or the ARMv7 version depending on whether you're running the 64 or 32 bit OS), extract the executable and you're ready to go.
@van_der_decken. Hi and thanks so much for your note. Yes I did check the official download page. I t is not clear which version might be preferred. As the preferred version of the IDE is 1.8.19 or there abouts and not 2.3.3 I thought I might ask to see if there is a preferred version of the CLI.
As a complete noob just exploring linux and bash some things are not immediately clear. I don't think I am installing the 64 bit versions you mentioned correctly because when I try to use "arduino-cli" as a command in bash after installing the extracted files I get an error: arduino-cli cannot be found.
I used spc to copy the downloaded files tar.gz to my raspberry home folder, and then to a subdirectory therein. I tried both the gui and the command line functions, but I can't get the cli to launch. I don't know enough to be able to tell if the arduino cli has been installed, and if so, how to run it.
Please let me know if there are any thoughts on this.
There is no such problem for Arduino CLI because Arduino does distribute builds of Arduino CLI for Linux ARM hosts. So there is no artificial limitation on which versions of Arduino CLI you can use on a Raspberry Pi. Since you can use any version, you might as well use the latest version (currently 1.0.4) so that you can benefit from all the recent development work on adding enhancements and fixing bugs.
If the Arduino CLI installation folder is not in your system PATH then you must start it by the following procedure:
Open a command line terminal in the folder that contains the arduino-cli executable from the extracted file.
Type the following at the command line prompt in the terminal:
./arduino-cli <arguments>
(where <arguments> are the arguments you want to pass when invoking Arduino CLI, e.g., arduino-cli help)
You are welcome. Congratulations on learning how to invoke executables under any path, and learning to use GitHub! This valuable knowledge will surely serve you well.