Hi. When I run arduino-cli config dump, it returns {}. Why is this the outcome?
Many thanks for your help
Hi. When I run arduino-cli config dump, it returns {}. Why is this the outcome?
Many thanks for your help
Hi @Gavin_8. It is a good question. arduino-cli config dump
only prints the configuration properties you have set explicitly, either through the configuration file, environment variables, or command line flags. So if you haven't explicitly set any configuration properties then it just prints the YAML representation of an empty object, which is {}
.
If you want to get the configuration properties that are being set by default, you have to use the arduino-cli get <configuration key>
command. For example, to get the value of the directories.user
configuration key:
arduino-cli get directories.user
Hi ptillisch, may thanks for your note. So Yes, that makes sense. I have made a few adjustments for some things, but when I try:
arduino-cli get directories.user
an error is returned:
Error: unknown command "get" for "arduino-cli"
Run 'arduino-cli --help' for usage.
unknown command "get" for "arduino-cli"
Is this a windows thing?
thanks,
Gavin
I apologize. I meant to write arduino-cli config get
instead of arduino-cli get
.
@ptillisch
Hi ptillisch, thank you so much. You can perhaps tell I'm a total noob but I did manage to figure some stuff out in the mean time.. You helped me a lot by clarifying a few relatively simple things.
Many thanks
Gavin_8
You are welcome. I'm glad if I was able to be of assistance.
Regards, Per
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.