@@ -65,10 +65,12 @@ Convert a managed-released first-generation managed package into a second-genera
65
65
```
66
66
USAGE
67
67
$ sf package convert -v <value> -p <value> [--json] [--flags-dir <value>] [--api-version <value>] [-k <value>] [-f
68
- <value>] [-x] [-w <value>] [-m <value>] [--verbose] [-a <value>]
68
+ <value>] [-x] [-w <value>] [-m <value>] [--verbose] [-a <value>] [-c]
69
69
70
70
FLAGS
71
71
-a, --patch-version=<value> Specific released patch version to be converted.
72
+ -c, --code-coverage Calculate and store the code coverage percentage by running the packaged Apex tests
73
+ included in this package version.
72
74
-f, --definition-file=<value> Path to a definition file that contains features and org preferences that the metadata
73
75
of the package version depends on.
74
76
-k, --installation-key=<value> Installation key for key-protected package.
@@ -99,6 +101,9 @@ DESCRIPTION
99
101
To protect the contents of your package and to prevent unauthorized installation of your package, specify the
100
102
--installation-key flag.
101
103
104
+ To promote a package version to released, you must use the --code-coverage parameter. The package must also meet the
105
+ code coverage requirements.
106
+
102
107
To list package version creation requests in the org, run "sf package version create list".
103
108
104
109
ALIASES
@@ -119,6 +124,14 @@ FLAG DESCRIPTIONS
119
124
120
125
Specify a released patch version as major.minor.patch to convert to a second-generation managed package version.
121
126
127
+ -c, --code-coverage
128
+
129
+ Calculate and store the code coverage percentage by running the packaged Apex tests included in this package
130
+ version.
131
+
132
+ Before you can promote and release a managed package version, the Apex code must meet a minimum 75% code coverage
133
+ requirement.
134
+
122
135
-f, --definition-file=<value>
123
136
124
137
Path to a definition file that contains features and org preferences that the metadata of the package version
@@ -140,7 +153,7 @@ FLAG DESCRIPTIONS
140
153
--installation-key-bypass flag is required.
141
154
```
142
155
143
- _ See code: [ src/commands/package/convert.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/convert.ts ) _
156
+ _ See code: [ src/commands/package/convert.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/convert.ts ) _
144
157
145
158
## ` sf package create `
146
159
@@ -219,7 +232,7 @@ FLAG DESCRIPTIONS
219
232
Org-Dependent Unlocked Packages" in the Salesforce DX Developer Guide.
220
233
```
221
234
222
- _ See code: [ src/commands/package/create.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/create.ts ) _
235
+ _ See code: [ src/commands/package/create.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/create.ts ) _
223
236
224
237
## ` sf package delete `
225
238
@@ -261,7 +274,7 @@ EXAMPLES
261
274
$ sf package delete --package 0Ho... --target-dev-hub [email protected]
262
275
```
263
276
264
- _ See code: [ src/commands/package/delete.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/delete.ts ) _
277
+ _ See code: [ src/commands/package/delete.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/delete.ts ) _
265
278
266
279
## ` sf package install `
267
280
@@ -360,7 +373,7 @@ FLAG DESCRIPTIONS
360
373
- Delete: Delete all removed components that can be safely deleted, and deprecate the other components.
361
374
```
362
375
363
- _ See code: [ src/commands/package/install.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/install.ts ) _
376
+ _ See code: [ src/commands/package/install.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/install.ts ) _
364
377
365
378
## ` sf package install report `
366
379
@@ -393,7 +406,7 @@ EXAMPLES
393
406
$ sf package install report --request-id 0Hf... --target-org [email protected]
394
407
```
395
408
396
- _ See code: [ src/commands/package/install/report.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/install/report.ts ) _
409
+ _ See code: [ src/commands/package/install/report.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/install/report.ts ) _
397
410
398
411
## ` sf package installed list `
399
412
@@ -425,7 +438,7 @@ EXAMPLES
425
438
$ sf package installed list --target-org [email protected]
426
439
```
427
440
428
- _ See code: [ src/commands/package/installed/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/installed/list.ts ) _
441
+ _ See code: [ src/commands/package/installed/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/installed/list.ts ) _
429
442
430
443
## ` sf package list `
431
444
@@ -463,7 +476,7 @@ EXAMPLES
463
476
$ sf package list --target-dev-hub [email protected] --verbose
464
477
```
465
478
466
- _ See code: [ src/commands/package/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/list.ts ) _
479
+ _ See code: [ src/commands/package/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/list.ts ) _
467
480
468
481
## ` sf package push-upgrade abort `
469
482
@@ -503,7 +516,7 @@ EXAMPLES
503
516
$ sf package push-upgrade abort --push-request-id 0DV... --target-dev-hub [email protected]
504
517
```
505
518
506
- _ See code: [ src/commands/package/push-upgrade/abort.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /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.16.0 /src/commands/package/push-upgrade/abort.ts ) _
507
520
508
521
## ` sf package push-upgrade list `
509
522
@@ -562,7 +575,7 @@ EXAMPLES
562
575
$ sf package push-upgrade list --package 033xyz –-status Failed
563
576
```
564
577
565
- _ See code: [ src/commands/package/push-upgrade/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /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.16.0 /src/commands/package/push-upgrade/list.ts ) _
566
579
567
580
## ` sf package push-upgrade report `
568
581
@@ -604,7 +617,7 @@ EXAMPLES
604
617
$ sf package push-upgrade report --push-request-id 0DV... --target-dev-hub [email protected]
605
618
```
606
619
607
- _ See code: [ src/commands/package/push-upgrade/report.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /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.16.0 /src/commands/package/push-upgrade/report.ts ) _
608
621
609
622
## ` sf package push-upgrade schedule `
610
623
@@ -686,7 +699,7 @@ FLAG DESCRIPTIONS
686
699
Overrides the value of the target-dev-hub configuration variable, if set.
687
700
```
688
701
689
- _ See code: [ src/commands/package/push-upgrade/schedule.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/push-upgrade/schedule.ts ) _
702
+ _ See code: [ src/commands/package/push-upgrade/schedule.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/push-upgrade/schedule.ts ) _
690
703
691
704
## ` sf package uninstall `
692
705
@@ -734,7 +747,7 @@ EXAMPLES
734
747
$ sf package uninstall --package "Undesirable Package Alias"
735
748
```
736
749
737
- _ See code: [ src/commands/package/uninstall.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/uninstall.ts ) _
750
+ _ See code: [ src/commands/package/uninstall.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/uninstall.ts ) _
738
751
739
752
## ` sf package uninstall report `
740
753
@@ -767,7 +780,7 @@ EXAMPLES
767
780
$ sf package uninstall report --request-id 06y... --target-org [email protected]
768
781
```
769
782
770
- _ See code: [ src/commands/package/uninstall/report.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/uninstall/report.ts ) _
783
+ _ See code: [ src/commands/package/uninstall/report.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/uninstall/report.ts ) _
771
784
772
785
## ` sf package update `
773
786
@@ -822,7 +835,7 @@ FLAG DESCRIPTIONS
822
835
associated with your package.
823
836
```
824
837
825
- _ See code: [ src/commands/package/update.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/update.ts ) _
838
+ _ See code: [ src/commands/package/update.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/update.ts ) _
826
839
827
840
## ` sf package version create `
828
841
@@ -997,7 +1010,7 @@ FLAG DESCRIPTIONS
997
1010
periods of no output from commands.
998
1011
```
999
1012
1000
- _ See code: [ src/commands/package/version/create.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/version/create.ts ) _
1013
+ _ See code: [ src/commands/package/version/create.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/version/create.ts ) _
1001
1014
1002
1015
## ` sf package version create list `
1003
1016
@@ -1058,7 +1071,7 @@ EXAMPLES
1058
1071
$ sf package version create list --created-last-days 0 --status Success
1059
1072
```
1060
1073
1061
- _ See code: [ src/commands/package/version/create/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/version/create/list.ts ) _
1074
+ _ See code: [ src/commands/package/version/create/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/version/create/list.ts ) _
1062
1075
1063
1076
## ` sf package version create report `
1064
1077
@@ -1101,7 +1114,7 @@ EXAMPLES
1101
1114
$ sf package version create report --package-create-request-id 08c... --target-dev-hub [email protected]
1102
1115
```
1103
1116
1104
- _ See code: [ src/commands/package/version/create/report.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/version/create/report.ts ) _
1117
+ _ See code: [ src/commands/package/version/create/report.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/version/create/report.ts ) _
1105
1118
1106
1119
## ` sf package version delete `
1107
1120
@@ -1142,7 +1155,7 @@ EXAMPLES
1142
1155
$ sf package version delete --package 04t... --target-org [email protected]
1143
1156
```
1144
1157
1145
- _ See code: [ src/commands/package/version/delete.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/version/delete.ts ) _
1158
+ _ See code: [ src/commands/package/version/delete.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/version/delete.ts ) _
1146
1159
1147
1160
## ` sf package version displayancestry `
1148
1161
@@ -1202,7 +1215,7 @@ FLAG DESCRIPTIONS
1202
1215
You can use the DOT code output in graph visualization software to create tree visualizations.
1203
1216
```
1204
1217
1205
- _ See code: [ src/commands/package/version/displayancestry.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/version/displayancestry.ts ) _
1218
+ _ See code: [ src/commands/package/version/displayancestry.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/version/displayancestry.ts ) _
1206
1219
1207
1220
## ` sf package version list `
1208
1221
@@ -1278,7 +1291,7 @@ EXAMPLES
1278
1291
$ sf package version list --packages exp-mgr,exp-mgr-util --released --modified-last-days 0
1279
1292
```
1280
1293
1281
- _ See code: [ src/commands/package/version/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/version/list.ts ) _
1294
+ _ See code: [ src/commands/package/version/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/version/list.ts ) _
1282
1295
1283
1296
## ` sf package version promote `
1284
1297
@@ -1322,7 +1335,7 @@ EXAMPLES
1322
1335
$ sf package version promote --package "Awesome Package Alias"
1323
1336
```
1324
1337
1325
- _ See code: [ src/commands/package/version/promote.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/version/promote.ts ) _
1338
+ _ See code: [ src/commands/package/version/promote.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/version/promote.ts ) _
1326
1339
1327
1340
## ` sf package version report `
1328
1341
@@ -1362,7 +1375,7 @@ EXAMPLES
1362
1375
$ sf package version report --package "Your Package Alias" --target-dev-hub [email protected]
1363
1376
```
1364
1377
1365
- _ See code: [ src/commands/package/version/report.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/version/report.ts ) _
1378
+ _ See code: [ src/commands/package/version/report.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/version/report.ts ) _
1366
1379
1367
1380
## ` sf package version update `
1368
1381
@@ -1415,7 +1428,7 @@ EXAMPLES
1415
1428
$ sf package version update --package 04t... --version-description "New Package Version Description"
1416
1429
```
1417
1430
1418
- _ See code: [ src/commands/package/version/update.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package/version/update.ts ) _
1431
+ _ See code: [ src/commands/package/version/update.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package/version/update.ts ) _
1419
1432
1420
1433
## ` sf package1 version create `
1421
1434
@@ -1482,7 +1495,7 @@ FLAG DESCRIPTIONS
1482
1495
subscribers.
1483
1496
```
1484
1497
1485
- _ See code: [ src/commands/package1/version/create.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package1/version/create.ts ) _
1498
+ _ See code: [ src/commands/package1/version/create.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package1/version/create.ts ) _
1486
1499
1487
1500
## ` sf package1 version create get `
1488
1501
@@ -1515,7 +1528,7 @@ EXAMPLES
1515
1528
$ sf package1 version create get --request-id 0HD... --target-org [email protected]
1516
1529
```
1517
1530
1518
- _ See code: [ src/commands/package1/version/create/get.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package1/version/create/get.ts ) _
1531
+ _ See code: [ src/commands/package1/version/create/get.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package1/version/create/get.ts ) _
1519
1532
1520
1533
## ` sf package1 version display `
1521
1534
@@ -1549,7 +1562,7 @@ EXAMPLES
1549
1562
$ sf package1 version display --package-version-id 04t... --target-org [email protected]
1550
1563
```
1551
1564
1552
- _ See code: [ src/commands/package1/version/display.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package1/version/display.ts ) _
1565
+ _ See code: [ src/commands/package1/version/display.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package1/version/display.ts ) _
1553
1566
1554
1567
## ` sf package1 version list `
1555
1568
@@ -1587,6 +1600,6 @@ FLAG DESCRIPTIONS
1587
1600
If not specified, shows all versions for all packages (managed and unmanaged) in the org.
1588
1601
```
1589
1602
1590
- _ See code: [ src/commands/package1/version/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.15.4 /src/commands/package1/version/list.ts ) _
1603
+ _ See code: [ src/commands/package1/version/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.16.0 /src/commands/package1/version/list.ts ) _
1591
1604
1592
1605
<!-- commandsstop -->
0 commit comments