@dishantlangayan/solace-cloud-cli 0.2.1 → 0.3.0

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.
Files changed (37) hide show
  1. package/README.md +162 -139
  2. package/dist/commands/account/list.d.ts +10 -0
  3. package/dist/commands/account/list.js +36 -0
  4. package/dist/commands/account/login.d.ts +43 -0
  5. package/dist/commands/account/login.js +232 -0
  6. package/dist/commands/account/logout.d.ts +15 -0
  7. package/dist/commands/account/logout.js +113 -0
  8. package/dist/commands/missionctrl/broker/create.d.ts +1 -0
  9. package/dist/commands/missionctrl/broker/create.js +8 -2
  10. package/dist/commands/missionctrl/broker/delete.d.ts +1 -0
  11. package/dist/commands/missionctrl/broker/delete.js +8 -2
  12. package/dist/commands/missionctrl/broker/display.d.ts +1 -0
  13. package/dist/commands/missionctrl/broker/display.js +11 -3
  14. package/dist/commands/missionctrl/broker/list.d.ts +1 -0
  15. package/dist/commands/missionctrl/broker/list.js +8 -4
  16. package/dist/commands/missionctrl/broker/opstatus.d.ts +1 -0
  17. package/dist/commands/missionctrl/broker/opstatus.js +8 -2
  18. package/dist/commands/missionctrl/broker/state.d.ts +1 -0
  19. package/dist/commands/missionctrl/broker/state.js +8 -2
  20. package/dist/commands/missionctrl/broker/update.d.ts +1 -0
  21. package/dist/commands/missionctrl/broker/update.js +8 -3
  22. package/dist/commands/platform/env/create.d.ts +1 -0
  23. package/dist/commands/platform/env/create.js +9 -3
  24. package/dist/commands/platform/env/delete.d.ts +1 -0
  25. package/dist/commands/platform/env/delete.js +8 -2
  26. package/dist/commands/platform/env/display.d.ts +1 -0
  27. package/dist/commands/platform/env/display.js +8 -2
  28. package/dist/commands/platform/env/list.d.ts +1 -0
  29. package/dist/commands/platform/env/list.js +8 -2
  30. package/dist/commands/platform/env/update.d.ts +1 -0
  31. package/dist/commands/platform/env/update.js +9 -3
  32. package/dist/lib/org-utils.d.ts +24 -0
  33. package/dist/lib/org-utils.js +77 -0
  34. package/oclif.manifest.json +338 -13
  35. package/package.json +3 -3
  36. package/dist/config/env-vars.d.ts +0 -44
  37. package/dist/config/env-vars.js +0 -47
package/README.md CHANGED
@@ -40,7 +40,7 @@ $ npm install -g @dishantlangayan/solace-cloud-cli
40
40
  $ sc COMMAND
41
41
  running command...
42
42
  $ sc (--version)
43
- @dishantlangayan/solace-cloud-cli/0.2.1 darwin-arm64 node-v24.1.0
43
+ @dishantlangayan/solace-cloud-cli/0.3.0 darwin-arm64 node-v24.1.0
44
44
  $ sc --help [COMMAND]
45
45
  USAGE
46
46
  $ sc COMMAND
@@ -87,9 +87,10 @@ See the [LICENSE](LICENSE) file for details.
87
87
  <!-- licensestop -->
88
88
  # Commands
89
89
  <!-- commands -->
90
+ * [`sc account list`](#sc-account-list)
91
+ * [`sc account login`](#sc-account-login)
92
+ * [`sc account logout`](#sc-account-logout)
90
93
  * [`sc autocomplete [SHELL]`](#sc-autocomplete-shell)
91
- * [`sc broker queue create`](#sc-broker-queue-create)
92
- * [`sc broker queue list`](#sc-broker-queue-list)
93
94
  * [`sc commands`](#sc-commands)
94
95
  * [`sc help [COMMAND]`](#sc-help-command)
95
96
  * [`sc missionctrl broker create`](#sc-missionctrl-broker-create)
@@ -119,102 +120,47 @@ See the [LICENSE](LICENSE) file for details.
119
120
  * [`sc version`](#sc-version)
120
121
  * [`sc which`](#sc-which)
121
122
 
122
- ## `sc autocomplete [SHELL]`
123
+ ## `sc account list`
123
124
 
124
- Display autocomplete installation instructions.
125
+ List all authenticated organizations.
125
126
 
126
127
  ```
127
128
  USAGE
128
- $ sc autocomplete [SHELL] [-r]
129
-
130
- ARGUMENTS
131
- [SHELL] (zsh|bash|powershell) Shell type
129
+ $ sc account list [--json] [--log-level debug|warn|error|info|trace]
132
130
 
133
- FLAGS
134
- -r, --refresh-cache Refresh cache (ignores displaying instructions)
131
+ GLOBAL FLAGS
132
+ --json Format output as json.
133
+ --log-level=<option> [default: info] Specify level for logging.
134
+ <options: debug|warn|error|info|trace>
135
135
 
136
136
  DESCRIPTION
137
- Display autocomplete installation instructions.
138
-
139
- EXAMPLES
140
- $ sc autocomplete
137
+ List all authenticated organizations.
141
138
 
142
- $ sc autocomplete bash
143
-
144
- $ sc autocomplete zsh
145
-
146
- $ sc autocomplete powershell
139
+ Displays organizations you have logged into, including their aliases and which one is set as default.
147
140
 
148
- $ sc autocomplete --refresh-cache
141
+ EXAMPLES
142
+ $ sc account list
149
143
  ```
150
144
 
151
- _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.40/src/commands/autocomplete/index.ts)_
145
+ _See code: [src/commands/account/list.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.3.0/src/commands/account/list.ts)_
152
146
 
153
- ## `sc broker queue create`
147
+ ## `sc account login`
154
148
 
155
- Create a Queue on a Solace Cloud Broker.
149
+ Login to a Solace Cloud organization.
156
150
 
157
151
  ```
158
152
  USAGE
159
- $ sc broker queue create -q <value> [--json] [--log-level debug|warn|error|info|trace] [-a exclusive|non-exclusive] [-b
160
- <value>] [-n <value>] [--consumer-ack-propagation-enabled] [--dead-msg-queue <value>] [--delivery-count-enabled]
161
- [--delivery-delay <value>] [--egress-enabled] [--ingress-enabled] [--max-bind-count <value>]
162
- [--max-delivered-unacked-msgs-per-flow <value>] [--max-msg-size <value>] [-s <value>] [--max-redelivery-count
163
- <value>] [--max-ttl <value>] [-o <value>] [-p consume|delete|modify-topic|no-access|read-only]
164
- [--redelivery-delay-enabled] [--redelivery-delay-initial-interval <value>] [--redelivery-delay-max-interval <value>]
165
- [--redelivery-delay-multiplier <value>] [--redelivery-enabled] [--reject-low-priority-msg-enabled]
166
- [--reject-low-priority-msg-limit <value>] [--reject-msg-to-sender-on-discard-behavior
167
- always|never|when-queue-enabled] [--respect-msg-priority-enabled] [--respect-ttl-enabled]
153
+ $ sc account login -o <value> [--json] [--log-level debug|warn|error|info|trace] [-a <value>] [--api-version
154
+ <value>] [--base-url <value>] [--no-prompt] [-d]
168
155
 
169
156
  FLAGS
170
- -a, --access-type=<option> [default: exclusive] The access type for the queue.
171
- <options: exclusive|non-exclusive>
172
- -b, --broker-id=<value> Id of the event broker service.
173
- -n, --broker-name=<value> Name of the event broker service.
174
- -o, --owner=<value> The client username that owns the queue and has permission
175
- equivalent to delete.
176
- -p, --permission=<option> [default: no-access] The permission level for all consumers
177
- of the queue, excluding the owner.
178
- <options: consume|delete|modify-topic|no-access|read-only>
179
- -q, --queue-name=<value> (required) The name of the queue to create.
180
- -s, --max-msg-spool-usage=<value> The maximum message spool usage allowed by the queue, in
181
- megabytes (MB).
182
- --[no-]consumer-ack-propagation-enabled Enable or disable the propagation of consumer
183
- acknowledgments.
184
- --dead-msg-queue=<value> The name of the Dead Message Queue.
185
- --[no-]delivery-count-enabled Enable or disable delivery count on the messages.
186
- --delivery-delay=<value> The delay, in seconds, to apply to messages arriving on the
187
- queue before the messages are eligible for delivery.
188
- --[no-]egress-enabled Enable or disable egress (message consumption) from the
189
- queue.
190
- --[no-]ingress-enabled Enable or disable ingress (message reception) to the queue.
191
- --max-bind-count=<value> The maximum number of consumer flows that can bind to the
192
- queue.
193
- --max-delivered-unacked-msgs-per-flow=<value> The maximum number of messages delivered but not acknowledged
194
- per flow.
195
- --max-msg-size=<value> The maximum message size allowed in the queue, in bytes.
196
- --max-redelivery-count=<value> The maximum number of times a message will be redelivered
197
- before it is discarded or moved to the DMQ.
198
- --max-ttl=<value> The maximum time in seconds a message can stay in the queue
199
- when respect-ttl-enabled is true.
200
- --[no-]redelivery-delay-enabled Enable or disable a message redelivery delay.
201
- --redelivery-delay-initial-interval=<value> The delay to be used between the first 2 redelivery attempts,
202
- in milliseconds.
203
- --redelivery-delay-max-interval=<value> The maximum delay to be used between any 2 redelivery
204
- attempts, in milliseconds.
205
- --redelivery-delay-multiplier=<value> The amount each delay interval is multiplied by after each
206
- failed delivery attempt.
207
- --[no-]redelivery-enabled Enable or disable message redelivery.
208
- --[no-]reject-low-priority-msg-enabled Enable or disable the checking of low priority messages
209
- against the reject-low-priority-msg-limit.
210
- --reject-low-priority-msg-limit=<value> The number of messages of any priority above which low
211
- priority messages are not admitted.
212
- --reject-msg-to-sender-on-discard-behavior=<option> Determines when to return negative acknowledgments (NACKs) to
213
- sending clients on message discards.
214
- <options: always|never|when-queue-enabled>
215
- --[no-]respect-msg-priority-enabled Enable or disable the respecting of message priority.
216
- --[no-]respect-ttl-enabled Enable or disable the respecting of the time-to-live (TTL)
217
- for messages.
157
+ -a, --alias=<value> Alias name for this organization (allows storing multiple tokens for the same org with
158
+ different aliases)
159
+ -d, --set-default Set this organization as the default
160
+ -o, --org=<value> (required) Organization ID to login to
161
+ --api-version=<value> API version to use (optional)
162
+ --base-url=<value> Custom base URL for Solace Cloud API (optional)
163
+ --no-prompt Read access token from SC_ACCESS_TOKEN environment variable instead of prompting
218
164
 
219
165
  GLOBAL FLAGS
220
166
  --json Format output as json.
@@ -222,39 +168,44 @@ GLOBAL FLAGS
222
168
  <options: debug|warn|error|info|trace>
223
169
 
224
170
  DESCRIPTION
225
- Create a Queue on a Solace Cloud Broker.
171
+ Login to a Solace Cloud organization.
226
172
 
227
- Your token must have one of the permissions listed in the Token Permissions.
173
+ Stores organization credentials securely using OS keychain.
174
+ The access token is encrypted and stored locally.
228
175
 
229
- Token Permissions: [ mission_control:access or services:get or services:get:self or services:view or
230
- services:view:self ]
176
+ You can store multiple access tokens for the same organization by using unique aliases.
177
+ Without an alias, only one token per organization ID is allowed.
178
+
179
+ Required token permissions: Varies by operations you intend to perform
231
180
 
232
181
  EXAMPLES
233
- $ sc broker queue create --broker-id=MyBrokerId --queue-name=myQueue
182
+ $ sc account login --org=my-org-id
183
+
184
+ $ sc account login --org=my-org-id --alias=production
234
185
 
235
- $ sc broker queue create --broker-name=MyBrokerName --queue-name=myQueue --access-type=exclusive
186
+ $ sc account login --org=my-org-id --alias=staging
236
187
 
237
- $ sc broker queue create --broker-name=MyBrokerName --queue-name=myQueue --owner=user1 --permission=consume
188
+ $ sc account login --org=my-org-id --set-default
238
189
 
239
- $ sc broker queue create --broker-id=MyBrokerId --queue-name=myQueue --max-spool-usage=100 --ingress-enabled --egress-enabled
190
+ $ sc account login --org=my-org-id --no-prompt
191
+
192
+ $ sc account login --org=my-org-id --base-url=https://api.custom.solace.cloud
240
193
  ```
241
194
 
242
- _See code: [@dishantlangayan/sc-plugin-queue](https://github.com/dishantlangayan/sc-plugin-queue/blob/v0.1.1/src/commands/broker/queue/create.ts)_
195
+ _See code: [src/commands/account/login.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.3.0/src/commands/account/login.ts)_
243
196
 
244
- ## `sc broker queue list`
197
+ ## `sc account logout`
245
198
 
246
- Get a list of Queue objects from the Solace Cloud Broker.
199
+ Logout from authenticated organizations.
247
200
 
248
201
  ```
249
202
  USAGE
250
- $ sc broker queue list [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>] [-c <value>] [-q
251
- <value>]
203
+ $ sc account logout [--json] [--log-level debug|warn|error|info|trace] [-a] [--no-prompt] [-o <value>]
252
204
 
253
205
  FLAGS
254
- -b, --broker-id=<value> Id of the event broker service.
255
- -c, --count=<value> [default: 10] Limit the number of queues returned
256
- -n, --broker-name=<value> Name of the event broker service.
257
- -q, --queue-name=<value> Name of the queue(s) to filter.
206
+ -a, --all Logout of all organizations
207
+ -o, --org=<value> Organization ID or alias to logout from
208
+ --no-prompt Skip confirmation prompt and assume Yes
258
209
 
259
210
  GLOBAL FLAGS
260
211
  --json Format output as json.
@@ -262,22 +213,55 @@ GLOBAL FLAGS
262
213
  <options: debug|warn|error|info|trace>
263
214
 
264
215
  DESCRIPTION
265
- Get a list of Queue objects from the Solace Cloud Broker.
216
+ Logout from authenticated organizations.
266
217
 
267
- Token Permissions: [ mission_control:access or services:get or services:get:self or services:view or
268
- services:view:self ]
218
+ Removes locally stored organization credentials and access tokens.
219
+ Interactive mode allows selection with arrow keys and spacebar.
220
+
221
+ EXAMPLES
222
+ $ sc account logout
223
+
224
+ $ sc account logout --org=my-org-id
225
+
226
+ $ sc account logout --org=production
227
+
228
+ $ sc account logout --all
229
+
230
+ $ sc account logout --org=my-org-id --no-prompt
231
+ ```
232
+
233
+ _See code: [src/commands/account/logout.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.3.0/src/commands/account/logout.ts)_
234
+
235
+ ## `sc autocomplete [SHELL]`
236
+
237
+ Display autocomplete installation instructions.
238
+
239
+ ```
240
+ USAGE
241
+ $ sc autocomplete [SHELL] [-r]
242
+
243
+ ARGUMENTS
244
+ [SHELL] (zsh|bash|powershell) Shell type
245
+
246
+ FLAGS
247
+ -r, --refresh-cache Refresh cache (ignores displaying instructions)
248
+
249
+ DESCRIPTION
250
+ Display autocomplete installation instructions.
269
251
 
270
252
  EXAMPLES
271
- $ sc broker queue list --broker-id=MyBrokerId
253
+ $ sc autocomplete
272
254
 
273
- $ sc broker queue list --broker-name=MyBrokerName
255
+ $ sc autocomplete bash
274
256
 
275
- $ sc broker queue list --broker-name=MyBrokerName --count=10
257
+ $ sc autocomplete zsh
258
+
259
+ $ sc autocomplete powershell
276
260
 
277
- $ sc broker queue list --broker-name=MyBrokerName --queue-name=test*"
261
+ $ sc autocomplete --refresh-cache
278
262
  ```
279
263
 
280
- _See code: [@dishantlangayan/sc-plugin-queue](https://github.com/dishantlangayan/sc-plugin-queue/blob/v0.1.1/src/commands/broker/queue/list.ts)_
264
+ _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.40/src/commands/autocomplete/index.ts)_
281
265
 
282
266
  ## `sc commands`
283
267
 
@@ -335,7 +319,7 @@ Create an event broker service. You must provide a unique name and select a serv
335
319
  ```
336
320
  USAGE
337
321
  $ sc missionctrl broker create -d <value> -n <value> -c <value> [--json] [--log-level debug|warn|error|info|trace] [-e
338
- <value>] [-l] [-s <value>] [-m <value>] [-r] [-v <value>]
322
+ <value>] [-l] [-s <value>] [-m <value>] [-o <value>] [-r] [-v <value>]
339
323
 
340
324
  FLAGS
341
325
  -c, --service-class-id=<value>
@@ -359,6 +343,9 @@ FLAGS
359
343
  -n, --name=<value>
360
344
  (required) Name of the event broker service to create.
361
345
 
346
+ -o, --org=<value>
347
+ Organization ID or alias to use. If not specified, uses the default organization.
348
+
362
349
  -r, --redundancy-group-ssl-enabled
363
350
  Enable or disable SSL for the redundancy group (for mate-link encryption). The default value is false (disabled)
364
351
 
@@ -383,9 +370,11 @@ DESCRIPTION
383
370
 
384
371
  EXAMPLES
385
372
  $ sc missionctrl broker create --name=MyBrokerName --datacenter-id=eks-ca-central-1a --service-class-id=DEVELOPER
373
+
374
+ $ sc missionctrl broker create --org=my-org --name=MyBrokerName --datacenter-id=eks-ca-central-1a --service-class-id=DEVELOPER
386
375
  ```
387
376
 
388
- _See code: [src/commands/missionctrl/broker/create.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.1/src/commands/missionctrl/broker/create.ts)_
377
+ _See code: [src/commands/missionctrl/broker/create.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.3.0/src/commands/missionctrl/broker/create.ts)_
389
378
 
390
379
  ## `sc missionctrl broker delete`
391
380
 
@@ -393,11 +382,13 @@ Delete a service using its unique identifier.
393
382
 
394
383
  ```
395
384
  USAGE
396
- $ sc missionctrl broker delete [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>]
385
+ $ sc missionctrl broker delete [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>] [-o
386
+ <value>]
397
387
 
398
388
  FLAGS
399
389
  -b, --broker-id=<value> Id of the event broker service.
400
390
  -n, --name=<value> Name of the event broker service.
391
+ -o, --org=<value> Organization ID or alias to use. If not specified, uses the default organization.
401
392
 
402
393
  GLOBAL FLAGS
403
394
  --json Format output as json.
@@ -415,9 +406,11 @@ EXAMPLES
415
406
  $ sc missionctrl broker delete --broker-id=MyBrokerId
416
407
 
417
408
  $ sc missionctrl broker delete --name=MyBrokerName
409
+
410
+ $ sc missionctrl broker delete --org=my-org --broker-id=MyBrokerId
418
411
  ```
419
412
 
420
- _See code: [src/commands/missionctrl/broker/delete.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.1/src/commands/missionctrl/broker/delete.ts)_
413
+ _See code: [src/commands/missionctrl/broker/delete.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.3.0/src/commands/missionctrl/broker/delete.ts)_
421
414
 
422
415
  ## `sc missionctrl broker display`
423
416
 
@@ -425,11 +418,13 @@ Get the details of an event broker service using its identifier or name.
425
418
 
426
419
  ```
427
420
  USAGE
428
- $ sc missionctrl broker display [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>]
421
+ $ sc missionctrl broker display [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>] [-o
422
+ <value>]
429
423
 
430
424
  FLAGS
431
425
  -b, --broker-id=<value> Id of the event broker service.
432
426
  -n, --name=<value> Name of the event broker service.
427
+ -o, --org=<value> Organization ID or alias to use. If not specified, uses the default organization.
433
428
 
434
429
  GLOBAL FLAGS
435
430
  --json Format output as json.
@@ -445,10 +440,12 @@ DESCRIPTION
445
440
  **or** `services:view:self` ]
446
441
 
447
442
  EXAMPLES
448
- $ sc missionctrl broker display
443
+ $ sc missionctrl broker display --broker-id=MyBrokerId
444
+
445
+ $ sc missionctrl broker display --org=my-org --name=MyBrokerName
449
446
  ```
450
447
 
451
- _See code: [src/commands/missionctrl/broker/display.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.1/src/commands/missionctrl/broker/display.ts)_
448
+ _See code: [src/commands/missionctrl/broker/display.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.3.0/src/commands/missionctrl/broker/display.ts)_
452
449
 
453
450
  ## `sc missionctrl broker list`
454
451
 
@@ -456,13 +453,16 @@ Get a listing of event broker services.
456
453
 
457
454
  ```
458
455
  USAGE
459
- $ sc missionctrl broker list [--json] [--log-level debug|warn|error|info|trace] [-n <value>] [--pageNumber <value>]
460
- [--pageSize <value>] [--sort <value>]
456
+ $ sc missionctrl broker list [--json] [--log-level debug|warn|error|info|trace] [-n <value>] [-o <value>] [--pageNumber
457
+ <value>] [--pageSize <value>] [--sort <value>]
461
458
 
462
459
  FLAGS
463
460
  -n, --name=<value>
464
461
  Name of the event broker service to match on.
465
462
 
463
+ -o, --org=<value>
464
+ Organization ID or alias to use. If not specified, uses the default organization.
465
+
466
466
  --pageNumber=<value>
467
467
  The page number to get. Defaults to 1
468
468
 
@@ -485,8 +485,6 @@ GLOBAL FLAGS
485
485
  DESCRIPTION
486
486
  Get a listing of event broker services.
487
487
 
488
- The maximum number of objects that can be returned in a single page is 100. Default is 10.
489
-
490
488
  Your token must have one of the permissions listed in the Token Permissions.
491
489
 
492
490
  Token Permissions: [ `mission_control:access` **or** `services:get` **or** `services:get:self` **or** `services:view`
@@ -495,10 +493,12 @@ DESCRIPTION
495
493
  EXAMPLES
496
494
  $ sc missionctrl broker list
497
495
 
496
+ $ sc missionctrl broker list --org=my-org
497
+
498
498
  $ sc missionctrl broker list --name=MyBrokerName --pageNumber=1 --pageSize=10 --sort=name:asc
499
499
  ```
500
500
 
501
- _See code: [src/commands/missionctrl/broker/list.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.1/src/commands/missionctrl/broker/list.ts)_
501
+ _See code: [src/commands/missionctrl/broker/list.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.3.0/src/commands/missionctrl/broker/list.ts)_
502
502
 
503
503
  ## `sc missionctrl broker opstatus`
504
504
 
@@ -506,12 +506,13 @@ Get the status of all operations being performed on an event broker service.
506
506
 
507
507
  ```
508
508
  USAGE
509
- $ sc missionctrl broker opstatus [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>] [-p] [-w
510
- <value>]
509
+ $ sc missionctrl broker opstatus [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>] [-o <value>] [-p]
510
+ [-w <value>]
511
511
 
512
512
  FLAGS
513
513
  -b, --broker-id=<value> Id of the event broker service.
514
514
  -n, --name=<value> Name of the event broker service.
515
+ -o, --org=<value> Organization ID or alias to use. If not specified, uses the default organization.
515
516
  -p, --show-progress Displays a status bar of the in-progress operations. The command will wait for completion of
516
517
  each step of the operation.
517
518
  -w, --wait-ms=<value> The milliseconds to wait between API calls for checking progress of the operation. Default is
@@ -533,9 +534,11 @@ EXAMPLES
533
534
  $ sc missionctrl broker opstatus -b <broker-id>
534
535
 
535
536
  $ sc missionctrl broker opstatus -n <broker-name>
537
+
538
+ $ sc missionctrl broker opstatus --org=my-org -b <broker-id>
536
539
  ```
537
540
 
538
- _See code: [src/commands/missionctrl/broker/opstatus.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.1/src/commands/missionctrl/broker/opstatus.ts)_
541
+ _See code: [src/commands/missionctrl/broker/opstatus.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.3.0/src/commands/missionctrl/broker/opstatus.ts)_
539
542
 
540
543
  ## `sc missionctrl broker state`
541
544
 
@@ -543,11 +546,13 @@ Get the availability state of an event broker service and the name of the active
543
546
 
544
547
  ```
545
548
  USAGE
546
- $ sc missionctrl broker state [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>]
549
+ $ sc missionctrl broker state [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>] [-o
550
+ <value>]
547
551
 
548
552
  FLAGS
549
553
  -b, --broker-id=<value> Id of the event broker service.
550
554
  -n, --name=<value> Name of the event broker service.
555
+ -o, --org=<value> Organization ID or alias to use. If not specified, uses the default organization.
551
556
 
552
557
  GLOBAL FLAGS
553
558
  --json Format output as json.
@@ -567,9 +572,11 @@ EXAMPLES
567
572
  $ sc missionctrl broker state --broker-id=MyBrokerServiceId
568
573
 
569
574
  $ sc missionctrl broker state --name=MyBrokerName
575
+
576
+ $ sc missionctrl broker state --org=my-org --broker-id=MyBrokerServiceId
570
577
  ```
571
578
 
572
- _See code: [src/commands/missionctrl/broker/state.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.1/src/commands/missionctrl/broker/state.ts)_
579
+ _See code: [src/commands/missionctrl/broker/state.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.3.0/src/commands/missionctrl/broker/state.ts)_
573
580
 
574
581
  ## `sc missionctrl broker update`
575
582
 
@@ -578,13 +585,14 @@ Update the configuration of an existing event broker service.
578
585
  ```
579
586
  USAGE
580
587
  $ sc missionctrl broker update [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-l <value>] [-n <value>]
581
- [--new-name <value>]
588
+ [--new-name <value>] [-o <value>]
582
589
 
583
590
  FLAGS
584
591
  -b, --broker-id=<value> Id of the event broker service.
585
592
  -l, --locked=<value> Indicates whether the event broker service has deletion protection enabled. The valid values
586
593
  are 'true' (enabled) or 'false' (disabled).
587
594
  -n, --name=<value> Name of the event broker service.
595
+ -o, --org=<value> Organization ID or alias to use. If not specified, uses the default organization.
588
596
  --new-name=<value> New name of the event broker service. The new service name must be unique within an
589
597
  organization.
590
598
 
@@ -606,10 +614,10 @@ EXAMPLES
606
614
 
607
615
  $ sc missionctrl broker update --broker-id <broker-id> --new-name <new-name>
608
616
 
609
- $ sc missionctrl broker update --name <name> --new-name <new-name>
617
+ $ sc missionctrl broker update --org=my-org --name <name> --new-name <new-name>
610
618
  ```
611
619
 
612
- _See code: [src/commands/missionctrl/broker/update.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.1/src/commands/missionctrl/broker/update.ts)_
620
+ _See code: [src/commands/missionctrl/broker/update.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.3.0/src/commands/missionctrl/broker/update.ts)_
613
621
 
614
622
  ## `sc platform env create`
615
623
 
@@ -618,11 +626,12 @@ Create a new environment.
618
626
  ```
619
627
  USAGE
620
628
  $ sc platform env create -n <value> [--json] [--log-level debug|warn|error|info|trace] [-d <value>] [--isDefault]
621
- [--isProduction]
629
+ [--isProduction] [-o <value>]
622
630
 
623
631
  FLAGS
624
632
  -d, --description=<value> Description of the environment to create.
625
633
  -n, --name=<value> (required) Name of the environment to create.
634
+ -o, --org=<value> Organization ID or alias to use. If not specified, uses the default organization.
626
635
  --isDefault Indicates this is the organization's default environment.
627
636
  --isProduction Indicates this is an organization's production environment.
628
637
  This is an immutable field. If an environment needs to be migrated,
@@ -640,10 +649,12 @@ DESCRIPTION
640
649
  Token Permissions: [ environments:edit ]
641
650
 
642
651
  EXAMPLES
643
- $ sc platform env create --name=MyEnvironment --description="My environment description" --isDefault --isProduction
652
+ $ sc platform env create --name=MyEnvironment
653
+
654
+ $ sc platform env create --org=my-org --name=MyEnvironment --description="My environment description" --isDefault --isProduction
644
655
  ```
645
656
 
646
- _See code: [src/commands/platform/env/create.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.1/src/commands/platform/env/create.ts)_
657
+ _See code: [src/commands/platform/env/create.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.3.0/src/commands/platform/env/create.ts)_
647
658
 
648
659
  ## `sc platform env delete`
649
660
 
@@ -651,11 +662,12 @@ Delete an environment using either its name or unique identifier. The default en
651
662
 
652
663
  ```
653
664
  USAGE
654
- $ sc platform env delete [--json] [--log-level debug|warn|error|info|trace] [-e <value>] [-n <value>]
665
+ $ sc platform env delete [--json] [--log-level debug|warn|error|info|trace] [-e <value>] [-n <value>] [-o <value>]
655
666
 
656
667
  FLAGS
657
668
  -e, --env-id=<value> Id of the environment.
658
669
  -n, --name=<value> Name of the environment.
670
+ -o, --org=<value> Organization ID or alias to use. If not specified, uses the default organization.
659
671
 
660
672
  GLOBAL FLAGS
661
673
  --json Format output as json.
@@ -671,9 +683,11 @@ EXAMPLES
671
683
  $ sc platform env delete --name=MyEnvName
672
684
 
673
685
  $ sc platform env delete --env-id=MyEnvId
686
+
687
+ $ sc platform env delete --org=my-org --name=MyEnvName
674
688
  ```
675
689
 
676
- _See code: [src/commands/platform/env/delete.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.1/src/commands/platform/env/delete.ts)_
690
+ _See code: [src/commands/platform/env/delete.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.3.0/src/commands/platform/env/delete.ts)_
677
691
 
678
692
  ## `sc platform env display`
679
693
 
@@ -681,11 +695,12 @@ Display information about an Environment.
681
695
 
682
696
  ```
683
697
  USAGE
684
- $ sc platform env display [--json] [--log-level debug|warn|error|info|trace] [-e <value>] [-n <value>]
698
+ $ sc platform env display [--json] [--log-level debug|warn|error|info|trace] [-e <value>] [-n <value>] [-o <value>]
685
699
 
686
700
  FLAGS
687
701
  -e, --env-id=<value> Id of the environment.
688
702
  -n, --name=<value> Name of the environment.
703
+ -o, --org=<value> Organization ID or alias to use. If not specified, uses the default organization.
689
704
 
690
705
  GLOBAL FLAGS
691
706
  --json Format output as json.
@@ -703,9 +718,11 @@ EXAMPLES
703
718
  $ sc platform env display --name=MyEnvName
704
719
 
705
720
  $ sc platform env display --env-id=MyEnvId
721
+
722
+ $ sc platform env display --org=my-org --env-id=MyEnvId
706
723
  ```
707
724
 
708
- _See code: [src/commands/platform/env/display.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.1/src/commands/platform/env/display.ts)_
725
+ _See code: [src/commands/platform/env/display.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.3.0/src/commands/platform/env/display.ts)_
709
726
 
710
727
  ## `sc platform env list`
711
728
 
@@ -713,11 +730,12 @@ Get a list of all Environments.
713
730
 
714
731
  ```
715
732
  USAGE
716
- $ sc platform env list [--json] [--log-level debug|warn|error|info|trace] [-n <value>] [-p <value>] [-s <value>]
717
- [--sort <value>]
733
+ $ sc platform env list [--json] [--log-level debug|warn|error|info|trace] [-n <value>] [-o <value>] [-p <value>] [-s
734
+ <value>] [--sort <value>]
718
735
 
719
736
  FLAGS
720
737
  -n, --name=<value> Name of the environment to match on.
738
+ -o, --org=<value> Organization ID or alias to use. If not specified, uses the default organization.
721
739
  -p, --pageNumber=<value> The page number to get. Defaults to 10
722
740
  -s, --pageSize=<value> The number of environments to get per page. Defaults to 1
723
741
  --sort=<value> The query (fieldName:<ASC/DESC>) used to sort the environment list in the response.
@@ -735,10 +753,12 @@ DESCRIPTION
735
753
  EXAMPLES
736
754
  $ sc platform env list
737
755
 
756
+ $ sc platform env list --org=my-org
757
+
738
758
  $ sc platform env list --name=Default --pageNumber=1 --pageSize=10 --sort=name:ASC
739
759
  ```
740
760
 
741
- _See code: [src/commands/platform/env/list.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.1/src/commands/platform/env/list.ts)_
761
+ _See code: [src/commands/platform/env/list.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.3.0/src/commands/platform/env/list.ts)_
742
762
 
743
763
  ## `sc platform env update`
744
764
 
@@ -747,12 +767,13 @@ Modify an environment's attributes
747
767
  ```
748
768
  USAGE
749
769
  $ sc platform env update [--json] [--log-level debug|warn|error|info|trace] [-d <value>] [-e <value>] [--isDefault] [-n
750
- <value>] [--new-name <value>]
770
+ <value>] [--new-name <value>] [-o <value>]
751
771
 
752
772
  FLAGS
753
773
  -d, --description=<value> Description of the environment to update.
754
774
  -e, --env-id=<value> Id of the environment.
755
775
  -n, --name=<value> Current name of the environment.
776
+ -o, --org=<value> Organization ID or alias to use. If not specified, uses the default organization.
756
777
  --isDefault Indicates this is the organization's default environment. The default value is false.
757
778
  --new-name=<value> New name of the environment.
758
779
 
@@ -770,12 +791,14 @@ DESCRIPTION
770
791
 
771
792
 
772
793
  EXAMPLES
773
- $ sc platform env update --name=MyEnvName --new-name=MyNewEnvName --description="My description to update" --isDefault
794
+ $ sc platform env update --name=MyEnvName --new-name=MyNewEnvName
774
795
 
775
796
  $ sc platform env update --env-id=MyEnvId --new-name=MyNewEnvName --description="My description to update" --isDefault
797
+
798
+ $ sc platform env update --org=my-org --name=MyEnvName --isDefault
776
799
  ```
777
800
 
778
- _See code: [src/commands/platform/env/update.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.1/src/commands/platform/env/update.ts)_
801
+ _See code: [src/commands/platform/env/update.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.3.0/src/commands/platform/env/update.ts)_
779
802
 
780
803
  ## `sc plugins`
781
804
 
@@ -0,0 +1,10 @@
1
+ import { OrgConfig, ScCommand } from '@dishantlangayan/sc-cli-core';
2
+ export default class AccountList extends ScCommand<typeof AccountList> {
3
+ static args: {};
4
+ static description: string;
5
+ static examples: string[];
6
+ static flags: {};
7
+ run(): Promise<{
8
+ data: OrgConfig[];
9
+ }>;
10
+ }