Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
fda8afd
feat: add package push list feature
luop90 Dec 12, 2024
207b1c9
fix: export required type
luop90 Dec 12, 2024
06812b6
feat: add pushupgrade list schema file
luop90 Dec 12, 2024
29c32af
fix: edit pushupgrade list schema file
luop90 Dec 12, 2024
d90a903
fix: edit pushupgrade list md file
luop90 Dec 12, 2024
bde0347
fix: change name
luop90 Dec 12, 2024
0670ca3
fix: update push upgrade list md file
luop90 Dec 13, 2024
e5c907d
feat: add beta state to pu list command
luop90 Dec 13, 2024
04247a5
feat: hide pu command
luop90 Dec 13, 2024
5ecd3c3
feat: add package as required flag
luop90 Dec 13, 2024
3ddbf2c
fix: add missing type
luop90 Dec 16, 2024
82d9b69
feat: add test for pu request list command
luop90 Dec 17, 2024
cce8a51
feat: implement schedule command
luop90 Dec 30, 2024
4c9a4cc
fix: add push upgrade schedule schema
luop90 Dec 30, 2024
6771c30
fix: change flag char
luop90 Dec 30, 2024
2d65bcc
fix: change flag char
luop90 Dec 30, 2024
69b0dda
fix: add push upgrade schedule schema
luop90 Dec 30, 2024
0f9125d
fix: temp test remove
luop90 Dec 30, 2024
84aa873
fix: add lint exceptions
luop90 Dec 30, 2024
f496fd1
fix: add lint exceptions
luop90 Dec 30, 2024
fa5c18e
fix: update list schema
luop90 Dec 30, 2024
cd19a82
fix: add eslint exception
luop90 Dec 30, 2024
7b2f0ab
feat: add schedule command test
luop90 Dec 30, 2024
b8e84e2
feat: add num orgs scheduled, succedded and failed + add test for lis…
luop90 Jan 2, 2025
9ad46ea
feat: add request scheduled time
luop90 Jan 2, 2025
ab0f65a
feat: add schedule last days option
luop90 Jan 2, 2025
2e70c4c
feat: add schedule last days check
luop90 Jan 2, 2025
2a72c45
fix: readd test
luop90 Jan 2, 2025
5b209c0
fix: remove verbose flag for list
luop90 Jan 6, 2025
ee39171
fix: remove verbose flag for list (update test)
luop90 Jan 6, 2025
2dfae38
fix: update schema and snapshot
luop90 Jan 6, 2025
59481d2
feat: adds pushupgrade abort command support
luop90 Jan 10, 2025
c78a871
feat: display list command correctly
luop90 Jan 13, 2025
dd3826c
fix: update snapshot
luop90 Jan 13, 2025
2738e0c
fix: update list schema
luop90 Jan 13, 2025
3d4b3f0
fix: update list test
luop90 Jan 13, 2025
fe4e541
fix: revert gitignore
luop90 Jan 14, 2025
4452fe4
fix: change summary text
luop90 Jan 14, 2025
39eabb4
fix: remove verbose flag schedule
luop90 Jan 14, 2025
9ee943e
fix: fix schedule command texts
luop90 Jan 14, 2025
c1ef673
fix: modify readOrgList function
luop90 Jan 14, 2025
b6286e2
fix: modify field names
luop90 Jan 14, 2025
f25ccbb
fix: change to schedule start time
luop90 Jan 14, 2025
9829f31
feat: adds pushupgrade report command
luop90 Dec 17, 2024
dbe5243
Merge pull request #859 from salesforcecli/t/packaging-distribution/W…
luop90 Jan 15, 2025
887a0d5
feat: adds support for package version
luop90 Jan 15, 2025
17eb75a
fix: add package version number to display
luop90 Jan 15, 2025
980a435
Merge pull request #875 from salesforcecli/t/packaging-distribution/W…
luop90 Jan 15, 2025
5ba1b3f
Merge branch 'packagingDistribution/pushUpgradeCLI' into t/packaging-…
luop90 Jan 15, 2025
1730856
fix: update push upgrade list md file
luop90 Jan 15, 2025
5c915c4
Merge pull request #853 from salesforcecli/t/packaging-distribution/W…
luop90 Jan 15, 2025
6563395
fix: update schedule md file
luop90 Jan 17, 2025
6704e25
feat: add return message schedule command
luop90 Jan 22, 2025
5571a80
fix: fix SfError type
luop90 Jan 23, 2025
5c9057f
fix: better error handling
luop90 Jan 23, 2025
d5de760
Merge branch 'packagingDistribution/pushUpgradeCLI' into btrn/pushCLI…
luop90 Jan 23, 2025
b0bd377
fix: fix schedule tests
luop90 Jan 23, 2025
29ab37d
fix: update snapshot
luop90 Jan 23, 2025
085f146
fix: fix schedule based on comments
luop90 Jan 27, 2025
ab1ca19
fix: fix test
luop90 Jan 27, 2025
2f1c928
fix: fix hub org deprecate call schedule
luop90 Jan 27, 2025
74d4b45
Merge pull request #867 from salesforcecli/btrn/pushCLISchedule
luop90 Jan 28, 2025
549c276
fix: pr comments
luop90 Jan 28, 2025
5fc2122
fix: split orgid according to new line
luop90 Jan 29, 2025
1fbe78d
Merge pull request #887 from salesforcecli/btrn/pushCLISchedule
luop90 Jan 29, 2025
e552883
fix: based on packaging PR changes
luop90 Jan 29, 2025
7050567
fix: remove deprecated aliases
luop90 Jan 29, 2025
2e3a6c2
Merge branch 'packagingDistribution/pushUpgradeCLI' into t/packaging-…
luop90 Jan 29, 2025
12f909e
test: add tests
luop90 Jan 29, 2025
f0d8cbd
fix: tests added
luop90 Jan 30, 2025
3a1dfac
Merge pull request #870 from salesforcecli/t/packaging-distribution/W…
luop90 Jan 30, 2025
6d3faf5
feat: add org list flag
luop90 Mar 25, 2025
05e37e0
chore: fix test
luop90 Mar 25, 2025
6da8b3e
fix: add try catch for get org list function
luop90 Mar 25, 2025
58eaf64
fix: add orgInput check cannot be empty
luop90 Mar 26, 2025
d8c4213
fix: handle case when both org file and org input not supplied
luop90 Mar 26, 2025
e95b3fc
fix: help text for schedule command
luop90 Mar 26, 2025
17dff8c
fix: update help text for all push upgrade commands
luop90 Mar 26, 2025
284ad0d
fix: update snapshot
luop90 Mar 26, 2025
c9a92e2
fix: remove error from message
luop90 Mar 26, 2025
e3b7935
fix: fix error message
luop90 Mar 26, 2025
fad4605
fix: update org list summary text
luop90 Mar 26, 2025
430aa3c
Merge pull request #926 from salesforcecli/add-org-list-flag
luop90 Mar 27, 2025
b9dc76d
fix: fix no-unsafe errors and other issues
luop90 Apr 29, 2025
f5193cc
fix: remove redundant check
luop90 Apr 29, 2025
bb5defe
fix: fix all any errors
luop90 Apr 29, 2025
a99c6ab
Merge branch 'main' into packagingDistribution/pushUpgradeCLI
luop90 Apr 29, 2025
28ff3b4
fix: fix linting issues
luop90 Apr 29, 2025
b53b990
fix: fix linting issues
luop90 Apr 29, 2025
911e707
fix: fix linting issues
luop90 Apr 29, 2025
acc3f9c
feat: add push migration flag
luop90 Apr 29, 2025
56bbe9a
fix: fix yarn issue
luop90 Apr 29, 2025
42f17b0
fix: update yarn lock
luop90 Apr 29, 2025
103c621
fix: add migration flag test
luop90 Apr 30, 2025
7d0fdc8
feat: add migration filter to list command
luop90 May 1, 2025
98c17f4
fix: fix migration text
luop90 May 1, 2025
f20c690
fix: uncomment code
luop90 May 1, 2025
77ff56f
fix: change command to push-upgrade
luop90 May 5, 2025
2666257
fix: update command snapshot
luop90 May 5, 2025
064b84e
fix: resolve conflicts
luop90 May 5, 2025
a3f95b5
fix: fix yarn lock
luop90 May 5, 2025
6d64ccd
feat: add migration filter for list command
luop90 May 5, 2025
748644d
fix: update command snapshot
luop90 May 5, 2025
0a2bc1a
Merge pull request #947 from salesforcecli/btrn/push-migration
luop90 May 5, 2025
86e5af4
fix: update file path for test files
luop90 May 14, 2025
0c4208a
fix: update file path for test files
luop90 May 14, 2025
db70ee6
feat: expose package convert command for ga
luop90 Jun 2, 2025
e54b105
Merge pull request #964 from salesforcecli/t/2gp-readiness/W-18491179…
luop90 Jun 3, 2025
4903cf7
chore(release): 2.14.0 [skip ci]
luop90 Jun 3, 2025
d674d8d
fix: start time is required error
luop90 Jun 3, 2025
824ce98
Merge pull request #965 from salesforcecli/btrn/fix-start-time-requir…
luop90 Jun 3, 2025
0c1477a
fix: fix help texts messages
luop90 Jun 4, 2025
871019c
fix: fix help texts messages
luop90 Jun 4, 2025
b3f64f2
fix: fix help texts messages
luop90 Jun 4, 2025
798c39d
fix: the new name has a space
luop90 Jun 4, 2025
fa7a2ef
fix: fix help texts messages
luop90 Jun 4, 2025
550c021
Merge branch 'main' into managedPackaging/W-18709355/messageUpdate
luop90 Jun 4, 2025
6729a7c
fix: fix help texts messages
luop90 Jun 4, 2025
d284e25
fix: remove beta flag
luop90 Jun 4, 2025
17b5d49
fix: fix snapshot
luop90 Jun 4, 2025
3dbd709
Merge pull request #966 from salesforcecli/btrn/fix-help-texts-plugin
luop90 Jun 4, 2025
8b05047
fix: update yarn lock
luop90 Jun 4, 2025
fd100a0
fix: update yarn lock
luop90 Jun 4, 2025
a5fec24
fix: update yarn lock
luop90 Jun 4, 2025
e198f3f
Merge branch 'main' into packagingDistribution/pushUpgradeCLI
luop90 Jun 4, 2025
a4c3334
fix: update snapshot
luop90 Jun 4, 2025
bc124e5
Merge branch 'packagingDistribution/pushUpgradeCLI' of github.com:sal…
luop90 Jun 4, 2025
d8a7d1a
fix: update package.json
luop90 Jun 4, 2025
a1c65b9
fix: fix tests
luop90 Jun 4, 2025
4e328a3
fix: updated expected output message to match new one
luop90 Jun 4, 2025
8a1604c
Merge branch 'managedPackaging/W-18709355/messageUpdate' of https://g…
luop90 Jun 4, 2025
42ab6b2
fix: update schema
luop90 Jun 5, 2025
978d827
fix: remove old schemas
luop90 Jun 5, 2025
5055adb
fix: update snapshot
luop90 Jun 5, 2025
8d1e861
fix: fix nut test error
luop90 Jun 5, 2025
642f69f
fix: fix nut test error
luop90 Jun 5, 2025
628fb2d
chore: remove unused eslint directives
luop90 Jun 5, 2025
f8bf9a6
Merge pull request #968 from salesforcecli/packagingDistribution/push…
luop90 Jun 5, 2025
97033a2
chore(release): 2.15.0 [skip ci]
luop90 Jun 5, 2025
82a6f38
chore(dev-deps): bump eslint-plugin-sf-plugin from 1.20.23 to 1.20.24
luop90 Jun 5, 2025
0fce4fc
Merge pull request #963 from salesforcecli/dependabot-npm_and_yarn-es…
luop90 Jun 6, 2025
a59327d
fix(deps): bump @salesforce/core from 8.11.1 to 8.11.4
luop90 Jun 6, 2025
1d948ff
Merge pull request #962 from salesforcecli/dependabot-npm_and_yarn-sa…
luop90 Jun 6, 2025
4eaf307
chore(release): 2.15.1 [skip ci]
luop90 Jun 6, 2025
a7aa08a
Merge branch 'main' into managedPackaging/W-18709355/messageUpdate
luop90 Jun 6, 2025
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
130 changes: 130 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

359 changes: 337 additions & 22 deletions README.md

Large diffs are not rendered by default.

64 changes: 57 additions & 7 deletions command-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@
"definitionfile",
"installationkey",
"installationkeybypass",
"patchversion",
"target-hub-org",
"targetdevhubusername",
"patchversion"
"targetdevhubusername"
],
"flagChars": ["f", "k", "m", "p", "s", "v", "w", "x", "a"],
"flagChars": ["a", "f", "k", "m", "p", "s", "v", "w", "x"],
"flags": [
"api-version",
"build-instance",
Expand All @@ -79,11 +79,11 @@
"json",
"loglevel",
"package",
"patch-version",
"seed-metadata",
"target-dev-hub",
"verbose",
"wait",
"patch-version"
"wait"
],
"plugin": "@salesforce/plugin-packaging"
},
Expand Down Expand Up @@ -181,6 +181,57 @@
"flags": ["api-version", "flags-dir", "json", "loglevel", "target-dev-hub", "verbose"],
"plugin": "@salesforce/plugin-packaging"
},
{
"alias": [],
"command": "package:push-upgrade:abort",
"flagAliases": [],
"flagChars": ["i", "v"],
"flags": ["api-version", "flags-dir", "json", "push-request-id", "target-dev-hub"],
"plugin": "@salesforce/plugin-packaging"
},
{
"alias": ["force:package:push-upgrade:list"],
"command": "package:push-upgrade:list",
"flagAliases": ["apiversion", "scheduledlastdays", "target-hub-org", "targetdevhubusername"],
"flagChars": ["l", "p", "s", "v"],
"flags": [
"api-version",
"flags-dir",
"json",
"package",
"scheduled-last-days",
"show-push-migrations-only",
"status",
"target-dev-hub"
],
"plugin": "@salesforce/plugin-packaging"
},
{
"alias": ["force:package:push-upgrade:report"],
"command": "package:push-upgrade:report",
"flagAliases": ["apiversion", "pushrequestid", "target-hub-org", "targetdevhubusername"],
"flagChars": ["i", "v"],
"flags": ["api-version", "flags-dir", "json", "loglevel", "push-request-id", "target-dev-hub"],
"plugin": "@salesforce/plugin-packaging"
},
{
"alias": [],
"command": "package:push-upgrade:schedule",
"flagAliases": ["apiversion"],
"flagChars": ["f", "l", "p", "t", "v"],
"flags": [
"api-version",
"flags-dir",
"json",
"migrate-to-2gp",
"org-file",
"org-list",
"package",
"start-time",
"target-dev-hub"
],
"plugin": "@salesforce/plugin-packaging"
},
{
"alias": ["force:package:uninstall"],
"command": "package:uninstall",
Expand Down Expand Up @@ -231,7 +282,6 @@
"releasenotesurl",
"skipancestorcheck",
"skipvalidation",
"asyncvalidation",
"target-hub-org",
"targetdevhubusername",
"uninstallscript",
Expand All @@ -243,6 +293,7 @@
"flagChars": ["a", "b", "c", "d", "e", "f", "j", "k", "n", "p", "r", "s", "t", "v", "w", "x"],
"flags": [
"api-version",
"async-validation",
"branch",
"build-instance",
"code-coverage",
Expand All @@ -261,7 +312,6 @@
"releasenotes-url",
"skip-ancestor-check",
"skip-validation",
"async-validation",
"tag",
"target-dev-hub",
"uninstall-script",
Expand Down
51 changes: 51 additions & 0 deletions messages/package_pushupgrade_abort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# summary

Abort a package push upgrade that has been scheduled. Only push upgrade requests with a status of Created or Pending can be aborted.

# description

Specify the request ID for which you want abort the request. If applicable, the command displays errors related to the request.

To show all requests in the org, run "<%= config.bin %> package pushupgrade list --package 033...".

# examples

- Cancel the specified package push upgrade request with the specified ID; uses your default Dev Hub org:

<%= config.bin %> <%= command.id %> --push-request-id 0DV...

- Cancel the specified package push upgrade request in the Dev Hub org with username devhub@example.com:

<%= config.bin %> <%= command.id %> --push-request-id 0DV... --target-dev-hub devhub@example.com

# flags.push-request-id.summary

ID of the package push request (starts with 0DV). This ID is returned after the package push-upgrade schedule command completes successfully.

# flags.target-dev-hub.summary

Username or alias of the Dev Hub org.

# flags.target-dev-hub.description

Overrides the value of the target-dev-hub configuration variable, if set.

# error.invalid-push-request-id-owner

Can’t abort package push upgrade request. The specified push upgrade ID is associated with a package in a different Dev Hub org. Retry this command in the context of the Dev Hub org that owns the package.

# error.invalid-push-request-id

Can’t abort package push upgrade request. The specified push upgrade ID isn’t valid. Check the ID (starts with 0DV) and retry the command.

# error.invalid-push-request-status

Can’t abort package push upgrade request with status '${pushRequest.Status}'. Only push upgrade requests with a status of 'Created' or 'Pending' can be cancelled.

# status

Status

# output

Scheduled push upgrade ID [%s] was cancelled.
61 changes: 61 additions & 0 deletions messages/package_pushupgrade_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# summary

Lists the status of push upgrade requests for a given package.

# description

Shows the details of each request to create a push upgrade 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 "sf package pushupgrade report" and supply the request ID.

# flags.package.summary

Package ID (starts with 033) of the package that you want push upgrade information for.

# flags.scheduled-last-days.summary

Number of days in the past for which to display the list of push upgrade requests that were scheduled. Used to filter the list output to only recently scheduled push upgrades.

# flags.status.summary

Status used to filter the list output Valid values are: Created, Canceled, Pending, In Progress, Failed, or Succeeded

# flags.show-push-migrations-only.summary

Display only push upgrade requests for package migrations.

# examples

- List all package push upgrade requests in the specified Dev Hub org:

<%= config.bin %> <%= command.id %> --package 033xyz --target-dev-hub myHub

- List all package push upgrade requests in the specified Dev Hub org scheduled in the last 30 days:

<%= config.bin %> <%= command.id %> --package 033xyz --scheduled-last-days 30 --target-dev-hub myHub

- List all package push upgrade with a status Succeeded:

<%= config.bin %> <%= command.id %> --package 033xyz –-status Succeeded

- List all package push upgrade with a status Failed:

<%= config.bin %> <%= command.id %> --package 033xyz –-status Failed

# id

ID

# status

Status

# package-id

Package Id

# packageVersionId

Package Version Id
27 changes: 27 additions & 0 deletions messages/package_pushupgrade_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# summary

Retrieve the status of a package push upgrade.

# description

Specify the request ID for which you want to view details. If applicable, the command displays errors related to the request.

To show all requests in the org, run "<%= config.bin %> package pushupgrade list".

# examples

- Retrieve details about the package push upgrade with the specified ID; uses your default Dev Hub org:

<%= config.bin %> <%= command.id %> --push-request-id 0DV...

- Retrieve details about the specified package push request in the Dev Hub org with username devhub@example.com:

<%= config.bin %> <%= command.id %> --push-request-id 0DV... --target-dev-hub devhub@example.com

# flags.push-request-id.summary

ID of the package push request (starts with 0DV). This ID is returned after the package push-upgrade schedule command completes successfully.

# truncatedErrors

To see all errors, run: %s data query -q "SELECT ErrorMessage FROM PackagePushError WHERE PackagePushJob.PackagePushRequestId='%s'"
109 changes: 109 additions & 0 deletions messages/package_pushupgrade_schedule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# summary

Schedule a package push upgrade.

# description

Represents a push upgrade request for upgrading a package in one or many orgs from one version to another version.
To initiate a push upgrade for an unlocked or second-generation managed package, the Create and Update Second-Generation Packages user permission is required.
For second-generation managed packages, the push upgrade feature is available only for packages that have passed AppExchange security review. To enable push upgrades for your managed package, log a support case in the Salesforce Partner Community.
For unlocked packages, push upgrades are enabled by default.

Use the -–migrate-to-2GP flag to indicate you’re installing a converted second-generation managed package into an org that has the first-generation managed package version of that package installed.

# flags.target-dev-hub.summary

Username or alias of the Dev Hub org.

# flags.target-dev-hub.description

Overrides the value of the target-dev-hub configuration variable, if set.

# flags.package.summary

ID (starts with 04t) of the package version that the package is being upgraded to. The package version must be an active, non-beta package version.

# flags.start-time.summary

Date and time (UTC) when the push upgrade is processed. Set to the earliest time that you want Salesforce to attempt to start the upgrade.

# flags.start-time.description

Scheduled push upgrades begin as soon as resources are available on the Salesforce instance, which is either at or after the start time you specify. In certain scenarios, the push upgrade starts a few hours after the scheduled start time.

As a best practice, schedule push upgrades at off-peak hours like 1:00 AM Saturday.
If you don't specify this flag, the push upgrade is scheduled to run as soon as resources are available on the Salesforce instance.

# flags.org-file.summary

Filename of the CSV file that contains the list of orgs that need the package upgrade.

# flags.org-file.description

The file must contain one org per line. The org ID must be the only value in each row.
All listed orgs must have a package version installed in their org that is lower than the package version you specified for the --package-version flag.

# flags.org-list.summary

Comma-separated list of subscriber org IDs that need the package upgrade.

# flags.migrate-to-2gp.summary

Upgrade from a first-generation managed package (1GP) to a second-generation managed package (2GP). Required when you’re pushing a 2GP package to orgs with the 1GP version installed.

# error.invalid-package-version

Invalid package version.

# error.empty-org-list

Can’t schedule the package push upgrade. The
org file you specified is empty. Review the file you specified, and retry this command.

# error.empty-org-input

There are no org Ids.

# error.invalid-org-file

Can’t schedule the package push upgrade. The org file you specified is invalid. The org file must be a CSV file, and each row can contain only one org ID. Review and update your org file and retry this command.

# error.invalid-org-input

Can’t schedule the package push upgrade. One or more of the orgs IDs you specified in the org list is an invalid org ID. Review the list of orgs you specified, and retry this command

# error.no-org-file-or-org-list-input

Can’t schedule the package push upgrade. You must specify either a list of orgs, or a file containing the list of orgs to be upgraded. Retry this command using either --org-list or --org-file flag and include the required details.

# examples

- Schedule a push upgrade that initiates at a specified time:
<%= config.bin %> <%= command.id %> --package 04txyz --start-time "2024-12-06T21:00:00" --org-file upgrade-orgs.csv

- Schedule a push upgrade that initiates as soon as possible:
<%= config.bin %> <%= command.id %> --package 04txyz --org-file upgrade-orgs.csv

- Schedule a push migration from a 1GP package to a 2GP package:
<%= config.bin %> <%= command.id %> --migrate-to-2gp --package 04txyz --start-time "2024-12-06T21:00:00" --org-file upgrade-orgs.csv --target-dev-hub myHub

# id

ID

# status

Status

# package-id

Package Id

# packageVersionId

Package Version Id

# output

Push upgrade has been scheduled. To check the status of this push upgrade, use push upgrade request ID [%s] with either "package push-upgrade list" or "package push-upgrade report".
Orgs scheduled for push upgrade: {%s}
4 changes: 2 additions & 2 deletions messages/package_version_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,13 @@ Display verbose command output. When polling for the status of the creation, thi

# InProgress

Package version creation request status is '%s'. Run "%s package:version:create:report -i %s" to query for status.
Package version creation request status is '%s'. Run "%s package version create report -i %s" to query for status.

# Success

Successfully created the package version [%s]. Subscriber Package Version Id: %s
Package Installation URL: %s%s
As an alternative, you can use the "%s package:install" command.
As an alternative, you can use the "%s package install" command.

# errorPathNotFound

Expand Down
Loading
Loading