@salesforce/cli 2.92.7 → 2.93.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -25,7 +25,7 @@ $ npm install -g @salesforce/cli
25
25
  $ sf COMMAND
26
26
  running command...
27
27
  $ sf (--version|-v)
28
- @salesforce/cli/2.92.7 linux-x64 node-v22.16.0
28
+ @salesforce/cli/2.93.1 linux-x64 node-v22.16.0
29
29
  $ sf --help [COMMAND]
30
30
  USAGE
31
31
  $ sf COMMAND
@@ -141,6 +141,10 @@ See [architecture page](ARCHITECTURE.md) for diagrams of the Salesforce CLI.
141
141
  - [`sf package install report`](#sf-package-install-report)
142
142
  - [`sf package installed list`](#sf-package-installed-list)
143
143
  - [`sf package list`](#sf-package-list)
144
+ - [`sf package push-upgrade abort`](#sf-package-push-upgrade-abort)
145
+ - [`sf package push-upgrade list`](#sf-package-push-upgrade-list)
146
+ - [`sf package push-upgrade report`](#sf-package-push-upgrade-report)
147
+ - [`sf package push-upgrade schedule`](#sf-package-push-upgrade-schedule)
144
148
  - [`sf package uninstall`](#sf-package-uninstall)
145
149
  - [`sf package uninstall report`](#sf-package-uninstall-report)
146
150
  - [`sf package update`](#sf-package-update)
@@ -5585,7 +5589,7 @@ FLAG DESCRIPTIONS
5585
5589
  --installation-key-bypass flag is required.
5586
5590
  ```
5587
5591
 
5588
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/convert.ts)_
5592
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/convert.ts)_
5589
5593
 
5590
5594
  ## `sf package create`
5591
5595
 
@@ -5664,7 +5668,7 @@ FLAG DESCRIPTIONS
5664
5668
  Org-Dependent Unlocked Packages" in the Salesforce DX Developer Guide.
5665
5669
  ```
5666
5670
 
5667
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/create.ts)_
5671
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/create.ts)_
5668
5672
 
5669
5673
  ## `sf package delete`
5670
5674
 
@@ -5706,7 +5710,7 @@ EXAMPLES
5706
5710
  $ sf package delete --package 0Ho... --target-dev-hub devhub@example.com
5707
5711
  ```
5708
5712
 
5709
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/delete.ts)_
5713
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/delete.ts)_
5710
5714
 
5711
5715
  ## `sf package install`
5712
5716
 
@@ -5805,7 +5809,7 @@ FLAG DESCRIPTIONS
5805
5809
  - Delete: Delete all removed components that can be safely deleted, and deprecate the other components.
5806
5810
  ```
5807
5811
 
5808
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/install.ts)_
5812
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/install.ts)_
5809
5813
 
5810
5814
  ## `sf package install report`
5811
5815
 
@@ -5838,7 +5842,7 @@ EXAMPLES
5838
5842
  $ sf package install report --request-id 0Hf... --target-org me@example.com
5839
5843
  ```
5840
5844
 
5841
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/install/report.ts)_
5845
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/install/report.ts)_
5842
5846
 
5843
5847
  ## `sf package installed list`
5844
5848
 
@@ -5870,7 +5874,7 @@ EXAMPLES
5870
5874
  $ sf package installed list --target-org me@example.com
5871
5875
  ```
5872
5876
 
5873
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/installed/list.ts)_
5877
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/installed/list.ts)_
5874
5878
 
5875
5879
  ## `sf package list`
5876
5880
 
@@ -5908,7 +5912,230 @@ EXAMPLES
5908
5912
  $ sf package list --target-dev-hub devhub@example.com --verbose
5909
5913
  ```
5910
5914
 
5911
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/list.ts)_
5915
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/list.ts)_
5916
+
5917
+ ## `sf package push-upgrade abort`
5918
+
5919
+ Abort a package push upgrade that has been scheduled. Only push upgrade requests with a status of Created or Pending can be aborted.
5920
+
5921
+ ```
5922
+ USAGE
5923
+ $ sf package push-upgrade abort -v <value> -i <value> [--json] [--flags-dir <value>] [--api-version <value>]
5924
+
5925
+ FLAGS
5926
+ -i, --push-request-id=<value> (required) ID of the package push request (starts with 0DV). This ID is returned after
5927
+ the package push-upgrade schedule command completes successfully.
5928
+ -v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the `target-dev-hub`
5929
+ configuration variable is already set.
5930
+ --api-version=<value> Override the api version used for api requests made by this command
5931
+
5932
+ GLOBAL FLAGS
5933
+ --flags-dir=<value> Import flag values from a directory.
5934
+ --json Format output as json.
5935
+
5936
+ DESCRIPTION
5937
+ Abort a package push upgrade that has been scheduled. Only push upgrade requests with a status of Created or Pending
5938
+ can be aborted.
5939
+
5940
+ Specify the request ID for which you want abort the request. If applicable, the command displays errors related to the
5941
+ request.
5942
+
5943
+ To show all requests in the org, run "sf package pushupgrade list --package 033...".
5944
+
5945
+ EXAMPLES
5946
+ Cancel the specified package push upgrade request with the specified ID; uses your default Dev Hub org:
5947
+
5948
+ $ sf package push-upgrade abort --push-request-id 0DV...
5949
+
5950
+ Cancel the specified package push upgrade request in the Dev Hub org with username devhub@example.com:
5951
+
5952
+ $ sf package push-upgrade abort --push-request-id 0DV... --target-dev-hub devhub@example.com
5953
+ ```
5954
+
5955
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/push-upgrade/abort.ts)_
5956
+
5957
+ ## `sf package push-upgrade list`
5958
+
5959
+ Lists the status of push upgrade requests for a given package.
5960
+
5961
+ ```
5962
+ USAGE
5963
+ $ sf package push-upgrade list -v <value> -p <value> [--json] [--flags-dir <value>] [--api-version <value>] [-l <value>] [-s
5964
+ Created|Cancelled|Pending|In Progress|Failed|Succeeded] [--show-push-migrations-only]
5965
+
5966
+ FLAGS
5967
+ -l, --scheduled-last-days=<value> Number of days in the past for which to display the list of push upgrade requests
5968
+ that were scheduled. Used to filter the list output to only recently scheduled push
5969
+ upgrades.
5970
+ -p, --package=<value> (required) Package ID (starts with 033) of the package that you want push upgrade
5971
+ information for.
5972
+ -s, --status=<option> Status used to filter the list output Valid values are: Created, Canceled, Pending,
5973
+ In Progress, Failed, or Succeeded
5974
+ <options: Created|Cancelled|Pending|In Progress|Failed|Succeeded>
5975
+ -v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the
5976
+ `target-dev-hub` configuration variable is already set.
5977
+ --api-version=<value> Override the api version used for api requests made by this command
5978
+ --show-push-migrations-only Display only push upgrade requests for package migrations.
5979
+
5980
+ GLOBAL FLAGS
5981
+ --flags-dir=<value> Import flag values from a directory.
5982
+ --json Format output as json.
5983
+
5984
+ DESCRIPTION
5985
+ Lists the status of push upgrade requests for a given package.
5986
+
5987
+ Shows the details of each request to create a push upgrade in the Dev Hub org.
5988
+
5989
+ All filter parameters are applied using the AND logical operator (not OR).
5990
+
5991
+ To get information about a specific request, run "sf package pushupgrade report" and supply the request ID.
5992
+
5993
+ ALIASES
5994
+ $ sf force package push-upgrade list
5995
+
5996
+ EXAMPLES
5997
+ List all package push upgrade requests in the specified Dev Hub org:
5998
+
5999
+ $ sf package push-upgrade list --package 033xyz --target-dev-hub myHub
6000
+
6001
+ List all package push upgrade requests in the specified Dev Hub org scheduled in the last 30 days:
6002
+
6003
+ $ sf package push-upgrade list --package 033xyz --scheduled-last-days 30 --target-dev-hub myHub
6004
+
6005
+ List all package push upgrade with a status Succeeded:
6006
+
6007
+ $ sf package push-upgrade list --package 033xyz –-status Succeeded
6008
+
6009
+ List all package push upgrade with a status Failed:
6010
+
6011
+ $ sf package push-upgrade list --package 033xyz –-status Failed
6012
+ ```
6013
+
6014
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/push-upgrade/list.ts)_
6015
+
6016
+ ## `sf package push-upgrade report`
6017
+
6018
+ Retrieve the status of a package push upgrade.
6019
+
6020
+ ```
6021
+ USAGE
6022
+ $ sf package push-upgrade report -v <value> -i <value> [--json] [--flags-dir <value>] [--api-version <value>]
6023
+
6024
+ FLAGS
6025
+ -i, --push-request-id=<value> (required) ID of the package push request (starts with 0DV). This ID is returned after
6026
+ the package push-upgrade schedule command completes successfully.
6027
+ -v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the `target-dev-hub`
6028
+ configuration variable is already set.
6029
+ --api-version=<value> Override the api version used for api requests made by this command
6030
+
6031
+ GLOBAL FLAGS
6032
+ --flags-dir=<value> Import flag values from a directory.
6033
+ --json Format output as json.
6034
+
6035
+ DESCRIPTION
6036
+ Retrieve the status of a package push upgrade.
6037
+
6038
+ Specify the request ID for which you want to view details. If applicable, the command displays errors related to the
6039
+ request.
6040
+
6041
+ To show all requests in the org, run "sf package pushupgrade list".
6042
+
6043
+ ALIASES
6044
+ $ sf force package push-upgrade report
6045
+
6046
+ EXAMPLES
6047
+ Retrieve details about the package push upgrade with the specified ID; uses your default Dev Hub org:
6048
+
6049
+ $ sf package push-upgrade report --push-request-id 0DV...
6050
+
6051
+ Retrieve details about the specified package push request in the Dev Hub org with username devhub@example.com:
6052
+
6053
+ $ sf package push-upgrade report --push-request-id 0DV... --target-dev-hub devhub@example.com
6054
+ ```
6055
+
6056
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/push-upgrade/report.ts)_
6057
+
6058
+ ## `sf package push-upgrade schedule`
6059
+
6060
+ Schedule a package push upgrade.
6061
+
6062
+ ```
6063
+ USAGE
6064
+ $ sf package push-upgrade schedule -v <value> -p <value> [--json] [--flags-dir <value>] [--api-version <value>] [-t <value>] [-l
6065
+ <value> | -f <value>] [--migrate-to-2gp]
6066
+
6067
+ FLAGS
6068
+ -f, --org-file=<value> Filename of the CSV file that contains the list of orgs that need the package upgrade.
6069
+ -l, --org-list=<value> Comma-separated list of subscriber org IDs that need the package upgrade.
6070
+ -p, --package=<value> (required) ID (starts with 04t) of the package version that the package is being
6071
+ upgraded to. The package version must be an active, non-beta package version.
6072
+ -t, --start-time=<value> Date and time (UTC) when the push upgrade is processed. Set to the earliest time that
6073
+ you want Salesforce to attempt to start the upgrade.
6074
+ -v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org.
6075
+ --api-version=<value> Override the api version used for api requests made by this command
6076
+ --migrate-to-2gp Upgrade from a first-generation managed package (1GP) to a second-generation managed
6077
+ package (2GP). Required when you’re pushing a 2GP package to orgs with the 1GP version
6078
+ installed.
6079
+
6080
+ GLOBAL FLAGS
6081
+ --flags-dir=<value> Import flag values from a directory.
6082
+ --json Format output as json.
6083
+
6084
+ DESCRIPTION
6085
+ Schedule a package push upgrade.
6086
+
6087
+ Represents a push upgrade request for upgrading a package in one or many orgs from one version to another version.
6088
+ To initiate a push upgrade for an unlocked or second-generation managed package, the Create and Update
6089
+ Second-Generation Packages user permission is required.
6090
+ For second-generation managed packages, the push upgrade feature is available only for packages that have passed
6091
+ AppExchange security review. To enable push upgrades for your managed package, log a support case in the Salesforce
6092
+ Partner Community.
6093
+ For unlocked packages, push upgrades are enabled by default.
6094
+
6095
+ Use the -–migrate-to-2GP flag to indicate you’re installing a converted second-generation managed package into an org
6096
+ that has the first-generation managed package version of that package installed.
6097
+
6098
+ EXAMPLES
6099
+ Schedule a push upgrade that initiates at a specified time:
6100
+
6101
+ $ sf package push-upgrade schedule --package 04txyz --start-time "2024-12-06T21:00:00" --org-file \
6102
+ upgrade-orgs.csv
6103
+
6104
+ Schedule a push upgrade that initiates as soon as possible:
6105
+
6106
+ $ sf package push-upgrade schedule --package 04txyz --org-file upgrade-orgs.csv
6107
+
6108
+ Schedule a push migration from a 1GP package to a 2GP package:
6109
+
6110
+ $ sf package push-upgrade schedule --migrate-to-2gp --package 04txyz --start-time "2024-12-06T21:00:00" \
6111
+ --org-file upgrade-orgs.csv --target-dev-hub myHub
6112
+
6113
+ FLAG DESCRIPTIONS
6114
+ -f, --org-file=<value> Filename of the CSV file that contains the list of orgs that need the package upgrade.
6115
+
6116
+ The file must contain one org per line. The org ID must be the only value in each row.
6117
+ All listed orgs must have a package version installed in their org that is lower than the package version you
6118
+ specified for the --package-version flag.
6119
+
6120
+ -t, --start-time=<value>
6121
+
6122
+ Date and time (UTC) when the push upgrade is processed. Set to the earliest time that you want Salesforce to attempt
6123
+ to start the upgrade.
6124
+
6125
+ Scheduled push upgrades begin as soon as resources are available on the Salesforce instance, which is either at or
6126
+ after the start time you specify. In certain scenarios, the push upgrade starts a few hours after the scheduled
6127
+ start time.
6128
+
6129
+ As a best practice, schedule push upgrades at off-peak hours like 1:00 AM Saturday.
6130
+ If you don't specify this flag, the push upgrade is scheduled to run as soon as resources are available on the
6131
+ Salesforce instance.
6132
+
6133
+ -v, --target-dev-hub=<value> Username or alias of the Dev Hub org.
6134
+
6135
+ Overrides the value of the target-dev-hub configuration variable, if set.
6136
+ ```
6137
+
6138
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/push-upgrade/schedule.ts)_
5912
6139
 
5913
6140
  ## `sf package uninstall`
5914
6141
 
@@ -5956,7 +6183,7 @@ EXAMPLES
5956
6183
  $ sf package uninstall --package "Undesirable Package Alias"
5957
6184
  ```
5958
6185
 
5959
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/uninstall.ts)_
6186
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/uninstall.ts)_
5960
6187
 
5961
6188
  ## `sf package uninstall report`
5962
6189
 
@@ -5989,7 +6216,7 @@ EXAMPLES
5989
6216
  $ sf package uninstall report --request-id 06y... --target-org me@example.com
5990
6217
  ```
5991
6218
 
5992
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/uninstall/report.ts)_
6219
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/uninstall/report.ts)_
5993
6220
 
5994
6221
  ## `sf package update`
5995
6222
 
@@ -6044,7 +6271,7 @@ FLAG DESCRIPTIONS
6044
6271
  associated with your package.
6045
6272
  ```
6046
6273
 
6047
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/update.ts)_
6274
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/update.ts)_
6048
6275
 
6049
6276
  ## `sf package version create`
6050
6277
 
@@ -6219,7 +6446,7 @@ FLAG DESCRIPTIONS
6219
6446
  periods of no output from commands.
6220
6447
  ```
6221
6448
 
6222
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/version/create.ts)_
6449
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/version/create.ts)_
6223
6450
 
6224
6451
  ## `sf package version create list`
6225
6452
 
@@ -6280,7 +6507,7 @@ EXAMPLES
6280
6507
  $ sf package version create list --created-last-days 0 --status Success
6281
6508
  ```
6282
6509
 
6283
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/version/create/list.ts)_
6510
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/version/create/list.ts)_
6284
6511
 
6285
6512
  ## `sf package version create report`
6286
6513
 
@@ -6323,7 +6550,7 @@ EXAMPLES
6323
6550
  $ sf package version create report --package-create-request-id 08c... --target-dev-hub devhub@example.com
6324
6551
  ```
6325
6552
 
6326
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/version/create/report.ts)_
6553
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/version/create/report.ts)_
6327
6554
 
6328
6555
  ## `sf package version delete`
6329
6556
 
@@ -6364,7 +6591,7 @@ EXAMPLES
6364
6591
  $ sf package version delete --package 04t... --target-org devhub@example.com
6365
6592
  ```
6366
6593
 
6367
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/version/delete.ts)_
6594
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/version/delete.ts)_
6368
6595
 
6369
6596
  ## `sf package version displayancestry`
6370
6597
 
@@ -6424,7 +6651,7 @@ FLAG DESCRIPTIONS
6424
6651
  You can use the DOT code output in graph visualization software to create tree visualizations.
6425
6652
  ```
6426
6653
 
6427
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/version/displayancestry.ts)_
6654
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/version/displayancestry.ts)_
6428
6655
 
6429
6656
  ## `sf package version list`
6430
6657
 
@@ -6500,7 +6727,7 @@ EXAMPLES
6500
6727
  $ sf package version list --packages exp-mgr,exp-mgr-util --released --modified-last-days 0
6501
6728
  ```
6502
6729
 
6503
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/version/list.ts)_
6730
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/version/list.ts)_
6504
6731
 
6505
6732
  ## `sf package version promote`
6506
6733
 
@@ -6544,7 +6771,7 @@ EXAMPLES
6544
6771
  $ sf package version promote --package "Awesome Package Alias"
6545
6772
  ```
6546
6773
 
6547
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/version/promote.ts)_
6774
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/version/promote.ts)_
6548
6775
 
6549
6776
  ## `sf package version report`
6550
6777
 
@@ -6584,7 +6811,7 @@ EXAMPLES
6584
6811
  $ sf package version report --package "Your Package Alias" --target-dev-hub devhub@example.com
6585
6812
  ```
6586
6813
 
6587
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/version/report.ts)_
6814
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/version/report.ts)_
6588
6815
 
6589
6816
  ## `sf package version update`
6590
6817
 
@@ -6637,7 +6864,7 @@ EXAMPLES
6637
6864
  $ sf package version update --package 04t... --version-description "New Package Version Description"
6638
6865
  ```
6639
6866
 
6640
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package/version/update.ts)_
6867
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package/version/update.ts)_
6641
6868
 
6642
6869
  ## `sf package1 version create`
6643
6870
 
@@ -6704,7 +6931,7 @@ FLAG DESCRIPTIONS
6704
6931
  subscribers.
6705
6932
  ```
6706
6933
 
6707
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package1/version/create.ts)_
6934
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package1/version/create.ts)_
6708
6935
 
6709
6936
  ## `sf package1 version create get`
6710
6937
 
@@ -6737,7 +6964,7 @@ EXAMPLES
6737
6964
  $ sf package1 version create get --request-id 0HD... --target-org myorg@example.com
6738
6965
  ```
6739
6966
 
6740
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package1/version/create/get.ts)_
6967
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package1/version/create/get.ts)_
6741
6968
 
6742
6969
  ## `sf package1 version display`
6743
6970
 
@@ -6771,7 +6998,7 @@ EXAMPLES
6771
6998
  $ sf package1 version display --package-version-id 04t... --target-org myorg@example.com
6772
6999
  ```
6773
7000
 
6774
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package1/version/display.ts)_
7001
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package1/version/display.ts)_
6775
7002
 
6776
7003
  ## `sf package1 version list`
6777
7004
 
@@ -6809,7 +7036,7 @@ FLAG DESCRIPTIONS
6809
7036
  If not specified, shows all versions for all packages (managed and unmanaged) in the org.
6810
7037
  ```
6811
7038
 
6812
- _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.14.0/src/commands/package1/version/list.ts)_
7039
+ _See code: [@salesforce/plugin-packaging](https://github.com/salesforcecli/plugin-packaging/blob/2.15.0/src/commands/package1/version/list.ts)_
6813
7040
 
6814
7041
  ## `sf plugins`
6815
7042
 
@@ -4,9 +4,8 @@
4
4
  * Licensed under the BSD 3-Clause license.
5
5
  * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
6
  */
7
- // eslint-disable-next-line @typescript-eslint/require-await
8
- const hook = async function ({ Command, config }) {
9
- if (process.argv.includes('--json'))
7
+ const hook = async function ({ Command, config, argv }) {
8
+ if (argv.includes('--json') || process.argv.includes('--json'))
10
9
  return;
11
10
  const { plugin } = Command;
12
11
  if (!plugin)
@@ -18,9 +17,27 @@ const hook = async function ({ Command, config }) {
18
17
  const specifiedVersion = jitPlugins[plugin.name] ?? deps[plugin.name];
19
18
  if (!specifiedVersion)
20
19
  return;
21
- if (plugin.version !== specifiedVersion) {
20
+ // Simple semver comparison without external library
21
+ const parseVersion = (version) => version
22
+ .replace(/^[^\d]*/, '')
23
+ .split('.')
24
+ .map((n) => parseInt(n, 10) || 0);
25
+ const isLessThan = (version1, version2) => {
26
+ const v1 = parseVersion(version1);
27
+ const v2 = parseVersion(version2);
28
+ for (let i = 0; i < Math.max(v1.length, v2.length); i++) {
29
+ const num1 = v1[i] || 0;
30
+ const num2 = v2[i] || 0;
31
+ if (num1 < num2)
32
+ return true;
33
+ if (num1 > num2)
34
+ return false;
35
+ }
36
+ return false;
37
+ };
38
+ if (isLessThan(plugin.version, specifiedVersion)) {
22
39
  const { ux } = await import('@oclif/core/ux');
23
- ux.warn(`Plugin ${plugin.name} (${plugin.version}) differs from the version specified by ${config.bin} (${specifiedVersion})`);
40
+ ux.warn(`Plugin ${plugin.name} (${plugin.version}) is older than the version specified by ${config.bin} (${specifiedVersion})`);
24
41
  }
25
42
  };
26
43
  export default hook;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/cli",
3
- "version": "2.92.7",
3
+ "version": "2.93.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@salesforce/cli",
9
- "version": "2.92.7",
9
+ "version": "2.93.1",
10
10
  "hasInstallScript": true,
11
11
  "license": "Apache-2.0",
12
12
  "dependencies": {
@@ -34,7 +34,7 @@
34
34
  "@salesforce/plugin-limits": "3.3.56",
35
35
  "@salesforce/plugin-marketplace": "1.3.8",
36
36
  "@salesforce/plugin-org": "5.7.13",
37
- "@salesforce/plugin-packaging": "2.14.0",
37
+ "@salesforce/plugin-packaging": "2.15.0",
38
38
  "@salesforce/plugin-schema": "3.3.65",
39
39
  "@salesforce/plugin-settings": "2.4.29",
40
40
  "@salesforce/plugin-sobject": "1.4.59",
@@ -51,6 +51,7 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@oclif/plugin-command-snapshot": "^5.2.3",
54
+ "@oclif/test": "^4.1.13",
54
55
  "@salesforce/dev-scripts": "^11.0.2",
55
56
  "@salesforce/plugin-release-management": "^5.7.0",
56
57
  "@salesforce/ts-sinon": "^1.4.30",
@@ -4376,6 +4377,23 @@
4376
4377
  "url": "https://github.com/chalk/strip-ansi?sponsor=1"
4377
4378
  }
4378
4379
  },
4380
+ "node_modules/@oclif/test": {
4381
+ "version": "4.1.13",
4382
+ "resolved": "https://registry.npmjs.org/@oclif/test/-/test-4.1.13.tgz",
4383
+ "integrity": "sha512-pulrTiJRhoAKizFf6y5WeHvM2JyoRiZKV0H8qqYEoE0UHDKqInNmfGJyp8Ip6lTVQeMv1U8YCAXOS/HiWPVWeg==",
4384
+ "dev": true,
4385
+ "license": "MIT",
4386
+ "dependencies": {
4387
+ "ansis": "^3.17.0",
4388
+ "debug": "^4.4.1"
4389
+ },
4390
+ "engines": {
4391
+ "node": ">=18.0.0"
4392
+ },
4393
+ "peerDependencies": {
4394
+ "@oclif/core": ">= 3.0.0"
4395
+ }
4396
+ },
4379
4397
  "node_modules/@octokit/auth-token": {
4380
4398
  "version": "5.1.2",
4381
4399
  "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.1.2.tgz",
@@ -4989,13 +5007,13 @@
4989
5007
  }
4990
5008
  },
4991
5009
  "node_modules/@salesforce/packaging": {
4992
- "version": "4.5.0",
4993
- "resolved": "https://registry.npmjs.org/@salesforce/packaging/-/packaging-4.5.0.tgz",
4994
- "integrity": "sha512-gIwDkkX+XNR5gAqP/sfbF6lmZuC75dndTd4GjYhqlkvcWMCNIJyB8hTj72KlHz3dK8cGoicOeZWuqxX+ZRpGqA==",
5010
+ "version": "4.6.0",
5011
+ "resolved": "https://registry.npmjs.org/@salesforce/packaging/-/packaging-4.6.0.tgz",
5012
+ "integrity": "sha512-DAt37E6C0KeVbkIZEiplN6vmqQ5NB58TSYAk6LjX6+ZbvSV4lnBc4mSCDcErmqCn5mWW3fdPvxL8FlyYhmpL4g==",
4995
5013
  "license": "BSD-3-Clause",
4996
5014
  "dependencies": {
4997
5015
  "@jsforce/jsforce-node": "^3.6.5",
4998
- "@salesforce/core": "^8.8.5",
5016
+ "@salesforce/core": "^8.11.1",
4999
5017
  "@salesforce/kit": "^3.2.3",
5000
5018
  "@salesforce/schemas": "^1.9.0",
5001
5019
  "@salesforce/source-deploy-retrieve": "^12.16.9",
@@ -5525,15 +5543,15 @@
5525
5543
  }
5526
5544
  },
5527
5545
  "node_modules/@salesforce/plugin-packaging": {
5528
- "version": "2.14.0",
5529
- "resolved": "https://registry.npmjs.org/@salesforce/plugin-packaging/-/plugin-packaging-2.14.0.tgz",
5530
- "integrity": "sha512-a0AzxLYPeJ80FjblZOLMRvyHQ1HMbkJEx2B6jjZN5bG1LN8BwkkdaaSiqT53PtftMTJhgtrOmlZ8Zs5zfvLO9g==",
5546
+ "version": "2.15.0",
5547
+ "resolved": "https://registry.npmjs.org/@salesforce/plugin-packaging/-/plugin-packaging-2.15.0.tgz",
5548
+ "integrity": "sha512-2ZHgwznsLpojoS8hiByZGqoM4MiVc6wqZD4rUTF8UkiQuaHTp7r+hDx7MXsLuBPXKACPzI4szgoxsor8YKV1dA==",
5531
5549
  "license": "Apache-2.0",
5532
5550
  "dependencies": {
5533
5551
  "@oclif/core": "^4",
5534
5552
  "@salesforce/core": "^8.11.1",
5535
5553
  "@salesforce/kit": "^3.2.3",
5536
- "@salesforce/packaging": "^4.5.0",
5554
+ "@salesforce/packaging": "^4.6.0",
5537
5555
  "@salesforce/sf-plugins-core": "^12.2.2",
5538
5556
  "chalk": "^5.4.1"
5539
5557
  },
package/oclif.lock CHANGED
@@ -1605,7 +1605,7 @@
1605
1605
  proc-log "^5.0.0"
1606
1606
  which "^5.0.0"
1607
1607
 
1608
- "@oclif/core@^4", "@oclif/core@^4.0.27", "@oclif/core@^4.2.10", "@oclif/core@^4.2.3", "@oclif/core@^4.2.8", "@oclif/core@^4.3.0", "@oclif/core@4.3.1":
1608
+ "@oclif/core@^4", "@oclif/core@^4.0.27", "@oclif/core@^4.2.10", "@oclif/core@^4.2.3", "@oclif/core@^4.2.8", "@oclif/core@^4.3.0", "@oclif/core@>= 3.0.0", "@oclif/core@4.3.1":
1609
1609
  version "4.3.1"
1610
1610
  resolved "https://registry.npmjs.org/@oclif/core/-/core-4.3.1.tgz"
1611
1611
  integrity sha512-+QpJSficjZWu65YSRJIwe50xh0C7WVD6BkQyk0HmGIlx2/rvex8LDwbZHCQcvuJDOCVQeX/INh8IImuKn4d1UA==
@@ -1792,6 +1792,14 @@
1792
1792
  strip-ansi "^7.1.0"
1793
1793
  wrap-ansi "^9.0.0"
1794
1794
 
1795
+ "@oclif/test@^4.1.13":
1796
+ version "4.1.13"
1797
+ resolved "https://registry.npmjs.org/@oclif/test/-/test-4.1.13.tgz"
1798
+ integrity sha512-pulrTiJRhoAKizFf6y5WeHvM2JyoRiZKV0H8qqYEoE0UHDKqInNmfGJyp8Ip6lTVQeMv1U8YCAXOS/HiWPVWeg==
1799
+ dependencies:
1800
+ ansis "^3.17.0"
1801
+ debug "^4.4.1"
1802
+
1795
1803
  "@octokit/auth-token@^5.0.0":
1796
1804
  version "5.1.2"
1797
1805
  resolved "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.1.2.tgz"
@@ -2056,13 +2064,13 @@
2056
2064
  dependencies:
2057
2065
  "@salesforce/ts-types" "^2.0.12"
2058
2066
 
2059
- "@salesforce/packaging@^4.5.0":
2060
- version "4.5.0"
2061
- resolved "https://registry.npmjs.org/@salesforce/packaging/-/packaging-4.5.0.tgz"
2062
- integrity sha512-gIwDkkX+XNR5gAqP/sfbF6lmZuC75dndTd4GjYhqlkvcWMCNIJyB8hTj72KlHz3dK8cGoicOeZWuqxX+ZRpGqA==
2067
+ "@salesforce/packaging@^4.6.0":
2068
+ version "4.6.0"
2069
+ resolved "https://registry.npmjs.org/@salesforce/packaging/-/packaging-4.6.0.tgz"
2070
+ integrity sha512-DAt37E6C0KeVbkIZEiplN6vmqQ5NB58TSYAk6LjX6+ZbvSV4lnBc4mSCDcErmqCn5mWW3fdPvxL8FlyYhmpL4g==
2063
2071
  dependencies:
2064
2072
  "@jsforce/jsforce-node" "^3.6.5"
2065
- "@salesforce/core" "^8.8.5"
2073
+ "@salesforce/core" "^8.11.1"
2066
2074
  "@salesforce/kit" "^3.2.3"
2067
2075
  "@salesforce/schemas" "^1.9.0"
2068
2076
  "@salesforce/source-deploy-retrieve" "^12.16.9"
@@ -2246,15 +2254,15 @@
2246
2254
  open "^10.1.2"
2247
2255
  terminal-link "^3.0.0"
2248
2256
 
2249
- "@salesforce/plugin-packaging@2.14.0":
2250
- version "2.14.0"
2251
- resolved "https://registry.npmjs.org/@salesforce/plugin-packaging/-/plugin-packaging-2.14.0.tgz"
2252
- integrity sha512-a0AzxLYPeJ80FjblZOLMRvyHQ1HMbkJEx2B6jjZN5bG1LN8BwkkdaaSiqT53PtftMTJhgtrOmlZ8Zs5zfvLO9g==
2257
+ "@salesforce/plugin-packaging@2.15.0":
2258
+ version "2.15.0"
2259
+ resolved "https://registry.npmjs.org/@salesforce/plugin-packaging/-/plugin-packaging-2.15.0.tgz"
2260
+ integrity sha512-2ZHgwznsLpojoS8hiByZGqoM4MiVc6wqZD4rUTF8UkiQuaHTp7r+hDx7MXsLuBPXKACPzI4szgoxsor8YKV1dA==
2253
2261
  dependencies:
2254
2262
  "@oclif/core" "^4"
2255
2263
  "@salesforce/core" "^8.11.1"
2256
2264
  "@salesforce/kit" "^3.2.3"
2257
- "@salesforce/packaging" "^4.5.0"
2265
+ "@salesforce/packaging" "^4.6.0"
2258
2266
  "@salesforce/sf-plugins-core" "^12.2.2"
2259
2267
  chalk "^5.4.1"
2260
2268
 
@@ -4831,5 +4831,5 @@
4831
4831
  ]
4832
4832
  }
4833
4833
  },
4834
- "version": "2.92.7"
4834
+ "version": "2.93.1"
4835
4835
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/cli",
3
3
  "description": "The Salesforce CLI",
4
- "version": "2.92.7",
4
+ "version": "2.93.1",
5
5
  "author": "Salesforce",
6
6
  "bin": {
7
7
  "sf": "./bin/run.js",
@@ -168,7 +168,7 @@
168
168
  "@salesforce/plugin-limits": "3.3.56",
169
169
  "@salesforce/plugin-marketplace": "1.3.8",
170
170
  "@salesforce/plugin-org": "5.7.13",
171
- "@salesforce/plugin-packaging": "2.14.0",
171
+ "@salesforce/plugin-packaging": "2.15.0",
172
172
  "@salesforce/plugin-schema": "3.3.65",
173
173
  "@salesforce/plugin-settings": "2.4.29",
174
174
  "@salesforce/plugin-sobject": "1.4.59",
@@ -257,6 +257,7 @@
257
257
  "types": "dist/index.d.ts",
258
258
  "devDependencies": {
259
259
  "@oclif/plugin-command-snapshot": "^5.2.3",
260
+ "@oclif/test": "^4.1.13",
260
261
  "@salesforce/dev-scripts": "^11.0.2",
261
262
  "@salesforce/plugin-release-management": "^5.7.0",
262
263
  "@salesforce/ts-sinon": "^1.4.30",