Skip to content

feat: created bundle version create #983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
44 changes: 44 additions & 0 deletions command-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,50 @@
"flags": ["api-version", "flags-dir", "json", "loglevel", "target-dev-hub", "verbose"],
"plugin": "@salesforce/plugin-packaging"
},
{
"alias": ["force:package:bundle:version:create"],
"command": "package:bundle:version:create",
"flagAliases": ["apiversion", "target-hub-org", "targetdevhubusername"],
"flagChars": ["b", "p", "v", "w"],
"flags": [
"api-version",
"bundle",
"definition-file",
"flags-dir",
"json",
"loglevel",
"target-dev-hub",
"verbose",
"wait"
],
"plugin": "@salesforce/plugin-packaging"
},
{
"alias": ["force:package:bundle:version:create:list"],
"command": "package:bundle:version:create:list",
"flagAliases": ["apiversion", "createdlastdays", "target-hub-org", "targetdevhubusername"],
"flagChars": ["c", "s", "v"],
"flags": [
"api-version",
"created-last-days",
"flags-dir",
"json",
"loglevel",
"show-conversions-only",
"status",
"target-dev-hub",
"verbose"
],
"plugin": "@salesforce/plugin-packaging"
},
{
"alias": ["force:package:bundle:version:create:report"],
"command": "package:bundle:version:create:report",
"flagAliases": ["apiversion", "packagecreaterequestid", "target-hub-org", "targetdevhubusername"],
"flagChars": ["i", "v"],
"flags": ["api-version", "flags-dir", "json", "loglevel", "package-create-request-id", "target-dev-hub"],
"plugin": "@salesforce/plugin-packaging"
},
{
"alias": ["force:package:convert"],
"command": "package:convert",
Expand Down
22 changes: 21 additions & 1 deletion messages/bundle_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ A bundle can be listed on AppExchange, installed, or upgraded as a single artifa

Create a package bundle in the Dev Hub org; uses the Dev Hub org with the username [email protected]:

sf package bundle create --name Your bundle name --description "Your bundle description" --target-dev-hub [email protected]
sf package bundle create --name "Your bundle name" --description "Your bundle description" --target-dev-hub [email protected]

# flags.name.summary

Expand All @@ -20,3 +20,23 @@ Name of the package bundle.
# flags.description.summary

Description of the package bundle.

# flags.wait.summary

Number of minutes to wait for the bundle creation to complete.

# flags.verbose.summary

Display extended bundle creation detail.

# requestInProgress

Creating bundle.

# bundleCreateWaitingStatus

%d minutes remaining until timeout. Create bundle status: %s

# bundleCreateFinalStatus

Create bundle status: %s
65 changes: 65 additions & 0 deletions messages/bundle_version_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# summary

Create a new package bundle version.

# description

Create a new version of a package bundle with the specified components.

# examples

Create a new version of a package bundle:

sf package bundle version create -b MyBundle -p path/to/definition.json

# flags.bundle.summary

The name or ID of the package bundle to create a version for.

# flags.definition-file.summary

Path to the JSON file containing the list of components to include in the bundle version.

# flags.wait.summary

Number of minutes to wait for the command to complete before timing out.

# flags.verbose.summary

Show verbose output of the command execution.

# flags.verbose.description

Show detailed information about the bundle version creation process.

# bundleVersionCreateWaitingStatus

Waiting for bundle version creation to complete. %s minutes remaining. Current status: %s

# bundleVersionCreateFinalStatus

Package Bundle version creation completed with status: %s

# multipleErrors

The following errors occurred during bundle version creation:%s

# InProgress

Bundle version creation is %s. Use 'sf package bundle version create report -i %s' to check the status later.

# requestInProgress

Creating bundle version...

# packageVersionCreateFinalStatus

Package Bundle version creation completed with status: %s

# packageVersionCreatePerformingValidations

Performing validations on the package bundle version...

# bundleVersionCreateSuccess

Successfully created bundle version for bundle %s
73 changes: 73 additions & 0 deletions messages/bundle_version_create_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# summary

List package version creation requests.

# description

Shows the details of each request to create a package bundle version in the Dev Hub org.

All filter parameters are applied using the AND logical operator (not OR).

To get information about a specific request, run "<%= config.bin %> package bundle version create report" and supply the request ID.

# flags.status.summary

Status of the version creation request, used to filter the list.

# flags.show-conversions-only.summary

Filter the list output to display only converted package bundle version.

# flags.verbose.summary

Displays additional information at a slight performance cost, such as the version name and number for each package version create request.

# flags.created-last-days.summary

Number of days since the request was created, starting at 00:00:00 of first day to now. Use 0 for today.

# examples

- List all package bundle version creation requests in your default Dev Hub org:

<%= config.bin %> <%= command.id %>

- List package bundle version creation requests from the last 3 days in the Dev Hub org with username [email protected]:

<%= config.bin %> <%= command.id %> --created-last-days 3 --target-dev-hub

- List package bundle version creation requests with status Error:

<%= config.bin %> <%= command.id %> --status Error

- List package bundle version creation requests with status Queued:

<%= config.bin %> <%= command.id %> --status Queued

- List package bundle version creation requests with status Success that were created today:

<%= config.bin %> <%= command.id %> --created-last-days 0 --status Success

# id

ID

# status

Status

# package-id

Package Bundle Id

# packageVersionId

Package Bundle Version Id

# createdBy

Created By

# convertedFromVersionId

Converted From Version Id
49 changes: 49 additions & 0 deletions messages/bundle_version_create_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# summary

Report on the status of a package bundle version creation request.

# description

Use this command to check the status of a package bundle version creation request. The command returns information about the request, including its current status and details about the package bundle version being created.

# examples

- Report on a package bundle version creation request:

<%= config.bin %> <%= command.id %> --package-create-request-id 0Ho0x0000000000000

- Report on a package bundle version creation request using an alias:

<%= config.bin %> force:package:bundle:version:create:report -i 0Ho0x0000000000000

# flags.package-create-request-id.summary

The ID of the package bundle version creation request to report on.

# id

ID

# status

Status

# package-bundle-id

Package Bundle ID

# package-bundle-version-id

Package Bundle Version ID

# version-name

Version Name

# created-date

Created Date

# created-by

Created By
16 changes: 0 additions & 16 deletions schemas/package-bundle-create.json

This file was deleted.

73 changes: 73 additions & 0 deletions schemas/package-bundle-version-create-list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/PackageBundleVersionCreateRequestResults",
"definitions": {
"PackageBundleVersionCreateRequestResults": {
"type": "array",
"items": {
"$ref": "#/definitions/BundleSObjects.PackageBundleVersionCreateRequestResult"
}
},
"BundleSObjects.PackageBundleVersionCreateRequestResult": {
"type": "object",
"additionalProperties": false,
"properties": {
"Id": {
"type": "string"
},
"PackageBundleVersionId": {
"type": "string"
},
"RequestStatus": {
"$ref": "#/definitions/BundleSObjects.PkgBundleVersionCreateReqStatus"
},
"CreatedDate": {
"type": "string"
},
"CreatedById": {
"type": "string"
},
"Error": {
"type": "array",
"items": {
"type": "string"
}
},
"PackageBundleId": {
"type": "string"
},
"VersionName": {
"type": "string"
},
"MajorVersion": {
"type": "string"
},
"MinorVersion": {
"type": "string"
},
"BundleVersionComponents": {
"type": "string"
},
"Ancestor": {
"type": ["string", "null"]
}
},
"required": [
"BundleVersionComponents",
"CreatedById",
"CreatedDate",
"Id",
"MajorVersion",
"MinorVersion",
"PackageBundleId",
"PackageBundleVersionId",
"RequestStatus",
"VersionName"
]
},
"BundleSObjects.PkgBundleVersionCreateReqStatus": {
"type": "string",
"enum": ["Queued", "Success", "Error"]
}
}
}
Loading
Loading