@dishantlangayan/solace-cloud-cli 0.2.0 → 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 +362 -32
  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 -2
  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 +337 -12
  35. package/package.json +21 -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.0 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,6 +87,11 @@ 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)
93
+ * [`sc autocomplete [SHELL]`](#sc-autocomplete-shell)
94
+ * [`sc commands`](#sc-commands)
90
95
  * [`sc help [COMMAND]`](#sc-help-command)
91
96
  * [`sc missionctrl broker create`](#sc-missionctrl-broker-create)
92
97
  * [`sc missionctrl broker delete`](#sc-missionctrl-broker-delete)
@@ -110,6 +115,182 @@ See the [LICENSE](LICENSE) file for details.
110
115
  * [`sc plugins uninstall [PLUGIN]`](#sc-plugins-uninstall-plugin)
111
116
  * [`sc plugins unlink [PLUGIN]`](#sc-plugins-unlink-plugin)
112
117
  * [`sc plugins update`](#sc-plugins-update)
118
+ * [`sc search`](#sc-search)
119
+ * [`sc update [CHANNEL]`](#sc-update-channel)
120
+ * [`sc version`](#sc-version)
121
+ * [`sc which`](#sc-which)
122
+
123
+ ## `sc account list`
124
+
125
+ List all authenticated organizations.
126
+
127
+ ```
128
+ USAGE
129
+ $ sc account list [--json] [--log-level debug|warn|error|info|trace]
130
+
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
+
136
+ DESCRIPTION
137
+ List all authenticated organizations.
138
+
139
+ Displays organizations you have logged into, including their aliases and which one is set as default.
140
+
141
+ EXAMPLES
142
+ $ sc account list
143
+ ```
144
+
145
+ _See code: [src/commands/account/list.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.3.0/src/commands/account/list.ts)_
146
+
147
+ ## `sc account login`
148
+
149
+ Login to a Solace Cloud organization.
150
+
151
+ ```
152
+ USAGE
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]
155
+
156
+ FLAGS
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
164
+
165
+ GLOBAL FLAGS
166
+ --json Format output as json.
167
+ --log-level=<option> [default: info] Specify level for logging.
168
+ <options: debug|warn|error|info|trace>
169
+
170
+ DESCRIPTION
171
+ Login to a Solace Cloud organization.
172
+
173
+ Stores organization credentials securely using OS keychain.
174
+ The access token is encrypted and stored locally.
175
+
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
180
+
181
+ EXAMPLES
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
187
+
188
+ $ sc account login --org=my-org-id --set-default
189
+
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
193
+ ```
194
+
195
+ _See code: [src/commands/account/login.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.3.0/src/commands/account/login.ts)_
196
+
197
+ ## `sc account logout`
198
+
199
+ Logout from authenticated organizations.
200
+
201
+ ```
202
+ USAGE
203
+ $ sc account logout [--json] [--log-level debug|warn|error|info|trace] [-a] [--no-prompt] [-o <value>]
204
+
205
+ FLAGS
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
209
+
210
+ GLOBAL FLAGS
211
+ --json Format output as json.
212
+ --log-level=<option> [default: info] Specify level for logging.
213
+ <options: debug|warn|error|info|trace>
214
+
215
+ DESCRIPTION
216
+ Logout from authenticated organizations.
217
+
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.
251
+
252
+ EXAMPLES
253
+ $ sc autocomplete
254
+
255
+ $ sc autocomplete bash
256
+
257
+ $ sc autocomplete zsh
258
+
259
+ $ sc autocomplete powershell
260
+
261
+ $ sc autocomplete --refresh-cache
262
+ ```
263
+
264
+ _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.40/src/commands/autocomplete/index.ts)_
265
+
266
+ ## `sc commands`
267
+
268
+ List all sc commands.
269
+
270
+ ```
271
+ USAGE
272
+ $ sc commands [--json] [-c id|plugin|summary|type... | --tree] [--deprecated] [-x | ] [--hidden]
273
+ [--no-truncate | ] [--sort id|plugin|summary|type | ]
274
+
275
+ FLAGS
276
+ -c, --columns=<option>... Only show provided columns (comma-separated).
277
+ <options: id|plugin|summary|type>
278
+ -x, --extended Show extra columns.
279
+ --deprecated Show deprecated commands.
280
+ --hidden Show hidden commands.
281
+ --no-truncate Do not truncate output.
282
+ --sort=<option> [default: id] Property to sort by.
283
+ <options: id|plugin|summary|type>
284
+ --tree Show tree of commands.
285
+
286
+ GLOBAL FLAGS
287
+ --json Format output as json.
288
+
289
+ DESCRIPTION
290
+ List all sc commands.
291
+ ```
292
+
293
+ _See code: [@oclif/plugin-commands](https://github.com/oclif/plugin-commands/blob/v4.1.40/src/commands/commands.ts)_
113
294
 
114
295
  ## `sc help [COMMAND]`
115
296
 
@@ -138,7 +319,7 @@ Create an event broker service. You must provide a unique name and select a serv
138
319
  ```
139
320
  USAGE
140
321
  $ sc missionctrl broker create -d <value> -n <value> -c <value> [--json] [--log-level debug|warn|error|info|trace] [-e
141
- <value>] [-l] [-s <value>] [-m <value>] [-r] [-v <value>]
322
+ <value>] [-l] [-s <value>] [-m <value>] [-o <value>] [-r] [-v <value>]
142
323
 
143
324
  FLAGS
144
325
  -c, --service-class-id=<value>
@@ -162,6 +343,9 @@ FLAGS
162
343
  -n, --name=<value>
163
344
  (required) Name of the event broker service to create.
164
345
 
346
+ -o, --org=<value>
347
+ Organization ID or alias to use. If not specified, uses the default organization.
348
+
165
349
  -r, --redundancy-group-ssl-enabled
166
350
  Enable or disable SSL for the redundancy group (for mate-link encryption). The default value is false (disabled)
167
351
 
@@ -186,9 +370,11 @@ DESCRIPTION
186
370
 
187
371
  EXAMPLES
188
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
189
375
  ```
190
376
 
191
- _See code: [src/commands/missionctrl/broker/create.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.0/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)_
192
378
 
193
379
  ## `sc missionctrl broker delete`
194
380
 
@@ -196,11 +382,13 @@ Delete a service using its unique identifier.
196
382
 
197
383
  ```
198
384
  USAGE
199
- $ 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>]
200
387
 
201
388
  FLAGS
202
389
  -b, --broker-id=<value> Id of the event broker service.
203
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.
204
392
 
205
393
  GLOBAL FLAGS
206
394
  --json Format output as json.
@@ -218,9 +406,11 @@ EXAMPLES
218
406
  $ sc missionctrl broker delete --broker-id=MyBrokerId
219
407
 
220
408
  $ sc missionctrl broker delete --name=MyBrokerName
409
+
410
+ $ sc missionctrl broker delete --org=my-org --broker-id=MyBrokerId
221
411
  ```
222
412
 
223
- _See code: [src/commands/missionctrl/broker/delete.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.0/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)_
224
414
 
225
415
  ## `sc missionctrl broker display`
226
416
 
@@ -228,11 +418,13 @@ Get the details of an event broker service using its identifier or name.
228
418
 
229
419
  ```
230
420
  USAGE
231
- $ 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>]
232
423
 
233
424
  FLAGS
234
425
  -b, --broker-id=<value> Id of the event broker service.
235
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.
236
428
 
237
429
  GLOBAL FLAGS
238
430
  --json Format output as json.
@@ -248,10 +440,12 @@ DESCRIPTION
248
440
  **or** `services:view:self` ]
249
441
 
250
442
  EXAMPLES
251
- $ sc missionctrl broker display
443
+ $ sc missionctrl broker display --broker-id=MyBrokerId
444
+
445
+ $ sc missionctrl broker display --org=my-org --name=MyBrokerName
252
446
  ```
253
447
 
254
- _See code: [src/commands/missionctrl/broker/display.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.0/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)_
255
449
 
256
450
  ## `sc missionctrl broker list`
257
451
 
@@ -259,13 +453,16 @@ Get a listing of event broker services.
259
453
 
260
454
  ```
261
455
  USAGE
262
- $ sc missionctrl broker list [--json] [--log-level debug|warn|error|info|trace] [-n <value>] [--pageNumber <value>]
263
- [--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>]
264
458
 
265
459
  FLAGS
266
460
  -n, --name=<value>
267
461
  Name of the event broker service to match on.
268
462
 
463
+ -o, --org=<value>
464
+ Organization ID or alias to use. If not specified, uses the default organization.
465
+
269
466
  --pageNumber=<value>
270
467
  The page number to get. Defaults to 1
271
468
 
@@ -296,10 +493,12 @@ DESCRIPTION
296
493
  EXAMPLES
297
494
  $ sc missionctrl broker list
298
495
 
496
+ $ sc missionctrl broker list --org=my-org
497
+
299
498
  $ sc missionctrl broker list --name=MyBrokerName --pageNumber=1 --pageSize=10 --sort=name:asc
300
499
  ```
301
500
 
302
- _See code: [src/commands/missionctrl/broker/list.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.0/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)_
303
502
 
304
503
  ## `sc missionctrl broker opstatus`
305
504
 
@@ -307,12 +506,13 @@ Get the status of all operations being performed on an event broker service.
307
506
 
308
507
  ```
309
508
  USAGE
310
- $ sc missionctrl broker opstatus [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>] [-p] [-w
311
- <value>]
509
+ $ sc missionctrl broker opstatus [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>] [-o <value>] [-p]
510
+ [-w <value>]
312
511
 
313
512
  FLAGS
314
513
  -b, --broker-id=<value> Id of the event broker service.
315
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.
316
516
  -p, --show-progress Displays a status bar of the in-progress operations. The command will wait for completion of
317
517
  each step of the operation.
318
518
  -w, --wait-ms=<value> The milliseconds to wait between API calls for checking progress of the operation. Default is
@@ -334,9 +534,11 @@ EXAMPLES
334
534
  $ sc missionctrl broker opstatus -b <broker-id>
335
535
 
336
536
  $ sc missionctrl broker opstatus -n <broker-name>
537
+
538
+ $ sc missionctrl broker opstatus --org=my-org -b <broker-id>
337
539
  ```
338
540
 
339
- _See code: [src/commands/missionctrl/broker/opstatus.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.0/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)_
340
542
 
341
543
  ## `sc missionctrl broker state`
342
544
 
@@ -344,11 +546,13 @@ Get the availability state of an event broker service and the name of the active
344
546
 
345
547
  ```
346
548
  USAGE
347
- $ 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>]
348
551
 
349
552
  FLAGS
350
553
  -b, --broker-id=<value> Id of the event broker service.
351
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.
352
556
 
353
557
  GLOBAL FLAGS
354
558
  --json Format output as json.
@@ -368,9 +572,11 @@ EXAMPLES
368
572
  $ sc missionctrl broker state --broker-id=MyBrokerServiceId
369
573
 
370
574
  $ sc missionctrl broker state --name=MyBrokerName
575
+
576
+ $ sc missionctrl broker state --org=my-org --broker-id=MyBrokerServiceId
371
577
  ```
372
578
 
373
- _See code: [src/commands/missionctrl/broker/state.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.0/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)_
374
580
 
375
581
  ## `sc missionctrl broker update`
376
582
 
@@ -379,13 +585,14 @@ Update the configuration of an existing event broker service.
379
585
  ```
380
586
  USAGE
381
587
  $ sc missionctrl broker update [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-l <value>] [-n <value>]
382
- [--new-name <value>]
588
+ [--new-name <value>] [-o <value>]
383
589
 
384
590
  FLAGS
385
591
  -b, --broker-id=<value> Id of the event broker service.
386
592
  -l, --locked=<value> Indicates whether the event broker service has deletion protection enabled. The valid values
387
593
  are 'true' (enabled) or 'false' (disabled).
388
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.
389
596
  --new-name=<value> New name of the event broker service. The new service name must be unique within an
390
597
  organization.
391
598
 
@@ -407,10 +614,10 @@ EXAMPLES
407
614
 
408
615
  $ sc missionctrl broker update --broker-id <broker-id> --new-name <new-name>
409
616
 
410
- $ sc missionctrl broker update --name <name> --new-name <new-name>
617
+ $ sc missionctrl broker update --org=my-org --name <name> --new-name <new-name>
411
618
  ```
412
619
 
413
- _See code: [src/commands/missionctrl/broker/update.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.0/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)_
414
621
 
415
622
  ## `sc platform env create`
416
623
 
@@ -419,11 +626,12 @@ Create a new environment.
419
626
  ```
420
627
  USAGE
421
628
  $ sc platform env create -n <value> [--json] [--log-level debug|warn|error|info|trace] [-d <value>] [--isDefault]
422
- [--isProduction]
629
+ [--isProduction] [-o <value>]
423
630
 
424
631
  FLAGS
425
632
  -d, --description=<value> Description of the environment to create.
426
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.
427
635
  --isDefault Indicates this is the organization's default environment.
428
636
  --isProduction Indicates this is an organization's production environment.
429
637
  This is an immutable field. If an environment needs to be migrated,
@@ -441,10 +649,12 @@ DESCRIPTION
441
649
  Token Permissions: [ environments:edit ]
442
650
 
443
651
  EXAMPLES
444
- $ 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
445
655
  ```
446
656
 
447
- _See code: [src/commands/platform/env/create.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.0/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)_
448
658
 
449
659
  ## `sc platform env delete`
450
660
 
@@ -452,11 +662,12 @@ Delete an environment using either its name or unique identifier. The default en
452
662
 
453
663
  ```
454
664
  USAGE
455
- $ 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>]
456
666
 
457
667
  FLAGS
458
668
  -e, --env-id=<value> Id of the environment.
459
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.
460
671
 
461
672
  GLOBAL FLAGS
462
673
  --json Format output as json.
@@ -472,9 +683,11 @@ EXAMPLES
472
683
  $ sc platform env delete --name=MyEnvName
473
684
 
474
685
  $ sc platform env delete --env-id=MyEnvId
686
+
687
+ $ sc platform env delete --org=my-org --name=MyEnvName
475
688
  ```
476
689
 
477
- _See code: [src/commands/platform/env/delete.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.0/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)_
478
691
 
479
692
  ## `sc platform env display`
480
693
 
@@ -482,11 +695,12 @@ Display information about an Environment.
482
695
 
483
696
  ```
484
697
  USAGE
485
- $ 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>]
486
699
 
487
700
  FLAGS
488
701
  -e, --env-id=<value> Id of the environment.
489
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.
490
704
 
491
705
  GLOBAL FLAGS
492
706
  --json Format output as json.
@@ -504,9 +718,11 @@ EXAMPLES
504
718
  $ sc platform env display --name=MyEnvName
505
719
 
506
720
  $ sc platform env display --env-id=MyEnvId
721
+
722
+ $ sc platform env display --org=my-org --env-id=MyEnvId
507
723
  ```
508
724
 
509
- _See code: [src/commands/platform/env/display.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.0/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)_
510
726
 
511
727
  ## `sc platform env list`
512
728
 
@@ -514,11 +730,12 @@ Get a list of all Environments.
514
730
 
515
731
  ```
516
732
  USAGE
517
- $ sc platform env list [--json] [--log-level debug|warn|error|info|trace] [-n <value>] [-p <value>] [-s <value>]
518
- [--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>]
519
735
 
520
736
  FLAGS
521
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.
522
739
  -p, --pageNumber=<value> The page number to get. Defaults to 10
523
740
  -s, --pageSize=<value> The number of environments to get per page. Defaults to 1
524
741
  --sort=<value> The query (fieldName:<ASC/DESC>) used to sort the environment list in the response.
@@ -536,10 +753,12 @@ DESCRIPTION
536
753
  EXAMPLES
537
754
  $ sc platform env list
538
755
 
756
+ $ sc platform env list --org=my-org
757
+
539
758
  $ sc platform env list --name=Default --pageNumber=1 --pageSize=10 --sort=name:ASC
540
759
  ```
541
760
 
542
- _See code: [src/commands/platform/env/list.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.0/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)_
543
762
 
544
763
  ## `sc platform env update`
545
764
 
@@ -548,12 +767,13 @@ Modify an environment's attributes
548
767
  ```
549
768
  USAGE
550
769
  $ sc platform env update [--json] [--log-level debug|warn|error|info|trace] [-d <value>] [-e <value>] [--isDefault] [-n
551
- <value>] [--new-name <value>]
770
+ <value>] [--new-name <value>] [-o <value>]
552
771
 
553
772
  FLAGS
554
773
  -d, --description=<value> Description of the environment to update.
555
774
  -e, --env-id=<value> Id of the environment.
556
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.
557
777
  --isDefault Indicates this is the organization's default environment. The default value is false.
558
778
  --new-name=<value> New name of the environment.
559
779
 
@@ -571,12 +791,14 @@ DESCRIPTION
571
791
 
572
792
 
573
793
  EXAMPLES
574
- $ 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
575
795
 
576
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
577
799
  ```
578
800
 
579
- _See code: [src/commands/platform/env/update.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.2.0/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)_
580
802
 
581
803
  ## `sc plugins`
582
804
 
@@ -867,4 +1089,112 @@ DESCRIPTION
867
1089
  ```
868
1090
 
869
1091
  _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.43/src/commands/plugins/update.ts)_
1092
+
1093
+ ## `sc search`
1094
+
1095
+ Search for a command.
1096
+
1097
+ ```
1098
+ USAGE
1099
+ $ sc search
1100
+
1101
+ DESCRIPTION
1102
+ Search for a command.
1103
+
1104
+ Once you select a command, hit enter and it will show the help for that command.
1105
+ ```
1106
+
1107
+ _See code: [@oclif/plugin-search](https://github.com/oclif/plugin-search/blob/v1.2.38/src/commands/search.ts)_
1108
+
1109
+ ## `sc update [CHANNEL]`
1110
+
1111
+ update the sc CLI
1112
+
1113
+ ```
1114
+ USAGE
1115
+ $ sc update [CHANNEL] [--force | | [-a | -v <value> | -i]] [-b ]
1116
+
1117
+ FLAGS
1118
+ -a, --available See available versions.
1119
+ -b, --verbose Show more details about the available versions.
1120
+ -i, --interactive Interactively select version to install. This is ignored if a channel is provided.
1121
+ -v, --version=<value> Install a specific version.
1122
+ --force Force a re-download of the requested version.
1123
+
1124
+ DESCRIPTION
1125
+ update the sc CLI
1126
+
1127
+ EXAMPLES
1128
+ Update to the stable channel:
1129
+
1130
+ $ sc update stable
1131
+
1132
+ Update to a specific version:
1133
+
1134
+ $ sc update --version 1.0.0
1135
+
1136
+ Interactively select version:
1137
+
1138
+ $ sc update --interactive
1139
+
1140
+ See available versions:
1141
+
1142
+ $ sc update --available
1143
+ ```
1144
+
1145
+ _See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v4.7.19/src/commands/update.ts)_
1146
+
1147
+ ## `sc version`
1148
+
1149
+ ```
1150
+ USAGE
1151
+ $ sc version [--json] [--verbose]
1152
+
1153
+ FLAGS
1154
+ --verbose Show additional information about the CLI.
1155
+
1156
+ GLOBAL FLAGS
1157
+ --json Format output as json.
1158
+
1159
+ FLAG DESCRIPTIONS
1160
+ --verbose Show additional information about the CLI.
1161
+
1162
+ Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.
1163
+ ```
1164
+
1165
+ _See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v2.2.36/src/commands/version.ts)_
1166
+
1167
+ ## `sc which`
1168
+
1169
+ Show which plugin a command is in.
1170
+
1171
+ ```
1172
+ USAGE
1173
+ $ sc which [--json]
1174
+
1175
+ GLOBAL FLAGS
1176
+ --json Format output as json.
1177
+
1178
+ DESCRIPTION
1179
+ Show which plugin a command is in.
1180
+
1181
+ EXAMPLES
1182
+ See which plugin the `help` command is in:
1183
+
1184
+ $ sc which help
1185
+
1186
+ Use colon separators.
1187
+
1188
+ $ sc which foo:bar:baz
1189
+
1190
+ Use spaces as separators.
1191
+
1192
+ $ sc which foo bar baz
1193
+
1194
+ Wrap command in quotes to use spaces as separators.
1195
+
1196
+ $ sc which "foo bar baz"
1197
+ ```
1198
+
1199
+ _See code: [@oclif/plugin-which](https://github.com/oclif/plugin-which/blob/v3.2.43/src/commands/which.ts)_
870
1200
  <!-- commandsstop -->
@@ -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
+ }