4.1 Understanding installer_settings.yaml
This file contains details for installer.sh to parse and configure the system with all necessary arduino-cli parameters like cores, libraries, sketches etc.
Last updated
This file contains details for installer.sh to parse and configure the system with all necessary arduino-cli parameters like cores, libraries, sketches etc.
Last updated
.BINARY.LINK
: From where it will download the arduino-cli
binary. It can be found here.
.BINARY.BASE
: is the location where you would like to install arduino-cli.
The default path in the settings file is $HOME/bin
. You can, of course, change your installation location here, before firing up the installer.sh
This is important as all the
arduino-cli
based commands will be executed as/<absolute_path>/arduino-cli
and thus we are not needed to edit any.bashrc
file to include the binary location in$PATH
It doesn't matter to have a trailing /
at the end of the path. Both will be take care of. :). For example:
Next up in the .ymal
file are the cores
list.
These are the cores for your micro-controllers that you want to have in your systems installed. Usually some thing you put in your Arduino IDE preference and if using ardunio-cli
directly, you add them in your cli's config file [ Here also the script will automatically do so 😇 ]
Core links, from where this script (arduino-cli underneath) will download boards info onto your system are all good. But how do you specially install a particular board group? (Like you do in Arduino IDE, after you are done with adding the boards url in preferences, you open Boards manager and search for a board group and install it). Arduino-cli has also already made it easy which is what we use here as well.
The .BINARY.CORE_NAMES
are a list of boards (in arduino-cli world, they are called FQBN
s ) you want to install in your system. The installer will parse this provided array and install them if it can find them in the Arduino repository and not in the system or else if it finds them in the system installed already, it will try to upgrade them.
Note: A proper FQBN format is used here, the same one you would use when using arduino-cli
Next up is are about the libraries you want to install in the system.
The .LIBS[]
array should contain either a/many library's name/s or it's/their's git link/s.
Is order important here?
If using library names and you have one library that has a dependency on another library, you should insert the dependency library first in the file.
So for ex.ample:
Next up are the sketches repository you want cloned in your system.
Use ssh clone link and not https clone links
This will clone the repo in location: $HOME/Arduino/sketches/<repo name>/
Below is a complete example of such a installer_settings.yaml