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: docs/30_commands.md
+137Lines changed: 137 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1002,6 +1002,10 @@ Available flags for the command:
1002
1002
1003
1003
## marketplace
1004
1004
1005
+
:::warning
1006
+
This command and its subcommands are deprecated from Mia-Platform Console v14.0.0. Please use [catalog](#catalog) command instead.
1007
+
:::
1008
+
1005
1009
View and manage Marketplace items
1006
1010
1007
1011
All the subcommands inherit the following flags:
@@ -1140,3 +1144,136 @@ The flag `--item-id` or `-i` accepts the `itemId` of the Item.
1140
1144
```bash
1141
1145
miactl marketplace list-versions -i some-item
1142
1146
```
1147
+
1148
+
## catalog
1149
+
1150
+
:::info
1151
+
This command and its subcommands use APIs that are available from Mia-Plaftorm Console v14.0.0. If you are using a previous Console version, use [marketplace](#marketplace) command instead.
1152
+
:::
1153
+
1154
+
View and manage Catalog items
1155
+
1156
+
All the subcommands inherit the following flags:
1157
+
1158
+
```sh
1159
+
--auth-name string the name of the miactl auth to use
1160
+
--certificate-authority string path to a cert file for the certificate authority for the selected endpoint
1161
+
--company-id string the ID of the Company
1162
+
-c, --config string path to the config file default to $HOME/miactl/config
1163
+
--context string the name of the miactl context to use
1164
+
--endpoint string the address and port of the Mia-Platform Console server
1165
+
--insecure-skip-tls-verify if true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
1166
+
-v --verbose increase the verbosity of the cli output
1167
+
```
1168
+
1169
+
### list
1170
+
1171
+
List Catalog items
1172
+
1173
+
#### Synopsis
1174
+
1175
+
List the Catalog items that the current user can access.
1176
+
1177
+
#### Usage
1178
+
1179
+
```sh
1180
+
miactl catalog list --company-id company-id [FLAGS]...
1181
+
```
1182
+
1183
+
#### Flags
1184
+
1185
+
- `--public` - if this flag is set, the command fetches not only the items from the requested company, but also the public Catalog items from other companies.
1186
+
1187
+
### get
1188
+
1189
+
Get a Catalog item
1190
+
1191
+
#### Synopsis
1192
+
1193
+
Get a single Catalog item
1194
+
1195
+
You need to specify the companyId, itemId and version, via the respective flags (recommended). The company-id flag can be omitted if it is already setin the context.
1196
+
1197
+
```bash
1198
+
miactl catalog get { --item-id item-id --version version } ...
1199
+
```
1200
+
1201
+
### delete
1202
+
1203
+
Delete a Catalog item
1204
+
1205
+
#### Synopsis
1206
+
1207
+
Delete a single Catalog item
1208
+
1209
+
You need to specify the companyId, itemId and version, via the respective flags (recommended). The company-id flag can be omitted if it is already setin the context.
1210
+
1211
+
```bash
1212
+
miactl catalog delete { --item-id item-id --version version } ...
1213
+
```
1214
+
1215
+
### apply
1216
+
1217
+
Create or update Catalog items
1218
+
1219
+
#### Synopsis
1220
+
1221
+
Create or update one or more Catalog items.
1222
+
1223
+
The flag -f accepts either files or directories. In case of directories, it explores them recursively.
1224
+
1225
+
Supported formats are JSON (.json files) and YAML (.yaml or .yml files).
1226
+
1227
+
The file can contain an image object with the following format:
1228
+
1229
+
```json
1230
+
"image": {
1231
+
"localPath": "./someImage.png"
1232
+
}
1233
+
```
1234
+
1235
+
The localPath can be absolute or relative to the file location.
1236
+
The image will be uploaded along with the Marketplace item.
1237
+
Before being applied, the "image" key will be replaced with the "imageUrl" referring to the uploaded image.
1238
+
You can retrieve the updated item with the "get" command.
1239
+
1240
+
You can also specify the "supportedByImage"in a similar way.
1241
+
1242
+
Be aware that the presence of both "image" and "imageUrl" and/or of both "supportedByImage" and "supportedByImageUrl" is ambiguous and raises an error.
0 commit comments