- General
- Submission
- Updates
- How can I publish a new release once my library is in the list?
- What are the requirements for publishing new releases of libraries already in the Library Manager list?
- Why aren't releases of my library being picked up by Library Manager?
- Can I check on library releases being added to Library Manager?
- How can I remove a release of my library from Library Manager?
- How can I change a library's name?
- Limitations
- Usage
- Can I add my own URL with my own library index?
- When I install a library that I know depends on another library, will this other library be installed as well?
- Can I install multiple versions of one library and use the proper one in my sketches?
- How can I remove a library I installed via Library Manager?
Library Manager is a feature of the Arduino development software which makes it easy for users to find, install, and update both official and 3rd party libraries.
- In the Arduino IDE: Sketch > Include Library > Manage Libraries...
- In Arduino CLI:
arduino-cli lib --help
- In Arduino Web Editor: all Library Manager libraries are pre-installed.
When a library is added to the library list, every release of the library will automatically be made available for installation via Library Manager. Users can set their preferences to display an update notification when a new version of any installed library on the list is available and easily update to the new version with just a couple clicks.
More information:
- https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries#using-the-library-manager
- https://arduino.github.io/arduino-cli/latest/commands/arduino-cli_lib/
- https://create.arduino.cc/projecthub/Arduino_Genuino/getting-started-with-arduino-web-editor-on-various-platforms-4b3e4a
The Library Manager index contains the data for every release of every one of the thousands of libraries that have been added to the Library Manager list. This index is used by Library Manager to provide installation and updates of the libraries as well as to generate automated documentation pages for the Arduino Library Reference.
Every hour, the automated Library Manager indexer system:
- checks every repository in the Library Manager list for new tags, updating the logs accordingly
- checks whether those tags meet the requirements for addition to the index
- adds entries to the index for compliant tags
- pushes the updated index to Arduino's download server
Follow the instructions here.
- The library must be fully compliant with the Arduino Library Specification.
- The library must have a library.properties file, in compliance with the Arduino Library 1.5 format.
- The library.properties file must be located in the root of the repository.
- The library must not have the same library.properties
name
value (regardless of case) as another library previously added to the Library Manager list. - For 3rd party libraries, the
name
field in library.properties must not start withArduino
. - The library repository must not contain any
.exe
files. - The library repository must not contain a
.development
file. - The library repository must not contain any symlinks.
- The library repository must not contain any files detected as infected by our antivirus scan.
- The library repository must have a Git tag (or release) and must have been compliant with all the above requirements at the time of that tag.
- The library repository must be hosted on a major Git-hosting website like GitHub, BitBucket or GitLab (other hosting sites may be considered on request).
Arduino has created a command line tool to check libraries for compliance with all the Library Manager requirements:
https://github.com/arduino/arduino-lint
Arduino Lint is also available as a GitHub Actions action that can be used in the CI systems of Arduino library repositories to ensure continued compliance:
https://github.com/arduino/arduino-lint-action
Everyone is welcome to submit libraries for inclusion in Library Manager, regardless of whether you are involved in the library's development.
Note that libraries will need to be compliant with all requirements in order to be accepted. If not, you will need to work with the library maintainer to achieve compliance.
- Make sure the library is compliant with all requirements.
- Update the
version
in the library'slibrary.properties
). - Tag the library's repository once more and push the new tag (or create a release if the library's Git-hosting site offers a way to do it, for example with GitHub "releases").
Our indexer checks for new releases every hour and will eventually fetch and publish the new release.
What are the requirements for publishing new releases of libraries already in the Library Manager list?
- The library must be compliant with all the same requirements that apply to submissions.
- The
name
property in library.properties must not have changed from the value it had when the library was submitted. If you must change the library name, see this. - The
version
property in library.properties must not be the same as it was in a tag previously added to the Library Manager index.
The Library Manager indexer job will reject any releases which aren't compliant with all the requirements.
You can check the indexer logs for information about what happened.
There is a dedicated web page for each library that shows the logs from the Library Manager indexer. The URL of the logs page is based on the library's repository URL:
http://downloads.arduino.cc/libraries/logs/<host>/<repository slug>/
For example, the Servo library is hosted at https://github.com/arduino-libraries/Servo, so its logs are at:
http://downloads.arduino.cc/libraries/logs/github.com/arduino-libraries/Servo/
If you discover a problem with the library release, simply fix the problem and make a new release. Library Manager defaults to installing the latest version of the library and offers updates to those with an older version installed, so this is the fastest and most effective method for distributing a fix to the users.
In the event a library release is later discovered to contain something that absolutely can not be published, we do allow removing releases from Library Manager on request by the following procedure:
- Delete the tag of the problematic release from the library's repository.
- Open an issue in the issue tracker of this repository, specifying the URL of the library repository and requesting that the library be updated.
For the sake of continuity, libraries in the Library Manager list are locked to the name they had at the time they were added to the list. Changing the library name can be disruptive to its users because this is the unique identifier for the library used by the Arduino development software command line interfaces, sketch metadata, library dependencies, and installation location.
If you wish to change the name it will need to be done manually by request:
- Change the
name
value in the library.properties file and update theversion
. - Create a release or tag.
- Submit an issue report requesting the name be changed and stating the URL of the library's repository.
Your repo is OK if it meets all the requirements listed here.
No. The library archive distributed by Library Manager will only contain an empty folder where the submodule should be.
No. At the moment, the Arduino development software handles one URL only, and that's written into the code (dev jargon: it's hardcoded), this is a known limitation. However, if you know your way through the code, you can change that URL with another one.
When I install a library that I know depends on another library, will this other library be installed as well?
As of Arduino IDE 1.8.10 and Arduino CLI 0.7.0, you can specify the dependencies of a library in the depends
field of library.properties. Those libraries can be installed automatically when someone installs that library via Library Manager.
For more information, see the library.properties
file format documentation.
Library Manager installs libraries into your sketchbook's libraries
folder. Since you cannot create two folders with the same name, we can't install two versions of the same library. However, you can switch between library versions by selecting the appropriate one from the version dropdown that pops up on Library Manager when more than one version is available.
Hover the mouse pointer over the INSTALLED label on the library listing in Library Manager. It will now change to UNINSTALL, which you can click to uninstall that library.
This version of the Arduino IDE does not have an integrated uninstall functionality, so you will need to remove the library manually. Open your sketchbook's libraries
folder with your operating system's file explorer (Windows: Explorer, Mac: Finder, Linux: Nautilus, kfiles...) and delete the folder containing the library.
Libraries can be uninstalled via the arduino-cli lib uninstall
command.