Arduino-cli config dump with default values

Is there a command that dumps all known config values, including the ones that have their default value? arduino-cli config dump will just shows the ones that are set in your current config file. But that didn't give me the information I was looking for (which in my case was "where on earth are the installed libraries and packages stored").

Eventually I found that the command arduino-cli config get directories.data gave me the data I needed, but it would have been nice if arduino-cli had a config dump command similar to git config --show-origin --list which shows you all known values and where they are currently initialised from...

Hi @jack-jansen.

Unfortunately not. arduino-cli config dump used to do this up until the 1.0.0 release, but the developers decided to remove that functionality.

You must now use the approach you found of using arduino-cli config get to get the value of specific configuration keys.

Where do you get arduino-cli? I assume that is a command line interface?

Hi @sonofcy. See the documentation here:

https://arduino.github.io/arduino-cli/latest/installation/

Yes, it is a command line tool you can use to do any of the following things:

  • Install boards platforms via the Arduino Boards Manager
  • Install libraries via the Arduino Library Manager
  • Compile Arduino sketches
  • Upload Arduino sketches to a board
  • Perform a "burn bootloader" operation

Arduino CLI provides most of the non-GUI functionality for Arduino IDE under the hood.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.