hello
it is possible to do the Library manger and Board Manger update with command line ?
have a nice day
vinc
Yes. If you're using the Arduino IDE, you can find the documentation for the --install-boards and --install-library flags here:
You can also use Arduino CLI to do this if you want a purely command line tool:
https://arduino.github.io/arduino-cli/latest/
@pert thanks for your feedback
your links shows only to install it new - but i just wish to do the update from what i have installed in the IDE.
Or i did missunderstood the text.
have a nice day
vinc
Yes, it's possible:
--install-boards package name:platform architecture[:version]
Fetches available board support (platform) list and install the specified one, along with its related tools. If version is omitted, the latest is installed. If a platform with the same version is already installed, nothing is installed and program exits with exit code 1. If a platform with a different version is already installed, it’s replaced.--install-library library name[:version]
Fetches available libraries list and install the specified one. If version is omitted, the latest is installed. If a library with the same version is already installed, nothing is installed and program exits with exit code 1. If a library with a different version is already installed, it’s replaced. Multiple libraries can be specified, separated by a comma.
So if you wanted to update the "Arduino AVR Boards" platform of the Uno, Mega, etc., you can run this command:
arduino --install-boards arduino:avr
or on Windows:
arduino_debug --install-boards arduino:avr
It's the same with Arduino CLI:
arduino-cli core install arduino:avr
but Arduino CLI has an extra feature you might like:
https://arduino.github.io/arduino-cli/latest/commands/arduino-cli_upgrade/
Upgrades installed cores and libraries to latest version.
arduino-cli upgrade [flags]
If you run that command, it upgrades everything you have installed to the latest version!
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.