Arduino-cli: How to add URL for other boards?

Created on 25 Aug 2018  路  3Comments  路  Source: arduino/arduino-cli

I see board_manager in .cli_config.yml but I cannot figure out the syntax to add a board URL for Adafruit or ESP8266.

The IDE can do this from the command line like this. I am converting a script using the IDE command line to the new arduino-cli.

./arduino --pref "boardsmanager.additional.urls=https://adafruit.github.io/arduino-board-index/package_adafruit_index.json" --save-prefs

documentation

Most helpful comment

You can find the correct config names in yaml_serializer.go: it's additional_urls.
So to add the esp board, you have to change board_manager: null to

board_manager:
  additional_urls:
    - http://arduino.esp8266.com/stable/package_esp8266com_index.json

All 3 comments

I have the same question. I tried editing ./.cli-config.yml manually to edit the board_manager setting, after saving that and running arduino-cli core update-index and then searching for a new core, no core from the new URL is found.

You can find the correct config names in yaml_serializer.go: it's additional_urls.
So to add the esp board, you have to change board_manager: null to

board_manager:
  additional_urls:
    - http://arduino.esp8266.com/stable/package_esp8266com_index.json

Thanks, I tried it and it works fine.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

manasIU picture manasIU  路  7Comments

amamory picture amamory  路  7Comments

TomasHubelbauer picture TomasHubelbauer  路  9Comments

nkieffer picture nkieffer  路  7Comments

dandee picture dandee  路  8Comments