Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions command-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,9 @@
{
"alias": [],
"command": "package:bundle:install",
"flagAliases": ["apiversion", "targetdevhubusername", "targetusername", "u"],
"flagChars": ["b", "o", "v", "w"],
"flags": [
"api-version",
"bundle",
"flags-dir",
"json",
"loglevel",
"target-dev-hub",
"target-org",
"verbose",
"wait"
],
"flagAliases": ["apiversion", "targetusername", "u"],
"flagChars": ["b", "d", "o", "w"],
"flags": ["api-version", "bundle", "dev-hub-org", "flags-dir", "json", "loglevel", "target-org", "verbose", "wait"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the target-dev-hub org flag changed to dev-hub-org which is a breaking change, and 3 month warning before changing is required

"plugin": "@salesforce/plugin-packaging"
},
{
Expand Down
2 changes: 1 addition & 1 deletion messages/bundle_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Create a package bundle in the Dev Hub org.
# description

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

# examples

Expand Down
20 changes: 14 additions & 6 deletions messages/bundle_install.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,29 @@ Install a specific version of a package bundle in the target org. During develop

# examples

Install a package bundle version in a scratch org:
- Install a package bundle version in a scratch org:

sf package bundle install --bundle MyPkgBundle1@0.1 --target-org my-scratch-org --wait 10
<%= config.bin %> <%= command.id %> --bundle MyPkgBundle1@0.1 --target-org my-scratch-org --dev-hub-org 00Dxx0000000000 --wait 10

- Install using a bundle version ID:

<%= config.bin %> <%= command.id %> --bundle 1Q8Wt0000000q1pKAA --target-org my-scratch-org --dev-hub-org 00Dxx0000000000 --wait 10

# flags.bundle.summary

Package bundle version to install (format: BundleName@Version).
Package bundle version to install (format: BundleName@Version or bundle version ID).

# flags.target-org.summary

Target org for the bundle installation.

# flags.target-dev-hub.summary
# flags.dev-hub-org.summary

Org ID of the Dev Hub org where the bundle was created.

# flags.dev-hub-org.description

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

# flags.wait.summary

Expand Down Expand Up @@ -55,4 +63,4 @@ Encountered errors installing the bundle! %s
# bundleInstallInProgress

Bundle installation is currently %s. You can continue to query the status using
sf package bundle install:report -i %s -o %s
sf package bundle install report -i %s -o %s
2 changes: 1 addition & 1 deletion messages/bundle_version_create_list.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# summary

List package version creation requests.
List package bundle version creation requests.

# description

Expand Down
4 changes: 4 additions & 0 deletions messages/bundle_version_create_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,7 @@ Created Date
# created-by

Created By

# validation-error

Validation Error
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@oclif/core": "^4",
"@salesforce/core": "^8.23.1",
"@salesforce/kit": "^3.2.4",
"@salesforce/packaging": "^4.14.1",
"@salesforce/packaging": "^4.15.1",
"@salesforce/sf-plugins-core": "^12.2.4",
"chalk": "^5.6.2"
},
Expand Down
9 changes: 7 additions & 2 deletions schemas/package-bundle-install-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@
},
"BundleSObjects.PkgBundleVersionInstallReqStatus": {
"type": "string",
"enum": ["Queued", "Success", "Error"]
"enum": [
"Queued",
"InProgress",
"Success",
"Error"
]
}
}
}
}
9 changes: 7 additions & 2 deletions schemas/package-bundle-install-report.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@
},
"BundleSObjects.PkgBundleVersionInstallReqStatus": {
"type": "string",
"enum": ["Queued", "Success", "Error"]
"enum": [
"Queued",
"InProgress",
"Success",
"Error"
]
}
}
}
}
9 changes: 7 additions & 2 deletions schemas/package-bundle-install.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@
},
"BundleSObjects.PkgBundleVersionInstallReqStatus": {
"type": "string",
"enum": ["Queued", "Success", "Error"]
"enum": [
"Queued",
"InProgress",
"Success",
"Error"
]
}
}
}
}
17 changes: 14 additions & 3 deletions schemas/package-bundle-version-create-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
"type": "string"
}
},
"ValidationError": {
"type": "string"
},
"PackageBundleId": {
"type": "string"
},
Expand All @@ -49,7 +52,10 @@
"type": "string"
},
"Ancestor": {
"type": ["string", "null"]
"type": [
"string",
"null"
]
}
},
"required": [
Expand All @@ -67,7 +73,12 @@
},
"BundleSObjects.PkgBundleVersionCreateReqStatus": {
"type": "string",
"enum": ["Queued", "Success", "Error"]
"enum": [
"Queued",
"InProgress",
"Success",
"Error"
]
}
}
}
}
17 changes: 14 additions & 3 deletions schemas/package-bundle-version-create-report.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
"type": "string"
}
},
"ValidationError": {
"type": "string"
},
"PackageBundleId": {
"type": "string"
},
Expand All @@ -49,7 +52,10 @@
"type": "string"
},
"Ancestor": {
"type": ["string", "null"]
"type": [
"string",
"null"
]
}
},
"required": [
Expand All @@ -67,7 +73,12 @@
},
"BundleSObjects.PkgBundleVersionCreateReqStatus": {
"type": "string",
"enum": ["Queued", "Success", "Error"]
"enum": [
"Queued",
"InProgress",
"Success",
"Error"
]
}
}
}
}
17 changes: 14 additions & 3 deletions schemas/package-bundle-version-create.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
"type": "string"
}
},
"ValidationError": {
"type": "string"
},
"PackageBundleId": {
"type": "string"
},
Expand All @@ -43,7 +46,10 @@
"type": "string"
},
"Ancestor": {
"type": ["string", "null"]
"type": [
"string",
"null"
]
}
},
"required": [
Expand All @@ -61,7 +67,12 @@
},
"BundleSObjects.PkgBundleVersionCreateReqStatus": {
"type": "string",
"enum": ["Queued", "Success", "Error"]
"enum": [
"Queued",
"InProgress",
"Success",
"Error"
]
}
}
}
}
61 changes: 48 additions & 13 deletions schemas/package-version-report.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
]
},
"HasPassedCodeCoverageCheck": {
"type": ["boolean", "string"]
"type": [
"boolean",
"string"
]
},
"Package2": {
"type": "object",
Expand Down Expand Up @@ -70,6 +73,9 @@
"AppAnalyticsEnabled": {
"type": "boolean"
},
"RecommendedVersionId": {
"type": "string"
},
"IsOrgDependent": {
"type": "string"
}
Expand All @@ -87,7 +93,10 @@
]
},
"HasMetadataRemoved": {
"type": ["boolean", "string"]
"type": [
"boolean",
"string"
]
},
"Id": {
"type": "string"
Expand Down Expand Up @@ -189,20 +198,32 @@
"$ref": "#/definitions/PackagingSObjects.SubscriberPackageDependencies"
}
},
"required": ["Dependencies"],
"required": [
"Dependencies"
],
"additionalProperties": false
},
"Version": {
"type": "string"
},
"AncestorVersion": {
"type": ["string", "null"]
"type": [
"string",
"null"
]
},
"AncestorId": {
"type": ["string", "null"]
"type": [
"string",
"null"
]
}
},
"required": ["HasMetadataRemoved", "Package2", "Version"]
"required": [
"HasMetadataRemoved",
"Package2",
"Version"
]
},
"CodeCoverage": {
"anyOf": [
Expand All @@ -216,14 +237,19 @@
"type": "number"
}
},
"required": ["apexCodeCoveragePercentage"],
"required": [
"apexCodeCoveragePercentage"
],
"additionalProperties": false
}
]
},
"PackageType": {
"type": "string",
"enum": ["Managed", "Unlocked"]
"enum": [
"Managed",
"Unlocked"
]
},
"CodeCoveragePercentages": {
"anyOf": [
Expand All @@ -245,14 +271,19 @@
"type": "number"
}
},
"required": ["className", "codeCoveragePercentage"],
"required": [
"className",
"codeCoveragePercentage"
],
"additionalProperties": false
},
"minItems": 1,
"maxItems": 1
}
},
"required": ["codeCovPercentages"],
"required": [
"codeCovPercentages"
],
"additionalProperties": false
}
]
Expand All @@ -269,13 +300,17 @@
"type": "string"
}
},
"required": ["subscriberPackageVersionId"],
"required": [
"subscriberPackageVersionId"
],
"additionalProperties": false
}
}
},
"required": ["ids"],
"required": [
"ids"
],
"additionalProperties": false
}
}
}
}
Loading