@salesforce/cli 1.44.0 → 1.46.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.46.0](https://github.com/salesforcecli/cli/compare/v1.45.0...v1.46.0) (2022-09-14)
6
+
7
+ ## [1.45.0](https://github.com/salesforcecli/cli/compare/v1.44.0...v1.45.0) (2022-09-07)
8
+
5
9
  ## [1.44.0](https://github.com/salesforcecli/cli/compare/v1.43.0...v1.44.0) (2022-08-31)
6
10
 
7
11
  ## [1.43.0](https://github.com/salesforcecli/cli/compare/v1.42.0...v1.43.0) (2022-08-24)
package/README.md CHANGED
@@ -32,7 +32,7 @@ $ npm install -g @salesforce/cli
32
32
  $ sf COMMAND
33
33
  running command...
34
34
  $ sf (--version|-v)
35
- @salesforce/cli/1.44.0 linux-x64 node-v14.20.0
35
+ @salesforce/cli/1.46.0 linux-x64 node-v14.20.0
36
36
  $ sf --help [COMMAND]
37
37
  USAGE
38
38
  $ sf COMMAND
@@ -182,11 +182,11 @@ EXAMPLES
182
182
  $ sf config get target-org api-version --verbose
183
183
 
184
184
  CONFIGURATION VARIABLES
185
- apiVersion API version of your project. Default: API version of your Dev Hub org.
186
- disableTelemetry Disables the collection of usage and user environment information, etc. Default: true.
187
- instanceUrl URL of the Salesforce instance hosting your org. Default: https://login.salesforce.com.
188
- maxQueryLimit Maximum number of Salesforce records returned by a CLI command. Default: 10,000.
189
- restDeploy Whether deployments use the Metadata REST API (true) or SOAP API (false, default value).
185
+ apiVersion API version of your project. Default: API version of your Dev Hub org. (sfdx only)
186
+ disableTelemetry Disables the collection of usage and user environment information, etc. Default: false. (sfdx only)
187
+ instanceUrl URL of the Salesforce instance hosting your org. Default: https://login.salesforce.com. (sfdx only)
188
+ maxQueryLimit Maximum number of Salesforce records returned by a CLI command. Default: 10,000. (sfdx only)
189
+ restDeploy Whether deployments use the Metadata REST API (true) or SOAP API (false, default value). (sfdx only)
190
190
  target-org Username or alias of the org that all commands run against by default. (sf only)
191
191
  target-dev-hub Username or alias of your default Dev Hub org. (sf only)
192
192
  ```
@@ -262,11 +262,11 @@ EXAMPLES
262
262
  $ sf config set --global target-org=my-scratch-org
263
263
 
264
264
  CONFIGURATION VARIABLES
265
- apiVersion API version of your project. Default: API version of your Dev Hub org.
266
- disableTelemetry Disables the collection of usage and user environment information, etc. Default: true.
267
- instanceUrl URL of the Salesforce instance hosting your org. Default: https://login.salesforce.com.
268
- maxQueryLimit Maximum number of Salesforce records returned by a CLI command. Default: 10,000.
269
- restDeploy Whether deployments use the Metadata REST API (true) or SOAP API (false, default value).
265
+ apiVersion API version of your project. Default: API version of your Dev Hub org. (sfdx only)
266
+ disableTelemetry Disables the collection of usage and user environment information, etc. Default: false. (sfdx only)
267
+ instanceUrl URL of the Salesforce instance hosting your org. Default: https://login.salesforce.com. (sfdx only)
268
+ maxQueryLimit Maximum number of Salesforce records returned by a CLI command. Default: 10,000. (sfdx only)
269
+ restDeploy Whether deployments use the Metadata REST API (true) or SOAP API (false, default value). (sfdx only)
270
270
  target-org Username or alias of the org that all commands run against by default. (sf only)
271
271
  target-dev-hub Username or alias of your default Dev Hub org. (sf only)
272
272
  ```
@@ -301,11 +301,11 @@ EXAMPLES
301
301
  $ sf config unset target-org api-version --global
302
302
 
303
303
  CONFIGURATION VARIABLES
304
- apiVersion API version of your project. Default: API version of your Dev Hub org.
305
- disableTelemetry Disables the collection of usage and user environment information, etc. Default: true.
306
- instanceUrl URL of the Salesforce instance hosting your org. Default: https://login.salesforce.com.
307
- maxQueryLimit Maximum number of Salesforce records returned by a CLI command. Default: 10,000.
308
- restDeploy Whether deployments use the Metadata REST API (true) or SOAP API (false, default value).
304
+ apiVersion API version of your project. Default: API version of your Dev Hub org. (sfdx only)
305
+ disableTelemetry Disables the collection of usage and user environment information, etc. Default: false. (sfdx only)
306
+ instanceUrl URL of the Salesforce instance hosting your org. Default: https://login.salesforce.com. (sfdx only)
307
+ maxQueryLimit Maximum number of Salesforce records returned by a CLI command. Default: 10,000. (sfdx only)
308
+ restDeploy Whether deployments use the Metadata REST API (true) or SOAP API (false, default value). (sfdx only)
309
309
  target-org Username or alias of the org that all commands run against by default. (sf only)
310
310
  target-dev-hub Username or alias of your default Dev Hub org. (sf only)
311
311
  ```
@@ -352,7 +352,7 @@ EXAMPLES
352
352
  $ sf deploy --interactive
353
353
  ```
354
354
 
355
- _See code: [@salesforce/plugin-deploy-retrieve](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/v1.5.5/src/commands/deploy.ts)_
355
+ _See code: [@salesforce/plugin-deploy-retrieve](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/v1.6.1/src/commands/deploy.ts)_
356
356
 
357
357
  ## `sf deploy functions`
358
358
 
@@ -394,7 +394,7 @@ EXAMPLES
394
394
 
395
395
  ## `sf deploy metadata`
396
396
 
397
- Deploy metadata in source format to an org from your local project.
397
+ Deploy metadata to an org from your local project.
398
398
 
399
399
  ```
400
400
  USAGE
@@ -427,10 +427,14 @@ GLOBAL FLAGS
427
427
  --json Format output as json.
428
428
 
429
429
  DESCRIPTION
430
- Deploy metadata in source format to an org from your local project.
430
+ Deploy metadata to an org from your local project.
431
431
 
432
432
  You must run this command from within a project.
433
433
 
434
+ Metadata components are deployed in source format by default. Deploy them in metadata format by specifying the
435
+ --metadata-dir flag, which specifies the root directory or ZIP file that contains the metadata formatted files you
436
+ want to deploy.
437
+
434
438
  If your org allows source tracking, then this command tracks the changes in your source. Some orgs, such as production
435
439
  org, never allow source tracking. You can also use the "--no-track-source" flag when you create a scratch or sandbox
436
440
  org to disable source tracking.
@@ -1120,15 +1124,13 @@ FLAGS
1120
1124
  -a, --alias=<value> Alias for the sandbox org.
1121
1125
  -c, --clone=<value> Name of the sandbox org to clone.
1122
1126
  -f, --definition-file=<value> Path to a sandbox definition file.
1123
- -i, --poll-interval=<seconds> [default: [object Object]] Number of seconds to wait
1124
- between retries.
1127
+ -i, --poll-interval=<seconds> Number of seconds to wait between retries.
1125
1128
  -l, --license-type=(Developer|Developer_Pro|Partial|Full) [default: Developer] Type of sandbox license.
1126
1129
  -n, --name=<value> Name of the sandbox org.
1127
1130
  -o, --target-org=<value> Username or alias of the production org that contains the
1128
1131
  sandbox license.
1129
1132
  -s, --set-default Set the sandbox org as your default org.
1130
- -w, --wait=<minutes> [default: [object Object]] Number of minutes to wait for
1131
- the sandbox org to be ready.
1133
+ -w, --wait=<minutes> Number of minutes to wait for the sandbox org to be ready.
1132
1134
  --async Request the sandbox creation, but don't wait for it to
1133
1135
  complete.
1134
1136
  --no-prompt Don't prompt for confirmation about the sandbox
@@ -1232,8 +1234,8 @@ FLAGS
1232
1234
  -t, --[no-]track-source Use source tracking for this scratch org. Set --no-track-source to disable source
1233
1235
  tracking.
1234
1236
  -v, --target-dev-hub=<value> Username or alias of the Dev Hub org.
1235
- -w, --wait=<minutes> [default: [object Object]] Number of minutes to wait for the scratch org to be ready.
1236
- -y, --duration-days=<days> [default: [object Object]] Number of days before the org expires.
1237
+ -w, --wait=<minutes> Number of minutes to wait for the scratch org to be ready.
1238
+ -y, --duration-days=<days> Number of days before the org expires.
1237
1239
  --api-version=<value> Override the api version used for api requests made by this command
1238
1240
  --async Request the org, but don't wait for it to complete.
1239
1241
 
@@ -2257,7 +2259,7 @@ EXAMPLES
2257
2259
  $ sf login
2258
2260
  ```
2259
2261
 
2260
- _See code: [@salesforce/plugin-login](https://github.com/salesforcecli/plugin-login/blob/v1.1.1/src/commands/login.ts)_
2262
+ _See code: [@salesforce/plugin-login](https://github.com/salesforcecli/plugin-login/blob/v1.1.2/src/commands/login.ts)_
2261
2263
 
2262
2264
  ## `sf login functions`
2263
2265
 
@@ -2526,7 +2528,7 @@ EXAMPLES
2526
2528
  $ sf logout --no-prompt
2527
2529
  ```
2528
2530
 
2529
- _See code: [@salesforce/plugin-login](https://github.com/salesforcecli/plugin-login/blob/v1.1.1/src/commands/logout.ts)_
2531
+ _See code: [@salesforce/plugin-login](https://github.com/salesforcecli/plugin-login/blob/v1.1.2/src/commands/logout.ts)_
2530
2532
 
2531
2533
  ## `sf logout functions`
2532
2534
 
@@ -2843,33 +2845,40 @@ DESCRIPTION
2843
2845
 
2844
2846
  ## `sf retrieve metadata`
2845
2847
 
2846
- Retrieve metadata in source format from an org to your local project.
2848
+ Retrieve metadata from an org to your local project.
2847
2849
 
2848
2850
  ```
2849
2851
  USAGE
2850
- $ sf retrieve metadata [--json] [-a <value>] [-c] [-x <value> | -m <value> | -d <value>] [-n <value>] [-o <value>]
2851
- [-w <value>]
2852
+ $ sf retrieve metadata [--json] [-a <value>] [-c] [-x <value> | -m <value> | -d <value>] [-n <value>]
2853
+ [--single-package -t <value>] [-o <value>] [-w <value>] [-z ] [--zip-file-name <value> ]
2852
2854
 
2853
2855
  FLAGS
2854
- -a, --api-version=<value> Target API version for the retrieve.
2855
- -c, --ignore-conflicts Ignore conflicts and retrieve and save files to your local filesystem, even if they
2856
- overwrite your local changes.
2857
- -d, --source-dir=<value>... File paths for source to retrieve from the org.
2858
- -m, --metadata=<value>... Metadata component names to retrieve.
2859
- -n, --package-name=<value>... Package names to retrieve.
2860
- -o, --target-org=<value> Login username or alias for the target org.
2861
- -w, --wait=<value> Number of minutes to wait for the command to complete and display results to the
2862
- terminal window.
2863
- -x, --manifest=<value> File path for the manifest (package.xml) that specifies the components to retrieve.
2856
+ -a, --api-version=<value> Target API version for the retrieve.
2857
+ -c, --ignore-conflicts Ignore conflicts and retrieve and save files to your local filesystem, even if they
2858
+ overwrite your local changes.
2859
+ -d, --source-dir=<value>... File paths for source to retrieve from the org.
2860
+ -m, --metadata=<value>... Metadata component names to retrieve.
2861
+ -n, --package-name=<value>... Package names to retrieve.
2862
+ -o, --target-org=<value> Login username or alias for the target org.
2863
+ -t, --target-metadata-dir=<value> Directory that will contain the retrieved metadata format files or ZIP.
2864
+ -w, --wait=<value> Number of minutes to wait for the command to complete and display results to the
2865
+ terminal window.
2866
+ -x, --manifest=<value> File path for the manifest (package.xml) that specifies the components to retrieve.
2867
+ -z, --unzip Extract all files from the retrieved zip file.
2868
+ --single-package Indicates that the zip file points to a directory structure for a single package.
2869
+ --zip-file-name=<value> File name to use for the retrieved zip file.
2864
2870
 
2865
2871
  GLOBAL FLAGS
2866
2872
  --json Format output as json.
2867
2873
 
2868
2874
  DESCRIPTION
2869
- Retrieve metadata in source format from an org to your local project.
2875
+ Retrieve metadata from an org to your local project.
2870
2876
 
2871
2877
  You must run this command from within a project.
2872
2878
 
2879
+ Metadata components are retrieved in source format by default. Retrieve them in metadata format by specifying the
2880
+ --target-metadata-dir flag, which retrieves the components into a ZIP file in the specified directory.
2881
+
2873
2882
  If your org allows source tracking, then this command tracks the changes in your source. Some orgs, such as production
2874
2883
  org, never allow source tracking. You can also use the "--no-track-source" flag when you create a scratch or sandbox
2875
2884
  org to disable source tracking.
@@ -2918,6 +2927,15 @@ EXAMPLES
2918
2927
  $ sf retrieve metadata --package-name Package1 "PackageName With Spaces" Package3
2919
2928
  $ sf retrieve metadata --package-name Package1 --package-name "PackageName With Spaces" --package-name Package3
2920
2929
 
2930
+ Retrieve the metadata components listed in the force-app directory, but retrieve them in metadata format into a ZIP
2931
+ file in the "output" directory:
2932
+
2933
+ $ sf retrieve metadata --source-dir force-app --target-metadata-dir output
2934
+
2935
+ Retrieve in metadata format and automatically extract the contents into the "output" directory:
2936
+
2937
+ $ sf retrieve metadata --source-dir force-app --target-metadata-dir output --unzip
2938
+
2921
2939
  FLAG DESCRIPTIONS
2922
2940
  -a, --api-version=<value> Target API version for the retrieve.
2923
2941
 
@@ -3208,7 +3226,7 @@ FLAG DESCRIPTIONS
3208
3226
  Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.
3209
3227
  ```
3210
3228
 
3211
- _See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v1.1.1/src/commands/version.ts)_
3229
+ _See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v1.1.2/src/commands/version.ts)_
3212
3230
 
3213
3231
  ## `sf whatsnew [-v <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
3214
3232