Skip to content

How to add URL for other boards? #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gdsports opened this issue Aug 25, 2018 · 3 comments
Closed

How to add URL for other boards? #5

gdsports opened this issue Aug 25, 2018 · 3 comments
Labels
topic: documentation Related to documentation for the project

Comments

@gdsports
Copy link

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

@masha256
Copy link

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.

@dudelburg
Copy link

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

@gdsports
Copy link
Author

Thanks, I tried it and it works fine.

@cmaglie cmaglie closed this as completed Aug 28, 2018
@cmaglie cmaglie added the topic: documentation Related to documentation for the project label Aug 30, 2018
per1234 pushed a commit that referenced this issue Nov 16, 2020
per1234 added a commit that referenced this issue Aug 9, 2021
Reconfigure taskfile to avoid global golint dependency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: documentation Related to documentation for the project
Projects
None yet
Development

No branches or pull requests

4 participants