@salesforce/plugin-packaging 2.25.17 → 2.26.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.
- package/README.md +29 -29
- package/lib/commands/package/bundle/installed/list.d.ts +18 -0
- package/lib/commands/package/bundle/installed/list.js +119 -0
- package/lib/commands/package/bundle/installed/list.js.map +1 -0
- package/lib/commands/package/bundle/{install/list.d.ts → uninstall.d.ts} +6 -6
- package/lib/commands/package/bundle/uninstall.js +116 -0
- package/lib/commands/package/bundle/uninstall.js.map +1 -0
- package/lib/commands/package/convert.js +1 -1
- package/lib/commands/package/convert.js.map +1 -1
- package/lib/commands/package/install.js +10 -2
- package/lib/commands/package/install.js.map +1 -1
- package/lib/commands/package/version/create/report.js +1 -1
- package/lib/commands/package/version/create/report.js.map +1 -1
- package/lib/commands/package/version/create.js +2 -2
- package/lib/commands/package/version/create.js.map +1 -1
- package/lib/commands/package/version/list.js +1 -1
- package/lib/commands/package/version/list.js.map +1 -1
- package/messages/bundle_installed_list.md +21 -0
- package/messages/bundle_uninstall.md +46 -0
- package/oclif.manifest.json +185 -101
- package/package.json +7 -7
- package/schemas/package-bundle-installed-list.json +91 -0
- package/schemas/{package-bundle-install-list.json → package-bundle-uninstall.json} +14 -30
- package/lib/commands/package/bundle/install/list.js +0 -82
- package/lib/commands/package/bundle/install/list.js.map +0 -1
- package/messages/bundle_install_list.md +0 -69
package/oclif.manifest.json
CHANGED
|
@@ -1500,6 +1500,121 @@
|
|
|
1500
1500
|
"list:bundle:package"
|
|
1501
1501
|
]
|
|
1502
1502
|
},
|
|
1503
|
+
"package:bundle:uninstall": {
|
|
1504
|
+
"aliases": [],
|
|
1505
|
+
"args": {},
|
|
1506
|
+
"description": "Provide the package bundle version ID or alias and the target org to start an uninstall request. Optionally wait for the uninstall to complete.",
|
|
1507
|
+
"examples": [
|
|
1508
|
+
"Uninstall a bundle version by ID from a specified org:\n<%= config.bin %> <%= command.id %> --bundle 1Q8... --target-org me@example.com",
|
|
1509
|
+
"Uninstall a bundle version by alias from your default org and wait up to 10 minutes for completion:\n<%= config.bin %> <%= command.id %> --bundle MyBundle@1.2 -w 10"
|
|
1510
|
+
],
|
|
1511
|
+
"flags": {
|
|
1512
|
+
"json": {
|
|
1513
|
+
"description": "Format output as json.",
|
|
1514
|
+
"helpGroup": "GLOBAL",
|
|
1515
|
+
"name": "json",
|
|
1516
|
+
"allowNo": false,
|
|
1517
|
+
"type": "boolean"
|
|
1518
|
+
},
|
|
1519
|
+
"flags-dir": {
|
|
1520
|
+
"helpGroup": "GLOBAL",
|
|
1521
|
+
"name": "flags-dir",
|
|
1522
|
+
"summary": "Import flag values from a directory.",
|
|
1523
|
+
"hasDynamicHelp": false,
|
|
1524
|
+
"multiple": false,
|
|
1525
|
+
"type": "option"
|
|
1526
|
+
},
|
|
1527
|
+
"loglevel": {
|
|
1528
|
+
"deprecated": {
|
|
1529
|
+
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
|
|
1530
|
+
},
|
|
1531
|
+
"hidden": true,
|
|
1532
|
+
"name": "loglevel",
|
|
1533
|
+
"hasDynamicHelp": false,
|
|
1534
|
+
"multiple": false,
|
|
1535
|
+
"type": "option"
|
|
1536
|
+
},
|
|
1537
|
+
"bundle": {
|
|
1538
|
+
"char": "b",
|
|
1539
|
+
"name": "bundle",
|
|
1540
|
+
"required": true,
|
|
1541
|
+
"summary": "ID (starts with 1Q8) or alias of the package bundle version to uninstall.",
|
|
1542
|
+
"hasDynamicHelp": false,
|
|
1543
|
+
"multiple": false,
|
|
1544
|
+
"type": "option"
|
|
1545
|
+
},
|
|
1546
|
+
"target-org": {
|
|
1547
|
+
"aliases": [
|
|
1548
|
+
"targetusername",
|
|
1549
|
+
"u"
|
|
1550
|
+
],
|
|
1551
|
+
"char": "o",
|
|
1552
|
+
"deprecateAliases": true,
|
|
1553
|
+
"name": "target-org",
|
|
1554
|
+
"noCacheDefault": true,
|
|
1555
|
+
"required": true,
|
|
1556
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1557
|
+
"hasDynamicHelp": true,
|
|
1558
|
+
"multiple": false,
|
|
1559
|
+
"type": "option"
|
|
1560
|
+
},
|
|
1561
|
+
"api-version": {
|
|
1562
|
+
"aliases": [
|
|
1563
|
+
"apiversion"
|
|
1564
|
+
],
|
|
1565
|
+
"deprecateAliases": true,
|
|
1566
|
+
"description": "Override the api version used for api requests made by this command",
|
|
1567
|
+
"name": "api-version",
|
|
1568
|
+
"hasDynamicHelp": false,
|
|
1569
|
+
"multiple": false,
|
|
1570
|
+
"type": "option"
|
|
1571
|
+
},
|
|
1572
|
+
"wait": {
|
|
1573
|
+
"char": "w",
|
|
1574
|
+
"name": "wait",
|
|
1575
|
+
"summary": "Number of minutes to wait for the uninstall request to complete.",
|
|
1576
|
+
"default": 0,
|
|
1577
|
+
"hasDynamicHelp": false,
|
|
1578
|
+
"multiple": false,
|
|
1579
|
+
"type": "option"
|
|
1580
|
+
},
|
|
1581
|
+
"verbose": {
|
|
1582
|
+
"name": "verbose",
|
|
1583
|
+
"summary": "Show additional progress while waiting for uninstall to finish.",
|
|
1584
|
+
"allowNo": false,
|
|
1585
|
+
"type": "boolean"
|
|
1586
|
+
}
|
|
1587
|
+
},
|
|
1588
|
+
"hasDynamicHelp": true,
|
|
1589
|
+
"hidden": true,
|
|
1590
|
+
"hiddenAliases": [],
|
|
1591
|
+
"id": "package:bundle:uninstall",
|
|
1592
|
+
"pluginAlias": "@salesforce/plugin-packaging",
|
|
1593
|
+
"pluginName": "@salesforce/plugin-packaging",
|
|
1594
|
+
"pluginType": "core",
|
|
1595
|
+
"state": "beta",
|
|
1596
|
+
"strict": true,
|
|
1597
|
+
"summary": "Uninstall a package bundle version from a target org.",
|
|
1598
|
+
"enableJsonFlag": true,
|
|
1599
|
+
"requiresProject": true,
|
|
1600
|
+
"isESM": true,
|
|
1601
|
+
"relativePath": [
|
|
1602
|
+
"lib",
|
|
1603
|
+
"commands",
|
|
1604
|
+
"package",
|
|
1605
|
+
"bundle",
|
|
1606
|
+
"uninstall.js"
|
|
1607
|
+
],
|
|
1608
|
+
"aliasPermutations": [],
|
|
1609
|
+
"permutations": [
|
|
1610
|
+
"package:bundle:uninstall",
|
|
1611
|
+
"bundle:package:uninstall",
|
|
1612
|
+
"bundle:uninstall:package",
|
|
1613
|
+
"package:uninstall:bundle",
|
|
1614
|
+
"uninstall:package:bundle",
|
|
1615
|
+
"uninstall:bundle:package"
|
|
1616
|
+
]
|
|
1617
|
+
},
|
|
1503
1618
|
"package:install:report": {
|
|
1504
1619
|
"aliases": [
|
|
1505
1620
|
"force:package:install:report"
|
|
@@ -4359,16 +4474,12 @@
|
|
|
4359
4474
|
"list:version:package1"
|
|
4360
4475
|
]
|
|
4361
4476
|
},
|
|
4362
|
-
"package:bundle:install:
|
|
4477
|
+
"package:bundle:install:report": {
|
|
4363
4478
|
"aliases": [],
|
|
4364
4479
|
"args": {},
|
|
4365
|
-
"description": "
|
|
4480
|
+
"description": "The command returns information such as the current status of the request and details about the package bundle version being installed.",
|
|
4366
4481
|
"examples": [
|
|
4367
|
-
"
|
|
4368
|
-
"List package bundle installation requests from the last 3 days in the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --created-last-days 3 --target-dev-hub devhub@example.com",
|
|
4369
|
-
"List package bundle installation requests with the Error status:\n<%= config.bin %> <%= command.id %> --status Error",
|
|
4370
|
-
"List package bundle installation requests with the Queued status:\n<%= config.bin %> <%= command.id %> --status Queued",
|
|
4371
|
-
"List package bundle install requests from today with the Success status:\n<%= config.bin %> <%= command.id %> --created-last-days 0 --status Success"
|
|
4482
|
+
"Report on a package bundle installation request:\n<%= config.bin %> <%= command.id %> --package-install-request-id 0Ho0x0000000000000"
|
|
4372
4483
|
],
|
|
4373
4484
|
"flags": {
|
|
4374
4485
|
"json": {
|
|
@@ -4422,31 +4533,19 @@
|
|
|
4422
4533
|
"multiple": false,
|
|
4423
4534
|
"type": "option"
|
|
4424
4535
|
},
|
|
4425
|
-
"
|
|
4426
|
-
"char": "
|
|
4427
|
-
"name": "
|
|
4428
|
-
"
|
|
4429
|
-
"
|
|
4430
|
-
"multiple": false,
|
|
4431
|
-
"type": "option"
|
|
4432
|
-
},
|
|
4433
|
-
"status": {
|
|
4434
|
-
"char": "s",
|
|
4435
|
-
"name": "status",
|
|
4436
|
-
"summary": "Status of the installation request, used to filter the list.",
|
|
4536
|
+
"package-install-request-id": {
|
|
4537
|
+
"char": "i",
|
|
4538
|
+
"name": "package-install-request-id",
|
|
4539
|
+
"required": true,
|
|
4540
|
+
"summary": "ID of the package bundle installation request to report on.",
|
|
4437
4541
|
"hasDynamicHelp": false,
|
|
4438
4542
|
"multiple": false,
|
|
4439
|
-
"options": [
|
|
4440
|
-
"Queued",
|
|
4441
|
-
"InProgress",
|
|
4442
|
-
"Success",
|
|
4443
|
-
"Error"
|
|
4444
|
-
],
|
|
4445
4543
|
"type": "option"
|
|
4446
4544
|
},
|
|
4447
4545
|
"verbose": {
|
|
4448
4546
|
"name": "verbose",
|
|
4449
|
-
"
|
|
4547
|
+
"required": false,
|
|
4548
|
+
"summary": "Show verbose output.",
|
|
4450
4549
|
"allowNo": false,
|
|
4451
4550
|
"type": "boolean"
|
|
4452
4551
|
}
|
|
@@ -4454,13 +4553,13 @@
|
|
|
4454
4553
|
"hasDynamicHelp": true,
|
|
4455
4554
|
"hidden": true,
|
|
4456
4555
|
"hiddenAliases": [],
|
|
4457
|
-
"id": "package:bundle:install:
|
|
4556
|
+
"id": "package:bundle:install:report",
|
|
4458
4557
|
"pluginAlias": "@salesforce/plugin-packaging",
|
|
4459
4558
|
"pluginName": "@salesforce/plugin-packaging",
|
|
4460
4559
|
"pluginType": "core",
|
|
4461
4560
|
"state": "beta",
|
|
4462
4561
|
"strict": true,
|
|
4463
|
-
"summary": "
|
|
4562
|
+
"summary": "Report on the status of a package bundle installation request.",
|
|
4464
4563
|
"enableJsonFlag": true,
|
|
4465
4564
|
"isESM": true,
|
|
4466
4565
|
"relativePath": [
|
|
@@ -4469,42 +4568,43 @@
|
|
|
4469
4568
|
"package",
|
|
4470
4569
|
"bundle",
|
|
4471
4570
|
"install",
|
|
4472
|
-
"
|
|
4571
|
+
"report.js"
|
|
4473
4572
|
],
|
|
4474
4573
|
"aliasPermutations": [],
|
|
4475
4574
|
"permutations": [
|
|
4476
|
-
"package:bundle:install:
|
|
4477
|
-
"bundle:package:install:
|
|
4478
|
-
"bundle:install:package:
|
|
4479
|
-
"bundle:install:
|
|
4480
|
-
"package:install:bundle:
|
|
4481
|
-
"install:package:bundle:
|
|
4482
|
-
"install:bundle:package:
|
|
4483
|
-
"install:bundle:
|
|
4484
|
-
"package:install:
|
|
4485
|
-
"install:package:
|
|
4486
|
-
"install:
|
|
4487
|
-
"install:
|
|
4488
|
-
"package:bundle:
|
|
4489
|
-
"bundle:package:
|
|
4490
|
-
"bundle:
|
|
4491
|
-
"bundle:
|
|
4492
|
-
"package:
|
|
4493
|
-
"
|
|
4494
|
-
"
|
|
4495
|
-
"
|
|
4496
|
-
"package:
|
|
4497
|
-
"
|
|
4498
|
-
"
|
|
4499
|
-
"
|
|
4575
|
+
"package:bundle:install:report",
|
|
4576
|
+
"bundle:package:install:report",
|
|
4577
|
+
"bundle:install:package:report",
|
|
4578
|
+
"bundle:install:report:package",
|
|
4579
|
+
"package:install:bundle:report",
|
|
4580
|
+
"install:package:bundle:report",
|
|
4581
|
+
"install:bundle:package:report",
|
|
4582
|
+
"install:bundle:report:package",
|
|
4583
|
+
"package:install:report:bundle",
|
|
4584
|
+
"install:package:report:bundle",
|
|
4585
|
+
"install:report:package:bundle",
|
|
4586
|
+
"install:report:bundle:package",
|
|
4587
|
+
"package:bundle:report:install",
|
|
4588
|
+
"bundle:package:report:install",
|
|
4589
|
+
"bundle:report:package:install",
|
|
4590
|
+
"bundle:report:install:package",
|
|
4591
|
+
"package:report:bundle:install",
|
|
4592
|
+
"report:package:bundle:install",
|
|
4593
|
+
"report:bundle:package:install",
|
|
4594
|
+
"report:bundle:install:package",
|
|
4595
|
+
"package:report:install:bundle",
|
|
4596
|
+
"report:package:install:bundle",
|
|
4597
|
+
"report:install:package:bundle",
|
|
4598
|
+
"report:install:bundle:package"
|
|
4500
4599
|
]
|
|
4501
4600
|
},
|
|
4502
|
-
"package:bundle:
|
|
4601
|
+
"package:bundle:installed:list": {
|
|
4503
4602
|
"aliases": [],
|
|
4504
4603
|
"args": {},
|
|
4505
|
-
"description": "
|
|
4604
|
+
"description": "Displays information about all package bundles currently installed in the target org, including the bundle details and the associated packages with their expected and actual versions.",
|
|
4506
4605
|
"examples": [
|
|
4507
|
-
"
|
|
4606
|
+
"List all installed package bundles in your default org:\n<%= config.bin %> <%= command.id %>",
|
|
4607
|
+
"List all installed package bundles in a specific org:\n<%= config.bin %> <%= command.id %> --target-org myorg@example.com"
|
|
4508
4608
|
],
|
|
4509
4609
|
"flags": {
|
|
4510
4610
|
"json": {
|
|
@@ -4557,34 +4657,18 @@
|
|
|
4557
4657
|
"hasDynamicHelp": false,
|
|
4558
4658
|
"multiple": false,
|
|
4559
4659
|
"type": "option"
|
|
4560
|
-
},
|
|
4561
|
-
"package-install-request-id": {
|
|
4562
|
-
"char": "i",
|
|
4563
|
-
"name": "package-install-request-id",
|
|
4564
|
-
"required": true,
|
|
4565
|
-
"summary": "ID of the package bundle installation request to report on.",
|
|
4566
|
-
"hasDynamicHelp": false,
|
|
4567
|
-
"multiple": false,
|
|
4568
|
-
"type": "option"
|
|
4569
|
-
},
|
|
4570
|
-
"verbose": {
|
|
4571
|
-
"name": "verbose",
|
|
4572
|
-
"required": false,
|
|
4573
|
-
"summary": "Show verbose output.",
|
|
4574
|
-
"allowNo": false,
|
|
4575
|
-
"type": "boolean"
|
|
4576
4660
|
}
|
|
4577
4661
|
},
|
|
4578
4662
|
"hasDynamicHelp": true,
|
|
4579
4663
|
"hidden": true,
|
|
4580
4664
|
"hiddenAliases": [],
|
|
4581
|
-
"id": "package:bundle:
|
|
4665
|
+
"id": "package:bundle:installed:list",
|
|
4582
4666
|
"pluginAlias": "@salesforce/plugin-packaging",
|
|
4583
4667
|
"pluginName": "@salesforce/plugin-packaging",
|
|
4584
4668
|
"pluginType": "core",
|
|
4585
4669
|
"state": "beta",
|
|
4586
4670
|
"strict": true,
|
|
4587
|
-
"summary": "
|
|
4671
|
+
"summary": "List all installed package bundles in the target org.",
|
|
4588
4672
|
"enableJsonFlag": true,
|
|
4589
4673
|
"isESM": true,
|
|
4590
4674
|
"relativePath": [
|
|
@@ -4592,35 +4676,35 @@
|
|
|
4592
4676
|
"commands",
|
|
4593
4677
|
"package",
|
|
4594
4678
|
"bundle",
|
|
4595
|
-
"
|
|
4596
|
-
"
|
|
4679
|
+
"installed",
|
|
4680
|
+
"list.js"
|
|
4597
4681
|
],
|
|
4598
4682
|
"aliasPermutations": [],
|
|
4599
4683
|
"permutations": [
|
|
4600
|
-
"package:bundle:
|
|
4601
|
-
"bundle:package:
|
|
4602
|
-
"bundle:
|
|
4603
|
-
"bundle:
|
|
4604
|
-
"package:
|
|
4605
|
-
"
|
|
4606
|
-
"
|
|
4607
|
-
"
|
|
4608
|
-
"package:
|
|
4609
|
-
"
|
|
4610
|
-
"
|
|
4611
|
-
"
|
|
4612
|
-
"package:bundle:
|
|
4613
|
-
"bundle:package:
|
|
4614
|
-
"bundle:
|
|
4615
|
-
"bundle:
|
|
4616
|
-
"package:
|
|
4617
|
-
"
|
|
4618
|
-
"
|
|
4619
|
-
"
|
|
4620
|
-
"package:
|
|
4621
|
-
"
|
|
4622
|
-
"
|
|
4623
|
-
"
|
|
4684
|
+
"package:bundle:installed:list",
|
|
4685
|
+
"bundle:package:installed:list",
|
|
4686
|
+
"bundle:installed:package:list",
|
|
4687
|
+
"bundle:installed:list:package",
|
|
4688
|
+
"package:installed:bundle:list",
|
|
4689
|
+
"installed:package:bundle:list",
|
|
4690
|
+
"installed:bundle:package:list",
|
|
4691
|
+
"installed:bundle:list:package",
|
|
4692
|
+
"package:installed:list:bundle",
|
|
4693
|
+
"installed:package:list:bundle",
|
|
4694
|
+
"installed:list:package:bundle",
|
|
4695
|
+
"installed:list:bundle:package",
|
|
4696
|
+
"package:bundle:list:installed",
|
|
4697
|
+
"bundle:package:list:installed",
|
|
4698
|
+
"bundle:list:package:installed",
|
|
4699
|
+
"bundle:list:installed:package",
|
|
4700
|
+
"package:list:bundle:installed",
|
|
4701
|
+
"list:package:bundle:installed",
|
|
4702
|
+
"list:bundle:package:installed",
|
|
4703
|
+
"list:bundle:installed:package",
|
|
4704
|
+
"package:list:installed:bundle",
|
|
4705
|
+
"list:package:installed:bundle",
|
|
4706
|
+
"list:installed:package:bundle",
|
|
4707
|
+
"list:installed:bundle:package"
|
|
4624
4708
|
]
|
|
4625
4709
|
},
|
|
4626
4710
|
"package:bundle:version:create": {
|
|
@@ -6227,5 +6311,5 @@
|
|
|
6227
6311
|
]
|
|
6228
6312
|
}
|
|
6229
6313
|
},
|
|
6230
|
-
"version": "2.
|
|
6314
|
+
"version": "2.26.0"
|
|
6231
6315
|
}
|
package/package.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-packaging",
|
|
3
3
|
"description": "SF plugin that support Salesforce Packaging Platform",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.26.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"enableO11y": true,
|
|
8
8
|
"o11yUploadEndpoint": "https://794testsite.my.site.com/byolwr/webruntime/log/metrics",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@oclif/core": "^4",
|
|
11
|
-
"@salesforce/core": "^8.27.
|
|
11
|
+
"@salesforce/core": "^8.27.1",
|
|
12
12
|
"@salesforce/kit": "^3.2.6",
|
|
13
|
-
"@salesforce/packaging": "^4.
|
|
13
|
+
"@salesforce/packaging": "^4.22.0",
|
|
14
14
|
"@salesforce/sf-plugins-core": "^12.2.6",
|
|
15
15
|
"chalk": "^5.6.2"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@oclif/plugin-command-snapshot": "^5.3.13",
|
|
19
|
-
"@salesforce/cli-plugins-testkit": "^5.3.
|
|
19
|
+
"@salesforce/cli-plugins-testkit": "^5.3.50",
|
|
20
20
|
"@salesforce/dev-scripts": "^11.0.4",
|
|
21
21
|
"@salesforce/plugin-command-reference": "^3.1.82",
|
|
22
22
|
"eslint-plugin-sf-plugin": "^1.20.32",
|
|
23
23
|
"minimatch": "^10.2.4",
|
|
24
|
-
"oclif": "^4.22.
|
|
24
|
+
"oclif": "^4.22.96",
|
|
25
25
|
"ts-node": "^10.9.2",
|
|
26
26
|
"typescript": "^5.9.3"
|
|
27
27
|
},
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
"exports": "./lib/index.js",
|
|
251
251
|
"type": "module",
|
|
252
252
|
"sfdx": {
|
|
253
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/2.
|
|
254
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/2.
|
|
253
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/2.26.0.crt",
|
|
254
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/2.26.0.sig"
|
|
255
255
|
}
|
|
256
256
|
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/PackageBundleInstalledListResults",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"PackageBundleInstalledListResults": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"items": {
|
|
8
|
+
"$ref": "#/definitions/BundleSObjects.InstalledPackageBundleVersion"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"BundleSObjects.InstalledPackageBundleVersion": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"Id": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"BundleName": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"BundleId": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"BundleVersionId": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"BundleVersionName": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"MajorVersion": {
|
|
30
|
+
"type": "number"
|
|
31
|
+
},
|
|
32
|
+
"MinorVersion": {
|
|
33
|
+
"type": "number"
|
|
34
|
+
},
|
|
35
|
+
"Description": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"InstalledDate": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"LastUpgradedDate": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"Components": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"items": {
|
|
47
|
+
"$ref": "#/definitions/BundleSObjects.InstalledPackageBundleVersionComponent"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": [
|
|
52
|
+
"Id",
|
|
53
|
+
"BundleName",
|
|
54
|
+
"BundleId",
|
|
55
|
+
"BundleVersionId",
|
|
56
|
+
"BundleVersionName",
|
|
57
|
+
"MajorVersion",
|
|
58
|
+
"MinorVersion",
|
|
59
|
+
"Description",
|
|
60
|
+
"InstalledDate",
|
|
61
|
+
"LastUpgradedDate",
|
|
62
|
+
"Components"
|
|
63
|
+
],
|
|
64
|
+
"additionalProperties": false
|
|
65
|
+
},
|
|
66
|
+
"BundleSObjects.InstalledPackageBundleVersionComponent": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"properties": {
|
|
69
|
+
"ExpectedPackageName": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"ExpectedPackageVersionNumber": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"ActualPackageName": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"ActualPackageVersionNumber": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": [
|
|
83
|
+
"ExpectedPackageName",
|
|
84
|
+
"ExpectedPackageVersionNumber",
|
|
85
|
+
"ActualPackageName",
|
|
86
|
+
"ActualPackageVersionNumber"
|
|
87
|
+
],
|
|
88
|
+
"additionalProperties": false
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -1,25 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$ref": "#/definitions/
|
|
3
|
+
"$ref": "#/definitions/BundleUninstallResult",
|
|
4
4
|
"definitions": {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"items": {
|
|
8
|
-
"$ref": "#/definitions/BundleSObjects.PkgBundleVersionInstallReqResult"
|
|
9
|
-
}
|
|
5
|
+
"BundleUninstallResult": {
|
|
6
|
+
"$ref": "#/definitions/BundleSObjects.PkgBundleVerUninstallReqResult"
|
|
10
7
|
},
|
|
11
|
-
"BundleSObjects.
|
|
8
|
+
"BundleSObjects.PkgBundleVerUninstallReqResult": {
|
|
12
9
|
"type": "object",
|
|
13
10
|
"additionalProperties": false,
|
|
14
11
|
"properties": {
|
|
15
12
|
"Id": {
|
|
16
13
|
"type": "string"
|
|
17
14
|
},
|
|
18
|
-
"
|
|
19
|
-
"$ref": "#/definitions/BundleSObjects.
|
|
20
|
-
},
|
|
21
|
-
"ValidationError": {
|
|
22
|
-
"type": "string"
|
|
15
|
+
"UninstallStatus": {
|
|
16
|
+
"$ref": "#/definitions/BundleSObjects.PkgBundleVersionUninstallReqStatus"
|
|
23
17
|
},
|
|
24
18
|
"CreatedDate": {
|
|
25
19
|
"type": "string"
|
|
@@ -36,28 +30,18 @@
|
|
|
36
30
|
"PackageBundleVersionId": {
|
|
37
31
|
"type": "string"
|
|
38
32
|
},
|
|
39
|
-
"
|
|
33
|
+
"InstalledPkgBundleVersionId": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"ValidationError": {
|
|
40
37
|
"type": "string"
|
|
41
38
|
}
|
|
42
39
|
},
|
|
43
|
-
"required": [
|
|
44
|
-
"CreatedById",
|
|
45
|
-
"CreatedDate",
|
|
46
|
-
"DevelopmentOrganization",
|
|
47
|
-
"Id",
|
|
48
|
-
"InstallStatus",
|
|
49
|
-
"PackageBundleVersionId",
|
|
50
|
-
"ValidationError"
|
|
51
|
-
]
|
|
40
|
+
"required": ["CreatedById", "CreatedDate", "Id", "PackageBundleVersionId", "UninstallStatus"]
|
|
52
41
|
},
|
|
53
|
-
"BundleSObjects.
|
|
42
|
+
"BundleSObjects.PkgBundleVersionUninstallReqStatus": {
|
|
54
43
|
"type": "string",
|
|
55
|
-
"enum": [
|
|
56
|
-
"Queued",
|
|
57
|
-
"InProgress",
|
|
58
|
-
"Success",
|
|
59
|
-
"Error"
|
|
60
|
-
]
|
|
44
|
+
"enum": ["Queued", "InProgress", "Success", "Error"]
|
|
61
45
|
}
|
|
62
46
|
}
|
|
63
|
-
}
|
|
47
|
+
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2026, Salesforce, Inc.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { Flags, loglevel, orgApiVersionFlagWithDeprecations, requiredOrgFlagWithDeprecations, SfCommand, } from '@salesforce/sf-plugins-core';
|
|
17
|
-
import { Messages } from '@salesforce/core';
|
|
18
|
-
import { BundleSObjects, PackageBundleInstall } from '@salesforce/packaging';
|
|
19
|
-
import chalk from 'chalk';
|
|
20
|
-
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
21
|
-
const messages = Messages.loadMessages('@salesforce/plugin-packaging', 'bundle_install_list');
|
|
22
|
-
export class PackageBundleInstallListCommand extends SfCommand {
|
|
23
|
-
static hidden = true;
|
|
24
|
-
static state = 'beta';
|
|
25
|
-
static summary = messages.getMessage('summary');
|
|
26
|
-
static description = messages.getMessage('description');
|
|
27
|
-
static examples = messages.getMessages('examples');
|
|
28
|
-
static flags = {
|
|
29
|
-
loglevel,
|
|
30
|
-
'target-org': requiredOrgFlagWithDeprecations,
|
|
31
|
-
'api-version': orgApiVersionFlagWithDeprecations,
|
|
32
|
-
'created-last-days': Flags.integer({
|
|
33
|
-
char: 'c',
|
|
34
|
-
summary: messages.getMessage('flags.created-last-days.summary'),
|
|
35
|
-
}),
|
|
36
|
-
status: Flags.custom({
|
|
37
|
-
options: [
|
|
38
|
-
BundleSObjects.PkgBundleVersionInstallReqStatus.queued,
|
|
39
|
-
BundleSObjects.PkgBundleVersionInstallReqStatus.inProgress,
|
|
40
|
-
BundleSObjects.PkgBundleVersionInstallReqStatus.success,
|
|
41
|
-
BundleSObjects.PkgBundleVersionInstallReqStatus.error,
|
|
42
|
-
],
|
|
43
|
-
})({
|
|
44
|
-
char: 's',
|
|
45
|
-
summary: messages.getMessage('flags.status.summary'),
|
|
46
|
-
}),
|
|
47
|
-
verbose: Flags.boolean({
|
|
48
|
-
summary: messages.getMessage('flags.verbose.summary'),
|
|
49
|
-
}),
|
|
50
|
-
};
|
|
51
|
-
connection;
|
|
52
|
-
async run() {
|
|
53
|
-
const { flags } = await this.parse(PackageBundleInstallListCommand);
|
|
54
|
-
this.connection = flags['target-org'].getConnection(flags['api-version']);
|
|
55
|
-
const results = await PackageBundleInstall.getInstallStatuses(this.connection, flags.status, flags['created-last-days']);
|
|
56
|
-
if (results.length === 0) {
|
|
57
|
-
this.warn('No results found');
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
const data = results.map((r) => ({
|
|
61
|
-
Id: r.Id ?? 'N/A',
|
|
62
|
-
Status: r.InstallStatus ?? 'Unknown',
|
|
63
|
-
'Package Bundle Version Id': r.PackageBundleVersionId ?? 'N/A',
|
|
64
|
-
'Development Organization': r.DevelopmentOrganization ?? 'N/A',
|
|
65
|
-
'Created Date': r.CreatedDate ?? 'N/A',
|
|
66
|
-
'Created By': r.CreatedById ?? 'N/A',
|
|
67
|
-
...(flags.verbose
|
|
68
|
-
? {
|
|
69
|
-
'Validation Error': r.ValidationError ?? 'N/A',
|
|
70
|
-
}
|
|
71
|
-
: {}),
|
|
72
|
-
}));
|
|
73
|
-
this.table({
|
|
74
|
-
data,
|
|
75
|
-
overflow: 'wrap',
|
|
76
|
-
title: chalk.blue(`Package Bundle Install Requests [${results.length}]`),
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
return results;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
//# sourceMappingURL=list.js.map
|