Skip to content

Commit d6969de

Browse files
committed
Update README
1 parent cc412af commit d6969de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Another example: let's say that the execution of the previous command results in
3131
## Set credentials
3232

3333
arduino-cloud-cli needs a credentials file containing an Arduino IoT Cloud client ID and its corresponding secret.
34+
Credentials can also include an optional organization ID that specifies the organization to use each user can specify.
3435
You can retrieve these credentials from the [cloud](https://create.arduino.cc/iot/integrations) by creating a new API key.
3536

3637
Once you have the credentials, execute the following command and provide them:
@@ -53,7 +54,8 @@ The credentials file is supported in two different formats: json and yaml. Use t
5354

5455
`$ arduino-cloud-cli credentials init --file-format json`
5556

56-
It is also possible to specify credentials directly in `ARDUINO_CLOUD_CLIENT` and `ARDUINO_CLOUD_SECRET` environment variables. Credentials specified in environment variables have higher priority than the ones specified in credentials files.
57+
It is also possible to specify credentials directly in `ARDUINO_CLOUD_CLIENT`, `ARDUINO_CLOUD_SECRET` and optionally `ARDUINO_CLOUD_ORGANIZATION` environment variables. Credentials specified in environment variables have higher priority than the ones specified in credentials files.
58+
Please note that credentials are correctly extracted from environment variables only if all the mandatory credentials parameters (client and secret) are found in environment variables. (think of it as another config file but with higher priority)
5759

5860
#### Find credentials
5961

0 commit comments

Comments
 (0)