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
iot-cloud-cli is a command line interface that allows to exploit the features of Arduino IoT Cloud. As of now, it is possible to provision a device.
3
+
arduino-cloud-cli is a command line interface that allows to exploit the features of Arduino IoT Cloud. As of now, it is possible to provision a device.
4
4
5
5
### Requirements
6
6
7
-
This is all you need to use iot-cloud-cli for device **provisioning**:
7
+
This is all you need to use arduino-cloud-cli for device **provisioning**:
8
8
* A client ID and a secret ID, retrievable from the [cloud](https://create.arduino.cc/iot/integrations) by creating a new API key
9
9
* The folder containing the precompiled provisioning firmwares (`binaries`) needs to be in the same location you run the command from
10
10
@@ -17,101 +17,101 @@ However, if the verbose flag `-v` is used, then the behaviour will change: the l
17
17
As an example, let's take the `device create`command. We want to save the information of the newly created device in a file.
The resulting mydevice.json will only contain device information in a json format.
23
23
24
24
Another example: let's say that the execution of the previous command results in an error. In that case the json file will be empty and the terminal will print out the error. Now we want to execute again the command with the logs enabled, in order to understand the issue. So we execute the following:
iot-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.
31
+
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.
32
32
The configuration file contains the Arduino IoT Cloud client ID and its corresponding secret.
33
33
You can retrieve them from the [cloud](https://create.arduino.cc/iot/integrations) by creating a new API key.
34
34
35
35
Once you have the IDs, call this command to init a new configuration file:
36
36
37
-
`$ iot-cloud-cli config init`
37
+
`$ arduino-cloud-cli config init`
38
38
39
39
A file named `arduino-cloud.yaml` will be created in the current working directory.
40
40
Then you should open such file and replace the client and secret placeholders with the value you previously retrieved.
41
41
42
42
43
43
To create a configuration file in a different folder, use this command:
When provisioning a device, you can optionally specify the port to which the device is connected to and its fqbn. If they are not given, then the first device found will be provisioned.
Devices currently present on Arduino IoT Cloud can be retrieved by using this command:
69
-
`$ iot-cloud-cli device list`
69
+
`$ arduino-cloud-cli device list`
70
70
71
71
## Thing commands
72
72
73
73
Things can be created starting from a template or by cloning another thing.
74
74
75
75
Create a thing from a thing template. Supported template formats are JSON and YAML. The name parameter is optional. If it is provided then it overrides the name retrieved from the template:
0 commit comments