Skip to content

Commit 2bc82f2

Browse files
Merge pull request #1060 from salesforcecli/btrn11/fix-bundle-dev-preview
@W-19830917@ fix: fix bundle cli issues dev preview (plugin-packaging)
2 parents 38b7dd4 + 50533d9 commit 2bc82f2

22 files changed

+608
-1181
lines changed

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 [email protected] --target-org my-scratch-org --wait 10
13+
<%= config.bin %> <%= command.id %> --bundle [email protected] --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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"@oclif/core": "^4",
99
"@salesforce/core": "^8.23.1",
1010
"@salesforce/kit": "^3.2.4",
11-
"@salesforce/packaging": "^4.14.1",
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+
}

schemas/package-bundle-install-report.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+
}

schemas/package-bundle-install.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@
4646
},
4747
"BundleSObjects.PkgBundleVersionInstallReqStatus": {
4848
"type": "string",
49-
"enum": ["Queued", "Success", "Error"]
49+
"enum": [
50+
"Queued",
51+
"InProgress",
52+
"Success",
53+
"Error"
54+
]
5055
}
5156
}
52-
}
57+
}

schemas/package-bundle-version-create-list.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
"type": "string"
3434
}
3535
},
36+
"ValidationError": {
37+
"type": "string"
38+
},
3639
"PackageBundleId": {
3740
"type": "string"
3841
},
@@ -49,7 +52,10 @@
4952
"type": "string"
5053
},
5154
"Ancestor": {
52-
"type": ["string", "null"]
55+
"type": [
56+
"string",
57+
"null"
58+
]
5359
}
5460
},
5561
"required": [
@@ -67,7 +73,12 @@
6773
},
6874
"BundleSObjects.PkgBundleVersionCreateReqStatus": {
6975
"type": "string",
70-
"enum": ["Queued", "Success", "Error"]
76+
"enum": [
77+
"Queued",
78+
"InProgress",
79+
"Success",
80+
"Error"
81+
]
7182
}
7283
}
73-
}
84+
}

0 commit comments

Comments
 (0)