@dishantlangayan/solace-cloud-cli 0.2.1 → 0.4.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 +214 -145
  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 +231 -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 +2 -0
  9. package/dist/commands/missionctrl/broker/create.js +15 -2
  10. package/dist/commands/missionctrl/broker/delete.d.ts +2 -0
  11. package/dist/commands/missionctrl/broker/delete.js +15 -2
  12. package/dist/commands/missionctrl/broker/display.d.ts +2 -0
  13. package/dist/commands/missionctrl/broker/display.js +18 -3
  14. package/dist/commands/missionctrl/broker/list.d.ts +2 -0
  15. package/dist/commands/missionctrl/broker/list.js +15 -5
  16. package/dist/commands/missionctrl/broker/opstatus.d.ts +2 -0
  17. package/dist/commands/missionctrl/broker/opstatus.js +15 -2
  18. package/dist/commands/missionctrl/broker/state.d.ts +2 -0
  19. package/dist/commands/missionctrl/broker/state.js +15 -2
  20. package/dist/commands/missionctrl/broker/update.d.ts +2 -0
  21. package/dist/commands/missionctrl/broker/update.js +15 -3
  22. package/dist/commands/platform/env/create.d.ts +2 -0
  23. package/dist/commands/platform/env/create.js +16 -3
  24. package/dist/commands/platform/env/delete.d.ts +2 -0
  25. package/dist/commands/platform/env/delete.js +15 -2
  26. package/dist/commands/platform/env/display.d.ts +2 -0
  27. package/dist/commands/platform/env/display.js +15 -2
  28. package/dist/commands/platform/env/list.d.ts +2 -0
  29. package/dist/commands/platform/env/list.js +15 -3
  30. package/dist/commands/platform/env/update.d.ts +2 -0
  31. package/dist/commands/platform/env/update.js +16 -3
  32. package/dist/lib/org-utils.d.ts +24 -0
  33. package/dist/lib/org-utils.js +73 -0
  34. package/oclif.manifest.json +727 -224
  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.4.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
141
-
142
- $ sc autocomplete bash
137
+ List all authenticated organizations.
143
138
 
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.4.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
185
+
186
+ $ sc account login --org=my-org-id --alias=staging
234
187
 
235
- $ sc broker queue create --broker-name=MyBrokerName --queue-name=myQueue --access-type=exclusive
188
+ $ sc account login --org=my-org-id --set-default
236
189
 
237
- $ sc broker queue create --broker-name=MyBrokerName --queue-name=myQueue --owner=user1 --permission=consume
190
+ $ sc account login --org=my-org-id --no-prompt
238
191
 
239
- $ sc broker queue create --broker-id=MyBrokerId --queue-name=myQueue --max-spool-usage=100 --ingress-enabled --egress-enabled
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.4.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.4.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
254
+
255
+ $ sc autocomplete bash
272
256
 
273
- $ sc broker queue list --broker-name=MyBrokerName
257
+ $ sc autocomplete zsh
274
258
 
275
- $ sc broker queue list --broker-name=MyBrokerName --count=10
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
 
@@ -334,10 +318,13 @@ Create an event broker service. You must provide a unique name and select a serv
334
318
 
335
319
  ```
336
320
  USAGE
337
- $ 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>]
321
+ $ sc missionctrl broker create -d <value> -n <value> -c <value> [--json] [--log-level debug|warn|error|info|trace] [-a
322
+ <value> | -o <value>] [-e <value>] [-l] [-s <value>] [-m <value>] [-r] [-v <value>]
339
323
 
340
324
  FLAGS
325
+ -a, --alias=<value>
326
+ Organization alias to use. If not specified, uses the default organization.
327
+
341
328
  -c, --service-class-id=<value>
342
329
  (required) Supported service classes.
343
330
 
@@ -359,6 +346,9 @@ FLAGS
359
346
  -n, --name=<value>
360
347
  (required) Name of the event broker service to create.
361
348
 
349
+ -o, --org=<value>
350
+ Organization ID to use. If not specified, uses the default organization or alias if specified.
351
+
362
352
  -r, --redundancy-group-ssl-enabled
363
353
  Enable or disable SSL for the redundancy group (for mate-link encryption). The default value is false (disabled)
364
354
 
@@ -383,9 +373,13 @@ DESCRIPTION
383
373
 
384
374
  EXAMPLES
385
375
  $ sc missionctrl broker create --name=MyBrokerName --datacenter-id=eks-ca-central-1a --service-class-id=DEVELOPER
376
+
377
+ $ sc missionctrl broker create --org=my-org --name=MyBrokerName --datacenter-id=eks-ca-central-1a --service-class-id=DEVELOPER
378
+
379
+ $ sc missionctrl broker create --alias=my-alias --name=MyBrokerName --datacenter-id=eks-ca-central-1a --service-class-id=DEVELOPER
386
380
  ```
387
381
 
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)_
382
+ _See code: [src/commands/missionctrl/broker/create.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.4.0/src/commands/missionctrl/broker/create.ts)_
389
383
 
390
384
  ## `sc missionctrl broker delete`
391
385
 
@@ -393,11 +387,15 @@ Delete a service using its unique identifier.
393
387
 
394
388
  ```
395
389
  USAGE
396
- $ sc missionctrl broker delete [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>]
390
+ $ sc missionctrl broker delete [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-b <value>] [-n
391
+ <value>]
397
392
 
398
393
  FLAGS
394
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
399
395
  -b, --broker-id=<value> Id of the event broker service.
400
396
  -n, --name=<value> Name of the event broker service.
397
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
398
+ specified.
401
399
 
402
400
  GLOBAL FLAGS
403
401
  --json Format output as json.
@@ -415,9 +413,13 @@ EXAMPLES
415
413
  $ sc missionctrl broker delete --broker-id=MyBrokerId
416
414
 
417
415
  $ sc missionctrl broker delete --name=MyBrokerName
416
+
417
+ $ sc missionctrl broker delete --org=my-org --broker-id=MyBrokerId
418
+
419
+ $ sc missionctrl broker delete --alias=my-alias --name=MyBrokerName
418
420
  ```
419
421
 
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)_
422
+ _See code: [src/commands/missionctrl/broker/delete.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.4.0/src/commands/missionctrl/broker/delete.ts)_
421
423
 
422
424
  ## `sc missionctrl broker display`
423
425
 
@@ -425,11 +427,15 @@ Get the details of an event broker service using its identifier or name.
425
427
 
426
428
  ```
427
429
  USAGE
428
- $ sc missionctrl broker display [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>]
430
+ $ sc missionctrl broker display [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-b <value>] [-n
431
+ <value>]
429
432
 
430
433
  FLAGS
434
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
431
435
  -b, --broker-id=<value> Id of the event broker service.
432
436
  -n, --name=<value> Name of the event broker service.
437
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
438
+ specified.
433
439
 
434
440
  GLOBAL FLAGS
435
441
  --json Format output as json.
@@ -445,10 +451,14 @@ DESCRIPTION
445
451
  **or** `services:view:self` ]
446
452
 
447
453
  EXAMPLES
448
- $ sc missionctrl broker display
454
+ $ sc missionctrl broker display --broker-id=MyBrokerId
455
+
456
+ $ sc missionctrl broker display --org=my-org --name=MyBrokerName
457
+
458
+ $ sc missionctrl broker display --alias=my-alias --name=MyBrokerName
449
459
  ```
450
460
 
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)_
461
+ _See code: [src/commands/missionctrl/broker/display.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.4.0/src/commands/missionctrl/broker/display.ts)_
452
462
 
453
463
  ## `sc missionctrl broker list`
454
464
 
@@ -456,13 +466,19 @@ Get a listing of event broker services.
456
466
 
457
467
  ```
458
468
  USAGE
459
- $ sc missionctrl broker list [--json] [--log-level debug|warn|error|info|trace] [-n <value>] [--pageNumber <value>]
460
- [--pageSize <value>] [--sort <value>]
469
+ $ sc missionctrl broker list [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-n <value>]
470
+ [--pageNumber <value>] [--pageSize <value>] [--sort <value>]
461
471
 
462
472
  FLAGS
473
+ -a, --alias=<value>
474
+ Organization alias to use. If not specified, uses the default organization.
475
+
463
476
  -n, --name=<value>
464
477
  Name of the event broker service to match on.
465
478
 
479
+ -o, --org=<value>
480
+ Organization ID to use. If not specified, uses the default organization or alias if specified.
481
+
466
482
  --pageNumber=<value>
467
483
  The page number to get. Defaults to 1
468
484
 
@@ -485,8 +501,6 @@ GLOBAL FLAGS
485
501
  DESCRIPTION
486
502
  Get a listing of event broker services.
487
503
 
488
- The maximum number of objects that can be returned in a single page is 100. Default is 10.
489
-
490
504
  Your token must have one of the permissions listed in the Token Permissions.
491
505
 
492
506
  Token Permissions: [ `mission_control:access` **or** `services:get` **or** `services:get:self` **or** `services:view`
@@ -495,10 +509,12 @@ DESCRIPTION
495
509
  EXAMPLES
496
510
  $ sc missionctrl broker list
497
511
 
498
- $ sc missionctrl broker list --name=MyBrokerName --pageNumber=1 --pageSize=10 --sort=name:asc
512
+ $ sc missionctrl broker list --org=my-org
513
+
514
+ $ sc missionctrl broker list --alias=my-alias --name=MyBrokerName --pageNumber=1 --pageSize=10 --sort=name:asc
499
515
  ```
500
516
 
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)_
517
+ _See code: [src/commands/missionctrl/broker/list.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.4.0/src/commands/missionctrl/broker/list.ts)_
502
518
 
503
519
  ## `sc missionctrl broker opstatus`
504
520
 
@@ -506,12 +522,15 @@ Get the status of all operations being performed on an event broker service.
506
522
 
507
523
  ```
508
524
  USAGE
509
- $ sc missionctrl broker opstatus [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>] [-p] [-w
510
- <value>]
525
+ $ sc missionctrl broker opstatus [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-b <value>] [-n
526
+ <value>] [-p] [-w <value>]
511
527
 
512
528
  FLAGS
529
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
513
530
  -b, --broker-id=<value> Id of the event broker service.
514
531
  -n, --name=<value> Name of the event broker service.
532
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
533
+ specified.
515
534
  -p, --show-progress Displays a status bar of the in-progress operations. The command will wait for completion of
516
535
  each step of the operation.
517
536
  -w, --wait-ms=<value> The milliseconds to wait between API calls for checking progress of the operation. Default is
@@ -533,9 +552,13 @@ EXAMPLES
533
552
  $ sc missionctrl broker opstatus -b <broker-id>
534
553
 
535
554
  $ sc missionctrl broker opstatus -n <broker-name>
555
+
556
+ $ sc missionctrl broker opstatus --org=my-org -b <broker-id>
557
+
558
+ $ sc missionctrl broker opstatus --alias=my-alias -b <broker-id>
536
559
  ```
537
560
 
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)_
561
+ _See code: [src/commands/missionctrl/broker/opstatus.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.4.0/src/commands/missionctrl/broker/opstatus.ts)_
539
562
 
540
563
  ## `sc missionctrl broker state`
541
564
 
@@ -543,11 +566,15 @@ Get the availability state of an event broker service and the name of the active
543
566
 
544
567
  ```
545
568
  USAGE
546
- $ sc missionctrl broker state [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>]
569
+ $ sc missionctrl broker state [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-b <value>] [-n
570
+ <value>]
547
571
 
548
572
  FLAGS
573
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
549
574
  -b, --broker-id=<value> Id of the event broker service.
550
575
  -n, --name=<value> Name of the event broker service.
576
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
577
+ specified.
551
578
 
552
579
  GLOBAL FLAGS
553
580
  --json Format output as json.
@@ -567,9 +594,13 @@ EXAMPLES
567
594
  $ sc missionctrl broker state --broker-id=MyBrokerServiceId
568
595
 
569
596
  $ sc missionctrl broker state --name=MyBrokerName
597
+
598
+ $ sc missionctrl broker state --org=my-org --broker-id=MyBrokerServiceId
599
+
600
+ $ sc missionctrl broker state --alias=my-alias --name=MyBrokerName
570
601
  ```
571
602
 
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)_
603
+ _See code: [src/commands/missionctrl/broker/state.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.4.0/src/commands/missionctrl/broker/state.ts)_
573
604
 
574
605
  ## `sc missionctrl broker update`
575
606
 
@@ -577,14 +608,17 @@ Update the configuration of an existing event broker service.
577
608
 
578
609
  ```
579
610
  USAGE
580
- $ sc missionctrl broker update [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-l <value>] [-n <value>]
581
- [--new-name <value>]
611
+ $ sc missionctrl broker update [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-b <value>] [-l
612
+ <value>] [-n <value>] [--new-name <value>]
582
613
 
583
614
  FLAGS
615
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
584
616
  -b, --broker-id=<value> Id of the event broker service.
585
617
  -l, --locked=<value> Indicates whether the event broker service has deletion protection enabled. The valid values
586
618
  are 'true' (enabled) or 'false' (disabled).
587
619
  -n, --name=<value> Name of the event broker service.
620
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
621
+ specified.
588
622
  --new-name=<value> New name of the event broker service. The new service name must be unique within an
589
623
  organization.
590
624
 
@@ -606,10 +640,12 @@ EXAMPLES
606
640
 
607
641
  $ sc missionctrl broker update --broker-id <broker-id> --new-name <new-name>
608
642
 
609
- $ sc missionctrl broker update --name <name> --new-name <new-name>
643
+ $ sc missionctrl broker update --org=my-org --name <name> --new-name <new-name>
644
+
645
+ $ sc missionctrl broker update --alias=my-alias --name <name> --new-name <new-name>
610
646
  ```
611
647
 
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)_
648
+ _See code: [src/commands/missionctrl/broker/update.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.4.0/src/commands/missionctrl/broker/update.ts)_
613
649
 
614
650
  ## `sc platform env create`
615
651
 
@@ -617,12 +653,15 @@ Create a new environment.
617
653
 
618
654
  ```
619
655
  USAGE
620
- $ sc platform env create -n <value> [--json] [--log-level debug|warn|error|info|trace] [-d <value>] [--isDefault]
621
- [--isProduction]
656
+ $ sc platform env create -n <value> [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-d
657
+ <value>] [--isDefault] [--isProduction]
622
658
 
623
659
  FLAGS
660
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
624
661
  -d, --description=<value> Description of the environment to create.
625
662
  -n, --name=<value> (required) Name of the environment to create.
663
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
664
+ specified.
626
665
  --isDefault Indicates this is the organization's default environment.
627
666
  --isProduction Indicates this is an organization's production environment.
628
667
  This is an immutable field. If an environment needs to be migrated,
@@ -640,10 +679,14 @@ DESCRIPTION
640
679
  Token Permissions: [ environments:edit ]
641
680
 
642
681
  EXAMPLES
643
- $ sc platform env create --name=MyEnvironment --description="My environment description" --isDefault --isProduction
682
+ $ sc platform env create --name=MyEnvironment
683
+
684
+ $ sc platform env create --org=my-org --name=MyEnvironment --description="My environment description" --isDefault --isProduction
685
+
686
+ $ sc platform env create --alias=my-alias --name=MyEnvironment --isDefault
644
687
  ```
645
688
 
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)_
689
+ _See code: [src/commands/platform/env/create.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.4.0/src/commands/platform/env/create.ts)_
647
690
 
648
691
  ## `sc platform env delete`
649
692
 
@@ -651,11 +694,14 @@ Delete an environment using either its name or unique identifier. The default en
651
694
 
652
695
  ```
653
696
  USAGE
654
- $ sc platform env delete [--json] [--log-level debug|warn|error|info|trace] [-e <value>] [-n <value>]
697
+ $ sc platform env delete [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-e <value>] [-n
698
+ <value>]
655
699
 
656
700
  FLAGS
701
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
657
702
  -e, --env-id=<value> Id of the environment.
658
703
  -n, --name=<value> Name of the environment.
704
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if specified.
659
705
 
660
706
  GLOBAL FLAGS
661
707
  --json Format output as json.
@@ -671,9 +717,13 @@ EXAMPLES
671
717
  $ sc platform env delete --name=MyEnvName
672
718
 
673
719
  $ sc platform env delete --env-id=MyEnvId
720
+
721
+ $ sc platform env delete --org=my-org --name=MyEnvName
722
+
723
+ $ sc platform env delete --alias=my-alias --name=MyEnvName
674
724
  ```
675
725
 
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)_
726
+ _See code: [src/commands/platform/env/delete.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.4.0/src/commands/platform/env/delete.ts)_
677
727
 
678
728
  ## `sc platform env display`
679
729
 
@@ -681,11 +731,14 @@ Display information about an Environment.
681
731
 
682
732
  ```
683
733
  USAGE
684
- $ sc platform env display [--json] [--log-level debug|warn|error|info|trace] [-e <value>] [-n <value>]
734
+ $ sc platform env display [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-e <value>] [-n
735
+ <value>]
685
736
 
686
737
  FLAGS
738
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
687
739
  -e, --env-id=<value> Id of the environment.
688
740
  -n, --name=<value> Name of the environment.
741
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if specified.
689
742
 
690
743
  GLOBAL FLAGS
691
744
  --json Format output as json.
@@ -703,9 +756,13 @@ EXAMPLES
703
756
  $ sc platform env display --name=MyEnvName
704
757
 
705
758
  $ sc platform env display --env-id=MyEnvId
759
+
760
+ $ sc platform env display --org=my-org --env-id=MyEnvId
761
+
762
+ $ sc platform env display --alias=my-alias --name=MyEnvName
706
763
  ```
707
764
 
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)_
765
+ _See code: [src/commands/platform/env/display.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.4.0/src/commands/platform/env/display.ts)_
709
766
 
710
767
  ## `sc platform env list`
711
768
 
@@ -713,11 +770,14 @@ Get a list of all Environments.
713
770
 
714
771
  ```
715
772
  USAGE
716
- $ sc platform env list [--json] [--log-level debug|warn|error|info|trace] [-n <value>] [-p <value>] [-s <value>]
717
- [--sort <value>]
773
+ $ sc platform env list [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-n <value>] [-p
774
+ <value>] [-s <value>] [--sort <value>]
718
775
 
719
776
  FLAGS
777
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
720
778
  -n, --name=<value> Name of the environment to match on.
779
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
780
+ specified.
721
781
  -p, --pageNumber=<value> The page number to get. Defaults to 10
722
782
  -s, --pageSize=<value> The number of environments to get per page. Defaults to 1
723
783
  --sort=<value> The query (fieldName:<ASC/DESC>) used to sort the environment list in the response.
@@ -735,10 +795,12 @@ DESCRIPTION
735
795
  EXAMPLES
736
796
  $ sc platform env list
737
797
 
738
- $ sc platform env list --name=Default --pageNumber=1 --pageSize=10 --sort=name:ASC
798
+ $ sc platform env list --org=my-org
799
+
800
+ $ sc platform env list --alias=my-alias --name=Default --pageNumber=1 --pageSize=10 --sort=name:ASC
739
801
  ```
740
802
 
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)_
803
+ _See code: [src/commands/platform/env/list.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.4.0/src/commands/platform/env/list.ts)_
742
804
 
743
805
  ## `sc platform env update`
744
806
 
@@ -746,13 +808,16 @@ Modify an environment's attributes
746
808
 
747
809
  ```
748
810
  USAGE
749
- $ sc platform env update [--json] [--log-level debug|warn|error|info|trace] [-d <value>] [-e <value>] [--isDefault] [-n
750
- <value>] [--new-name <value>]
811
+ $ sc platform env update [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-d <value>] [-e
812
+ <value>] [--isDefault] [-n <value>] [--new-name <value>]
751
813
 
752
814
  FLAGS
815
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
753
816
  -d, --description=<value> Description of the environment to update.
754
817
  -e, --env-id=<value> Id of the environment.
755
818
  -n, --name=<value> Current name of the environment.
819
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
820
+ specified.
756
821
  --isDefault Indicates this is the organization's default environment. The default value is false.
757
822
  --new-name=<value> New name of the environment.
758
823
 
@@ -770,12 +835,16 @@ DESCRIPTION
770
835
 
771
836
 
772
837
  EXAMPLES
773
- $ sc platform env update --name=MyEnvName --new-name=MyNewEnvName --description="My description to update" --isDefault
838
+ $ sc platform env update --name=MyEnvName --new-name=MyNewEnvName
774
839
 
775
840
  $ sc platform env update --env-id=MyEnvId --new-name=MyNewEnvName --description="My description to update" --isDefault
841
+
842
+ $ sc platform env update --org=my-org --name=MyEnvName --isDefault
843
+
844
+ $ sc platform env update --alias=my-alias --name=MyEnvName --new-name=MyNewEnvName
776
845
  ```
777
846
 
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)_
847
+ _See code: [src/commands/platform/env/update.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.4.0/src/commands/platform/env/update.ts)_
779
848
 
780
849
  ## `sc plugins`
781
850