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
+7-8
Original file line number
Diff line number
Diff line change
@@ -31,19 +31,18 @@ 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, execute the following command and provide them when asked 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.
41
+
By default it will be created in the arduino data directory (arduino15).
42
+
You can specify a different destination folder with the `--dest-dir` option.
43
+
arduino-cloud-cli looks for its configuration file in different directories in the following order: current working directory, parents of the current working directory, arduino15 default directory.
44
44
45
-
46
-
To create a configuration file in a different folder, use this command:
45
+
This gives you the possibility to use different configuration files depending on the project you are working on.
0 commit comments