-
-
Notifications
You must be signed in to change notification settings - Fork 406
[skip changelog] [skip ci] Clarify additional-urls option usage #548
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -293,21 +293,10 @@ Great! Now we are ready to compile and upload the sketch. | |
Adding 3rd party cores | ||
^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
If your board requires 3rd party core packages to work, you can pass a link to | ||
the the additional package index file with the ``--additional-urls`` option to | ||
any command that require a platform core to work: | ||
If your board requires 3rd party core packages to work, you can list the URLs | ||
to additional package indexes in the Arduino CLI configuration file. | ||
|
||
.. code:: console | ||
|
||
$ arduino-cli core search esp8266 --additional-urls https://arduino.esp8266.com/stable/package_esp8266com_index.json | ||
ID Version Name | ||
esp8266:esp8266 2.5.2 esp8266 | ||
|
||
To avoid passing the ``--additional-urls`` option every time you run a command, | ||
you can list the URLs to additional package indexes in the Arduino CLI | ||
configuration file. | ||
|
||
For example, to add the ESP8266 core, edit the configration file and change the | ||
For example, to add the ESP8266 core, edit the configuration file and change the | ||
``board_manager`` settings as follows: | ||
|
||
.. code:: yaml | ||
|
@@ -330,6 +319,19 @@ additional URL from the configuration file: | |
ID Version Name | ||
esp8266:esp8266 2.5.2 esp8266 | ||
|
||
Alternatively you can pass a link to the the additional package index file with the ``--additional-urls`` option to | ||
every command that require a platform core to work: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. s/require/requires |
||
|
||
.. code:: console | ||
|
||
$ arduino-cli core update-index --additional-urls https://arduino.esp8266.com/stable/package_esp8266com_index.json | ||
Updating index: package_esp8266com_index.json downloaded | ||
|
||
$ arduino-cli core search esp8266 --additional-urls https://arduino.esp8266.com/stable/package_esp8266com_index.json | ||
ID Version Name | ||
esp8266:esp8266 2.5.2 esp8266 | ||
|
||
|
||
Compile and upload the sketch | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could stress the fact that you always have to pass the option if you decide to not use the config file, something on these lines:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I have rephrased it a bit, please check if it makes sense.