You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-9Lines changed: 6 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -31,19 +31,16 @@ Another example: let's say that the execution of the previous command results in
31
31
32
32
## Set a configuration
33
33
34
-
arduino-cloud-cli needs a configuration file to be used. At the moment, the configuration file should be contained in the same directory where the cli commands are executed.
35
-
The configuration file contains the Arduino IoT Cloud client ID and its corresponding secret.
36
-
You can retrieve them from the [cloud](https://create.arduino.cc/iot/integrations) by creating a new API key.
34
+
arduino-cloud-cli needs a configuration file containing an Arduino IoT Cloud client ID and its corresponding secret.
35
+
You can retrieve these credentials from the [cloud](https://create.arduino.cc/iot/integrations) by creating a new API key.
37
36
38
-
Once you have the IDs, call this command to init a new configuration file:
37
+
Once you have the credentials, call the following command and insert them to create a new configuration file:
39
38
40
39
`$ arduino-cloud-cli config init`
41
40
42
-
A file named `arduino-cloud.yaml` will be created in the current working directory.
43
-
Then you should open such file and replace the client and secret placeholders with the value you previously retrieved.
44
-
45
-
46
-
To create a configuration file in a different folder, use this command:
41
+
By default, the configuration file will be created in the default arduino data directory (arduino15).
42
+
To create a configuration file in a different folder, use the `--dest-dir` flag.
43
+
Note that you can have several configuration files, in such case the config file being used will depend on which directory you are executing commands in. The priority is the following (from highest to lowest): config in the same directory commands are executed in (highest priority); config located in parents directories of the one commands are executed in; arduino15 default directory (lowest priority)
0 commit comments