Skip to content

Commit 352df55

Browse files
committed
Merge branch 'packagingDistribution/pushUpgradeCLI' of github.com:salesforcecli/plugin-packaging into packagingDistribution/pushUpgradeCLI
2 parents c67dd8e + 2d1c174 commit 352df55

4 files changed

Lines changed: 146 additions & 30 deletions

File tree

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
# [2.14.0](https://github.com/salesforcecli/plugin-packaging/compare/2.13.6...2.14.0) (2025-06-03)
2+
3+
### Features
4+
5+
- expose package convert command for ga ([188a700](https://github.com/salesforcecli/plugin-packaging/commit/188a7001c3a3dcf1a1f11e724b0b94586a009e5b))
6+
7+
## [2.13.6](https://github.com/salesforcecli/plugin-packaging/compare/2.13.5...2.13.6) (2025-05-24)
8+
9+
### Bug Fixes
10+
11+
- **deps:** bump @salesforce/core from 8.11.0 to 8.11.1 ([17751ae](https://github.com/salesforcecli/plugin-packaging/commit/17751ae4a2d03d1cef267f46dd5dbce71261e423))
12+
13+
## [2.13.5](https://github.com/salesforcecli/plugin-packaging/compare/2.13.4...2.13.5) (2025-05-24)
14+
15+
### Bug Fixes
16+
17+
- **deps:** bump @salesforce/sf-plugins-core from 12.2.1 to 12.2.2 ([77ef028](https://github.com/salesforcecli/plugin-packaging/commit/77ef028e739726c1d6d8733f00cb5a75efeec1fa))
18+
19+
## [2.13.4](https://github.com/salesforcecli/plugin-packaging/compare/2.13.3...2.13.4) (2025-05-17)
20+
21+
### Bug Fixes
22+
23+
- **deps:** bump @salesforce/core from 8.10.3 to 8.11.0 ([4ee1caf](https://github.com/salesforcecli/plugin-packaging/commit/4ee1cafb58e8e9dba2fc9e77a0722e970bc2da6f))
24+
25+
## [2.13.3](https://github.com/salesforcecli/plugin-packaging/compare/2.13.2...2.13.3) (2025-05-10)
26+
27+
### Bug Fixes
28+
29+
- **deps:** bump @salesforce/core from 8.10.0 to 8.10.3 ([82077b3](https://github.com/salesforcecli/plugin-packaging/commit/82077b374fd8a51ff631eeda27880bb68bc9fe21))
30+
131
## [2.13.2](https://github.com/salesforcecli/plugin-packaging/compare/2.13.1...2.13.2) (2025-04-26)
232

333
### Bug Fixes

README.md

Lines changed: 110 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -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 devhuborg@example.com
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

58146
Create 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.2/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 devhub@example.com
173261
```
174262

175-
_See code: [src/commands/package/delete.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.13.2/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.2/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 me@example.com
305393
```
306394

307-
_See code: [src/commands/package/install/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.13.2/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 me@example.com
337425
```
338426

339-
_See code: [src/commands/package/installed/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.13.2/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 devhub@example.com --verbose
375463
```
376464

377-
_See code: [src/commands/package/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.13.2/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.2/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 me@example.com
456544
```
457545

458-
_See code: [src/commands/package/uninstall/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.13.2/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.2/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.2/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.2/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 devhub@example.com
790878
```
791879

792-
_See code: [src/commands/package/version/create/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.13.2/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 devhub@example.com
831919
```
832920

833-
_See code: [src/commands/package/version/delete.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.13.2/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.2/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.2/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.2/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 devhub@example.com
10511139
```
10521140

1053-
_See code: [src/commands/package/version/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.13.2/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.2/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.2/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 myorg@example.com
12041292
```
12051293

1206-
_See code: [src/commands/package1/version/create/get.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.13.2/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 myorg@example.com
12381326
```
12391327

1240-
_See code: [src/commands/package1/version/display.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.13.2/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.2/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 -->

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
{
22
"name": "@salesforce/plugin-packaging",
33
"description": "SF plugin that support Salesforce Packaging Platform",
4-
"version": "2.13.2",
4+
"version": "2.14.0",
55
"author": "Salesforce",
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {
88
"@oclif/core": "^4",
9-
"@salesforce/core": "^8.10.0",
9+
"@salesforce/core": "^8.11.1",
1010
"@salesforce/kit": "^3.2.3",
1111
"@salesforce/packaging": "^4.5.0",
12-
"@salesforce/sf-plugins-core": "^12.2.1",
12+
"@salesforce/sf-plugins-core": "^12.2.2",
1313
"chalk": "^5.4.1"
1414
},
1515
"devDependencies": {
16-
"@oclif/plugin-command-snapshot": "^5.2.38",
16+
"@oclif/plugin-command-snapshot": "^5.2.40",
1717
"@salesforce/cli-plugins-testkit": "^5.3.39",
1818
"@salesforce/dev-scripts": "^11.0.2",
19-
"@salesforce/plugin-command-reference": "^3.1.49",
20-
"eslint-plugin-sf-plugin": "^1.20.19",
19+
"@salesforce/plugin-command-reference": "^3.1.54",
20+
"eslint-plugin-sf-plugin": "^1.20.23",
2121
"oclif": "^4.17.46",
2222
"ts-node": "^10.9.2",
2323
"typescript": "^5.8.3"

src/commands/package/convert.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export class PackageConvert extends SfCommand<PackageVersionCreateRequestResult>
2828
public static readonly examples = messages.getMessages('examples');
2929
public static readonly deprecateAliases = true;
3030
public static readonly aliases = ['force:package:convert'];
31-
public static readonly hidden = true;
3231
public static readonly flags = {
3332
loglevel,
3433
'target-dev-hub': requiredHubFlag,
@@ -90,7 +89,6 @@ export class PackageConvert extends SfCommand<PackageVersionCreateRequestResult>
9089
char: 'a',
9190
deprecateAliases: true,
9291
aliases: ['patchversion'],
93-
hidden: true,
9492
}),
9593
};
9694

0 commit comments

Comments
 (0)