Skip to content

Commit df91648

Browse files
committed
Update readme
1 parent af15913 commit df91648

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,16 @@ Another example: let's say that the execution of the previous command results in
3131

3232
## Set a configuration
3333

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.
3736

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:
3938

4039
`$ arduino-cloud-cli config init`
4140

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)
4744

4845
`$ arduino-cloud-cli config init --dest-dir <destinationFolder>`
4946

0 commit comments

Comments
 (0)