Skip to content

Commit 9d9d698

Browse files
Merge branch 'main' into hc/support-recommendedversionid-field
2 parents bb70b3b + 1c3631b commit 9d9d698

24 files changed

Lines changed: 657 additions & 1210 deletions

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
## [2.20.6](https://github.com/salesforcecli/plugin-packaging/compare/2.20.5...2.20.6) (2025-10-10)
2+
3+
### Bug Fixes
4+
5+
- add spanner to install ([cc9fb55](https://github.com/salesforcecli/plugin-packaging/commit/cc9fb5584a4d8182298b3572c16682a2b05236e6))
6+
- finish create and display error correctly for install ([f10528b](https://github.com/salesforcecli/plugin-packaging/commit/f10528be746a437616e4645b9ff7a49986a41978))
7+
- fix all tests error regarding create error ([e65614b](https://github.com/salesforcecli/plugin-packaging/commit/e65614b414f4231a67c6f20d980e5e09a08f526f))
8+
- fix all tests error regarding create error ([2b3c7ee](https://github.com/salesforcecli/plugin-packaging/commit/2b3c7ee57e5053469459fda3e70f0150b763d101))
9+
- fix bundle cli issues dev preview ([a064fb4](https://github.com/salesforcecli/plugin-packaging/commit/a064fb45e7d849591dc8ecdd91060f017440d592))
10+
- fix polling issue ([6651065](https://github.com/salesforcecli/plugin-packaging/commit/6651065fbbf53abf3fb3779c853ec9f8fb2220de))
11+
- fix polling issue ([afef736](https://github.com/salesforcecli/plugin-packaging/commit/afef7368c8a694865234e7fef88dc6f9c446b8ee))
12+
- fix polling issue ([0cd595f](https://github.com/salesforcecli/plugin-packaging/commit/0cd595f7533384c71212f3ebf1505dca4c76a577))
13+
- fix test ([73eba87](https://github.com/salesforcecli/plugin-packaging/commit/73eba873da52ab7c2d6e7048f8fd85c0e5470166))
14+
- revert create ([e346f77](https://github.com/salesforcecli/plugin-packaging/commit/e346f77089e0a9d43004883fb4ffad39f55c4ccd))
15+
- revert create ([50c64e1](https://github.com/salesforcecli/plugin-packaging/commit/50c64e1d5ee64986f6a6907990e1d5f0920d1806))
16+
- surface bundle install error ([8ef2251](https://github.com/salesforcecli/plugin-packaging/commit/8ef2251dbb234108c7ca3601f9e57c62c4387f48))
17+
- surface bundle install error ([3aca14e](https://github.com/salesforcecli/plugin-packaging/commit/3aca14efbd1193d3a950a9628ad14a1cac27d842))
18+
- surface validation error in create correctly ([65dd822](https://github.com/salesforcecli/plugin-packaging/commit/65dd82227e06e3dd6e8bceae2be0831d0143a3a6))
19+
- use separate bundle version lifecycle event ([0136cec](https://github.com/salesforcecli/plugin-packaging/commit/0136cec4dc170721d796c4d8b9bfec1b318eccea))
20+
121
## [2.20.5](https://github.com/salesforcecli/plugin-packaging/compare/2.20.4...2.20.5) (2025-09-23)
222

323
### Bug Fixes

README.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ FLAG DESCRIPTIONS
154154
--installation-key-bypass flag is required.
155155
```
156156

157-
_See code: [src/commands/package/convert.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/convert.ts)_
157+
_See code: [src/commands/package/convert.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/convert.ts)_
158158

159159
## `sf package create`
160160

@@ -233,7 +233,7 @@ FLAG DESCRIPTIONS
233233
Org-Dependent Unlocked Packages" in the Salesforce DX Developer Guide.
234234
```
235235

236-
_See code: [src/commands/package/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/create.ts)_
236+
_See code: [src/commands/package/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/create.ts)_
237237

238238
## `sf package delete`
239239

@@ -275,7 +275,7 @@ EXAMPLES
275275
$ sf package delete --package 0Ho... --target-dev-hub devhub@example.com
276276
```
277277

278-
_See code: [src/commands/package/delete.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/delete.ts)_
278+
_See code: [src/commands/package/delete.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/delete.ts)_
279279

280280
## `sf package install`
281281

@@ -374,7 +374,7 @@ FLAG DESCRIPTIONS
374374
- Delete: Delete removed components, except for custom objects and custom fields, that don't have dependencies.
375375
```
376376

377-
_See code: [src/commands/package/install.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/install.ts)_
377+
_See code: [src/commands/package/install.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/install.ts)_
378378

379379
## `sf package install report`
380380

@@ -407,7 +407,7 @@ EXAMPLES
407407
$ sf package install report --request-id 0Hf... --target-org me@example.com
408408
```
409409

410-
_See code: [src/commands/package/install/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/install/report.ts)_
410+
_See code: [src/commands/package/install/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/install/report.ts)_
411411

412412
## `sf package installed list`
413413

@@ -439,7 +439,7 @@ EXAMPLES
439439
$ sf package installed list --target-org me@example.com
440440
```
441441

442-
_See code: [src/commands/package/installed/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/installed/list.ts)_
442+
_See code: [src/commands/package/installed/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/installed/list.ts)_
443443

444444
## `sf package list`
445445

@@ -477,7 +477,7 @@ EXAMPLES
477477
$ sf package list --target-dev-hub devhub@example.com --verbose
478478
```
479479

480-
_See code: [src/commands/package/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/list.ts)_
480+
_See code: [src/commands/package/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/list.ts)_
481481

482482
## `sf package push-upgrade abort`
483483

@@ -516,7 +516,7 @@ EXAMPLES
516516
$ sf package push-upgrade abort --push-request-id 0DV... --target-dev-hub devhub@example.com
517517
```
518518

519-
_See code: [src/commands/package/push-upgrade/abort.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/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.20.6/src/commands/package/push-upgrade/abort.ts)_
520520

521521
## `sf package push-upgrade list`
522522

@@ -575,7 +575,7 @@ EXAMPLES
575575
$ sf package push-upgrade list --package 033xyz –-status Failed
576576
```
577577

578-
_See code: [src/commands/package/push-upgrade/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/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.20.6/src/commands/package/push-upgrade/list.ts)_
579579

580580
## `sf package push-upgrade report`
581581

@@ -617,7 +617,7 @@ EXAMPLES
617617
$ sf package push-upgrade report --push-request-id 0DV... --target-dev-hub devhub@example.com
618618
```
619619

620-
_See code: [src/commands/package/push-upgrade/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/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.20.6/src/commands/package/push-upgrade/report.ts)_
621621

622622
## `sf package push-upgrade schedule`
623623

@@ -704,7 +704,7 @@ FLAG DESCRIPTIONS
704704
Overrides the value of the target-dev-hub configuration variable, if set.
705705
```
706706

707-
_See code: [src/commands/package/push-upgrade/schedule.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/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.20.6/src/commands/package/push-upgrade/schedule.ts)_
708708

709709
## `sf package uninstall`
710710

@@ -752,7 +752,7 @@ EXAMPLES
752752
$ sf package uninstall --package "Undesirable Package Alias"
753753
```
754754

755-
_See code: [src/commands/package/uninstall.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/uninstall.ts)_
755+
_See code: [src/commands/package/uninstall.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/uninstall.ts)_
756756

757757
## `sf package uninstall report`
758758

@@ -785,7 +785,7 @@ EXAMPLES
785785
$ sf package uninstall report --request-id 06y... --target-org me@example.com
786786
```
787787

788-
_See code: [src/commands/package/uninstall/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/uninstall/report.ts)_
788+
_See code: [src/commands/package/uninstall/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/uninstall/report.ts)_
789789

790790
## `sf package update`
791791

@@ -841,7 +841,7 @@ FLAG DESCRIPTIONS
841841
associated with your package.
842842
```
843843

844-
_See code: [src/commands/package/update.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/update.ts)_
844+
_See code: [src/commands/package/update.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/update.ts)_
845845

846846
## `sf package version create`
847847

@@ -1016,7 +1016,7 @@ FLAG DESCRIPTIONS
10161016
periods of no output from commands.
10171017
```
10181018

1019-
_See code: [src/commands/package/version/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/version/create.ts)_
1019+
_See code: [src/commands/package/version/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/version/create.ts)_
10201020

10211021
## `sf package version create list`
10221022

@@ -1077,7 +1077,7 @@ EXAMPLES
10771077
$ sf package version create list --created-last-days 0 --status Success
10781078
```
10791079

1080-
_See code: [src/commands/package/version/create/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/version/create/list.ts)_
1080+
_See code: [src/commands/package/version/create/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/version/create/list.ts)_
10811081

10821082
## `sf package version create report`
10831083

@@ -1120,7 +1120,7 @@ EXAMPLES
11201120
$ sf package version create report --package-create-request-id 08c... --target-dev-hub devhub@example.com
11211121
```
11221122

1123-
_See code: [src/commands/package/version/create/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/version/create/report.ts)_
1123+
_See code: [src/commands/package/version/create/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/version/create/report.ts)_
11241124

11251125
## `sf package version delete`
11261126

@@ -1161,7 +1161,7 @@ EXAMPLES
11611161
$ sf package version delete --package 04t... --target-org devhub@example.com
11621162
```
11631163

1164-
_See code: [src/commands/package/version/delete.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/version/delete.ts)_
1164+
_See code: [src/commands/package/version/delete.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/version/delete.ts)_
11651165

11661166
## `sf package version displayancestry`
11671167

@@ -1221,7 +1221,7 @@ FLAG DESCRIPTIONS
12211221
You can use the DOT code output in graph visualization software to create tree visualizations.
12221222
```
12231223

1224-
_See code: [src/commands/package/version/displayancestry.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/version/displayancestry.ts)_
1224+
_See code: [src/commands/package/version/displayancestry.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/version/displayancestry.ts)_
12251225

12261226
## `sf package version displaydependencies`
12271227

@@ -1283,7 +1283,7 @@ FLAG DESCRIPTIONS
12831283
package, which must be installed last.
12841284
```
12851285

1286-
_See code: [src/commands/package/version/displaydependencies.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/version/displaydependencies.ts)_
1286+
_See code: [src/commands/package/version/displaydependencies.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/version/displaydependencies.ts)_
12871287

12881288
## `sf package version list`
12891289

@@ -1359,7 +1359,7 @@ EXAMPLES
13591359
$ sf package version list --packages exp-mgr,exp-mgr-util --released --modified-last-days 0
13601360
```
13611361

1362-
_See code: [src/commands/package/version/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/version/list.ts)_
1362+
_See code: [src/commands/package/version/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/version/list.ts)_
13631363

13641364
## `sf package version promote`
13651365

@@ -1403,7 +1403,7 @@ EXAMPLES
14031403
$ sf package version promote --package "Awesome Package Alias"
14041404
```
14051405

1406-
_See code: [src/commands/package/version/promote.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/version/promote.ts)_
1406+
_See code: [src/commands/package/version/promote.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/version/promote.ts)_
14071407

14081408
## `sf package version report`
14091409

@@ -1443,7 +1443,7 @@ EXAMPLES
14431443
$ sf package version report --package "Your Package Alias" --target-dev-hub devhub@example.com
14441444
```
14451445

1446-
_See code: [src/commands/package/version/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/version/report.ts)_
1446+
_See code: [src/commands/package/version/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/version/report.ts)_
14471447

14481448
## `sf package version update`
14491449

@@ -1496,7 +1496,7 @@ EXAMPLES
14961496
$ sf package version update --package 04t... --version-description "New Package Version Description"
14971497
```
14981498

1499-
_See code: [src/commands/package/version/update.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package/version/update.ts)_
1499+
_See code: [src/commands/package/version/update.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package/version/update.ts)_
15001500

15011501
## `sf package1 version create`
15021502

@@ -1563,7 +1563,7 @@ FLAG DESCRIPTIONS
15631563
subscribers.
15641564
```
15651565

1566-
_See code: [src/commands/package1/version/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package1/version/create.ts)_
1566+
_See code: [src/commands/package1/version/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package1/version/create.ts)_
15671567

15681568
## `sf package1 version create get`
15691569

@@ -1596,7 +1596,7 @@ EXAMPLES
15961596
$ sf package1 version create get --request-id 0HD... --target-org myorg@example.com
15971597
```
15981598

1599-
_See code: [src/commands/package1/version/create/get.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package1/version/create/get.ts)_
1599+
_See code: [src/commands/package1/version/create/get.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package1/version/create/get.ts)_
16001600

16011601
## `sf package1 version display`
16021602

@@ -1630,7 +1630,7 @@ EXAMPLES
16301630
$ sf package1 version display --package-version-id 04t... --target-org myorg@example.com
16311631
```
16321632

1633-
_See code: [src/commands/package1/version/display.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package1/version/display.ts)_
1633+
_See code: [src/commands/package1/version/display.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package1/version/display.ts)_
16341634

16351635
## `sf package1 version list`
16361636

@@ -1668,6 +1668,6 @@ FLAG DESCRIPTIONS
16681668
If not specified, shows all versions for all packages (managed and unmanaged) in the org.
16691669
```
16701670

1671-
_See code: [src/commands/package1/version/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.5/src/commands/package1/version/list.ts)_
1671+
_See code: [src/commands/package1/version/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.20.6/src/commands/package1/version/list.ts)_
16721672

16731673
<!-- commandsstop -->

command-snapshot.json

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,9 @@
7474
{
7575
"alias": [],
7676
"command": "package:bundle:install",
77-
"flagAliases": ["apiversion", "targetdevhubusername", "targetusername", "u"],
78-
"flagChars": ["b", "o", "v", "w"],
79-
"flags": [
80-
"api-version",
81-
"bundle",
82-
"flags-dir",
83-
"json",
84-
"loglevel",
85-
"target-dev-hub",
86-
"target-org",
87-
"verbose",
88-
"wait"
89-
],
77+
"flagAliases": ["apiversion", "targetusername", "u"],
78+
"flagChars": ["b", "d", "o", "w"],
79+
"flags": ["api-version", "bundle", "dev-hub-org", "flags-dir", "json", "loglevel", "target-org", "verbose", "wait"],
9080
"plugin": "@salesforce/plugin-packaging"
9181
},
9282
{

messages/bundle_create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Create a package bundle in the Dev Hub org.
55
# description
66

77
A package bundle is an artifact that contains one or more 2GP managed packages.
8-
A bundle can be listed on AppExchange, installed, or upgraded as a single artifact.
8+
A bundle can be installed or upgraded as a single artifact.
99

1010
# examples
1111

messages/bundle_install.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,29 @@ Install a specific version of a package bundle in the target org. During develop
88

99
# examples
1010

11-
Install a package bundle version in a scratch org:
11+
- Install a package bundle version in a scratch org:
1212

13-
sf package bundle install --bundle MyPkgBundle1@0.1 --target-org my-scratch-org --wait 10
13+
<%= config.bin %> <%= command.id %> --bundle MyPkgBundle1@0.1 --target-org my-scratch-org --dev-hub-org 00Dxx0000000000 --wait 10
14+
15+
- Install using a bundle version ID:
16+
17+
<%= config.bin %> <%= command.id %> --bundle 1Q8Wt0000000q1pKAA --target-org my-scratch-org --dev-hub-org 00Dxx0000000000 --wait 10
1418

1519
# flags.bundle.summary
1620

17-
Package bundle version to install (format: BundleName@Version).
21+
Package bundle version to install (format: BundleName@Version or bundle version ID).
1822

1923
# flags.target-org.summary
2024

2125
Target org for the bundle installation.
2226

23-
# flags.target-dev-hub.summary
27+
# flags.dev-hub-org.summary
28+
29+
Org ID of the Dev Hub org where the bundle was created.
30+
31+
# flags.dev-hub-org.description
2432

25-
Username, alias, or org ID of the target dev hub org.
33+
Specify the Dev Hub org ID directly (such as 00Dxx0000000000).
2634

2735
# flags.wait.summary
2836

@@ -55,4 +63,4 @@ Encountered errors installing the bundle! %s
5563
# bundleInstallInProgress
5664

5765
Bundle installation is currently %s. You can continue to query the status using
58-
sf package bundle install:report -i %s -o %s
66+
sf package bundle install report -i %s -o %s

messages/bundle_version_create_list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# summary
22

3-
List package version creation requests.
3+
List package bundle version creation requests.
44

55
# description
66

messages/bundle_version_create_report.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,7 @@ Created Date
4747
# created-by
4848

4949
Created By
50+
51+
# validation-error
52+
53+
Validation Error

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "@salesforce/plugin-packaging",
33
"description": "SF plugin that support Salesforce Packaging Platform",
4-
"version": "2.20.5",
4+
"version": "2.20.6",
55
"author": "Salesforce",
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {
88
"@oclif/core": "^4",
99
"@salesforce/core": "^8.23.1",
1010
"@salesforce/kit": "^3.2.4",
11-
"@salesforce/packaging": "^4.15.0",
11+
"@salesforce/packaging": "^4.15.1",
1212
"@salesforce/sf-plugins-core": "^12.2.4",
1313
"chalk": "^5.6.2"
1414
},

schemas/package-bundle-install-list.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@
5252
},
5353
"BundleSObjects.PkgBundleVersionInstallReqStatus": {
5454
"type": "string",
55-
"enum": ["Queued", "Success", "Error"]
55+
"enum": [
56+
"Queued",
57+
"InProgress",
58+
"Success",
59+
"Error"
60+
]
5661
}
5762
}
58-
}
63+
}

0 commit comments

Comments
 (0)