@@ -30,6 +30,7 @@ See [DEVELOPING.md](DEVELOPING.md)
3030
3131<!-- commands -->
3232
33+ - [ ` sf package convert ` ] ( #sf-package-convert )
3334- [ ` sf package create ` ] ( #sf-package-create )
3435- [ ` sf package delete ` ] ( #sf-package-delete )
3536- [ ` sf package install ` ] ( #sf-package-install )
@@ -53,6 +54,93 @@ See [DEVELOPING.md](DEVELOPING.md)
5354- [ ` sf package1 version display ` ] ( #sf-package1-version-display )
5455- [ ` sf package1 version list ` ] ( #sf-package1-version-list )
5556
57+ ## ` sf package convert `
58+
59+ Create a second-generation package version from a first-generation package.
60+
61+ ```
62+ USAGE
63+ $ sf package convert -v <value> -p <value> [--json] [--flags-dir <value>] [--api-version <value>] [-k <value>] [-f
64+ <value>] [-x] [-w <value>] [-m <value>] [--verbose] [-a <value>]
65+
66+ FLAGS
67+ -a, --patch-version=<value> Specific released patch version to convert
68+ -f, --definition-file=<value> Path to a definition file that contains features and org preferences that the metadata
69+ of the package version depends on.
70+ -k, --installation-key=<value> Installation key for key-protected package.
71+ -m, --seed-metadata=<value> Directory containing metadata to be deployed prior to conversion.
72+ -p, --package=<value> (required) ID (starts with 033) of the first-generation package to convert.
73+ -v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the `target-dev-hub`
74+ configuration variable is already set.
75+ -w, --wait=<value> Minutes to wait for the package version to be created.
76+ -x, --installation-key-bypass Bypass the installation key requirement.
77+ --api-version=<value> Override the api version used for api requests made by this command
78+ --verbose Display verbose command output.
79+
80+ GLOBAL FLAGS
81+ --flags-dir=<value> Import flag values from a directory.
82+ --json Format output as json.
83+
84+ DESCRIPTION
85+ Create a second-generation package version from a first-generation package.
86+
87+ The package convert creates a new package in the Dev Hub if one does not already exist for the specified
88+ first-generation package.
89+
90+ It then creates a new package version in the Dev Hub with contents based on the specified first-generation package.
91+
92+ By default, the latest released non-patch version from the specified first-generation package will be converted. Use
93+ --patch-version to override the default. Read more about --patch-version option in help
94+
95+ To retrieve details about a package version create request, including status and package version ID (04t), run "sf
96+ package version create report -i 08c...".
97+
98+ We recommend specifying the --installation-key to protect the contents of your package and to prevent unauthorized
99+ installation of your package.
100+
101+ To list package version creation requests in the org, run "sf package version create list".
102+
103+ ALIASES
104+ $ sf force package convert
105+
106+ EXAMPLES
107+ Create a second-generation package version from the first-generation package with the specified ID and give it the
108+ installation key "password123"; uses your default Dev Hub org:
109+
110+ $ sf package convert --package 033... --installation-key password123
111+
112+ Similar to previous example, but uses the specified Dev Hub org:
113+
114+ $ sf package convert --package 033... --installation-key password123 --target-dev-hub [email protected] 115+
116+ FLAG DESCRIPTIONS
117+ -a, --patch-version=<value> Specific released patch version to convert
118+
119+ Specify a released patch version as major.minor.patch.build to convert to second generation package version
120+
121+ -f, --definition-file=<value>
122+
123+ Path to a definition file that contains features and org preferences that the metadata of the package version
124+ depends on.
125+
126+ This definition file is similar to the scratch org definition file.
127+
128+ -k, --installation-key=<value> Installation key for key-protected package.
129+
130+ Either an --installation-key value or the --installation-key-bypass flag is required.
131+
132+ -m, --seed-metadata=<value> Directory containing metadata to be deployed prior to conversion.
133+
134+ The directory containing metadata that will be deployed on the build org prior to attempting conversion.
135+
136+ -x, --installation-key-bypass Bypass the installation key requirement.
137+
138+ If you bypass this requirement, anyone can install your package. Either an --installation-key value or the
139+ --installation-key-bypass flag is required.
140+ ```
141+
142+ _ See code: [ src/commands/package/convert.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/convert.ts ) _
143+
56144## ` sf package create `
57145
58146Create a package.
@@ -130,7 +218,7 @@ FLAG DESCRIPTIONS
130218 Org-Dependent Unlocked Packages" in the Salesforce DX Developer Guide.
131219```
132220
133- _ See code: [ src/commands/package/create.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package/create.ts ) _
221+ _ See code: [ src/commands/package/create.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package/create.ts ) _
134222
135223## ` sf package delete `
136224
@@ -172,7 +260,7 @@ EXAMPLES
172260 $ sf package delete --package 0Ho... --target-dev-hub [email protected] 173261```
174262
175- _ See code: [ src/commands/package/delete.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package/delete.ts ) _
263+ _ See code: [ src/commands/package/delete.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package/delete.ts ) _
176264
177265## ` sf package install `
178266
@@ -271,7 +359,7 @@ FLAG DESCRIPTIONS
271359 - Delete: Delete all removed components that can be safely deleted, and deprecate the other components.
272360```
273361
274- _ See code: [ src/commands/package/install.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package/install.ts ) _
362+ _ See code: [ src/commands/package/install.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package/install.ts ) _
275363
276364## ` sf package install report `
277365
@@ -304,7 +392,7 @@ EXAMPLES
304392 $ sf package install report --request-id 0Hf... --target-org [email protected] 305393```
306394
307- _ See code: [ src/commands/package/install/report.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package/install/report.ts ) _
395+ _ See code: [ src/commands/package/install/report.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package/install/report.ts ) _
308396
309397## ` sf package installed list `
310398
@@ -336,7 +424,7 @@ EXAMPLES
336424 $ sf package installed list --target-org [email protected] 337425```
338426
339- _ See code: [ src/commands/package/installed/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package/installed/list.ts ) _
427+ _ See code: [ src/commands/package/installed/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package/installed/list.ts ) _
340428
341429## ` sf package list `
342430
@@ -374,7 +462,7 @@ EXAMPLES
374462 $ sf package list --target-dev-hub [email protected] --verbose 375463```
376464
377- _ See code: [ src/commands/package/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package/list.ts ) _
465+ _ See code: [ src/commands/package/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package/list.ts ) _
378466
379467## ` sf package uninstall `
380468
@@ -422,7 +510,7 @@ EXAMPLES
422510 $ sf package uninstall --package "Undesirable Package Alias"
423511```
424512
425- _ See code: [ src/commands/package/uninstall.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package/uninstall.ts ) _
513+ _ See code: [ src/commands/package/uninstall.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package/uninstall.ts ) _
426514
427515## ` sf package uninstall report `
428516
@@ -455,7 +543,7 @@ EXAMPLES
455543 $ sf package uninstall report --request-id 06y... --target-org [email protected] 456544```
457545
458- _ See code: [ src/commands/package/uninstall/report.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package/uninstall/report.ts ) _
546+ _ See code: [ src/commands/package/uninstall/report.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package/uninstall/report.ts ) _
459547
460548## ` sf package update `
461549
@@ -510,7 +598,7 @@ FLAG DESCRIPTIONS
510598 associated with your package.
511599```
512600
513- _ See code: [ src/commands/package/update.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package/update.ts ) _
601+ _ See code: [ src/commands/package/update.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package/update.ts ) _
514602
515603## ` sf package version create `
516604
@@ -685,7 +773,7 @@ FLAG DESCRIPTIONS
685773 periods of no output from commands.
686774```
687775
688- _ See code: [ src/commands/package/version/create.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package/version/create.ts ) _
776+ _ See code: [ src/commands/package/version/create.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package/version/create.ts ) _
689777
690778## ` sf package version create list `
691779
@@ -746,7 +834,7 @@ EXAMPLES
746834 $ sf package version create list --created-last-days 0 --status Success
747835```
748836
749- _ See code: [ src/commands/package/version/create/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package/version/create/list.ts ) _
837+ _ See code: [ src/commands/package/version/create/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package/version/create/list.ts ) _
750838
751839## ` sf package version create report `
752840
@@ -789,7 +877,7 @@ EXAMPLES
789877 $ sf package version create report --package-create-request-id 08c... --target-dev-hub [email protected] 790878```
791879
792- _ See code: [ src/commands/package/version/create/report.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package/version/create/report.ts ) _
880+ _ See code: [ src/commands/package/version/create/report.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package/version/create/report.ts ) _
793881
794882## ` sf package version delete `
795883
@@ -830,7 +918,7 @@ EXAMPLES
830918 $ sf package version delete --package 04t... --target-org [email protected] 831919```
832920
833- _ See code: [ src/commands/package/version/delete.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package/version/delete.ts ) _
921+ _ See code: [ src/commands/package/version/delete.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package/version/delete.ts ) _
834922
835923## ` sf package version displayancestry `
836924
@@ -890,7 +978,7 @@ FLAG DESCRIPTIONS
890978 You can use the DOT code output in graph visualization software to create tree visualizations.
891979```
892980
893- _ See code: [ src/commands/package/version/displayancestry.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package/version/displayancestry.ts ) _
981+ _ See code: [ src/commands/package/version/displayancestry.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package/version/displayancestry.ts ) _
894982
895983## ` sf package version list `
896984
@@ -966,7 +1054,7 @@ EXAMPLES
9661054 $ sf package version list --packages exp-mgr,exp-mgr-util --released --modified-last-days 0
9671055```
9681056
969- _ See code: [ src/commands/package/version/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package/version/list.ts ) _
1057+ _ See code: [ src/commands/package/version/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package/version/list.ts ) _
9701058
9711059## ` sf package version promote `
9721060
@@ -1010,7 +1098,7 @@ EXAMPLES
10101098 $ sf package version promote --package "Awesome Package Alias"
10111099```
10121100
1013- _ See code: [ src/commands/package/version/promote.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package/version/promote.ts ) _
1101+ _ See code: [ src/commands/package/version/promote.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package/version/promote.ts ) _
10141102
10151103## ` sf package version report `
10161104
@@ -1050,7 +1138,7 @@ EXAMPLES
10501138 $ sf package version report --package "Your Package Alias" --target-dev-hub [email protected] 10511139```
10521140
1053- _ See code: [ src/commands/package/version/report.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package/version/report.ts ) _
1141+ _ See code: [ src/commands/package/version/report.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package/version/report.ts ) _
10541142
10551143## ` sf package version update `
10561144
@@ -1103,7 +1191,7 @@ EXAMPLES
11031191 $ sf package version update --package 04t... --version-description "New Package Version Description"
11041192```
11051193
1106- _ See code: [ src/commands/package/version/update.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package/version/update.ts ) _
1194+ _ See code: [ src/commands/package/version/update.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package/version/update.ts ) _
11071195
11081196## ` sf package1 version create `
11091197
@@ -1170,7 +1258,7 @@ FLAG DESCRIPTIONS
11701258 subscribers.
11711259```
11721260
1173- _ See code: [ src/commands/package1/version/create.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package1/version/create.ts ) _
1261+ _ See code: [ src/commands/package1/version/create.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package1/version/create.ts ) _
11741262
11751263## ` sf package1 version create get `
11761264
@@ -1203,7 +1291,7 @@ EXAMPLES
12031291 $ sf package1 version create get --request-id 0HD... --target-org [email protected] 12041292```
12051293
1206- _ See code: [ src/commands/package1/version/create/get.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package1/version/create/get.ts ) _
1294+ _ See code: [ src/commands/package1/version/create/get.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package1/version/create/get.ts ) _
12071295
12081296## ` sf package1 version display `
12091297
@@ -1237,7 +1325,7 @@ EXAMPLES
12371325 $ sf package1 version display --package-version-id 04t... --target-org [email protected] 12381326```
12391327
1240- _ See code: [ src/commands/package1/version/display.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package1/version/display.ts ) _
1328+ _ See code: [ src/commands/package1/version/display.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package1/version/display.ts ) _
12411329
12421330## ` sf package1 version list `
12431331
@@ -1275,6 +1363,6 @@ FLAG DESCRIPTIONS
12751363 If not specified, shows all versions for all packages (managed and unmanaged) in the org.
12761364```
12771365
1278- _ See code: [ src/commands/package1/version/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.13.6 /src/commands/package1/version/list.ts ) _
1366+ _ See code: [ src/commands/package1/version/list.ts] ( https://github.com/salesforcecli/plugin-packaging/blob/2.14.0 /src/commands/package1/version/list.ts ) _
12791367
12801368<!-- commandsstop -->
0 commit comments