@dishantlangayan/solace-cloud-cli 0.3.0 → 0.5.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 (29) hide show
  1. package/README.md +104 -52
  2. package/dist/commands/account/login.js +1 -2
  3. package/dist/commands/missionctrl/broker/create.d.ts +1 -0
  4. package/dist/commands/missionctrl/broker/create.js +9 -2
  5. package/dist/commands/missionctrl/broker/delete.d.ts +2 -0
  6. package/dist/commands/missionctrl/broker/delete.js +34 -2
  7. package/dist/commands/missionctrl/broker/display.d.ts +1 -0
  8. package/dist/commands/missionctrl/broker/display.js +9 -2
  9. package/dist/commands/missionctrl/broker/list.d.ts +1 -0
  10. package/dist/commands/missionctrl/broker/list.js +9 -3
  11. package/dist/commands/missionctrl/broker/opstatus.d.ts +1 -0
  12. package/dist/commands/missionctrl/broker/opstatus.js +9 -2
  13. package/dist/commands/missionctrl/broker/state.d.ts +1 -0
  14. package/dist/commands/missionctrl/broker/state.js +9 -2
  15. package/dist/commands/missionctrl/broker/update.d.ts +1 -0
  16. package/dist/commands/missionctrl/broker/update.js +9 -2
  17. package/dist/commands/platform/env/create.d.ts +1 -0
  18. package/dist/commands/platform/env/create.js +9 -2
  19. package/dist/commands/platform/env/delete.d.ts +2 -0
  20. package/dist/commands/platform/env/delete.js +34 -2
  21. package/dist/commands/platform/env/display.d.ts +1 -0
  22. package/dist/commands/platform/env/display.js +9 -2
  23. package/dist/commands/platform/env/list.d.ts +1 -0
  24. package/dist/commands/platform/env/list.js +9 -3
  25. package/dist/commands/platform/env/update.d.ts +1 -0
  26. package/dist/commands/platform/env/update.js +9 -2
  27. package/dist/lib/org-utils.js +2 -6
  28. package/oclif.manifest.json +217 -25
  29. package/package.json +5 -5
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.3.0 darwin-arm64 node-v24.1.0
43
+ @dishantlangayan/solace-cloud-cli/0.5.0 linux-x64 node-v22.22.1
44
44
  $ sc --help [COMMAND]
45
45
  USAGE
46
46
  $ sc COMMAND
@@ -142,7 +142,7 @@ EXAMPLES
142
142
  $ sc account list
143
143
  ```
144
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)_
145
+ _See code: [src/commands/account/list.ts](https://github.com/SolaceLabs/solace-cloud-cli/blob/v0.5.0/src/commands/account/list.ts)_
146
146
 
147
147
  ## `sc account login`
148
148
 
@@ -192,7 +192,7 @@ EXAMPLES
192
192
  $ sc account login --org=my-org-id --base-url=https://api.custom.solace.cloud
193
193
  ```
194
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)_
195
+ _See code: [src/commands/account/login.ts](https://github.com/SolaceLabs/solace-cloud-cli/blob/v0.5.0/src/commands/account/login.ts)_
196
196
 
197
197
  ## `sc account logout`
198
198
 
@@ -230,7 +230,7 @@ EXAMPLES
230
230
  $ sc account logout --org=my-org-id --no-prompt
231
231
  ```
232
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)_
233
+ _See code: [src/commands/account/logout.ts](https://github.com/SolaceLabs/solace-cloud-cli/blob/v0.5.0/src/commands/account/logout.ts)_
234
234
 
235
235
  ## `sc autocomplete [SHELL]`
236
236
 
@@ -318,10 +318,13 @@ Create an event broker service. You must provide a unique name and select a serv
318
318
 
319
319
  ```
320
320
  USAGE
321
- $ sc missionctrl broker create -d <value> -n <value> -c <value> [--json] [--log-level debug|warn|error|info|trace] [-e
322
- <value>] [-l] [-s <value>] [-m <value>] [-o <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>]
323
323
 
324
324
  FLAGS
325
+ -a, --alias=<value>
326
+ Organization alias to use. If not specified, uses the default organization.
327
+
325
328
  -c, --service-class-id=<value>
326
329
  (required) Supported service classes.
327
330
 
@@ -344,7 +347,7 @@ FLAGS
344
347
  (required) Name of the event broker service to create.
345
348
 
346
349
  -o, --org=<value>
347
- Organization ID or alias to use. If not specified, uses the default organization.
350
+ Organization ID to use. If not specified, uses the default organization or alias if specified.
348
351
 
349
352
  -r, --redundancy-group-ssl-enabled
350
353
  Enable or disable SSL for the redundancy group (for mate-link encryption). The default value is false (disabled)
@@ -372,9 +375,11 @@ EXAMPLES
372
375
  $ sc missionctrl broker create --name=MyBrokerName --datacenter-id=eks-ca-central-1a --service-class-id=DEVELOPER
373
376
 
374
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
375
380
  ```
376
381
 
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)_
382
+ _See code: [src/commands/missionctrl/broker/create.ts](https://github.com/SolaceLabs/solace-cloud-cli/blob/v0.5.0/src/commands/missionctrl/broker/create.ts)_
378
383
 
379
384
  ## `sc missionctrl broker delete`
380
385
 
@@ -382,13 +387,16 @@ Delete a service using its unique identifier.
382
387
 
383
388
  ```
384
389
  USAGE
385
- $ sc missionctrl broker delete [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>] [-o
386
- <value>]
390
+ $ sc missionctrl broker delete [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-b <value>] [-n
391
+ <value>] [--no-prompt]
387
392
 
388
393
  FLAGS
394
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
389
395
  -b, --broker-id=<value> Id of the event broker service.
390
396
  -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.
397
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
398
+ specified.
399
+ --no-prompt Skip confirmation prompt and assume Yes
392
400
 
393
401
  GLOBAL FLAGS
394
402
  --json Format output as json.
@@ -408,9 +416,13 @@ EXAMPLES
408
416
  $ sc missionctrl broker delete --name=MyBrokerName
409
417
 
410
418
  $ sc missionctrl broker delete --org=my-org --broker-id=MyBrokerId
419
+
420
+ $ sc missionctrl broker delete --alias=my-alias --name=MyBrokerName
421
+
422
+ $ sc missionctrl broker delete --broker-id=MyBrokerId --no-prompt
411
423
  ```
412
424
 
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)_
425
+ _See code: [src/commands/missionctrl/broker/delete.ts](https://github.com/SolaceLabs/solace-cloud-cli/blob/v0.5.0/src/commands/missionctrl/broker/delete.ts)_
414
426
 
415
427
  ## `sc missionctrl broker display`
416
428
 
@@ -418,13 +430,15 @@ Get the details of an event broker service using its identifier or name.
418
430
 
419
431
  ```
420
432
  USAGE
421
- $ sc missionctrl broker display [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>] [-o
422
- <value>]
433
+ $ sc missionctrl broker display [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-b <value>] [-n
434
+ <value>]
423
435
 
424
436
  FLAGS
437
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
425
438
  -b, --broker-id=<value> Id of the event broker service.
426
439
  -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.
440
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
441
+ specified.
428
442
 
429
443
  GLOBAL FLAGS
430
444
  --json Format output as json.
@@ -443,9 +457,11 @@ EXAMPLES
443
457
  $ sc missionctrl broker display --broker-id=MyBrokerId
444
458
 
445
459
  $ sc missionctrl broker display --org=my-org --name=MyBrokerName
460
+
461
+ $ sc missionctrl broker display --alias=my-alias --name=MyBrokerName
446
462
  ```
447
463
 
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)_
464
+ _See code: [src/commands/missionctrl/broker/display.ts](https://github.com/SolaceLabs/solace-cloud-cli/blob/v0.5.0/src/commands/missionctrl/broker/display.ts)_
449
465
 
450
466
  ## `sc missionctrl broker list`
451
467
 
@@ -453,15 +469,18 @@ Get a listing of event broker services.
453
469
 
454
470
  ```
455
471
  USAGE
456
- $ sc missionctrl broker list [--json] [--log-level debug|warn|error|info|trace] [-n <value>] [-o <value>] [--pageNumber
457
- <value>] [--pageSize <value>] [--sort <value>]
472
+ $ sc missionctrl broker list [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-n <value>]
473
+ [--pageNumber <value>] [--pageSize <value>] [--sort <value>]
458
474
 
459
475
  FLAGS
476
+ -a, --alias=<value>
477
+ Organization alias to use. If not specified, uses the default organization.
478
+
460
479
  -n, --name=<value>
461
480
  Name of the event broker service to match on.
462
481
 
463
482
  -o, --org=<value>
464
- Organization ID or alias to use. If not specified, uses the default organization.
483
+ Organization ID to use. If not specified, uses the default organization or alias if specified.
465
484
 
466
485
  --pageNumber=<value>
467
486
  The page number to get. Defaults to 1
@@ -495,10 +514,10 @@ EXAMPLES
495
514
 
496
515
  $ sc missionctrl broker list --org=my-org
497
516
 
498
- $ sc missionctrl broker list --name=MyBrokerName --pageNumber=1 --pageSize=10 --sort=name:asc
517
+ $ sc missionctrl broker list --alias=my-alias --name=MyBrokerName --pageNumber=1 --pageSize=10 --sort=name:asc
499
518
  ```
500
519
 
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)_
520
+ _See code: [src/commands/missionctrl/broker/list.ts](https://github.com/SolaceLabs/solace-cloud-cli/blob/v0.5.0/src/commands/missionctrl/broker/list.ts)_
502
521
 
503
522
  ## `sc missionctrl broker opstatus`
504
523
 
@@ -506,13 +525,15 @@ Get the status of all operations being performed on an event broker service.
506
525
 
507
526
  ```
508
527
  USAGE
509
- $ sc missionctrl broker opstatus [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>] [-o <value>] [-p]
510
- [-w <value>]
528
+ $ sc missionctrl broker opstatus [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-b <value>] [-n
529
+ <value>] [-p] [-w <value>]
511
530
 
512
531
  FLAGS
532
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
513
533
  -b, --broker-id=<value> Id of the event broker service.
514
534
  -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.
535
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
536
+ specified.
516
537
  -p, --show-progress Displays a status bar of the in-progress operations. The command will wait for completion of
517
538
  each step of the operation.
518
539
  -w, --wait-ms=<value> The milliseconds to wait between API calls for checking progress of the operation. Default is
@@ -536,9 +557,11 @@ EXAMPLES
536
557
  $ sc missionctrl broker opstatus -n <broker-name>
537
558
 
538
559
  $ sc missionctrl broker opstatus --org=my-org -b <broker-id>
560
+
561
+ $ sc missionctrl broker opstatus --alias=my-alias -b <broker-id>
539
562
  ```
540
563
 
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)_
564
+ _See code: [src/commands/missionctrl/broker/opstatus.ts](https://github.com/SolaceLabs/solace-cloud-cli/blob/v0.5.0/src/commands/missionctrl/broker/opstatus.ts)_
542
565
 
543
566
  ## `sc missionctrl broker state`
544
567
 
@@ -546,13 +569,15 @@ Get the availability state of an event broker service and the name of the active
546
569
 
547
570
  ```
548
571
  USAGE
549
- $ sc missionctrl broker state [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>] [-o
550
- <value>]
572
+ $ sc missionctrl broker state [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-b <value>] [-n
573
+ <value>]
551
574
 
552
575
  FLAGS
576
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
553
577
  -b, --broker-id=<value> Id of the event broker service.
554
578
  -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.
579
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
580
+ specified.
556
581
 
557
582
  GLOBAL FLAGS
558
583
  --json Format output as json.
@@ -574,9 +599,11 @@ EXAMPLES
574
599
  $ sc missionctrl broker state --name=MyBrokerName
575
600
 
576
601
  $ sc missionctrl broker state --org=my-org --broker-id=MyBrokerServiceId
602
+
603
+ $ sc missionctrl broker state --alias=my-alias --name=MyBrokerName
577
604
  ```
578
605
 
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)_
606
+ _See code: [src/commands/missionctrl/broker/state.ts](https://github.com/SolaceLabs/solace-cloud-cli/blob/v0.5.0/src/commands/missionctrl/broker/state.ts)_
580
607
 
581
608
  ## `sc missionctrl broker update`
582
609
 
@@ -584,15 +611,17 @@ Update the configuration of an existing event broker service.
584
611
 
585
612
  ```
586
613
  USAGE
587
- $ sc missionctrl broker update [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-l <value>] [-n <value>]
588
- [--new-name <value>] [-o <value>]
614
+ $ sc missionctrl broker update [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-b <value>] [-l
615
+ <value>] [-n <value>] [--new-name <value>]
589
616
 
590
617
  FLAGS
618
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
591
619
  -b, --broker-id=<value> Id of the event broker service.
592
620
  -l, --locked=<value> Indicates whether the event broker service has deletion protection enabled. The valid values
593
621
  are 'true' (enabled) or 'false' (disabled).
594
622
  -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.
623
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
624
+ specified.
596
625
  --new-name=<value> New name of the event broker service. The new service name must be unique within an
597
626
  organization.
598
627
 
@@ -615,9 +644,11 @@ EXAMPLES
615
644
  $ sc missionctrl broker update --broker-id <broker-id> --new-name <new-name>
616
645
 
617
646
  $ sc missionctrl broker update --org=my-org --name <name> --new-name <new-name>
647
+
648
+ $ sc missionctrl broker update --alias=my-alias --name <name> --new-name <new-name>
618
649
  ```
619
650
 
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)_
651
+ _See code: [src/commands/missionctrl/broker/update.ts](https://github.com/SolaceLabs/solace-cloud-cli/blob/v0.5.0/src/commands/missionctrl/broker/update.ts)_
621
652
 
622
653
  ## `sc platform env create`
623
654
 
@@ -625,13 +656,15 @@ Create a new environment.
625
656
 
626
657
  ```
627
658
  USAGE
628
- $ sc platform env create -n <value> [--json] [--log-level debug|warn|error|info|trace] [-d <value>] [--isDefault]
629
- [--isProduction] [-o <value>]
659
+ $ sc platform env create -n <value> [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-d
660
+ <value>] [--isDefault] [--isProduction]
630
661
 
631
662
  FLAGS
663
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
632
664
  -d, --description=<value> Description of the environment to create.
633
665
  -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.
666
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
667
+ specified.
635
668
  --isDefault Indicates this is the organization's default environment.
636
669
  --isProduction Indicates this is an organization's production environment.
637
670
  This is an immutable field. If an environment needs to be migrated,
@@ -652,9 +685,11 @@ EXAMPLES
652
685
  $ sc platform env create --name=MyEnvironment
653
686
 
654
687
  $ sc platform env create --org=my-org --name=MyEnvironment --description="My environment description" --isDefault --isProduction
688
+
689
+ $ sc platform env create --alias=my-alias --name=MyEnvironment --isDefault
655
690
  ```
656
691
 
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)_
692
+ _See code: [src/commands/platform/env/create.ts](https://github.com/SolaceLabs/solace-cloud-cli/blob/v0.5.0/src/commands/platform/env/create.ts)_
658
693
 
659
694
  ## `sc platform env delete`
660
695
 
@@ -662,12 +697,15 @@ Delete an environment using either its name or unique identifier. The default en
662
697
 
663
698
  ```
664
699
  USAGE
665
- $ sc platform env delete [--json] [--log-level debug|warn|error|info|trace] [-e <value>] [-n <value>] [-o <value>]
700
+ $ sc platform env delete [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-e <value>] [-n
701
+ <value>] [--no-prompt]
666
702
 
667
703
  FLAGS
704
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
668
705
  -e, --env-id=<value> Id of the environment.
669
706
  -n, --name=<value> Name of the environment.
670
- -o, --org=<value> Organization ID or alias to use. If not specified, uses the default organization.
707
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if specified.
708
+ --no-prompt Skip confirmation prompt and assume Yes
671
709
 
672
710
  GLOBAL FLAGS
673
711
  --json Format output as json.
@@ -685,9 +723,13 @@ EXAMPLES
685
723
  $ sc platform env delete --env-id=MyEnvId
686
724
 
687
725
  $ sc platform env delete --org=my-org --name=MyEnvName
726
+
727
+ $ sc platform env delete --alias=my-alias --name=MyEnvName
728
+
729
+ $ sc platform env delete --env-id=MyEnvId --no-prompt
688
730
  ```
689
731
 
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)_
732
+ _See code: [src/commands/platform/env/delete.ts](https://github.com/SolaceLabs/solace-cloud-cli/blob/v0.5.0/src/commands/platform/env/delete.ts)_
691
733
 
692
734
  ## `sc platform env display`
693
735
 
@@ -695,12 +737,14 @@ Display information about an Environment.
695
737
 
696
738
  ```
697
739
  USAGE
698
- $ sc platform env display [--json] [--log-level debug|warn|error|info|trace] [-e <value>] [-n <value>] [-o <value>]
740
+ $ sc platform env display [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-e <value>] [-n
741
+ <value>]
699
742
 
700
743
  FLAGS
744
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
701
745
  -e, --env-id=<value> Id of the environment.
702
746
  -n, --name=<value> Name of the environment.
703
- -o, --org=<value> Organization ID or alias to use. If not specified, uses the default organization.
747
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if specified.
704
748
 
705
749
  GLOBAL FLAGS
706
750
  --json Format output as json.
@@ -720,9 +764,11 @@ EXAMPLES
720
764
  $ sc platform env display --env-id=MyEnvId
721
765
 
722
766
  $ sc platform env display --org=my-org --env-id=MyEnvId
767
+
768
+ $ sc platform env display --alias=my-alias --name=MyEnvName
723
769
  ```
724
770
 
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)_
771
+ _See code: [src/commands/platform/env/display.ts](https://github.com/SolaceLabs/solace-cloud-cli/blob/v0.5.0/src/commands/platform/env/display.ts)_
726
772
 
727
773
  ## `sc platform env list`
728
774
 
@@ -730,12 +776,14 @@ Get a list of all Environments.
730
776
 
731
777
  ```
732
778
  USAGE
733
- $ sc platform env list [--json] [--log-level debug|warn|error|info|trace] [-n <value>] [-o <value>] [-p <value>] [-s
734
- <value>] [--sort <value>]
779
+ $ sc platform env list [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-n <value>] [-p
780
+ <value>] [-s <value>] [--sort <value>]
735
781
 
736
782
  FLAGS
783
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
737
784
  -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.
785
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
786
+ specified.
739
787
  -p, --pageNumber=<value> The page number to get. Defaults to 10
740
788
  -s, --pageSize=<value> The number of environments to get per page. Defaults to 1
741
789
  --sort=<value> The query (fieldName:<ASC/DESC>) used to sort the environment list in the response.
@@ -755,10 +803,10 @@ EXAMPLES
755
803
 
756
804
  $ sc platform env list --org=my-org
757
805
 
758
- $ sc platform env list --name=Default --pageNumber=1 --pageSize=10 --sort=name:ASC
806
+ $ sc platform env list --alias=my-alias --name=Default --pageNumber=1 --pageSize=10 --sort=name:ASC
759
807
  ```
760
808
 
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)_
809
+ _See code: [src/commands/platform/env/list.ts](https://github.com/SolaceLabs/solace-cloud-cli/blob/v0.5.0/src/commands/platform/env/list.ts)_
762
810
 
763
811
  ## `sc platform env update`
764
812
 
@@ -766,14 +814,16 @@ Modify an environment's attributes
766
814
 
767
815
  ```
768
816
  USAGE
769
- $ sc platform env update [--json] [--log-level debug|warn|error|info|trace] [-d <value>] [-e <value>] [--isDefault] [-n
770
- <value>] [--new-name <value>] [-o <value>]
817
+ $ sc platform env update [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-d <value>] [-e
818
+ <value>] [--isDefault] [-n <value>] [--new-name <value>]
771
819
 
772
820
  FLAGS
821
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
773
822
  -d, --description=<value> Description of the environment to update.
774
823
  -e, --env-id=<value> Id of the environment.
775
824
  -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.
825
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
826
+ specified.
777
827
  --isDefault Indicates this is the organization's default environment. The default value is false.
778
828
  --new-name=<value> New name of the environment.
779
829
 
@@ -796,9 +846,11 @@ EXAMPLES
796
846
  $ sc platform env update --env-id=MyEnvId --new-name=MyNewEnvName --description="My description to update" --isDefault
797
847
 
798
848
  $ sc platform env update --org=my-org --name=MyEnvName --isDefault
849
+
850
+ $ sc platform env update --alias=my-alias --name=MyEnvName --new-name=MyNewEnvName
799
851
  ```
800
852
 
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)_
853
+ _See code: [src/commands/platform/env/update.ts](https://github.com/SolaceLabs/solace-cloud-cli/blob/v0.5.0/src/commands/platform/env/update.ts)_
802
854
 
803
855
  ## `sc plugins`
804
856
 
@@ -59,7 +59,7 @@ Required token permissions: Varies by operations you intend to perform`;
59
59
  const accessToken = await this.obtainAccessToken(flags['no-prompt']);
60
60
  // Create and store organization config
61
61
  const orgConfig = this.createOrgConfig(flags, accessToken);
62
- await orgManager.addOrg(orgConfig);
62
+ await (isUpdate ? orgManager.updateOrg(identifier, orgConfig) : orgManager.addOrg(orgConfig));
63
63
  // Set as default if requested
64
64
  if (flags['set-default']) {
65
65
  await orgManager.setDefaultOrg(identifier);
@@ -110,7 +110,6 @@ Required token permissions: Varies by operations you intend to perform`;
110
110
  this.log('Login cancelled.');
111
111
  this.exit(0);
112
112
  }
113
- await orgManager.removeOrg(identifier);
114
113
  return true;
115
114
  }
116
115
  /**
@@ -5,6 +5,7 @@ export default class MissionctrlBrokerCreate extends ScCommand<typeof Missionctr
5
5
  static description: string;
6
6
  static examples: string[];
7
7
  static flags: {
8
+ alias: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
9
  'datacenter-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
9
10
  'env-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
11
  locked: import("@oclif/core/interfaces").BooleanFlag<boolean>;
@@ -11,8 +11,14 @@ Token Permissions: [ \`services:post\` ]`;
11
11
  static examples = [
12
12
  '<%= config.bin %> <%= command.id %> --name=MyBrokerName --datacenter-id=eks-ca-central-1a --service-class-id=DEVELOPER',
13
13
  '<%= config.bin %> <%= command.id %> --org=my-org --name=MyBrokerName --datacenter-id=eks-ca-central-1a --service-class-id=DEVELOPER',
14
+ '<%= config.bin %> <%= command.id %> --alias=my-alias --name=MyBrokerName --datacenter-id=eks-ca-central-1a --service-class-id=DEVELOPER',
14
15
  ];
15
16
  static flags = {
17
+ alias: Flags.string({
18
+ char: 'a',
19
+ description: 'Organization alias to use. If not specified, uses the default organization.',
20
+ exclusive: ['org'],
21
+ }),
16
22
  'datacenter-id': Flags.string({
17
23
  char: 'd',
18
24
  description: 'The identifier of the datacenter.',
@@ -45,7 +51,8 @@ Token Permissions: [ \`services:post\` ]`;
45
51
  }),
46
52
  org: Flags.string({
47
53
  char: 'o',
48
- description: 'Organization ID or alias to use. If not specified, uses the default organization.',
54
+ description: 'Organization ID to use. If not specified, uses the default organization or alias if specified.',
55
+ exclusive: ['alias'],
49
56
  }),
50
57
  'redundancy-group-ssl-enabled': Flags.boolean({
51
58
  char: 'r',
@@ -74,7 +81,7 @@ Token Permissions: [ \`services:post\` ]`;
74
81
  const serviceClassId = flags['service-class-id'] ?? 'DEVELOPER';
75
82
  const eventBrokerVersion = flags.version ?? '';
76
83
  let envId = '';
77
- const conn = await resolveOrgConnection(this, flags.org);
84
+ const conn = await resolveOrgConnection(this, flags.org ?? flags.alias);
78
85
  // API url
79
86
  const apiUrl = `/missionControl/eventBrokerServices`;
80
87
  // If envName is provided, retrieve the environment ID
@@ -5,8 +5,10 @@ export default class MissionctrlBrokerDelete extends ScCommand<typeof Missionctr
5
5
  static description: string;
6
6
  static examples: string[];
7
7
  static flags: {
8
+ alias: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
9
  'broker-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
10
  name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
+ 'no-prompt': import("@oclif/core/interfaces").BooleanFlag<boolean>;
10
12
  org: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
13
  };
12
14
  run(): Promise<EventBrokerOperationApiResponse>;
@@ -1,4 +1,5 @@
1
1
  import { printObjectAsKeyValueTable, ScCommand } from '@dishantlangayan/sc-cli-core';
2
+ import { confirm } from '@inquirer/prompts';
2
3
  import { Flags } from '@oclif/core';
3
4
  import { resolveOrgConnection } from '../../../lib/org-utils.js';
4
5
  export default class MissionctrlBrokerDelete extends ScCommand {
@@ -12,8 +13,15 @@ Token Permissions: [ \`services:delete\` **or** \`services:delete:self\` **or**
12
13
  '<%= config.bin %> <%= command.id %> --broker-id=MyBrokerId',
13
14
  '<%= config.bin %> <%= command.id %> --name=MyBrokerName',
14
15
  '<%= config.bin %> <%= command.id %> --org=my-org --broker-id=MyBrokerId',
16
+ '<%= config.bin %> <%= command.id %> --alias=my-alias --name=MyBrokerName',
17
+ '<%= config.bin %> <%= command.id %> --broker-id=MyBrokerId --no-prompt',
15
18
  ];
16
19
  static flags = {
20
+ alias: Flags.string({
21
+ char: 'a',
22
+ description: 'Organization alias to use. If not specified, uses the default organization.',
23
+ exclusive: ['org'],
24
+ }),
17
25
  'broker-id': Flags.string({
18
26
  char: 'b',
19
27
  description: 'Id of the event broker service.',
@@ -24,16 +32,21 @@ Token Permissions: [ \`services:delete\` **or** \`services:delete:self\` **or**
24
32
  description: 'Name of the event broker service.',
25
33
  exactlyOne: ['broker-id', 'name'],
26
34
  }),
35
+ 'no-prompt': Flags.boolean({
36
+ default: false,
37
+ description: 'Skip confirmation prompt and assume Yes',
38
+ }),
27
39
  org: Flags.string({
28
40
  char: 'o',
29
- description: 'Organization ID or alias to use. If not specified, uses the default organization.',
41
+ description: 'Organization ID to use. If not specified, uses the default organization or alias if specified.',
42
+ exclusive: ['alias'],
30
43
  }),
31
44
  };
32
45
  async run() {
33
46
  const { flags } = await this.parse(MissionctrlBrokerDelete);
34
47
  const name = flags.name ?? '';
35
48
  const brokerId = flags['broker-id'] ?? '';
36
- const conn = await resolveOrgConnection(this, flags.org);
49
+ const conn = await resolveOrgConnection(this, flags.org ?? flags.alias);
37
50
  // API url
38
51
  let apiUrl = `/missionControl/eventBrokerServices`;
39
52
  let brokerIdToDelete = brokerId;
@@ -50,6 +63,25 @@ Token Permissions: [ \`services:delete\` **or** \`services:delete:self\` **or**
50
63
  brokerIdToDelete = resp.data[0]?.id;
51
64
  }
52
65
  }
66
+ // Confirm deletion unless --no-prompt flag is set
67
+ if (!flags['no-prompt']) {
68
+ const brokerIdentifier = name || brokerId;
69
+ try {
70
+ const shouldProceed = await confirm({
71
+ default: false,
72
+ message: `Are you sure you want to delete the broker '${brokerIdentifier}'?`,
73
+ });
74
+ if (!shouldProceed) {
75
+ this.log('Deletion cancelled.');
76
+ this.exit(0);
77
+ }
78
+ }
79
+ catch {
80
+ // User cancelled the confirmation (Ctrl+C)
81
+ this.log('Deletion cancelled.');
82
+ this.exit(0);
83
+ }
84
+ }
53
85
  // API call to delete environment by id
54
86
  apiUrl += `/${brokerIdToDelete}`;
55
87
  const resp = await conn.delete(apiUrl);
@@ -5,6 +5,7 @@ export default class MissionctrlBrokerDisplay extends ScCommand<typeof Missionct
5
5
  static description: string;
6
6
  static examples: string[];
7
7
  static flags: {
8
+ alias: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
9
  'broker-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
10
  name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
11
  org: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -11,8 +11,14 @@ export default class MissionctrlBrokerDisplay extends ScCommand {
11
11
  static examples = [
12
12
  '<%= config.bin %> <%= command.id %> --broker-id=MyBrokerId',
13
13
  '<%= config.bin %> <%= command.id %> --org=my-org --name=MyBrokerName',
14
+ '<%= config.bin %> <%= command.id %> --alias=my-alias --name=MyBrokerName',
14
15
  ];
15
16
  static flags = {
17
+ alias: Flags.string({
18
+ char: 'a',
19
+ description: 'Organization alias to use. If not specified, uses the default organization.',
20
+ exclusive: ['org'],
21
+ }),
16
22
  'broker-id': Flags.string({
17
23
  char: 'b',
18
24
  description: 'Id of the event broker service.',
@@ -25,14 +31,15 @@ export default class MissionctrlBrokerDisplay extends ScCommand {
25
31
  }),
26
32
  org: Flags.string({
27
33
  char: 'o',
28
- description: 'Organization ID or alias to use. If not specified, uses the default organization.',
34
+ description: 'Organization ID to use. If not specified, uses the default organization or alias if specified.',
35
+ exclusive: ['alias'],
29
36
  }),
30
37
  };
31
38
  async run() {
32
39
  const { flags } = await this.parse(MissionctrlBrokerDisplay);
33
40
  const name = flags.name ?? '';
34
41
  const brokerId = flags['broker-id'] ?? '';
35
- const conn = await resolveOrgConnection(this, flags.org);
42
+ const conn = await resolveOrgConnection(this, flags.org ?? flags.alias);
36
43
  // API url
37
44
  let apiUrl = `/missionControl/eventBrokerServices`;
38
45
  // If broker name provided, get all brokers matching provided name
@@ -5,6 +5,7 @@ export default class MissionctrlBrokerList extends ScCommand<typeof MissionctrlB
5
5
  static description: string;
6
6
  static examples: string[];
7
7
  static flags: {
8
+ alias: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
9
  name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
10
  org: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
11
  pageNumber: import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;