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
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.
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: nullto