@salesforce/plugin-packaging 2.20.6-preview.0 → 2.22.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 CHANGED
@@ -154,7 +154,7 @@ FLAG DESCRIPTIONS
154
154
  --installation-key-bypass flag is required.
155
155
  ```
156
156
 
157
- _See code: [src/commands/package/convert.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/convert.ts)_
157
+ _See code: [src/commands/package/convert.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/convert.ts)_
158
158
 
159
159
  ## `sf package create`
160
160
 
@@ -233,7 +233,7 @@ FLAG DESCRIPTIONS
233
233
  Org-Dependent Unlocked Packages" in the Salesforce DX Developer Guide.
234
234
  ```
235
235
 
236
- _See code: [src/commands/package/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/create.ts)_
236
+ _See code: [src/commands/package/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/create.ts)_
237
237
 
238
238
  ## `sf package delete`
239
239
 
@@ -275,7 +275,7 @@ EXAMPLES
275
275
  $ sf package delete --package 0Ho... --target-dev-hub devhub@example.com
276
276
  ```
277
277
 
278
- _See code: [src/commands/package/delete.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/delete.ts)_
278
+ _See code: [src/commands/package/delete.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/delete.ts)_
279
279
 
280
280
  ## `sf package install`
281
281
 
@@ -374,7 +374,7 @@ FLAG DESCRIPTIONS
374
374
  - Delete: Delete removed components, except for custom objects and custom fields, that don't have dependencies.
375
375
  ```
376
376
 
377
- _See code: [src/commands/package/install.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/install.ts)_
377
+ _See code: [src/commands/package/install.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/install.ts)_
378
378
 
379
379
  ## `sf package install report`
380
380
 
@@ -407,7 +407,7 @@ EXAMPLES
407
407
  $ sf package install report --request-id 0Hf... --target-org me@example.com
408
408
  ```
409
409
 
410
- _See code: [src/commands/package/install/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/install/report.ts)_
410
+ _See code: [src/commands/package/install/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/install/report.ts)_
411
411
 
412
412
  ## `sf package installed list`
413
413
 
@@ -439,7 +439,7 @@ EXAMPLES
439
439
  $ sf package installed list --target-org me@example.com
440
440
  ```
441
441
 
442
- _See code: [src/commands/package/installed/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/installed/list.ts)_
442
+ _See code: [src/commands/package/installed/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/installed/list.ts)_
443
443
 
444
444
  ## `sf package list`
445
445
 
@@ -477,7 +477,7 @@ EXAMPLES
477
477
  $ sf package list --target-dev-hub devhub@example.com --verbose
478
478
  ```
479
479
 
480
- _See code: [src/commands/package/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/list.ts)_
480
+ _See code: [src/commands/package/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/list.ts)_
481
481
 
482
482
  ## `sf package push-upgrade abort`
483
483
 
@@ -516,7 +516,7 @@ EXAMPLES
516
516
  $ sf package push-upgrade abort --push-request-id 0DV... --target-dev-hub devhub@example.com
517
517
  ```
518
518
 
519
- _See code: [src/commands/package/push-upgrade/abort.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/push-upgrade/abort.ts)_
519
+ _See code: [src/commands/package/push-upgrade/abort.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/push-upgrade/abort.ts)_
520
520
 
521
521
  ## `sf package push-upgrade list`
522
522
 
@@ -575,7 +575,7 @@ EXAMPLES
575
575
  $ sf package push-upgrade list --package 033xyz –-status Failed
576
576
  ```
577
577
 
578
- _See code: [src/commands/package/push-upgrade/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/push-upgrade/list.ts)_
578
+ _See code: [src/commands/package/push-upgrade/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/push-upgrade/list.ts)_
579
579
 
580
580
  ## `sf package push-upgrade report`
581
581
 
@@ -617,7 +617,7 @@ EXAMPLES
617
617
  $ sf package push-upgrade report --push-request-id 0DV... --target-dev-hub devhub@example.com
618
618
  ```
619
619
 
620
- _See code: [src/commands/package/push-upgrade/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/push-upgrade/report.ts)_
620
+ _See code: [src/commands/package/push-upgrade/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/push-upgrade/report.ts)_
621
621
 
622
622
  ## `sf package push-upgrade schedule`
623
623
 
@@ -704,7 +704,7 @@ FLAG DESCRIPTIONS
704
704
  Overrides the value of the target-dev-hub configuration variable, if set.
705
705
  ```
706
706
 
707
- _See code: [src/commands/package/push-upgrade/schedule.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/push-upgrade/schedule.ts)_
707
+ _See code: [src/commands/package/push-upgrade/schedule.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/push-upgrade/schedule.ts)_
708
708
 
709
709
  ## `sf package uninstall`
710
710
 
@@ -752,7 +752,7 @@ EXAMPLES
752
752
  $ sf package uninstall --package "Undesirable Package Alias"
753
753
  ```
754
754
 
755
- _See code: [src/commands/package/uninstall.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/uninstall.ts)_
755
+ _See code: [src/commands/package/uninstall.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/uninstall.ts)_
756
756
 
757
757
  ## `sf package uninstall report`
758
758
 
@@ -785,7 +785,7 @@ EXAMPLES
785
785
  $ sf package uninstall report --request-id 06y... --target-org me@example.com
786
786
  ```
787
787
 
788
- _See code: [src/commands/package/uninstall/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/uninstall/report.ts)_
788
+ _See code: [src/commands/package/uninstall/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/uninstall/report.ts)_
789
789
 
790
790
  ## `sf package update`
791
791
 
@@ -794,7 +794,7 @@ Update package details.
794
794
  ```
795
795
  USAGE
796
796
  $ sf package update -v <value> -p <value> [--json] [--flags-dir <value>] [--api-version <value>] [-n <value>] [-d
797
- <value>] [-o <value>] [--enable-app-analytics]
797
+ <value>] [-o <value>] [--enable-app-analytics] [-r <value>] [--skip-ancestor-check]
798
798
 
799
799
  FLAGS
800
800
  -d, --description=<value> New description of the package.
@@ -802,11 +802,13 @@ FLAGS
802
802
  -o, --error-notification-username=<value> Active Dev Hub user designated to receive email notifications for package
803
803
  errors.
804
804
  -p, --package=<value> (required) ID (starts with 0Ho) or alias of the package to update.
805
+ -r, --recommended-version-id=<value> Package version ID that subscribers are notified to install or upgrade to.
805
806
  -v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the
806
807
  `target-dev-hub` configuration variable is already set.
807
808
  --api-version=<value> Override the api version used for api requests made by this command
808
809
  --[no-]enable-app-analytics Enable AppExchange App Analytics usage data collection on this managed
809
810
  package and its components.
811
+ --skip-ancestor-check Bypass the ancestry check for setting a recommended version.
810
812
 
811
813
  GLOBAL FLAGS
812
814
  --flags-dir=<value> Import flag values from a directory.
@@ -838,9 +840,15 @@ FLAG DESCRIPTIONS
838
840
 
839
841
  Email notifications include information about unhandled Apex exceptions, and install, upgrade, or uninstall failures
840
842
  associated with your package.
843
+
844
+ -r, --recommended-version-id=<value> Package version ID that subscribers are notified to install or upgrade to.
845
+
846
+ Specify the recommended package version for subscribers to install. Subscribers are notified to install the package
847
+ version ID that you specify. If the subscribers have a different version of the same package installed, they're
848
+ notified to upgrade to the recommended version.
841
849
  ```
842
850
 
843
- _See code: [src/commands/package/update.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/update.ts)_
851
+ _See code: [src/commands/package/update.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/update.ts)_
844
852
 
845
853
  ## `sf package version create`
846
854
 
@@ -1015,7 +1023,7 @@ FLAG DESCRIPTIONS
1015
1023
  periods of no output from commands.
1016
1024
  ```
1017
1025
 
1018
- _See code: [src/commands/package/version/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/version/create.ts)_
1026
+ _See code: [src/commands/package/version/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/version/create.ts)_
1019
1027
 
1020
1028
  ## `sf package version create list`
1021
1029
 
@@ -1076,7 +1084,7 @@ EXAMPLES
1076
1084
  $ sf package version create list --created-last-days 0 --status Success
1077
1085
  ```
1078
1086
 
1079
- _See code: [src/commands/package/version/create/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/version/create/list.ts)_
1087
+ _See code: [src/commands/package/version/create/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/version/create/list.ts)_
1080
1088
 
1081
1089
  ## `sf package version create report`
1082
1090
 
@@ -1119,7 +1127,7 @@ EXAMPLES
1119
1127
  $ sf package version create report --package-create-request-id 08c... --target-dev-hub devhub@example.com
1120
1128
  ```
1121
1129
 
1122
- _See code: [src/commands/package/version/create/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/version/create/report.ts)_
1130
+ _See code: [src/commands/package/version/create/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/version/create/report.ts)_
1123
1131
 
1124
1132
  ## `sf package version delete`
1125
1133
 
@@ -1160,7 +1168,7 @@ EXAMPLES
1160
1168
  $ sf package version delete --package 04t... --target-org devhub@example.com
1161
1169
  ```
1162
1170
 
1163
- _See code: [src/commands/package/version/delete.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/version/delete.ts)_
1171
+ _See code: [src/commands/package/version/delete.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/version/delete.ts)_
1164
1172
 
1165
1173
  ## `sf package version displayancestry`
1166
1174
 
@@ -1220,7 +1228,7 @@ FLAG DESCRIPTIONS
1220
1228
  You can use the DOT code output in graph visualization software to create tree visualizations.
1221
1229
  ```
1222
1230
 
1223
- _See code: [src/commands/package/version/displayancestry.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/version/displayancestry.ts)_
1231
+ _See code: [src/commands/package/version/displayancestry.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/version/displayancestry.ts)_
1224
1232
 
1225
1233
  ## `sf package version displaydependencies`
1226
1234
 
@@ -1282,7 +1290,7 @@ FLAG DESCRIPTIONS
1282
1290
  package, which must be installed last.
1283
1291
  ```
1284
1292
 
1285
- _See code: [src/commands/package/version/displaydependencies.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/version/displaydependencies.ts)_
1293
+ _See code: [src/commands/package/version/displaydependencies.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/version/displaydependencies.ts)_
1286
1294
 
1287
1295
  ## `sf package version list`
1288
1296
 
@@ -1358,7 +1366,7 @@ EXAMPLES
1358
1366
  $ sf package version list --packages exp-mgr,exp-mgr-util --released --modified-last-days 0
1359
1367
  ```
1360
1368
 
1361
- _See code: [src/commands/package/version/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/version/list.ts)_
1369
+ _See code: [src/commands/package/version/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/version/list.ts)_
1362
1370
 
1363
1371
  ## `sf package version promote`
1364
1372
 
@@ -1402,7 +1410,7 @@ EXAMPLES
1402
1410
  $ sf package version promote --package "Awesome Package Alias"
1403
1411
  ```
1404
1412
 
1405
- _See code: [src/commands/package/version/promote.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/version/promote.ts)_
1413
+ _See code: [src/commands/package/version/promote.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/version/promote.ts)_
1406
1414
 
1407
1415
  ## `sf package version report`
1408
1416
 
@@ -1442,7 +1450,7 @@ EXAMPLES
1442
1450
  $ sf package version report --package "Your Package Alias" --target-dev-hub devhub@example.com
1443
1451
  ```
1444
1452
 
1445
- _See code: [src/commands/package/version/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/version/report.ts)_
1453
+ _See code: [src/commands/package/version/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/version/report.ts)_
1446
1454
 
1447
1455
  ## `sf package version update`
1448
1456
 
@@ -1495,7 +1503,7 @@ EXAMPLES
1495
1503
  $ sf package version update --package 04t... --version-description "New Package Version Description"
1496
1504
  ```
1497
1505
 
1498
- _See code: [src/commands/package/version/update.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package/version/update.ts)_
1506
+ _See code: [src/commands/package/version/update.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package/version/update.ts)_
1499
1507
 
1500
1508
  ## `sf package1 version create`
1501
1509
 
@@ -1562,7 +1570,7 @@ FLAG DESCRIPTIONS
1562
1570
  subscribers.
1563
1571
  ```
1564
1572
 
1565
- _See code: [src/commands/package1/version/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package1/version/create.ts)_
1573
+ _See code: [src/commands/package1/version/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package1/version/create.ts)_
1566
1574
 
1567
1575
  ## `sf package1 version create get`
1568
1576
 
@@ -1595,7 +1603,7 @@ EXAMPLES
1595
1603
  $ sf package1 version create get --request-id 0HD... --target-org myorg@example.com
1596
1604
  ```
1597
1605
 
1598
- _See code: [src/commands/package1/version/create/get.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package1/version/create/get.ts)_
1606
+ _See code: [src/commands/package1/version/create/get.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package1/version/create/get.ts)_
1599
1607
 
1600
1608
  ## `sf package1 version display`
1601
1609
 
@@ -1629,7 +1637,7 @@ EXAMPLES
1629
1637
  $ sf package1 version display --package-version-id 04t... --target-org myorg@example.com
1630
1638
  ```
1631
1639
 
1632
- _See code: [src/commands/package1/version/display.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package1/version/display.ts)_
1640
+ _See code: [src/commands/package1/version/display.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package1/version/display.ts)_
1633
1641
 
1634
1642
  ## `sf package1 version list`
1635
1643
 
@@ -1667,6 +1675,6 @@ FLAG DESCRIPTIONS
1667
1675
  If not specified, shows all versions for all packages (managed and unmanaged) in the org.
1668
1676
  ```
1669
1677
 
1670
- _See code: [src/commands/package1/version/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6-preview.0/src/commands/package1/version/list.ts)_
1678
+ _See code: [src/commands/package1/version/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.22.0/src/commands/package1/version/list.ts)_
1671
1679
 
1672
1680
  <!-- commandsstop -->
@@ -15,6 +15,8 @@ export declare class PackageUpdateCommand extends SfCommand<PackageSaveResult> {
15
15
  description: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
16
  'error-notification-username': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
17
  'enable-app-analytics': import("@oclif/core/interfaces").BooleanFlag<boolean>;
18
+ 'recommended-version-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
+ 'skip-ancestor-check': import("@oclif/core/interfaces").BooleanFlag<boolean>;
18
20
  };
19
21
  run(): Promise<PackageSaveResult>;
20
22
  }
@@ -56,6 +56,14 @@ export class PackageUpdateCommand extends SfCommand {
56
56
  summary: messages.getMessage('flags.enable-app-analytics.summary'),
57
57
  allowNo: true,
58
58
  }),
59
+ 'recommended-version-id': Flags.string({
60
+ char: 'r',
61
+ summary: messages.getMessage('flags.recommended-version-id.summary'),
62
+ description: messages.getMessage('flags.recommended-version-id.description'),
63
+ }),
64
+ 'skip-ancestor-check': Flags.boolean({
65
+ summary: messages.getMessage('flags.skip-ancestor-check.summary'),
66
+ }),
59
67
  };
60
68
  async run() {
61
69
  const { flags } = await this.parse(PackageUpdateCommand);
@@ -70,7 +78,8 @@ export class PackageUpdateCommand extends SfCommand {
70
78
  Description: flags.description,
71
79
  PackageErrorUsername: flags['error-notification-username'],
72
80
  AppAnalyticsEnabled: flags['enable-app-analytics'],
73
- });
81
+ RecommendedVersionId: flags['recommended-version-id'],
82
+ }, flags['skip-ancestor-check']);
74
83
  this.logSuccess(messages.getMessage('success', [pkg.getId()]));
75
84
  return result;
76
85
  }
@@ -1 +1 @@
1
- {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/commands/package/update.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,iCAAiC,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC5G,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,OAAO,EAAqB,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,eAA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,EAAE,MAAM,eAAe,EAAE;SACjC,CAAC,CAAC;QAEH,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,CAC7B;YACE,EAAE,EAAE,GAAG,CAAC,KAAK,EAAE;YACf,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,oBAAoB,EAAE,KAAK,CAAC,6BAA6B,CAAC;YAC1D,mBAAmB,EAAE,KAAK,CAAC,sBAAsB,CAAC;YAClD,oBAAoB,EAAE,KAAK,CAAC,wBAAwB,CAAC;SACtD,EACD,KAAK,CAAC,qBAAqB,CAAC,CAC7B,CAAC;QAEF,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;QAE/D,OAAO,MAAM,CAAC;IAChB,CAAC"}
@@ -37,3 +37,15 @@ Enable AppExchange App Analytics usage data collection on this managed package a
37
37
  # success
38
38
 
39
39
  Successfully updated the package. %s
40
+
41
+ # flags.recommended-version-id.summary
42
+
43
+ Package version ID that subscribers are notified to install or upgrade to.
44
+
45
+ # flags.recommended-version-id.description
46
+
47
+ Specify the recommended package version for subscribers to install. Subscribers are notified to install the package version ID that you specify. If the subscribers have a different version of the same package installed, they're notified to upgrade to the recommended version.
48
+
49
+ # flags.skip-ancestor-check.summary
50
+
51
+ Bypass the ancestry check for setting a recommended version.
@@ -1022,6 +1022,21 @@
1022
1022
  "summary": "Enable AppExchange App Analytics usage data collection on this managed package and its components.",
1023
1023
  "allowNo": true,
1024
1024
  "type": "boolean"
1025
+ },
1026
+ "recommended-version-id": {
1027
+ "char": "r",
1028
+ "description": "Specify the recommended package version for subscribers to install. Subscribers are notified to install the package version ID that you specify. If the subscribers have a different version of the same package installed, they're notified to upgrade to the recommended version.",
1029
+ "name": "recommended-version-id",
1030
+ "summary": "Package version ID that subscribers are notified to install or upgrade to.",
1031
+ "hasDynamicHelp": false,
1032
+ "multiple": false,
1033
+ "type": "option"
1034
+ },
1035
+ "skip-ancestor-check": {
1036
+ "name": "skip-ancestor-check",
1037
+ "summary": "Bypass the ancestry check for setting a recommended version.",
1038
+ "allowNo": false,
1039
+ "type": "boolean"
1025
1040
  }
1026
1041
  },
1027
1042
  "hasDynamicHelp": true,
@@ -1729,6 +1744,134 @@
1729
1744
  "list:installed:package"
1730
1745
  ]
1731
1746
  },
1747
+ "package:uninstall:report": {
1748
+ "aliases": [
1749
+ "force:package:uninstall:report"
1750
+ ],
1751
+ "args": {},
1752
+ "deprecateAliases": true,
1753
+ "examples": [
1754
+ "Retrieve the status of a package uninstall in your default org using the specified request ID:\n<%= config.bin %> <%= command.id %> --request-id 06y...",
1755
+ "Similar to previous example, but use the org with username me@example.com:\n<%= config.bin %> <%= command.id %> --request-id 06y... --target-org me@example.com"
1756
+ ],
1757
+ "flags": {
1758
+ "json": {
1759
+ "description": "Format output as json.",
1760
+ "helpGroup": "GLOBAL",
1761
+ "name": "json",
1762
+ "allowNo": false,
1763
+ "type": "boolean"
1764
+ },
1765
+ "flags-dir": {
1766
+ "helpGroup": "GLOBAL",
1767
+ "name": "flags-dir",
1768
+ "summary": "Import flag values from a directory.",
1769
+ "hasDynamicHelp": false,
1770
+ "multiple": false,
1771
+ "type": "option"
1772
+ },
1773
+ "loglevel": {
1774
+ "deprecated": {
1775
+ "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."
1776
+ },
1777
+ "hidden": true,
1778
+ "name": "loglevel",
1779
+ "hasDynamicHelp": false,
1780
+ "multiple": false,
1781
+ "type": "option"
1782
+ },
1783
+ "target-org": {
1784
+ "aliases": [
1785
+ "targetusername",
1786
+ "u"
1787
+ ],
1788
+ "char": "o",
1789
+ "deprecateAliases": true,
1790
+ "name": "target-org",
1791
+ "noCacheDefault": true,
1792
+ "required": true,
1793
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1794
+ "hasDynamicHelp": true,
1795
+ "multiple": false,
1796
+ "type": "option"
1797
+ },
1798
+ "api-version": {
1799
+ "aliases": [
1800
+ "apiversion"
1801
+ ],
1802
+ "deprecateAliases": true,
1803
+ "description": "Override the api version used for api requests made by this command",
1804
+ "name": "api-version",
1805
+ "hasDynamicHelp": false,
1806
+ "multiple": false,
1807
+ "type": "option"
1808
+ },
1809
+ "request-id": {
1810
+ "aliases": [
1811
+ "requestid"
1812
+ ],
1813
+ "char": "i",
1814
+ "deprecateAliases": true,
1815
+ "name": "request-id",
1816
+ "required": true,
1817
+ "summary": "ID of the package uninstall request you want to check; starts with 06y.",
1818
+ "hasDynamicHelp": false,
1819
+ "multiple": false,
1820
+ "type": "option"
1821
+ }
1822
+ },
1823
+ "hasDynamicHelp": true,
1824
+ "hiddenAliases": [],
1825
+ "id": "package:uninstall:report",
1826
+ "pluginAlias": "@salesforce/plugin-packaging",
1827
+ "pluginName": "@salesforce/plugin-packaging",
1828
+ "pluginType": "core",
1829
+ "strict": true,
1830
+ "summary": "Retrieve the status of a package uninstall request.",
1831
+ "enableJsonFlag": true,
1832
+ "isESM": true,
1833
+ "relativePath": [
1834
+ "lib",
1835
+ "commands",
1836
+ "package",
1837
+ "uninstall",
1838
+ "report.js"
1839
+ ],
1840
+ "aliasPermutations": [
1841
+ "force:package:uninstall:report",
1842
+ "package:force:uninstall:report",
1843
+ "package:uninstall:force:report",
1844
+ "package:uninstall:report:force",
1845
+ "force:uninstall:package:report",
1846
+ "uninstall:force:package:report",
1847
+ "uninstall:package:force:report",
1848
+ "uninstall:package:report:force",
1849
+ "force:uninstall:report:package",
1850
+ "uninstall:force:report:package",
1851
+ "uninstall:report:force:package",
1852
+ "uninstall:report:package:force",
1853
+ "force:package:report:uninstall",
1854
+ "package:force:report:uninstall",
1855
+ "package:report:force:uninstall",
1856
+ "package:report:uninstall:force",
1857
+ "force:report:package:uninstall",
1858
+ "report:force:package:uninstall",
1859
+ "report:package:force:uninstall",
1860
+ "report:package:uninstall:force",
1861
+ "force:report:uninstall:package",
1862
+ "report:force:uninstall:package",
1863
+ "report:uninstall:force:package",
1864
+ "report:uninstall:package:force"
1865
+ ],
1866
+ "permutations": [
1867
+ "package:uninstall:report",
1868
+ "uninstall:package:report",
1869
+ "uninstall:report:package",
1870
+ "package:report:uninstall",
1871
+ "report:package:uninstall",
1872
+ "report:uninstall:package"
1873
+ ]
1874
+ },
1732
1875
  "package:push-upgrade:abort": {
1733
1876
  "aliases": [],
1734
1877
  "args": {},
@@ -2208,134 +2351,6 @@
2208
2351
  "schedule:push-upgrade:package"
2209
2352
  ]
2210
2353
  },
2211
- "package:uninstall:report": {
2212
- "aliases": [
2213
- "force:package:uninstall:report"
2214
- ],
2215
- "args": {},
2216
- "deprecateAliases": true,
2217
- "examples": [
2218
- "Retrieve the status of a package uninstall in your default org using the specified request ID:\n<%= config.bin %> <%= command.id %> --request-id 06y...",
2219
- "Similar to previous example, but use the org with username me@example.com:\n<%= config.bin %> <%= command.id %> --request-id 06y... --target-org me@example.com"
2220
- ],
2221
- "flags": {
2222
- "json": {
2223
- "description": "Format output as json.",
2224
- "helpGroup": "GLOBAL",
2225
- "name": "json",
2226
- "allowNo": false,
2227
- "type": "boolean"
2228
- },
2229
- "flags-dir": {
2230
- "helpGroup": "GLOBAL",
2231
- "name": "flags-dir",
2232
- "summary": "Import flag values from a directory.",
2233
- "hasDynamicHelp": false,
2234
- "multiple": false,
2235
- "type": "option"
2236
- },
2237
- "loglevel": {
2238
- "deprecated": {
2239
- "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."
2240
- },
2241
- "hidden": true,
2242
- "name": "loglevel",
2243
- "hasDynamicHelp": false,
2244
- "multiple": false,
2245
- "type": "option"
2246
- },
2247
- "target-org": {
2248
- "aliases": [
2249
- "targetusername",
2250
- "u"
2251
- ],
2252
- "char": "o",
2253
- "deprecateAliases": true,
2254
- "name": "target-org",
2255
- "noCacheDefault": true,
2256
- "required": true,
2257
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
2258
- "hasDynamicHelp": true,
2259
- "multiple": false,
2260
- "type": "option"
2261
- },
2262
- "api-version": {
2263
- "aliases": [
2264
- "apiversion"
2265
- ],
2266
- "deprecateAliases": true,
2267
- "description": "Override the api version used for api requests made by this command",
2268
- "name": "api-version",
2269
- "hasDynamicHelp": false,
2270
- "multiple": false,
2271
- "type": "option"
2272
- },
2273
- "request-id": {
2274
- "aliases": [
2275
- "requestid"
2276
- ],
2277
- "char": "i",
2278
- "deprecateAliases": true,
2279
- "name": "request-id",
2280
- "required": true,
2281
- "summary": "ID of the package uninstall request you want to check; starts with 06y.",
2282
- "hasDynamicHelp": false,
2283
- "multiple": false,
2284
- "type": "option"
2285
- }
2286
- },
2287
- "hasDynamicHelp": true,
2288
- "hiddenAliases": [],
2289
- "id": "package:uninstall:report",
2290
- "pluginAlias": "@salesforce/plugin-packaging",
2291
- "pluginName": "@salesforce/plugin-packaging",
2292
- "pluginType": "core",
2293
- "strict": true,
2294
- "summary": "Retrieve the status of a package uninstall request.",
2295
- "enableJsonFlag": true,
2296
- "isESM": true,
2297
- "relativePath": [
2298
- "lib",
2299
- "commands",
2300
- "package",
2301
- "uninstall",
2302
- "report.js"
2303
- ],
2304
- "aliasPermutations": [
2305
- "force:package:uninstall:report",
2306
- "package:force:uninstall:report",
2307
- "package:uninstall:force:report",
2308
- "package:uninstall:report:force",
2309
- "force:uninstall:package:report",
2310
- "uninstall:force:package:report",
2311
- "uninstall:package:force:report",
2312
- "uninstall:package:report:force",
2313
- "force:uninstall:report:package",
2314
- "uninstall:force:report:package",
2315
- "uninstall:report:force:package",
2316
- "uninstall:report:package:force",
2317
- "force:package:report:uninstall",
2318
- "package:force:report:uninstall",
2319
- "package:report:force:uninstall",
2320
- "package:report:uninstall:force",
2321
- "force:report:package:uninstall",
2322
- "report:force:package:uninstall",
2323
- "report:package:force:uninstall",
2324
- "report:package:uninstall:force",
2325
- "force:report:uninstall:package",
2326
- "report:force:uninstall:package",
2327
- "report:uninstall:force:package",
2328
- "report:uninstall:package:force"
2329
- ],
2330
- "permutations": [
2331
- "package:uninstall:report",
2332
- "uninstall:package:report",
2333
- "uninstall:report:package",
2334
- "package:report:uninstall",
2335
- "report:package:uninstall",
2336
- "report:uninstall:package"
2337
- ]
2338
- },
2339
2354
  "package:version:create": {
2340
2355
  "aliases": [
2341
2356
  "force:package:version:create"
@@ -6217,5 +6232,5 @@
6217
6232
  ]
6218
6233
  }
6219
6234
  },
6220
- "version": "2.20.6-preview.0"
6235
+ "version": "2.22.0"
6221
6236
  }
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-packaging",
3
3
  "description": "SF plugin that support Salesforce Packaging Platform",
4
- "version": "2.20.6-preview.0",
4
+ "version": "2.22.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
8
8
  "@oclif/core": "^4",
9
- "@salesforce/core": "^8.23.1",
9
+ "@salesforce/core": "^8.23.2",
10
10
  "@salesforce/kit": "^3.2.4",
11
- "@salesforce/packaging": "^4.15.1",
11
+ "@salesforce/packaging": "^4.17.0",
12
12
  "@salesforce/sf-plugins-core": "^12.2.4",
13
13
  "chalk": "^5.6.2"
14
14
  },
15
15
  "devDependencies": {
16
- "@oclif/plugin-command-snapshot": "^5.3.5",
16
+ "@oclif/plugin-command-snapshot": "^5.3.7",
17
17
  "@salesforce/cli-plugins-testkit": "^5.3.41",
18
18
  "@salesforce/dev-scripts": "^11.0.4",
19
- "@salesforce/plugin-command-reference": "^3.1.68",
19
+ "@salesforce/plugin-command-reference": "^3.1.74",
20
20
  "eslint-plugin-sf-plugin": "^1.20.32",
21
21
  "minimatch": "^10.0.3",
22
- "oclif": "^4.22.27",
22
+ "oclif": "^4.22.32",
23
23
  "ts-node": "^10.9.2",
24
24
  "typescript": "^5.9.3"
25
25
  },
@@ -248,7 +248,7 @@
248
248
  "exports": "./lib/index.js",
249
249
  "type": "module",
250
250
  "sfdx": {
251
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/2.20.6-preview.0.crt",
252
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/2.20.6-preview.0.sig"
251
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/2.22.0.crt",
252
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/2.22.0.sig"
253
253
  }
254
254
  }
@@ -78,6 +78,9 @@
78
78
  },
79
79
  "IsOrgDependent": {
80
80
  "type": "string"
81
+ },
82
+ "RecommendedVersionId": {
83
+ "type": "string"
81
84
  }
82
85
  },
83
86
  "additionalProperties": false