@dishantlangayan/solace-cloud-cli 0.3.0 → 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 (29) hide show
  1. package/README.md +98 -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 +1 -0
  6. package/dist/commands/missionctrl/broker/delete.js +9 -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 +1 -0
  20. package/dist/commands/platform/env/delete.js +9 -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 +455 -277
  29. package/package.json +1 -1
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.4.0 darwin-arm64 node-v24.1.0
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/dishantlangayan/solace-cloud-cli/blob/v0.4.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/dishantlangayan/solace-cloud-cli/blob/v0.4.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/dishantlangayan/solace-cloud-cli/blob/v0.4.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/dishantlangayan/solace-cloud-cli/blob/v0.4.0/src/commands/missionctrl/broker/create.ts)_
378
383
 
379
384
  ## `sc missionctrl broker delete`
380
385
 
@@ -382,13 +387,15 @@ 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>]
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.
392
399
 
393
400
  GLOBAL FLAGS
394
401
  --json Format output as json.
@@ -408,9 +415,11 @@ EXAMPLES
408
415
  $ sc missionctrl broker delete --name=MyBrokerName
409
416
 
410
417
  $ sc missionctrl broker delete --org=my-org --broker-id=MyBrokerId
418
+
419
+ $ sc missionctrl broker delete --alias=my-alias --name=MyBrokerName
411
420
  ```
412
421
 
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)_
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)_
414
423
 
415
424
  ## `sc missionctrl broker display`
416
425
 
@@ -418,13 +427,15 @@ Get the details of an event broker service using its identifier or name.
418
427
 
419
428
  ```
420
429
  USAGE
421
- $ sc missionctrl broker display [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>] [-o
422
- <value>]
430
+ $ sc missionctrl broker display [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-b <value>] [-n
431
+ <value>]
423
432
 
424
433
  FLAGS
434
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
425
435
  -b, --broker-id=<value> Id of the event broker service.
426
436
  -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.
437
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
438
+ specified.
428
439
 
429
440
  GLOBAL FLAGS
430
441
  --json Format output as json.
@@ -443,9 +454,11 @@ EXAMPLES
443
454
  $ sc missionctrl broker display --broker-id=MyBrokerId
444
455
 
445
456
  $ sc missionctrl broker display --org=my-org --name=MyBrokerName
457
+
458
+ $ sc missionctrl broker display --alias=my-alias --name=MyBrokerName
446
459
  ```
447
460
 
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)_
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)_
449
462
 
450
463
  ## `sc missionctrl broker list`
451
464
 
@@ -453,15 +466,18 @@ Get a listing of event broker services.
453
466
 
454
467
  ```
455
468
  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>]
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>]
458
471
 
459
472
  FLAGS
473
+ -a, --alias=<value>
474
+ Organization alias to use. If not specified, uses the default organization.
475
+
460
476
  -n, --name=<value>
461
477
  Name of the event broker service to match on.
462
478
 
463
479
  -o, --org=<value>
464
- Organization ID or alias to use. If not specified, uses the default organization.
480
+ Organization ID to use. If not specified, uses the default organization or alias if specified.
465
481
 
466
482
  --pageNumber=<value>
467
483
  The page number to get. Defaults to 1
@@ -495,10 +511,10 @@ EXAMPLES
495
511
 
496
512
  $ sc missionctrl broker list --org=my-org
497
513
 
498
- $ sc missionctrl broker list --name=MyBrokerName --pageNumber=1 --pageSize=10 --sort=name:asc
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.3.0/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,13 +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>] [-o <value>] [-p]
510
- [-w <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.
515
- -o, --org=<value> Organization ID or alias to use. If not specified, uses the default organization.
532
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
533
+ specified.
516
534
  -p, --show-progress Displays a status bar of the in-progress operations. The command will wait for completion of
517
535
  each step of the operation.
518
536
  -w, --wait-ms=<value> The milliseconds to wait between API calls for checking progress of the operation. Default is
@@ -536,9 +554,11 @@ EXAMPLES
536
554
  $ sc missionctrl broker opstatus -n <broker-name>
537
555
 
538
556
  $ sc missionctrl broker opstatus --org=my-org -b <broker-id>
557
+
558
+ $ sc missionctrl broker opstatus --alias=my-alias -b <broker-id>
539
559
  ```
540
560
 
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)_
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)_
542
562
 
543
563
  ## `sc missionctrl broker state`
544
564
 
@@ -546,13 +566,15 @@ Get the availability state of an event broker service and the name of the active
546
566
 
547
567
  ```
548
568
  USAGE
549
- $ sc missionctrl broker state [--json] [--log-level debug|warn|error|info|trace] [-b <value>] [-n <value>] [-o
550
- <value>]
569
+ $ sc missionctrl broker state [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-b <value>] [-n
570
+ <value>]
551
571
 
552
572
  FLAGS
573
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
553
574
  -b, --broker-id=<value> Id of the event broker service.
554
575
  -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.
576
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
577
+ specified.
556
578
 
557
579
  GLOBAL FLAGS
558
580
  --json Format output as json.
@@ -574,9 +596,11 @@ EXAMPLES
574
596
  $ sc missionctrl broker state --name=MyBrokerName
575
597
 
576
598
  $ sc missionctrl broker state --org=my-org --broker-id=MyBrokerServiceId
599
+
600
+ $ sc missionctrl broker state --alias=my-alias --name=MyBrokerName
577
601
  ```
578
602
 
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)_
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)_
580
604
 
581
605
  ## `sc missionctrl broker update`
582
606
 
@@ -584,15 +608,17 @@ Update the configuration of an existing event broker service.
584
608
 
585
609
  ```
586
610
  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>]
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>]
589
613
 
590
614
  FLAGS
615
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
591
616
  -b, --broker-id=<value> Id of the event broker service.
592
617
  -l, --locked=<value> Indicates whether the event broker service has deletion protection enabled. The valid values
593
618
  are 'true' (enabled) or 'false' (disabled).
594
619
  -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.
620
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
621
+ specified.
596
622
  --new-name=<value> New name of the event broker service. The new service name must be unique within an
597
623
  organization.
598
624
 
@@ -615,9 +641,11 @@ EXAMPLES
615
641
  $ sc missionctrl broker update --broker-id <broker-id> --new-name <new-name>
616
642
 
617
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>
618
646
  ```
619
647
 
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)_
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)_
621
649
 
622
650
  ## `sc platform env create`
623
651
 
@@ -625,13 +653,15 @@ Create a new environment.
625
653
 
626
654
  ```
627
655
  USAGE
628
- $ sc platform env create -n <value> [--json] [--log-level debug|warn|error|info|trace] [-d <value>] [--isDefault]
629
- [--isProduction] [-o <value>]
656
+ $ sc platform env create -n <value> [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-d
657
+ <value>] [--isDefault] [--isProduction]
630
658
 
631
659
  FLAGS
660
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
632
661
  -d, --description=<value> Description of the environment to create.
633
662
  -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.
663
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
664
+ specified.
635
665
  --isDefault Indicates this is the organization's default environment.
636
666
  --isProduction Indicates this is an organization's production environment.
637
667
  This is an immutable field. If an environment needs to be migrated,
@@ -652,9 +682,11 @@ EXAMPLES
652
682
  $ sc platform env create --name=MyEnvironment
653
683
 
654
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
655
687
  ```
656
688
 
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)_
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)_
658
690
 
659
691
  ## `sc platform env delete`
660
692
 
@@ -662,12 +694,14 @@ Delete an environment using either its name or unique identifier. The default en
662
694
 
663
695
  ```
664
696
  USAGE
665
- $ sc platform env delete [--json] [--log-level debug|warn|error|info|trace] [-e <value>] [-n <value>] [-o <value>]
697
+ $ sc platform env delete [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-e <value>] [-n
698
+ <value>]
666
699
 
667
700
  FLAGS
701
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
668
702
  -e, --env-id=<value> Id of the environment.
669
703
  -n, --name=<value> Name of the environment.
670
- -o, --org=<value> Organization ID or alias to use. If not specified, uses the default organization.
704
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if specified.
671
705
 
672
706
  GLOBAL FLAGS
673
707
  --json Format output as json.
@@ -685,9 +719,11 @@ EXAMPLES
685
719
  $ sc platform env delete --env-id=MyEnvId
686
720
 
687
721
  $ sc platform env delete --org=my-org --name=MyEnvName
722
+
723
+ $ sc platform env delete --alias=my-alias --name=MyEnvName
688
724
  ```
689
725
 
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)_
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)_
691
727
 
692
728
  ## `sc platform env display`
693
729
 
@@ -695,12 +731,14 @@ Display information about an Environment.
695
731
 
696
732
  ```
697
733
  USAGE
698
- $ sc platform env display [--json] [--log-level debug|warn|error|info|trace] [-e <value>] [-n <value>] [-o <value>]
734
+ $ sc platform env display [--json] [--log-level debug|warn|error|info|trace] [-a <value> | -o <value>] [-e <value>] [-n
735
+ <value>]
699
736
 
700
737
  FLAGS
738
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
701
739
  -e, --env-id=<value> Id of the environment.
702
740
  -n, --name=<value> Name of the environment.
703
- -o, --org=<value> Organization ID or alias to use. If not specified, uses the default organization.
741
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if specified.
704
742
 
705
743
  GLOBAL FLAGS
706
744
  --json Format output as json.
@@ -720,9 +758,11 @@ EXAMPLES
720
758
  $ sc platform env display --env-id=MyEnvId
721
759
 
722
760
  $ sc platform env display --org=my-org --env-id=MyEnvId
761
+
762
+ $ sc platform env display --alias=my-alias --name=MyEnvName
723
763
  ```
724
764
 
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)_
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)_
726
766
 
727
767
  ## `sc platform env list`
728
768
 
@@ -730,12 +770,14 @@ Get a list of all Environments.
730
770
 
731
771
  ```
732
772
  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>]
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>]
735
775
 
736
776
  FLAGS
777
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
737
778
  -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.
779
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
780
+ specified.
739
781
  -p, --pageNumber=<value> The page number to get. Defaults to 10
740
782
  -s, --pageSize=<value> The number of environments to get per page. Defaults to 1
741
783
  --sort=<value> The query (fieldName:<ASC/DESC>) used to sort the environment list in the response.
@@ -755,10 +797,10 @@ EXAMPLES
755
797
 
756
798
  $ sc platform env list --org=my-org
757
799
 
758
- $ sc platform env list --name=Default --pageNumber=1 --pageSize=10 --sort=name:ASC
800
+ $ sc platform env list --alias=my-alias --name=Default --pageNumber=1 --pageSize=10 --sort=name:ASC
759
801
  ```
760
802
 
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)_
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)_
762
804
 
763
805
  ## `sc platform env update`
764
806
 
@@ -766,14 +808,16 @@ Modify an environment's attributes
766
808
 
767
809
  ```
768
810
  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>]
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>]
771
813
 
772
814
  FLAGS
815
+ -a, --alias=<value> Organization alias to use. If not specified, uses the default organization.
773
816
  -d, --description=<value> Description of the environment to update.
774
817
  -e, --env-id=<value> Id of the environment.
775
818
  -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.
819
+ -o, --org=<value> Organization ID to use. If not specified, uses the default organization or alias if
820
+ specified.
777
821
  --isDefault Indicates this is the organization's default environment. The default value is false.
778
822
  --new-name=<value> New name of the environment.
779
823
 
@@ -796,9 +840,11 @@ EXAMPLES
796
840
  $ sc platform env update --env-id=MyEnvId --new-name=MyNewEnvName --description="My description to update" --isDefault
797
841
 
798
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
799
845
  ```
800
846
 
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)_
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)_
802
848
 
803
849
  ## `sc plugins`
804
850
 
@@ -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,6 +5,7 @@ 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>;
10
11
  org: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -12,8 +12,14 @@ Token Permissions: [ \`services:delete\` **or** \`services:delete:self\` **or**
12
12
  '<%= config.bin %> <%= command.id %> --broker-id=MyBrokerId',
13
13
  '<%= config.bin %> <%= command.id %> --name=MyBrokerName',
14
14
  '<%= config.bin %> <%= command.id %> --org=my-org --broker-id=MyBrokerId',
15
+ '<%= config.bin %> <%= command.id %> --alias=my-alias --name=MyBrokerName',
15
16
  ];
16
17
  static flags = {
18
+ alias: Flags.string({
19
+ char: 'a',
20
+ description: 'Organization alias to use. If not specified, uses the default organization.',
21
+ exclusive: ['org'],
22
+ }),
17
23
  'broker-id': Flags.string({
18
24
  char: 'b',
19
25
  description: 'Id of the event broker service.',
@@ -26,14 +32,15 @@ Token Permissions: [ \`services:delete\` **or** \`services:delete:self\` **or**
26
32
  }),
27
33
  org: Flags.string({
28
34
  char: 'o',
29
- description: 'Organization ID or alias to use. If not specified, uses the default organization.',
35
+ description: 'Organization ID to use. If not specified, uses the default organization or alias if specified.',
36
+ exclusive: ['alias'],
30
37
  }),
31
38
  };
32
39
  async run() {
33
40
  const { flags } = await this.parse(MissionctrlBrokerDelete);
34
41
  const name = flags.name ?? '';
35
42
  const brokerId = flags['broker-id'] ?? '';
36
- const conn = await resolveOrgConnection(this, flags.org);
43
+ const conn = await resolveOrgConnection(this, flags.org ?? flags.alias);
37
44
  // API url
38
45
  let apiUrl = `/missionControl/eventBrokerServices`;
39
46
  let brokerIdToDelete = brokerId;
@@ -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>;
@@ -11,16 +11,22 @@ Token Permissions: [ \`mission_control:access\` **or** \`services:get\` **or** \
11
11
  static examples = [
12
12
  '<%= config.bin %> <%= command.id %>',
13
13
  '<%= config.bin %> <%= command.id %> --org=my-org',
14
- '<%= config.bin %> <%= command.id %> --name=MyBrokerName --pageNumber=1 --pageSize=10 --sort=name:asc',
14
+ '<%= config.bin %> <%= command.id %> --alias=my-alias --name=MyBrokerName --pageNumber=1 --pageSize=10 --sort=name:asc',
15
15
  ];
16
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
+ }),
17
22
  name: Flags.string({
18
23
  char: 'n',
19
24
  description: 'Name of the event broker service to match on.',
20
25
  }),
21
26
  org: Flags.string({
22
27
  char: 'o',
23
- description: 'Organization ID or alias to use. If not specified, uses the default organization.',
28
+ description: 'Organization ID to use. If not specified, uses the default organization or alias if specified.',
29
+ exclusive: ['alias'],
24
30
  }),
25
31
  pageNumber: Flags.integer({
26
32
  description: 'The page number to get. Defaults to 1',
@@ -41,7 +47,7 @@ Token Permissions: [ \`mission_control:access\` **or** \`services:get\` **or** \
41
47
  };
42
48
  async run() {
43
49
  const { flags } = await this.parse(MissionctrlBrokerList);
44
- const conn = await resolveOrgConnection(this, flags.org);
50
+ const conn = await resolveOrgConnection(this, flags.org ?? flags.alias);
45
51
  const pageSize = flags.pageSize ?? 10;
46
52
  const pageNumber = flags.pageNumber ?? 1;
47
53
  // API url
@@ -5,6 +5,7 @@ export default class MissionctrlBrokerOpstatus extends ScCommand<typeof Missionc
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>;