@dishantlangayan/solace-cloud-cli 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +202 -0
- package/README.md +638 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +5 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +5 -0
- package/dist/commands/missionctrl/broker/create.d.ts +18 -0
- package/dist/commands/missionctrl/broker/create.js +107 -0
- package/dist/commands/missionctrl/broker/delete.d.ts +11 -0
- package/dist/commands/missionctrl/broker/delete.js +54 -0
- package/dist/commands/missionctrl/broker/display.d.ts +12 -0
- package/dist/commands/missionctrl/broker/display.js +69 -0
- package/dist/commands/missionctrl/broker/list.d.ts +13 -0
- package/dist/commands/missionctrl/broker/list.js +65 -0
- package/dist/commands/platform/env/create.d.ts +14 -0
- package/dist/commands/platform/env/create.js +63 -0
- package/dist/commands/platform/env/delete.d.ts +11 -0
- package/dist/commands/platform/env/delete.js +41 -0
- package/dist/commands/platform/env/display.d.ts +12 -0
- package/dist/commands/platform/env/display.js +64 -0
- package/dist/commands/platform/env/list.d.ts +13 -0
- package/dist/commands/platform/env/list.js +56 -0
- package/dist/commands/platform/env/update.d.ts +15 -0
- package/dist/commands/platform/env/update.js +76 -0
- package/dist/config/env-vars.d.ts +44 -0
- package/dist/config/env-vars.js +47 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/sc-command.d.ts +22 -0
- package/dist/sc-command.js +54 -0
- package/dist/types/broker.d.ts +60 -0
- package/dist/types/broker.js +1 -0
- package/dist/types/environment.d.ts +36 -0
- package/dist/types/environment.js +1 -0
- package/dist/util/internal.d.ts +6 -0
- package/dist/util/internal.js +12 -0
- package/dist/util/json.d.ts +15 -0
- package/dist/util/json.js +19 -0
- package/dist/util/sc-connection.d.ts +12 -0
- package/dist/util/sc-connection.js +47 -0
- package/oclif.manifest.json +521 -0
- package/package.json +77 -0
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commands": {
|
|
3
|
+
"missionctrl:broker:create": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "Create an event broker service. You must provide a unique name and select a service class and datacenter. You can optionally define other properties for the event broker service.\n\nYour token must have one of the permissions listed in the Token Permissions.\n\nToken Permissions: [ `services:post` ]",
|
|
7
|
+
"examples": [
|
|
8
|
+
"<%= config.bin %> <%= command.id %> --datacenter-id=MyDatacenterId --name=MyBrokerName --service-class-id=DEVELOPER"
|
|
9
|
+
],
|
|
10
|
+
"flags": {
|
|
11
|
+
"datacenter-id": {
|
|
12
|
+
"char": "d",
|
|
13
|
+
"description": "The identifier of the datacenter.",
|
|
14
|
+
"name": "datacenter-id",
|
|
15
|
+
"required": true,
|
|
16
|
+
"hasDynamicHelp": false,
|
|
17
|
+
"multiple": false,
|
|
18
|
+
"type": "option"
|
|
19
|
+
},
|
|
20
|
+
"env-name": {
|
|
21
|
+
"char": "e",
|
|
22
|
+
"description": "The name of the environment environment where you want to create the service. If no name is provided, the service will be created in the default environment.",
|
|
23
|
+
"name": "env-name",
|
|
24
|
+
"hasDynamicHelp": false,
|
|
25
|
+
"multiple": false,
|
|
26
|
+
"type": "option"
|
|
27
|
+
},
|
|
28
|
+
"locked": {
|
|
29
|
+
"char": "l",
|
|
30
|
+
"description": "Indicates if you can delete the event broker service after creating it. The default value is false.",
|
|
31
|
+
"name": "locked",
|
|
32
|
+
"allowNo": false,
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
},
|
|
35
|
+
"max-spool-usage": {
|
|
36
|
+
"char": "s",
|
|
37
|
+
"description": "The message spool size, in gigabytes (GB). A default message spool size is provided if this is not specified.",
|
|
38
|
+
"name": "max-spool-usage",
|
|
39
|
+
"hasDynamicHelp": false,
|
|
40
|
+
"multiple": false,
|
|
41
|
+
"type": "option"
|
|
42
|
+
},
|
|
43
|
+
"msg-vpn-name": {
|
|
44
|
+
"char": "m",
|
|
45
|
+
"description": "The message VPN name. A default message VPN name is provided when this is not specified.",
|
|
46
|
+
"name": "msg-vpn-name",
|
|
47
|
+
"hasDynamicHelp": false,
|
|
48
|
+
"multiple": false,
|
|
49
|
+
"type": "option"
|
|
50
|
+
},
|
|
51
|
+
"name": {
|
|
52
|
+
"char": "n",
|
|
53
|
+
"description": "Name of the event broker service to create.",
|
|
54
|
+
"name": "name",
|
|
55
|
+
"required": true,
|
|
56
|
+
"hasDynamicHelp": false,
|
|
57
|
+
"multiple": false,
|
|
58
|
+
"type": "option"
|
|
59
|
+
},
|
|
60
|
+
"service-class-id": {
|
|
61
|
+
"char": "c",
|
|
62
|
+
"description": "Supported service classes.",
|
|
63
|
+
"name": "service-class-id",
|
|
64
|
+
"required": true,
|
|
65
|
+
"hasDynamicHelp": false,
|
|
66
|
+
"multiple": false,
|
|
67
|
+
"type": "option"
|
|
68
|
+
},
|
|
69
|
+
"version": {
|
|
70
|
+
"char": "v",
|
|
71
|
+
"description": "The event broker version. A default version is provided when this is not specified.",
|
|
72
|
+
"name": "version",
|
|
73
|
+
"hasDynamicHelp": false,
|
|
74
|
+
"multiple": false,
|
|
75
|
+
"type": "option"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"hasDynamicHelp": false,
|
|
79
|
+
"hiddenAliases": [],
|
|
80
|
+
"id": "missionctrl:broker:create",
|
|
81
|
+
"pluginAlias": "@dishantlangayan/solace-cloud-cli",
|
|
82
|
+
"pluginName": "@dishantlangayan/solace-cloud-cli",
|
|
83
|
+
"pluginType": "core",
|
|
84
|
+
"strict": true,
|
|
85
|
+
"enableJsonFlag": false,
|
|
86
|
+
"isESM": true,
|
|
87
|
+
"relativePath": [
|
|
88
|
+
"dist",
|
|
89
|
+
"commands",
|
|
90
|
+
"missionctrl",
|
|
91
|
+
"broker",
|
|
92
|
+
"create.js"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"missionctrl:broker:delete": {
|
|
96
|
+
"aliases": [],
|
|
97
|
+
"args": {},
|
|
98
|
+
"description": "Delete a service using its unique identifier.\n\nYour token must have one of the permissions listed in the Token Permissions.\n\nToken Permissions: [ `services:delete` **or** `services:delete:self` **or** `mission_control:access` ]",
|
|
99
|
+
"examples": [
|
|
100
|
+
"<%= config.bin %> <%= command.id %> --broker-id=MyBrokerId",
|
|
101
|
+
"<%= config.bin %> <%= command.id %> --name=MyBrokerName"
|
|
102
|
+
],
|
|
103
|
+
"flags": {
|
|
104
|
+
"broker-id": {
|
|
105
|
+
"char": "b",
|
|
106
|
+
"description": "Id of the event broker service.",
|
|
107
|
+
"name": "broker-id",
|
|
108
|
+
"hasDynamicHelp": false,
|
|
109
|
+
"multiple": false,
|
|
110
|
+
"type": "option"
|
|
111
|
+
},
|
|
112
|
+
"name": {
|
|
113
|
+
"char": "n",
|
|
114
|
+
"description": "Name of the event broker service.",
|
|
115
|
+
"name": "name",
|
|
116
|
+
"hasDynamicHelp": false,
|
|
117
|
+
"multiple": false,
|
|
118
|
+
"type": "option"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"hasDynamicHelp": false,
|
|
122
|
+
"hiddenAliases": [],
|
|
123
|
+
"id": "missionctrl:broker:delete",
|
|
124
|
+
"pluginAlias": "@dishantlangayan/solace-cloud-cli",
|
|
125
|
+
"pluginName": "@dishantlangayan/solace-cloud-cli",
|
|
126
|
+
"pluginType": "core",
|
|
127
|
+
"strict": true,
|
|
128
|
+
"enableJsonFlag": false,
|
|
129
|
+
"isESM": true,
|
|
130
|
+
"relativePath": [
|
|
131
|
+
"dist",
|
|
132
|
+
"commands",
|
|
133
|
+
"missionctrl",
|
|
134
|
+
"broker",
|
|
135
|
+
"delete.js"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"missionctrl:broker:display": {
|
|
139
|
+
"aliases": [],
|
|
140
|
+
"args": {},
|
|
141
|
+
"description": "Get the details of an event broker service using its identifier or name.\n \n Use either the Event Broker's ID (--broker-id) or name of the Event Broker (--name).\n \n Token Permissions: [ `mission_control:access` **or** `services:get` **or** `services:get:self` **or** `services:view` **or** `services:view:self` ]",
|
|
142
|
+
"examples": [
|
|
143
|
+
"<%= config.bin %> <%= command.id %>"
|
|
144
|
+
],
|
|
145
|
+
"flags": {
|
|
146
|
+
"broker-id": {
|
|
147
|
+
"char": "b",
|
|
148
|
+
"description": "Id of the event broker service.",
|
|
149
|
+
"name": "broker-id",
|
|
150
|
+
"hasDynamicHelp": false,
|
|
151
|
+
"multiple": false,
|
|
152
|
+
"type": "option"
|
|
153
|
+
},
|
|
154
|
+
"name": {
|
|
155
|
+
"char": "n",
|
|
156
|
+
"description": "Name of the event broker service.",
|
|
157
|
+
"name": "name",
|
|
158
|
+
"hasDynamicHelp": false,
|
|
159
|
+
"multiple": false,
|
|
160
|
+
"type": "option"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"hasDynamicHelp": false,
|
|
164
|
+
"hiddenAliases": [],
|
|
165
|
+
"id": "missionctrl:broker:display",
|
|
166
|
+
"pluginAlias": "@dishantlangayan/solace-cloud-cli",
|
|
167
|
+
"pluginName": "@dishantlangayan/solace-cloud-cli",
|
|
168
|
+
"pluginType": "core",
|
|
169
|
+
"strict": true,
|
|
170
|
+
"enableJsonFlag": false,
|
|
171
|
+
"isESM": true,
|
|
172
|
+
"relativePath": [
|
|
173
|
+
"dist",
|
|
174
|
+
"commands",
|
|
175
|
+
"missionctrl",
|
|
176
|
+
"broker",
|
|
177
|
+
"display.js"
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
"missionctrl:broker:list": {
|
|
181
|
+
"aliases": [],
|
|
182
|
+
"args": {},
|
|
183
|
+
"description": "Get a listing of event broker services.\n\nYour token must have one of the permissions listed in the Token Permissions.\n\nToken Permissions: [ `mission_control:access` **or** `services:get` **or** `services:get:self` **or** `services:view` **or** `services:view:self` ]",
|
|
184
|
+
"examples": [
|
|
185
|
+
"<%= config.bin %> <%= command.id %> --name=MyBrokerName --pageNumber=1 --pageSize=10 --sort=name:asc"
|
|
186
|
+
],
|
|
187
|
+
"flags": {
|
|
188
|
+
"name": {
|
|
189
|
+
"char": "n",
|
|
190
|
+
"description": "Name of the event broker service to match on.",
|
|
191
|
+
"name": "name",
|
|
192
|
+
"hasDynamicHelp": false,
|
|
193
|
+
"multiple": false,
|
|
194
|
+
"type": "option"
|
|
195
|
+
},
|
|
196
|
+
"pageNumber": {
|
|
197
|
+
"description": "The page number to get. Defaults to 1",
|
|
198
|
+
"name": "pageNumber",
|
|
199
|
+
"hasDynamicHelp": false,
|
|
200
|
+
"multiple": false,
|
|
201
|
+
"type": "option"
|
|
202
|
+
},
|
|
203
|
+
"pageSize": {
|
|
204
|
+
"description": "The number of event broker services to return per page. Defaults to 100",
|
|
205
|
+
"name": "pageSize",
|
|
206
|
+
"hasDynamicHelp": false,
|
|
207
|
+
"multiple": false,
|
|
208
|
+
"type": "option"
|
|
209
|
+
},
|
|
210
|
+
"sort": {
|
|
211
|
+
"description": "Sort the returned event broker services by attribute.\n\n You can use the following value formats for the sort order:\n\n * attributes-names \n * attributes-names:sort-order",
|
|
212
|
+
"name": "sort",
|
|
213
|
+
"hasDynamicHelp": false,
|
|
214
|
+
"multiple": false,
|
|
215
|
+
"type": "option"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"hasDynamicHelp": false,
|
|
219
|
+
"hiddenAliases": [],
|
|
220
|
+
"id": "missionctrl:broker:list",
|
|
221
|
+
"pluginAlias": "@dishantlangayan/solace-cloud-cli",
|
|
222
|
+
"pluginName": "@dishantlangayan/solace-cloud-cli",
|
|
223
|
+
"pluginType": "core",
|
|
224
|
+
"strict": true,
|
|
225
|
+
"enableJsonFlag": false,
|
|
226
|
+
"isESM": true,
|
|
227
|
+
"relativePath": [
|
|
228
|
+
"dist",
|
|
229
|
+
"commands",
|
|
230
|
+
"missionctrl",
|
|
231
|
+
"broker",
|
|
232
|
+
"list.js"
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
"platform:env:create": {
|
|
236
|
+
"aliases": [],
|
|
237
|
+
"args": {},
|
|
238
|
+
"description": "Create a new environment.\n\n Token Permissions: [ environments:edit ]",
|
|
239
|
+
"examples": [
|
|
240
|
+
"<%= config.bin %> <%= command.id %> --name=MyEnvironment --desc=\"My environment description\" --isDefault --isProduction"
|
|
241
|
+
],
|
|
242
|
+
"flags": {
|
|
243
|
+
"desc": {
|
|
244
|
+
"char": "d",
|
|
245
|
+
"description": "Description of the environment to create.",
|
|
246
|
+
"name": "desc",
|
|
247
|
+
"hasDynamicHelp": false,
|
|
248
|
+
"multiple": false,
|
|
249
|
+
"type": "option"
|
|
250
|
+
},
|
|
251
|
+
"isDefault": {
|
|
252
|
+
"description": "Indicates this is the organization’s default environment.",
|
|
253
|
+
"name": "isDefault",
|
|
254
|
+
"allowNo": false,
|
|
255
|
+
"type": "boolean"
|
|
256
|
+
},
|
|
257
|
+
"isProduction": {
|
|
258
|
+
"description": "Indicates this is an organization’s production environment. \n This is an immutable field. If an environment needs to be migrated, \n architecture can be migrated to a new environment with the desired \n environment type instead.",
|
|
259
|
+
"name": "isProduction",
|
|
260
|
+
"allowNo": false,
|
|
261
|
+
"type": "boolean"
|
|
262
|
+
},
|
|
263
|
+
"name": {
|
|
264
|
+
"char": "n",
|
|
265
|
+
"description": "Name of the environment to create.",
|
|
266
|
+
"name": "name",
|
|
267
|
+
"required": true,
|
|
268
|
+
"hasDynamicHelp": false,
|
|
269
|
+
"multiple": false,
|
|
270
|
+
"type": "option"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"hasDynamicHelp": false,
|
|
274
|
+
"hiddenAliases": [],
|
|
275
|
+
"id": "platform:env:create",
|
|
276
|
+
"pluginAlias": "@dishantlangayan/solace-cloud-cli",
|
|
277
|
+
"pluginName": "@dishantlangayan/solace-cloud-cli",
|
|
278
|
+
"pluginType": "core",
|
|
279
|
+
"strict": true,
|
|
280
|
+
"enableJsonFlag": false,
|
|
281
|
+
"isESM": true,
|
|
282
|
+
"relativePath": [
|
|
283
|
+
"dist",
|
|
284
|
+
"commands",
|
|
285
|
+
"platform",
|
|
286
|
+
"env",
|
|
287
|
+
"create.js"
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
"platform:env:delete": {
|
|
291
|
+
"aliases": [],
|
|
292
|
+
"args": {},
|
|
293
|
+
"description": "Delete an environment using either its name or unique identifier. The default environment cannot be deleted.\n\n Token Permissions: [ environments:edit ]",
|
|
294
|
+
"examples": [
|
|
295
|
+
"<%= config.bin %> <%= command.id %> --name=MyEnvName",
|
|
296
|
+
"<%= config.bin %> <%= command.id %> --env-id=MyEnvId"
|
|
297
|
+
],
|
|
298
|
+
"flags": {
|
|
299
|
+
"env-id": {
|
|
300
|
+
"char": "e",
|
|
301
|
+
"description": "Id of the environment.",
|
|
302
|
+
"name": "env-id",
|
|
303
|
+
"hasDynamicHelp": false,
|
|
304
|
+
"multiple": false,
|
|
305
|
+
"type": "option"
|
|
306
|
+
},
|
|
307
|
+
"name": {
|
|
308
|
+
"char": "n",
|
|
309
|
+
"description": "Name of the environment.",
|
|
310
|
+
"name": "name",
|
|
311
|
+
"hasDynamicHelp": false,
|
|
312
|
+
"multiple": false,
|
|
313
|
+
"type": "option"
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"hasDynamicHelp": false,
|
|
317
|
+
"hiddenAliases": [],
|
|
318
|
+
"id": "platform:env:delete",
|
|
319
|
+
"pluginAlias": "@dishantlangayan/solace-cloud-cli",
|
|
320
|
+
"pluginName": "@dishantlangayan/solace-cloud-cli",
|
|
321
|
+
"pluginType": "core",
|
|
322
|
+
"strict": true,
|
|
323
|
+
"enableJsonFlag": false,
|
|
324
|
+
"isESM": true,
|
|
325
|
+
"relativePath": [
|
|
326
|
+
"dist",
|
|
327
|
+
"commands",
|
|
328
|
+
"platform",
|
|
329
|
+
"env",
|
|
330
|
+
"delete.js"
|
|
331
|
+
]
|
|
332
|
+
},
|
|
333
|
+
"platform:env:display": {
|
|
334
|
+
"aliases": [],
|
|
335
|
+
"args": {},
|
|
336
|
+
"description": "Display information about an Environment.\n \n Use either the Environment's ID (--env-id) or name of the Environment (--name).\n \n Required token permissions: [ environments:view ]\n ",
|
|
337
|
+
"examples": [
|
|
338
|
+
"<%= config.bin %> <%= command.id %> --name=MyEnvName",
|
|
339
|
+
"<%= config.bin %> <%= command.id %> --env-id=MyEnvId"
|
|
340
|
+
],
|
|
341
|
+
"flags": {
|
|
342
|
+
"env-id": {
|
|
343
|
+
"char": "e",
|
|
344
|
+
"description": "Id of the environment.",
|
|
345
|
+
"name": "env-id",
|
|
346
|
+
"hasDynamicHelp": false,
|
|
347
|
+
"multiple": false,
|
|
348
|
+
"type": "option"
|
|
349
|
+
},
|
|
350
|
+
"name": {
|
|
351
|
+
"char": "n",
|
|
352
|
+
"description": "Name of the environment.",
|
|
353
|
+
"name": "name",
|
|
354
|
+
"hasDynamicHelp": false,
|
|
355
|
+
"multiple": false,
|
|
356
|
+
"type": "option"
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"hasDynamicHelp": false,
|
|
360
|
+
"hiddenAliases": [],
|
|
361
|
+
"id": "platform:env:display",
|
|
362
|
+
"pluginAlias": "@dishantlangayan/solace-cloud-cli",
|
|
363
|
+
"pluginName": "@dishantlangayan/solace-cloud-cli",
|
|
364
|
+
"pluginType": "core",
|
|
365
|
+
"strict": true,
|
|
366
|
+
"enableJsonFlag": false,
|
|
367
|
+
"isESM": true,
|
|
368
|
+
"relativePath": [
|
|
369
|
+
"dist",
|
|
370
|
+
"commands",
|
|
371
|
+
"platform",
|
|
372
|
+
"env",
|
|
373
|
+
"display.js"
|
|
374
|
+
]
|
|
375
|
+
},
|
|
376
|
+
"platform:env:list": {
|
|
377
|
+
"aliases": [],
|
|
378
|
+
"args": {},
|
|
379
|
+
"description": "Get a list of all Environments. \n \n Required token permissions: [ environments:view ]",
|
|
380
|
+
"examples": [
|
|
381
|
+
"<%= config.bin %> <%= command.id %>",
|
|
382
|
+
"<%= config.bin %> <%= command.id %> --name=Default --pageNumber=1 --pageSize=10 --sort=name:ASC"
|
|
383
|
+
],
|
|
384
|
+
"flags": {
|
|
385
|
+
"json": {
|
|
386
|
+
"description": "Format output as json.",
|
|
387
|
+
"helpGroup": "GLOBAL",
|
|
388
|
+
"name": "json",
|
|
389
|
+
"allowNo": false,
|
|
390
|
+
"type": "boolean"
|
|
391
|
+
},
|
|
392
|
+
"log-level": {
|
|
393
|
+
"helpGroup": "GLOBAL",
|
|
394
|
+
"name": "log-level",
|
|
395
|
+
"summary": "Specify level for logging.",
|
|
396
|
+
"default": "info",
|
|
397
|
+
"hasDynamicHelp": false,
|
|
398
|
+
"multiple": false,
|
|
399
|
+
"options": [
|
|
400
|
+
"debug",
|
|
401
|
+
"warn",
|
|
402
|
+
"error",
|
|
403
|
+
"info",
|
|
404
|
+
"trace"
|
|
405
|
+
],
|
|
406
|
+
"type": "option"
|
|
407
|
+
},
|
|
408
|
+
"name": {
|
|
409
|
+
"char": "n",
|
|
410
|
+
"description": "Name of the environment to match on.",
|
|
411
|
+
"name": "name",
|
|
412
|
+
"hasDynamicHelp": false,
|
|
413
|
+
"multiple": false,
|
|
414
|
+
"type": "option"
|
|
415
|
+
},
|
|
416
|
+
"pageNumber": {
|
|
417
|
+
"description": "The page number to get. Defaults to 10",
|
|
418
|
+
"name": "pageNumber",
|
|
419
|
+
"hasDynamicHelp": false,
|
|
420
|
+
"multiple": false,
|
|
421
|
+
"type": "option"
|
|
422
|
+
},
|
|
423
|
+
"pageSize": {
|
|
424
|
+
"description": "The number of environments to get per page. Defaults to 1",
|
|
425
|
+
"name": "pageSize",
|
|
426
|
+
"hasDynamicHelp": false,
|
|
427
|
+
"multiple": false,
|
|
428
|
+
"type": "option"
|
|
429
|
+
},
|
|
430
|
+
"sort": {
|
|
431
|
+
"description": "The query (fieldName:<ASC/DESC>) used to sort the environment list in the response.",
|
|
432
|
+
"name": "sort",
|
|
433
|
+
"hasDynamicHelp": false,
|
|
434
|
+
"multiple": false,
|
|
435
|
+
"type": "option"
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
"hasDynamicHelp": false,
|
|
439
|
+
"hiddenAliases": [],
|
|
440
|
+
"id": "platform:env:list",
|
|
441
|
+
"pluginAlias": "@dishantlangayan/solace-cloud-cli",
|
|
442
|
+
"pluginName": "@dishantlangayan/solace-cloud-cli",
|
|
443
|
+
"pluginType": "core",
|
|
444
|
+
"strict": true,
|
|
445
|
+
"enableJsonFlag": true,
|
|
446
|
+
"isESM": true,
|
|
447
|
+
"relativePath": [
|
|
448
|
+
"dist",
|
|
449
|
+
"commands",
|
|
450
|
+
"platform",
|
|
451
|
+
"env",
|
|
452
|
+
"list.js"
|
|
453
|
+
]
|
|
454
|
+
},
|
|
455
|
+
"platform:env:update": {
|
|
456
|
+
"aliases": [],
|
|
457
|
+
"args": {},
|
|
458
|
+
"description": "Modify an environment's attributes\n \n Use either the Environment's ID (--env-id) or name of the Environment (--name).\n \n Token Permissions: [ environments:edit ]\n ",
|
|
459
|
+
"examples": [
|
|
460
|
+
"<%= config.bin %> <%= command.id %> --name=MyEnvName --new-name=MyNewEnvName --desc=\"My description to update\" --isDefault",
|
|
461
|
+
"<%= config.bin %> <%= command.id %> --env-id=MyEnvId --new-name=MyNewEnvName --desc=\"My description to update\" --isDefault"
|
|
462
|
+
],
|
|
463
|
+
"flags": {
|
|
464
|
+
"desc": {
|
|
465
|
+
"char": "d",
|
|
466
|
+
"description": "Description of the environment to update.",
|
|
467
|
+
"name": "desc",
|
|
468
|
+
"hasDynamicHelp": false,
|
|
469
|
+
"multiple": false,
|
|
470
|
+
"type": "option"
|
|
471
|
+
},
|
|
472
|
+
"env-id": {
|
|
473
|
+
"char": "e",
|
|
474
|
+
"description": "Id of the environment.",
|
|
475
|
+
"name": "env-id",
|
|
476
|
+
"hasDynamicHelp": false,
|
|
477
|
+
"multiple": false,
|
|
478
|
+
"type": "option"
|
|
479
|
+
},
|
|
480
|
+
"isDefault": {
|
|
481
|
+
"description": "Indicates this is the organization's default environment. The default value is false.",
|
|
482
|
+
"name": "isDefault",
|
|
483
|
+
"allowNo": false,
|
|
484
|
+
"type": "boolean"
|
|
485
|
+
},
|
|
486
|
+
"name": {
|
|
487
|
+
"char": "n",
|
|
488
|
+
"description": "Current name of the environment.",
|
|
489
|
+
"name": "name",
|
|
490
|
+
"hasDynamicHelp": false,
|
|
491
|
+
"multiple": false,
|
|
492
|
+
"type": "option"
|
|
493
|
+
},
|
|
494
|
+
"new-name": {
|
|
495
|
+
"description": "New name of the environment.",
|
|
496
|
+
"name": "new-name",
|
|
497
|
+
"hasDynamicHelp": false,
|
|
498
|
+
"multiple": false,
|
|
499
|
+
"type": "option"
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"hasDynamicHelp": false,
|
|
503
|
+
"hiddenAliases": [],
|
|
504
|
+
"id": "platform:env:update",
|
|
505
|
+
"pluginAlias": "@dishantlangayan/solace-cloud-cli",
|
|
506
|
+
"pluginName": "@dishantlangayan/solace-cloud-cli",
|
|
507
|
+
"pluginType": "core",
|
|
508
|
+
"strict": true,
|
|
509
|
+
"enableJsonFlag": false,
|
|
510
|
+
"isESM": true,
|
|
511
|
+
"relativePath": [
|
|
512
|
+
"dist",
|
|
513
|
+
"commands",
|
|
514
|
+
"platform",
|
|
515
|
+
"env",
|
|
516
|
+
"update.js"
|
|
517
|
+
]
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
"version": "0.0.1"
|
|
521
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dishantlangayan/solace-cloud-cli",
|
|
3
|
+
"description": "The Solace Cloud CLI",
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"author": "Dishant Langayan",
|
|
6
|
+
"bin": {
|
|
7
|
+
"sc": "./bin/run.js"
|
|
8
|
+
},
|
|
9
|
+
"bugs": "https://github.com/dishantlangayan/solace-cloud-cli/issues",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@oclif/core": "^4",
|
|
12
|
+
"@oclif/plugin-help": "^6",
|
|
13
|
+
"@oclif/plugin-plugins": "^5",
|
|
14
|
+
"axios": "^1.9.0",
|
|
15
|
+
"table": "^6.9.0"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@eslint/compat": "^1",
|
|
19
|
+
"@oclif/prettier-config": "^0.2.1",
|
|
20
|
+
"@oclif/test": "^4",
|
|
21
|
+
"@types/chai": "^4",
|
|
22
|
+
"@types/mocha": "^10",
|
|
23
|
+
"@types/node": "^18",
|
|
24
|
+
"@types/sinon": "^17.0.4",
|
|
25
|
+
"chai": "^4",
|
|
26
|
+
"eslint": "^9",
|
|
27
|
+
"eslint-config-oclif": "^6",
|
|
28
|
+
"eslint-config-prettier": "^10",
|
|
29
|
+
"mocha": "^10",
|
|
30
|
+
"oclif": "^4",
|
|
31
|
+
"shx": "^0.3.3",
|
|
32
|
+
"sinon": "^21.0.0",
|
|
33
|
+
"ts-node": "^10",
|
|
34
|
+
"typescript": "^5"
|
|
35
|
+
},
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=18.0.0"
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"./bin",
|
|
41
|
+
"./dist",
|
|
42
|
+
"./oclif.manifest.json"
|
|
43
|
+
],
|
|
44
|
+
"homepage": "https://github.com/dishantlangayan/solace-cloud-cli",
|
|
45
|
+
"keywords": [
|
|
46
|
+
"oclif"
|
|
47
|
+
],
|
|
48
|
+
"license": "Apache-2.0",
|
|
49
|
+
"main": "dist/index.js",
|
|
50
|
+
"type": "module",
|
|
51
|
+
"oclif": {
|
|
52
|
+
"bin": "sc",
|
|
53
|
+
"dirname": "sc",
|
|
54
|
+
"commands": "./dist/commands",
|
|
55
|
+
"plugins": [
|
|
56
|
+
"@oclif/plugin-help",
|
|
57
|
+
"@oclif/plugin-plugins"
|
|
58
|
+
],
|
|
59
|
+
"topicSeparator": " ",
|
|
60
|
+
"topics": {
|
|
61
|
+
"hello": {
|
|
62
|
+
"description": "Say hello to the world and others"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"repository": "dishantlangayan/solace-cloud-cli",
|
|
67
|
+
"scripts": {
|
|
68
|
+
"build": "shx rm -rf dist && tsc -b",
|
|
69
|
+
"lint": "eslint",
|
|
70
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
71
|
+
"posttest": "npm run lint",
|
|
72
|
+
"prepack": "oclif manifest && oclif readme",
|
|
73
|
+
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
|
|
74
|
+
"version": "oclif readme && git add README.md"
|
|
75
|
+
},
|
|
76
|
+
"types": "dist/index.d.ts"
|
|
77
|
+
}
|