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: CommandsManual.md
+59-18
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,9 @@
2
2
3
3
## List Of Commands ##
4
4
5
+
**[impt account info](#account-info)**<br />
6
+
**[impt account list](#account-list)**<br />
7
+
5
8
**[impt auth info](#auth-info)**<br />
6
9
**[impt auth login](#auth-login)**<br />
7
10
**[impt auth logout](#auth-logout)**<br />
@@ -72,6 +75,7 @@
72
75
73
76
-[Command Syntax](#command-syntax)
74
77
-[The Help Option](#the-help-option)
78
+
-[The Version Option](#the-version-option)
75
79
-[Command Output](#command-output)
76
80
-[Entity Identification](#entity-identification)
77
81
-[Device Group Type](#device-group-type)
@@ -116,6 +120,10 @@ The `--help` option (alias: `-h`) can be used with a fully or a partially specif
116
120
-`impt <command_group> --help`— Displays a list of all of the group’s commands.
117
121
-`impt <command_group> <command_name> --help`— Displays a detailed description of the command.
118
122
123
+
## The Version Option ##
124
+
125
+
-`impt --version` or `impt -v`— Displays the version of *impt*.
126
+
119
127
## Command Output ##
120
128
121
129
The `--output <mode>` option (alias: `-z`) can be used to adjust the output generated by a command. If the option is not specified, the default verbose output is generated.
@@ -130,46 +138,50 @@ The `--output` option has the following `<mode>` values:
130
138
131
139
## Entity Identification ##
132
140
133
-
Applicable to the following impCentral API entities — Account, Product, Device Group, Device and Deployment —these rules govern how *impt* searches an entity:
141
+
For the impCentral API entities described in this section — Account, Product, Device Group, Device and Deployment —*impt* obeys the following rules when searching one of these entities:
134
142
135
-
- There is an order of attributes for every entity type (see below).
136
-
-*impt* starts from the first attribute in the order and searches the specified value for this attribute.
143
+
-*impt* defines a specific order of attributes for every entity type (described in the subsections below).
144
+
- Some of the entity types additionally support hierarchical identifiers (described in the subsections below).
145
+
- If an entity type supports a hierarchical identifier and the specified value matches the hierarchical identifier pattern, *impt* searches the entity by parsing the hierarchical identifier. If only one entity is found, the search is stopped.
146
+
- Otherwise, *impt* starts from the first attribute in the list of the entity type's supported attributes and searches the specified value for this attribute.
137
147
- If no entity is found for this attribute, the tool searches the specified value for the next attribute in the order.
138
148
- If at least one entity is found for the particular attribute, the search is stopped.
139
149
- If no entity is found for all attributes, or more than one entity is found, then, depending on a particular command, that may be considered as a success (for all `list` commands) or as a fail (for all other commands).
140
150
141
-
### Account Identifier###
151
+
An Entity Identifier must not be empty.
142
152
143
-
Option: `--owner <ACCOUNT_IDENTIFIER>`
153
+
### Account Identifier ###
144
154
145
-
Attributes accepted as <ACCOUNT_IDENTIFIER> (in order of search):
155
+
Attributes accepted as `<ACCOUNT_IDENTIFIER>` (in order of search):
146
156
147
-
-`"me"` (a predefined word, means the current logged-in account)
157
+
-`"me"` (a predefined word which means the current logged-in account)
148
158
- Account ID (always unique)
149
159
- Email (always unique)
150
160
- Username (always unique)
151
161
152
162
### Product Identifier ###
153
163
154
-
Option: `--product <PRODUCT_IDENTIFIER>`
155
-
156
164
Attributes accepted as `<PRODUCT_IDENTIFIER>` (in order of search):
157
165
158
166
- Product ID (always unique)
159
167
- Product name (unique among all Products owned by a particular user)
Where `<ACCOUNT_IDENTIFIER>` is an [Account identifier](#account-identifier) attribute and `<PRODUCT_IDENTIFIER>` is a [Product identifier](#product-identifier) attribute. An attribute of the hierarchical identifier must not itself be a hierarchical identifier. An attribute of the hierarchical identifier must not contain the `}{` substring.
172
+
173
+
### Device Group Identifier ###
164
174
165
175
Attributes accepted as `<DEVICE_GROUP_IDENTIFIER>` (in order of search):
166
176
167
177
- Device Group ID (always unique)
168
178
- Device Group name (unique among all the Device Groups within a Product)
Where `<ACCOUNT_IDENTIFIER>` is an [Account identifier](#account-identifier) attribute, `<PRODUCT_IDENTIFIER>` is a [Product identifier](#product-identifier) attribute and `<DEVICE_GROUP_IDENTIFIER>` is a [Device Group identifier](#device-group-identifier) attribute. An attribute of the hierarchical identifier must not itself be a hierarchical identifier. An attribute of the hierarchical identifier must not contain the `}{` substring.
171
183
172
-
Option: `--device <DEVICE_IDENTIFIER>`
184
+
### Device Identifier ###
173
185
174
186
Attributes accepted as `<DEVICE_IDENTIFIER>` (in order of search):
175
187
@@ -180,8 +192,6 @@ Attributes accepted as `<DEVICE_IDENTIFIER>` (in order of search):
180
192
181
193
### Build Identifier ###
182
194
183
-
Option: `--build <BUILD_IDENTIFIER>`
184
-
185
195
Attributes accepted as `<BUILD_IDENTIFIER>` (in order of search):
186
196
187
197
- Deployment ID (always unique)
@@ -268,6 +278,35 @@ A test configuration file contains settings to run unit tests which are created
268
278
269
279
## Command Description ##
270
280
281
+
### Account Information Commands ###
282
+
283
+
#### Account Info ####
284
+
285
+
```
286
+
impt account info [--user <ACCOUNT_IDENTIFIER>] [--output <mode>] [--help]
287
+
```
288
+
289
+
Displays information about the specified account.
290
+
291
+
| Option | Alias | Mandatory? | Value Required? | Description |
292
+
| --- | --- | --- | --- | --- |
293
+
| --user | -u | No | Yes | An [Account identifier](#account-identifier). If no account is specified, the current account is used |
294
+
| --output | -z | No | Yes | Adjusts the [command's output](#command-output)|
295
+
| --help | -h | No | No | Displays a description of the command. Ignores any other options |
296
+
297
+
#### Account List ####
298
+
299
+
```
300
+
impt account list [--output <mode>] [--help]
301
+
```
302
+
303
+
Displays information about the current account and any other accounts on which the current account is collaborating.
304
+
305
+
| Option | Alias | Mandatory? | Value Required? | Description |
306
+
| --- | --- | --- | --- | --- |
307
+
| --output | -z | No | Yes | Adjusts the [command's output](#command-output)|
308
+
| --help | -h | No | No | Displays a description of the command. Ignores any other options |
309
+
271
310
### Authentication Commands ###
272
311
273
312
#### Auth Info ####
@@ -893,7 +932,7 @@ The command allows you to add multiple devices to the newly created log stream.
893
932
| Option | Alias | Mandatory? | Value Required? | Description |
894
933
| --- | --- | --- | --- | --- |
895
934
| --device | -d | No | Yes | The [device identifier](#device-identifier) of the device to be added to the log stream. This option may be repeated multiple times to specify multiple devices |
896
-
| --dg | -g |no/[Project](#project-files)| Yes | A [Device Group identifier](#device-group-identifier). This option may be repeated multiple times to specify multiple Device Groups. Logs from all of the devices assigned to the specified Device Groups will be added to the log stream. `--device` and `--dg` options are cumulative. If neither the `--device` nor the `--dg` options are specified but there is a [Project file](#project-files) in the current directory, all of the devices assigned to the Device Group referenced by the [Project file](#project-files) are added |
935
+
| --dg | -g |No/[Project](#project-files)| Yes | A [Device Group identifier](#device-group-identifier). This option may be included multiple times to specify multiple Device Groups. Logs from all of the devices assigned to the specified Device Groups will be added to the log stream. `--device` and `--dg` options are cumulative. If neither the `--device` nor the `--dg` options are specified but there is a [Project file](#project-files) in the current directory, all of the devices assigned to the Device Group referenced by the [Project file](#project-files) are added |
897
936
| --output | -z | No | Yes | Adjusts the [command's output](#command-output)|
898
937
| --help | -h | No | No | Displays a description of the command. Ignores any other options |
899
938
@@ -981,7 +1020,8 @@ Updates the specified login key’s description.
Creates a new Product. Fails if a Product with the specified name already exists.
@@ -990,6 +1030,7 @@ Creates a new Product. Fails if a Product with the specified name already exists
990
1030
| --- | --- | --- | --- | --- |
991
1031
| --name | -n | Yes | Yes | The Product’s name. Must be unique among all of the current account’s Products |
992
1032
| --descr | -s | No | Yes | An optional description of the Product |
1033
+
| --owner | -o | No | Yes | The Product will be created in the [specified Account](#account-identifier). If no account is specified, the current account is used |
993
1034
| --output | -z | No | Yes | Adjusts the [command's output](#command-output)|
994
1035
| --help | -h | No | No | Displays a description of the command. Ignores any other options |
995
1036
@@ -1468,7 +1509,7 @@ Updates the specified webhook with a new target URL and/or MIME content-type. Fa
0 commit comments