How to Install boards files by script to correct locations?


I'm running Arduino 1.8.5 on linux (4.4.0-98-generic #121-Ubuntu i686 GNU/Linux).

I want to install boards by bash script.

When I go tool --> boards --> boards manager I see the "Arduino SAM Boards (32-bits ARM Cortex-M3)" and I click install.

Is there a way I can replicate this install action with a script? (Which files are installed? Where does it come from?)

See the documentation of --install-boards here: If you want to add a 3rd party package note that you also need to add the JSON file's URL to the preferences (which you can also do via CLI) but for Arduino SAM Boards that's not necessary.