@salesforce/plugin-packaging 2.15.3 → 2.16.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
|
@@ -60,20 +60,22 @@ See [DEVELOPING.md](DEVELOPING.md)
|
|
|
60
60
|
|
|
61
61
|
## `sf package convert`
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
Convert a managed-released first-generation managed package into a second-generation managed package.
|
|
64
64
|
|
|
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
|
-
-a, --patch-version=<value> Specific released patch version to
|
|
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.
|
|
75
77
|
-m, --seed-metadata=<value> Directory containing metadata to be deployed prior to conversion.
|
|
76
|
-
-p, --package=<value> (required) ID (starts with 033) of the first-generation package to convert.
|
|
78
|
+
-p, --package=<value> (required) ID (starts with 033) of the first-generation managed package to convert.
|
|
77
79
|
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the `target-dev-hub`
|
|
78
80
|
configuration variable is already set.
|
|
79
81
|
-w, --wait=<value> Minutes to wait for the package version to be created.
|
|
@@ -86,21 +88,21 @@ GLOBAL FLAGS
|
|
|
86
88
|
--json Format output as json.
|
|
87
89
|
|
|
88
90
|
DESCRIPTION
|
|
89
|
-
|
|
91
|
+
Convert a managed-released first-generation managed package into a second-generation managed package.
|
|
90
92
|
|
|
91
|
-
The package
|
|
92
|
-
|
|
93
|
+
The package conversion command automatically selects the latest released major.minor first-generation managed package
|
|
94
|
+
version, and converts it into a second-generation managed package version.
|
|
93
95
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
By default, the latest released non-patch version from the specified first-generation package will be converted. Use
|
|
97
|
-
--patch-version to override the default. Read more about --patch-version option in help
|
|
96
|
+
Use --patch-version to specify a released patch version.
|
|
98
97
|
|
|
99
98
|
To retrieve details about a package version create request, including status and package version ID (04t), run "sf
|
|
100
99
|
package version create report -i 08c...".
|
|
101
100
|
|
|
102
|
-
|
|
103
|
-
installation
|
|
101
|
+
To protect the contents of your package and to prevent unauthorized installation of your package, specify the
|
|
102
|
+
--installation-key flag.
|
|
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.
|
|
104
106
|
|
|
105
107
|
To list package version creation requests in the org, run "sf package version create list".
|
|
106
108
|
|
|
@@ -108,8 +110,8 @@ ALIASES
|
|
|
108
110
|
$ sf force package convert
|
|
109
111
|
|
|
110
112
|
EXAMPLES
|
|
111
|
-
Create a second-generation package version from the first-generation package with the specified ID
|
|
112
|
-
installation key "password123"; uses your default Dev Hub org:
|
|
113
|
+
Create a second-generation managed package version from the first-generation managed package with the specified ID
|
|
114
|
+
and give it the installation key "password123"; uses your default Dev Hub org:
|
|
113
115
|
|
|
114
116
|
$ sf package convert --package 033... --installation-key password123
|
|
115
117
|
|
|
@@ -118,9 +120,17 @@ EXAMPLES
|
|
|
118
120
|
$ sf package convert --package 033... --installation-key password123 --target-dev-hub devhuborg@example.com
|
|
119
121
|
|
|
120
122
|
FLAG DESCRIPTIONS
|
|
121
|
-
-a, --patch-version=<value> Specific released patch version to
|
|
123
|
+
-a, --patch-version=<value> Specific released patch version to be converted.
|
|
124
|
+
|
|
125
|
+
Specify a released patch version as major.minor.patch to convert to a second-generation managed package version.
|
|
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.
|
|
122
131
|
|
|
123
|
-
|
|
132
|
+
Before you can promote and release a managed package version, the Apex code must meet a minimum 75% code coverage
|
|
133
|
+
requirement.
|
|
124
134
|
|
|
125
135
|
-f, --definition-file=<value>
|
|
126
136
|
|
|
@@ -135,7 +145,7 @@ FLAG DESCRIPTIONS
|
|
|
135
145
|
|
|
136
146
|
-m, --seed-metadata=<value> Directory containing metadata to be deployed prior to conversion.
|
|
137
147
|
|
|
138
|
-
The directory containing metadata that will be deployed on the build org prior to attempting conversion.
|
|
148
|
+
The directory containing metadata that will be deployed on the build org prior to attempting package conversion.
|
|
139
149
|
|
|
140
150
|
-x, --installation-key-bypass Bypass the installation key requirement.
|
|
141
151
|
|
|
@@ -143,7 +153,7 @@ FLAG DESCRIPTIONS
|
|
|
143
153
|
--installation-key-bypass flag is required.
|
|
144
154
|
```
|
|
145
155
|
|
|
146
|
-
_See code: [src/commands/package/convert.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
156
|
+
_See code: [src/commands/package/convert.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/convert.ts)_
|
|
147
157
|
|
|
148
158
|
## `sf package create`
|
|
149
159
|
|
|
@@ -222,7 +232,7 @@ FLAG DESCRIPTIONS
|
|
|
222
232
|
Org-Dependent Unlocked Packages" in the Salesforce DX Developer Guide.
|
|
223
233
|
```
|
|
224
234
|
|
|
225
|
-
_See code: [src/commands/package/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
235
|
+
_See code: [src/commands/package/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/create.ts)_
|
|
226
236
|
|
|
227
237
|
## `sf package delete`
|
|
228
238
|
|
|
@@ -264,7 +274,7 @@ EXAMPLES
|
|
|
264
274
|
$ sf package delete --package 0Ho... --target-dev-hub devhub@example.com
|
|
265
275
|
```
|
|
266
276
|
|
|
267
|
-
_See code: [src/commands/package/delete.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
277
|
+
_See code: [src/commands/package/delete.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/delete.ts)_
|
|
268
278
|
|
|
269
279
|
## `sf package install`
|
|
270
280
|
|
|
@@ -363,7 +373,7 @@ FLAG DESCRIPTIONS
|
|
|
363
373
|
- Delete: Delete all removed components that can be safely deleted, and deprecate the other components.
|
|
364
374
|
```
|
|
365
375
|
|
|
366
|
-
_See code: [src/commands/package/install.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
376
|
+
_See code: [src/commands/package/install.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/install.ts)_
|
|
367
377
|
|
|
368
378
|
## `sf package install report`
|
|
369
379
|
|
|
@@ -396,7 +406,7 @@ EXAMPLES
|
|
|
396
406
|
$ sf package install report --request-id 0Hf... --target-org me@example.com
|
|
397
407
|
```
|
|
398
408
|
|
|
399
|
-
_See code: [src/commands/package/install/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
400
410
|
|
|
401
411
|
## `sf package installed list`
|
|
402
412
|
|
|
@@ -428,7 +438,7 @@ EXAMPLES
|
|
|
428
438
|
$ sf package installed list --target-org me@example.com
|
|
429
439
|
```
|
|
430
440
|
|
|
431
|
-
_See code: [src/commands/package/installed/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
432
442
|
|
|
433
443
|
## `sf package list`
|
|
434
444
|
|
|
@@ -466,7 +476,7 @@ EXAMPLES
|
|
|
466
476
|
$ sf package list --target-dev-hub devhub@example.com --verbose
|
|
467
477
|
```
|
|
468
478
|
|
|
469
|
-
_See code: [src/commands/package/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
479
|
+
_See code: [src/commands/package/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/list.ts)_
|
|
470
480
|
|
|
471
481
|
## `sf package push-upgrade abort`
|
|
472
482
|
|
|
@@ -506,7 +516,7 @@ EXAMPLES
|
|
|
506
516
|
$ sf package push-upgrade abort --push-request-id 0DV... --target-dev-hub devhub@example.com
|
|
507
517
|
```
|
|
508
518
|
|
|
509
|
-
_See code: [src/commands/package/push-upgrade/abort.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
510
520
|
|
|
511
521
|
## `sf package push-upgrade list`
|
|
512
522
|
|
|
@@ -565,7 +575,7 @@ EXAMPLES
|
|
|
565
575
|
$ sf package push-upgrade list --package 033xyz –-status Failed
|
|
566
576
|
```
|
|
567
577
|
|
|
568
|
-
_See code: [src/commands/package/push-upgrade/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
569
579
|
|
|
570
580
|
## `sf package push-upgrade report`
|
|
571
581
|
|
|
@@ -607,7 +617,7 @@ EXAMPLES
|
|
|
607
617
|
$ sf package push-upgrade report --push-request-id 0DV... --target-dev-hub devhub@example.com
|
|
608
618
|
```
|
|
609
619
|
|
|
610
|
-
_See code: [src/commands/package/push-upgrade/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
611
621
|
|
|
612
622
|
## `sf package push-upgrade schedule`
|
|
613
623
|
|
|
@@ -689,7 +699,7 @@ FLAG DESCRIPTIONS
|
|
|
689
699
|
Overrides the value of the target-dev-hub configuration variable, if set.
|
|
690
700
|
```
|
|
691
701
|
|
|
692
|
-
_See code: [src/commands/package/push-upgrade/schedule.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
693
703
|
|
|
694
704
|
## `sf package uninstall`
|
|
695
705
|
|
|
@@ -737,7 +747,7 @@ EXAMPLES
|
|
|
737
747
|
$ sf package uninstall --package "Undesirable Package Alias"
|
|
738
748
|
```
|
|
739
749
|
|
|
740
|
-
_See code: [src/commands/package/uninstall.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
750
|
+
_See code: [src/commands/package/uninstall.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/uninstall.ts)_
|
|
741
751
|
|
|
742
752
|
## `sf package uninstall report`
|
|
743
753
|
|
|
@@ -770,7 +780,7 @@ EXAMPLES
|
|
|
770
780
|
$ sf package uninstall report --request-id 06y... --target-org me@example.com
|
|
771
781
|
```
|
|
772
782
|
|
|
773
|
-
_See code: [src/commands/package/uninstall/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
774
784
|
|
|
775
785
|
## `sf package update`
|
|
776
786
|
|
|
@@ -825,7 +835,7 @@ FLAG DESCRIPTIONS
|
|
|
825
835
|
associated with your package.
|
|
826
836
|
```
|
|
827
837
|
|
|
828
|
-
_See code: [src/commands/package/update.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
838
|
+
_See code: [src/commands/package/update.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/update.ts)_
|
|
829
839
|
|
|
830
840
|
## `sf package version create`
|
|
831
841
|
|
|
@@ -1000,7 +1010,7 @@ FLAG DESCRIPTIONS
|
|
|
1000
1010
|
periods of no output from commands.
|
|
1001
1011
|
```
|
|
1002
1012
|
|
|
1003
|
-
_See code: [src/commands/package/version/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
1004
1014
|
|
|
1005
1015
|
## `sf package version create list`
|
|
1006
1016
|
|
|
@@ -1061,7 +1071,7 @@ EXAMPLES
|
|
|
1061
1071
|
$ sf package version create list --created-last-days 0 --status Success
|
|
1062
1072
|
```
|
|
1063
1073
|
|
|
1064
|
-
_See code: [src/commands/package/version/create/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
1065
1075
|
|
|
1066
1076
|
## `sf package version create report`
|
|
1067
1077
|
|
|
@@ -1104,7 +1114,7 @@ EXAMPLES
|
|
|
1104
1114
|
$ sf package version create report --package-create-request-id 08c... --target-dev-hub devhub@example.com
|
|
1105
1115
|
```
|
|
1106
1116
|
|
|
1107
|
-
_See code: [src/commands/package/version/create/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
1108
1118
|
|
|
1109
1119
|
## `sf package version delete`
|
|
1110
1120
|
|
|
@@ -1145,7 +1155,7 @@ EXAMPLES
|
|
|
1145
1155
|
$ sf package version delete --package 04t... --target-org devhub@example.com
|
|
1146
1156
|
```
|
|
1147
1157
|
|
|
1148
|
-
_See code: [src/commands/package/version/delete.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
1149
1159
|
|
|
1150
1160
|
## `sf package version displayancestry`
|
|
1151
1161
|
|
|
@@ -1205,7 +1215,7 @@ FLAG DESCRIPTIONS
|
|
|
1205
1215
|
You can use the DOT code output in graph visualization software to create tree visualizations.
|
|
1206
1216
|
```
|
|
1207
1217
|
|
|
1208
|
-
_See code: [src/commands/package/version/displayancestry.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
1209
1219
|
|
|
1210
1220
|
## `sf package version list`
|
|
1211
1221
|
|
|
@@ -1281,7 +1291,7 @@ EXAMPLES
|
|
|
1281
1291
|
$ sf package version list --packages exp-mgr,exp-mgr-util --released --modified-last-days 0
|
|
1282
1292
|
```
|
|
1283
1293
|
|
|
1284
|
-
_See code: [src/commands/package/version/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
1285
1295
|
|
|
1286
1296
|
## `sf package version promote`
|
|
1287
1297
|
|
|
@@ -1325,7 +1335,7 @@ EXAMPLES
|
|
|
1325
1335
|
$ sf package version promote --package "Awesome Package Alias"
|
|
1326
1336
|
```
|
|
1327
1337
|
|
|
1328
|
-
_See code: [src/commands/package/version/promote.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
1329
1339
|
|
|
1330
1340
|
## `sf package version report`
|
|
1331
1341
|
|
|
@@ -1365,7 +1375,7 @@ EXAMPLES
|
|
|
1365
1375
|
$ sf package version report --package "Your Package Alias" --target-dev-hub devhub@example.com
|
|
1366
1376
|
```
|
|
1367
1377
|
|
|
1368
|
-
_See code: [src/commands/package/version/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
1369
1379
|
|
|
1370
1380
|
## `sf package version update`
|
|
1371
1381
|
|
|
@@ -1418,7 +1428,7 @@ EXAMPLES
|
|
|
1418
1428
|
$ sf package version update --package 04t... --version-description "New Package Version Description"
|
|
1419
1429
|
```
|
|
1420
1430
|
|
|
1421
|
-
_See code: [src/commands/package/version/update.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
1422
1432
|
|
|
1423
1433
|
## `sf package1 version create`
|
|
1424
1434
|
|
|
@@ -1485,7 +1495,7 @@ FLAG DESCRIPTIONS
|
|
|
1485
1495
|
subscribers.
|
|
1486
1496
|
```
|
|
1487
1497
|
|
|
1488
|
-
_See code: [src/commands/package1/version/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
1489
1499
|
|
|
1490
1500
|
## `sf package1 version create get`
|
|
1491
1501
|
|
|
@@ -1518,7 +1528,7 @@ EXAMPLES
|
|
|
1518
1528
|
$ sf package1 version create get --request-id 0HD... --target-org myorg@example.com
|
|
1519
1529
|
```
|
|
1520
1530
|
|
|
1521
|
-
_See code: [src/commands/package1/version/create/get.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
1522
1532
|
|
|
1523
1533
|
## `sf package1 version display`
|
|
1524
1534
|
|
|
@@ -1552,7 +1562,7 @@ EXAMPLES
|
|
|
1552
1562
|
$ sf package1 version display --package-version-id 04t... --target-org myorg@example.com
|
|
1553
1563
|
```
|
|
1554
1564
|
|
|
1555
|
-
_See code: [src/commands/package1/version/display.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
1556
1566
|
|
|
1557
1567
|
## `sf package1 version list`
|
|
1558
1568
|
|
|
@@ -1590,6 +1600,6 @@ FLAG DESCRIPTIONS
|
|
|
1590
1600
|
If not specified, shows all versions for all packages (managed and unmanaged) in the org.
|
|
1591
1601
|
```
|
|
1592
1602
|
|
|
1593
|
-
_See code: [src/commands/package1/version/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.
|
|
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)_
|
|
1594
1604
|
|
|
1595
1605
|
<!-- commandsstop -->
|
|
@@ -20,6 +20,7 @@ export declare class PackageConvert extends SfCommand<PackageVersionCreateReques
|
|
|
20
20
|
'seed-metadata': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
21
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
22
22
|
'patch-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
|
+
'code-coverage': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
23
24
|
};
|
|
24
25
|
run(): Promise<PackageVersionCreateRequestResult>;
|
|
25
26
|
private display;
|
|
@@ -80,6 +80,12 @@ export class PackageConvert extends SfCommand {
|
|
|
80
80
|
deprecateAliases: true,
|
|
81
81
|
aliases: ['patchversion'],
|
|
82
82
|
}),
|
|
83
|
+
'code-coverage': Flags.boolean({
|
|
84
|
+
char: 'c',
|
|
85
|
+
summary: messages.getMessage('flags.code-coverage.summary'),
|
|
86
|
+
description: messages.getMessage('flags.code-coverage.description'),
|
|
87
|
+
default: false,
|
|
88
|
+
}),
|
|
83
89
|
};
|
|
84
90
|
async run() {
|
|
85
91
|
const { flags } = await this.parse(PackageConvert);
|
|
@@ -117,6 +123,7 @@ export class PackageConvert extends SfCommand {
|
|
|
117
123
|
buildInstance: flags['build-instance'],
|
|
118
124
|
seedMetadata: flags['seed-metadata'],
|
|
119
125
|
patchversion: flags['patch-version'],
|
|
126
|
+
codecoverage: flags['code-coverage'],
|
|
120
127
|
}, project);
|
|
121
128
|
switch (result.Status) {
|
|
122
129
|
case PackagingSObjects['Package2VersionStatus'].error:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert.js","sourceRoot":"","sources":["../../../src/commands/package/convert.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,iCAAiC,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC5G,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EACL,gBAAgB,EAChB,OAAO,EACP,aAAa,EAGb,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,8BAA8B,EA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CAAC,EAAE;oBACT,MAAM,CAAC,0BAA0B;oBACjC,gBAAgB,CAAC,QAAQ,EAAE;oBAC3B,MAAM,CAAC,0BAA0B;oBACjC,IAAI,CAAC,MAAM,CAAC,GAAG;iBAChB,CAAC,CAAC;gBACH,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;oBAClB,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;gBAC3B,CAAC;qBAAM,CAAC;oBACN,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;gBACpC,CAAC;gBACD,MAAM;YACR,CAAC;YACD,OAAO,CAAC,CAAC,CAAC;gBACR,MAAM,iBAAiB,GAAG,WAAW,CAAC,UAAU,CAAC,YAAY,EAAE;oBAC7D,IAAI,CAAC,MAAM,CAAC,GAAG;oBACf,oBAAoB,CAAC,MAAM,CAAC,MAAM,CAAC;oBACnC,MAAM,CAAC,EAAE;iBACV,CAAC,CAAC;gBACH,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;YACjD,CAAC;QACH,CAAC;QAED,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACpB,OAAO,MAAM,CAAC;IAChB,CAAC;IAEO,OAAO,CAAC,OAAe,EAAE,OAAgB;QAC/C,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACpB,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC;QAChC,CAAC;IACH,CAAC"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
# summary
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Convert a managed-released first-generation managed package into a second-generation managed package.
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
The package
|
|
7
|
+
The package conversion command automatically selects the latest released major.minor first-generation managed package version, and converts it into a second-generation managed package version.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
By default, the latest released non-patch version from the specified first-generation package will be converted. Use --patch-version to override the default. Read more about --patch-version option in help
|
|
9
|
+
Use --patch-version to specify a released patch version.
|
|
12
10
|
|
|
13
11
|
To retrieve details about a package version create request, including status and package version ID (04t), run "<%= config.bin %> package version create report -i 08c...".
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
To protect the contents of your package and to prevent unauthorized installation of your package, specify the --installation-key flag.
|
|
14
|
+
|
|
15
|
+
To promote a package version to released, you must use the --code-coverage parameter. The package must also meet the code coverage requirements.
|
|
16
16
|
|
|
17
17
|
To list package version creation requests in the org, run "<%= config.bin %> package version create list".
|
|
18
18
|
|
|
19
19
|
# examples
|
|
20
20
|
|
|
21
|
-
- Create a second-generation package version from the first-generation package with the specified ID and give it the installation key "password123"; uses your default Dev Hub org:
|
|
21
|
+
- Create a second-generation managed package version from the first-generation managed package with the specified ID and give it the installation key "password123"; uses your default Dev Hub org:
|
|
22
22
|
|
|
23
23
|
<%= config.bin %> <%= command.id %> --package 033... --installation-key password123
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ To list package version creation requests in the org, run "<%= config.bin %> pac
|
|
|
28
28
|
|
|
29
29
|
# flags.package.summary
|
|
30
30
|
|
|
31
|
-
ID (starts with 033) of the first-generation package to convert.
|
|
31
|
+
ID (starts with 033) of the first-generation managed package to convert.
|
|
32
32
|
|
|
33
33
|
# flags.installation-key.summary
|
|
34
34
|
|
|
@@ -68,7 +68,7 @@ Display verbose command output.
|
|
|
68
68
|
|
|
69
69
|
# in-progress
|
|
70
70
|
|
|
71
|
-
Request in progress. Will wait a total of %s more seconds before timing out. Current Status='%s'
|
|
71
|
+
Request in progress. Will wait a total of %s more seconds before timing out. Current Status='%s'.
|
|
72
72
|
|
|
73
73
|
# flags.seed-metadata.summary
|
|
74
74
|
|
|
@@ -76,12 +76,20 @@ Directory containing metadata to be deployed prior to conversion.
|
|
|
76
76
|
|
|
77
77
|
# flags.seed-metadata.description
|
|
78
78
|
|
|
79
|
-
The directory containing metadata that will be deployed on the build org prior to attempting conversion.
|
|
79
|
+
The directory containing metadata that will be deployed on the build org prior to attempting package conversion.
|
|
80
80
|
|
|
81
81
|
# flags.patch-version.summary
|
|
82
82
|
|
|
83
|
-
Specific released patch version to
|
|
83
|
+
Specific released patch version to be converted.
|
|
84
84
|
|
|
85
85
|
# flags.patch-version.description
|
|
86
86
|
|
|
87
|
-
Specify a released patch version as major.minor.patch
|
|
87
|
+
Specify a released patch version as major.minor.patch to convert to a second-generation managed package version.
|
|
88
|
+
|
|
89
|
+
# flags.code-coverage.summary
|
|
90
|
+
|
|
91
|
+
Calculate and store the code coverage percentage by running the packaged Apex tests included in this package version.
|
|
92
|
+
|
|
93
|
+
# flags.code-coverage.description
|
|
94
|
+
|
|
95
|
+
Before you can promote and release a managed package version, the Apex code must meet a minimum 75% code coverage requirement.
|
package/oclif.manifest.json
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
],
|
|
7
7
|
"args": {},
|
|
8
8
|
"deprecateAliases": true,
|
|
9
|
-
"description": "The package
|
|
9
|
+
"description": "The package conversion command automatically selects the latest released major.minor first-generation managed package version, and converts it into a second-generation managed package version.\n\nUse --patch-version to specify a released patch version.\n\nTo retrieve details about a package version create request, including status and package version ID (04t), run \"<%= config.bin %> package version create report -i 08c...\".\n\nTo protect the contents of your package and to prevent unauthorized installation of your package, specify the --installation-key flag.\n\nTo promote a package version to released, you must use the --code-coverage parameter. The package must also meet the code coverage requirements.\n\nTo list package version creation requests in the org, run \"<%= config.bin %> package version create list\".",
|
|
10
10
|
"examples": [
|
|
11
|
-
"Create a second-generation package version from the first-generation package with the specified ID and give it the installation key \"password123\"; uses your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 033... --installation-key password123",
|
|
11
|
+
"Create a second-generation managed package version from the first-generation managed package with the specified ID and give it the installation key \"password123\"; uses your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 033... --installation-key password123",
|
|
12
12
|
"Similar to previous example, but uses the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 033... --installation-key password123 --target-dev-hub devhuborg@example.com"
|
|
13
13
|
],
|
|
14
14
|
"flags": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"char": "p",
|
|
68
68
|
"name": "package",
|
|
69
69
|
"required": true,
|
|
70
|
-
"summary": "ID (starts with 033) of the first-generation package to convert.",
|
|
70
|
+
"summary": "ID (starts with 033) of the first-generation managed package to convert.",
|
|
71
71
|
"hasDynamicHelp": false,
|
|
72
72
|
"multiple": false,
|
|
73
73
|
"type": "option"
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
},
|
|
134
134
|
"seed-metadata": {
|
|
135
135
|
"char": "m",
|
|
136
|
-
"description": "The directory containing metadata that will be deployed on the build org prior to attempting conversion.",
|
|
136
|
+
"description": "The directory containing metadata that will be deployed on the build org prior to attempting package conversion.",
|
|
137
137
|
"name": "seed-metadata",
|
|
138
138
|
"summary": "Directory containing metadata to be deployed prior to conversion.",
|
|
139
139
|
"hasDynamicHelp": false,
|
|
@@ -152,12 +152,20 @@
|
|
|
152
152
|
],
|
|
153
153
|
"char": "a",
|
|
154
154
|
"deprecateAliases": true,
|
|
155
|
-
"description": "Specify a released patch version as major.minor.patch
|
|
155
|
+
"description": "Specify a released patch version as major.minor.patch to convert to a second-generation managed package version.",
|
|
156
156
|
"name": "patch-version",
|
|
157
|
-
"summary": "Specific released patch version to
|
|
157
|
+
"summary": "Specific released patch version to be converted.",
|
|
158
158
|
"hasDynamicHelp": false,
|
|
159
159
|
"multiple": false,
|
|
160
160
|
"type": "option"
|
|
161
|
+
},
|
|
162
|
+
"code-coverage": {
|
|
163
|
+
"char": "c",
|
|
164
|
+
"description": "Before you can promote and release a managed package version, the Apex code must meet a minimum 75% code coverage requirement.",
|
|
165
|
+
"name": "code-coverage",
|
|
166
|
+
"summary": "Calculate and store the code coverage percentage by running the packaged Apex tests included in this package version.",
|
|
167
|
+
"allowNo": false,
|
|
168
|
+
"type": "boolean"
|
|
161
169
|
}
|
|
162
170
|
},
|
|
163
171
|
"hasDynamicHelp": true,
|
|
@@ -167,7 +175,7 @@
|
|
|
167
175
|
"pluginName": "@salesforce/plugin-packaging",
|
|
168
176
|
"pluginType": "core",
|
|
169
177
|
"strict": true,
|
|
170
|
-
"summary": "
|
|
178
|
+
"summary": "Convert a managed-released first-generation managed package into a second-generation managed package.",
|
|
171
179
|
"enableJsonFlag": true,
|
|
172
180
|
"isESM": true,
|
|
173
181
|
"relativePath": [
|
|
@@ -4542,5 +4550,5 @@
|
|
|
4542
4550
|
]
|
|
4543
4551
|
}
|
|
4544
4552
|
},
|
|
4545
|
-
"version": "2.
|
|
4553
|
+
"version": "2.16.0"
|
|
4546
4554
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-packaging",
|
|
3
3
|
"description": "SF plugin that support Salesforce Packaging Platform",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.16.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@oclif/core": "^4",
|
|
9
9
|
"@salesforce/core": "^8.12.0",
|
|
10
10
|
"@salesforce/kit": "^3.2.3",
|
|
11
|
-
"@salesforce/packaging": "^4.
|
|
11
|
+
"@salesforce/packaging": "^4.7.0",
|
|
12
12
|
"@salesforce/sf-plugins-core": "^12.2.2",
|
|
13
13
|
"chalk": "^5.4.1"
|
|
14
14
|
},
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
"exports": "./lib/index.js",
|
|
248
248
|
"type": "module",
|
|
249
249
|
"sfdx": {
|
|
250
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/2.
|
|
251
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/2.
|
|
250
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/2.16.0.crt",
|
|
251
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/2.16.0.sig"
|
|
252
252
|
}
|
|
253
253
|
}
|