@salesforce/cli 1.42.0 → 1.45.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,12 @@
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.45.0](https://github.com/salesforcecli/cli/compare/v1.44.0...v1.45.0) (2022-09-07)
6
+
7
+ ## [1.44.0](https://github.com/salesforcecli/cli/compare/v1.43.0...v1.44.0) (2022-08-31)
8
+
9
+ ## [1.43.0](https://github.com/salesforcecli/cli/compare/v1.42.0...v1.43.0) (2022-08-24)
10
+
5
11
  ## [1.42.0](https://github.com/salesforcecli/cli/compare/v1.41.0...v1.42.0) (2022-08-17)
6
12
 
7
13
  ## [1.41.0](https://github.com/salesforcecli/cli/compare/v1.40.0...v1.41.0) (2022-08-10)
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.42.0 linux-x64 node-v14.20.0
35
+ @salesforce/cli/1.45.0 linux-x64 node-v14.20.0
36
36
  $ sf --help [COMMAND]
37
37
  USAGE
38
38
  $ sf COMMAND
@@ -58,6 +58,7 @@ See [architecture page](ARCHITECTURE.md) for diagrams of the Salesforce CLI.
58
58
  - [`sf deploy functions`](#sf-deploy-functions)
59
59
  - [`sf deploy metadata`](#sf-deploy-metadata)
60
60
  - [`sf deploy metadata cancel`](#sf-deploy-metadata-cancel)
61
+ - [`sf deploy metadata preview`](#sf-deploy-metadata-preview)
61
62
  - [`sf deploy metadata quick`](#sf-deploy-metadata-quick)
62
63
  - [`sf deploy metadata report`](#sf-deploy-metadata-report)
63
64
  - [`sf deploy metadata resume`](#sf-deploy-metadata-resume)
@@ -84,6 +85,10 @@ See [architecture page](ARCHITECTURE.md) for diagrams of the Salesforce CLI.
84
85
  - [`sf env var set`](#sf-env-var-set)
85
86
  - [`sf env var unset`](#sf-env-var-unset)
86
87
  - [`sf generate function`](#sf-generate-function)
88
+ - [`sf generate metadata field`](#sf-generate-metadata-field)
89
+ - [`sf generate metadata platformevent`](#sf-generate-metadata-platformevent)
90
+ - [`sf generate metadata sobject`](#sf-generate-metadata-sobject)
91
+ - [`sf generate metadata tab`](#sf-generate-metadata-tab)
87
92
  - [`sf generate project`](#sf-generate-project)
88
93
  - [`sf help [COMMAND]`](#sf-help-command)
89
94
  - [`sf info:releasenotes:display [-v <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sf-inforeleasenotesdisplay--v-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
@@ -106,6 +111,7 @@ See [architecture page](ARCHITECTURE.md) for diagrams of the Salesforce CLI.
106
111
  - [`sf plugins:uninstall PLUGIN...`](#sf-pluginsuninstall-plugin-2)
107
112
  - [`sf plugins update`](#sf-plugins-update)
108
113
  - [`sf retrieve metadata`](#sf-retrieve-metadata)
114
+ - [`sf retrieve metadata preview`](#sf-retrieve-metadata-preview)
109
115
  - [`sf run function`](#sf-run-function)
110
116
  - [`sf run function start`](#sf-run-function-start)
111
117
  - [`sf run function start container`](#sf-run-function-start-container)
@@ -176,11 +182,11 @@ EXAMPLES
176
182
  $ sf config get target-org api-version --verbose
177
183
 
178
184
  CONFIGURATION VARIABLES
179
- apiVersion API version of your project. Default: API version of your Dev Hub org.
180
- disableTelemetry Disables the collection of usage and user environment information, etc. Default: true.
181
- instanceUrl URL of the Salesforce instance hosting your org. Default: https://login.salesforce.com.
182
- maxQueryLimit Maximum number of Salesforce records returned by a CLI command. Default: 10,000.
183
- 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)
184
190
  target-org Username or alias of the org that all commands run against by default. (sf only)
185
191
  target-dev-hub Username or alias of your default Dev Hub org. (sf only)
186
192
  ```
@@ -256,11 +262,11 @@ EXAMPLES
256
262
  $ sf config set --global target-org=my-scratch-org
257
263
 
258
264
  CONFIGURATION VARIABLES
259
- apiVersion API version of your project. Default: API version of your Dev Hub org.
260
- disableTelemetry Disables the collection of usage and user environment information, etc. Default: true.
261
- instanceUrl URL of the Salesforce instance hosting your org. Default: https://login.salesforce.com.
262
- maxQueryLimit Maximum number of Salesforce records returned by a CLI command. Default: 10,000.
263
- 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)
264
270
  target-org Username or alias of the org that all commands run against by default. (sf only)
265
271
  target-dev-hub Username or alias of your default Dev Hub org. (sf only)
266
272
  ```
@@ -295,11 +301,11 @@ EXAMPLES
295
301
  $ sf config unset target-org api-version --global
296
302
 
297
303
  CONFIGURATION VARIABLES
298
- apiVersion API version of your project. Default: API version of your Dev Hub org.
299
- disableTelemetry Disables the collection of usage and user environment information, etc. Default: true.
300
- instanceUrl URL of the Salesforce instance hosting your org. Default: https://login.salesforce.com.
301
- maxQueryLimit Maximum number of Salesforce records returned by a CLI command. Default: 10,000.
302
- 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)
303
309
  target-org Username or alias of the org that all commands run against by default. (sf only)
304
310
  target-dev-hub Username or alias of your default Dev Hub org. (sf only)
305
311
  ```
@@ -346,7 +352,7 @@ EXAMPLES
346
352
  $ sf deploy --interactive
347
353
  ```
348
354
 
349
- _See code: [@salesforce/plugin-deploy-retrieve](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/v1.5.2/src/commands/deploy.ts)_
355
+ _See code: [@salesforce/plugin-deploy-retrieve](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/v1.6.0/src/commands/deploy.ts)_
350
356
 
351
357
  ## `sf deploy functions`
352
358
 
@@ -407,8 +413,7 @@ FLAGS
407
413
  -o, --target-org=<value> Login username or alias for the target org.
408
414
  -r, --ignore-errors Ignore any errors and don’t roll back deployment.
409
415
  -t, --tests=<value>... Apex tests to run when --test-level is RunSpecifiedTests.
410
- -w, --wait=<minutes> [default: [object Object]] Number of minutes to wait for command to complete and display
411
- results.
416
+ -w, --wait=<minutes> Number of minutes to wait for command to complete and display results.
412
417
  -x, --manifest=<value> Full file path for manifest (package.xml) of components to deploy.
413
418
  --async Run the command asynchronously.
414
419
  --concise Show concise output of the deploy result.
@@ -476,8 +481,8 @@ EXAMPLES
476
481
  FLAG DESCRIPTIONS
477
482
  -a, --api-version=<value> Target API version for the deploy.
478
483
 
479
- Use this flag to override the default API version, which is the latest version supported the CLI, with the API
480
- version of your package.xml file.
484
+ Use this flag to override the default API version with the API version of your package.xml file. The default API
485
+ version is the latest version supported by the CLI.
481
486
 
482
487
  -c, --ignore-conflicts Ignore conflicts and deploy local files, even if they overwrite changes in the org.
483
488
 
@@ -632,6 +637,83 @@ FLAG DESCRIPTIONS
632
637
  deploy metadata report".
633
638
  ```
634
639
 
640
+ ## `sf deploy metadata preview`
641
+
642
+ Preview a deployment to see what will deploy to the org, the potential conflicts, and the ignored files.
643
+
644
+ ```
645
+ USAGE
646
+ $ sf deploy metadata preview [--json] [-c] [-x <value> | -d <value> | -m <value>] [-o <value>]
647
+
648
+ FLAGS
649
+ -c, --ignore-conflicts Ignore conflicts and deploy local files, even if they overwrite changes in the org.
650
+ -d, --source-dir=<value>... Path to the local source files to preview.
651
+ -m, --metadata=<value>... Metadata component names to preview.
652
+ -o, --target-org=<value> Login username or alias for the target org.
653
+ -x, --manifest=<value> Full file path for manifest (package.xml) of components to preview.
654
+
655
+ GLOBAL FLAGS
656
+ --json Format output as json.
657
+
658
+ DESCRIPTION
659
+ Preview a deployment to see what will deploy to the org, the potential conflicts, and the ignored files.
660
+
661
+ You must run this command from within a project.
662
+
663
+ The command outputs a table that describes what will happen if you run the "sf deploy metadata" command. The table
664
+ lists the metadata components that will be deployed and deleted. The table also lists the current conflicts between
665
+ files in your local project and components in the org. Finally, the table lists the files that won't be deployed
666
+ because they're included in your .forceignore file.
667
+
668
+ If your org allows source tracking, then this command considers conflicts between the org and local. Some orgs, such
669
+ as production orgs, never allow source tracking. Use the "--no-track-source" flag when you create a scratch or sandbox
670
+ org to disable source tracking.
671
+
672
+ To preview the deployment of multiple metadata components, either set multiple --metadata <name> flags or a single
673
+ --metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double
674
+ quotes. The same syntax applies to --manifest and --source-dir.
675
+
676
+ EXAMPLES
677
+ NOTE: The commands to preview a deployment and actually deploy it use similar flags. We provide a few preview examples here, but see the help for "sf deploy metadata" for more examples that you can adapt for previewing.
678
+
679
+ Preview the deployment of source files in a directory, such as force-app:
680
+
681
+ $ sf deploy metadata preview --source-dir force-app
682
+
683
+ Preview the deployment of all Apex classes:
684
+
685
+ $ sf deploy metadata preview --metadata ApexClass
686
+
687
+ Preview deployment of a specific Apex class:
688
+
689
+ $ sf deploy metadata preview --metadata ApexClass:MyApexClass
690
+
691
+ Preview deployment of all components listed in a manifest:
692
+
693
+ $ sf deploy metadata preview --manifest path/to/package.xml
694
+
695
+ FLAG DESCRIPTIONS
696
+ -c, --ignore-conflicts Ignore conflicts and deploy local files, even if they overwrite changes in the org.
697
+
698
+ This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as
699
+ production orgs.
700
+
701
+ -d, --source-dir=<value>... Path to the local source files to preview.
702
+
703
+ The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder
704
+ (in which case the operation is applied to all metadata types in the directory and its subdirectories).
705
+
706
+ If you specify this flag, don’t specify --metadata or --manifest.
707
+
708
+ -o, --target-org=<value> Login username or alias for the target org.
709
+
710
+ Overrides your default org.
711
+
712
+ -x, --manifest=<value> Full file path for manifest (package.xml) of components to preview.
713
+
714
+ All child components are included. If you specify this flag, don’t specify --metadata or --source-dir.
715
+ ```
716
+
635
717
  ## `sf deploy metadata quick`
636
718
 
637
719
  Quickly deploy a validated deployment to an org.
@@ -644,8 +726,7 @@ FLAGS
644
726
  -i, --job-id=<value> Job ID of the deployment you want to quick deploy.
645
727
  -o, --target-org=<value> Login username or alias for the target org.
646
728
  -r, --use-most-recent Use the job ID of the most recently validated deployment.
647
- -w, --wait=<minutes> [default: [object Object]] Number of minutes to wait for the command to complete and display
648
- results.
729
+ -w, --wait=<minutes> Number of minutes to wait for the command to complete and display results.
649
730
  --async Run the command asynchronously.
650
731
  --concise Show concise output of the deploy result.
651
732
  --verbose Show verbose output of the deploy result.
@@ -855,8 +936,7 @@ FLAGS
855
936
  -m, --metadata=<value>... Metadata component names to validate for deployment.
856
937
  -o, --target-org=<value> Login username or alias for the target org.
857
938
  -t, --tests=<value>... Apex tests to run when --test-level is RunSpecifiedTests.
858
- -w, --wait=<minutes> [default: [object Object]] Number of minutes to wait for the command to complete and
859
- display results.
939
+ -w, --wait=<minutes> Number of minutes to wait for the command to complete and display results.
860
940
  -x, --manifest=<value> Full file path for manifest (package.xml) of components to validate for deployment.
861
941
  --async Run the command asynchronously.
862
942
  --concise Show concise output of the validation result.
@@ -907,8 +987,8 @@ EXAMPLES
907
987
  FLAG DESCRIPTIONS
908
988
  -a, --api-version=<value> Target API version for the validation.
909
989
 
910
- Use this flag to override the default API version, which is the latest version supported the CLI, with the API
911
- version in your package.xml file.
990
+ Use this flag to override the default API version with the API version of your package.xml file. The default API
991
+ version is the latest version supported by the CLI.
912
992
 
913
993
  -d, --source-dir=<value>... Path to the local source files to validate for deployment.
914
994
 
@@ -1040,15 +1120,13 @@ FLAGS
1040
1120
  -a, --alias=<value> Alias for the sandbox org.
1041
1121
  -c, --clone=<value> Name of the sandbox org to clone.
1042
1122
  -f, --definition-file=<value> Path to a sandbox definition file.
1043
- -i, --poll-interval=<seconds> [default: [object Object]] Number of seconds to wait
1044
- between retries.
1123
+ -i, --poll-interval=<seconds> Number of seconds to wait between retries.
1045
1124
  -l, --license-type=(Developer|Developer_Pro|Partial|Full) [default: Developer] Type of sandbox license.
1046
1125
  -n, --name=<value> Name of the sandbox org.
1047
1126
  -o, --target-org=<value> Username or alias of the production org that contains the
1048
1127
  sandbox license.
1049
1128
  -s, --set-default Set the sandbox org as your default org.
1050
- -w, --wait=<minutes> [default: [object Object]] Number of minutes to wait for
1051
- the sandbox org to be ready.
1129
+ -w, --wait=<minutes> Number of minutes to wait for the sandbox org to be ready.
1052
1130
  --async Request the sandbox creation, but don't wait for it to
1053
1131
  complete.
1054
1132
  --no-prompt Don't prompt for confirmation about the sandbox
@@ -1152,8 +1230,8 @@ FLAGS
1152
1230
  -t, --[no-]track-source Use source tracking for this scratch org. Set --no-track-source to disable source
1153
1231
  tracking.
1154
1232
  -v, --target-dev-hub=<value> Username or alias of the Dev Hub org.
1155
- -w, --wait=<minutes> [default: [object Object]] Number of minutes to wait for the scratch org to be ready.
1156
- -y, --duration-days=<days> [default: [object Object]] Number of days before the org expires.
1233
+ -w, --wait=<minutes> Number of minutes to wait for the scratch org to be ready.
1234
+ -y, --duration-days=<days> Number of days before the org expires.
1157
1235
  --api-version=<value> Override the api version used for api requests made by this command
1158
1236
  --async Request the org, but don't wait for it to complete.
1159
1237
 
@@ -1835,6 +1913,167 @@ EXAMPLES
1835
1913
  $ sf generate function --function-name myfunction --language javascript
1836
1914
  ```
1837
1915
 
1916
+ ## `sf generate metadata field`
1917
+
1918
+ Generate metadata source files for a new custom field on a specified object.
1919
+
1920
+ ```
1921
+ USAGE
1922
+ $ sf generate metadata field -l <value> [-o <value>]
1923
+
1924
+ FLAGS
1925
+ -l, --label=<value> (required) The field's label.
1926
+ -o, --object=<value> The directory that contains the object's source files.
1927
+
1928
+ DESCRIPTION
1929
+ Generate metadata source files for a new custom field on a specified object.
1930
+
1931
+ This command is interactive and must be run in a Salesforce DX project directory. You're required to specify the
1932
+ field's label with the "--label" flag. The command uses this label to provide intelligent suggestions for other field
1933
+ properties, such as its API name.
1934
+
1935
+ You can generate a custom field on either a standard object, such as Account, or a custom object. In both cases, the
1936
+ source files for the object must already exist in your local project before you run this command. If you create a
1937
+ relationship field, the source files for the parent object must also exist in your local directory. Use the command
1938
+ "sf metadata retrieve -m CustomObject:<object>" to retrieve source files for both standard and custom objects from
1939
+ your org. To create a custom object, run the "sf generate metadata sobject" command or use the Object Manager UI in
1940
+ your Salesforce org.
1941
+
1942
+ EXAMPLES
1943
+ Create a field with the specified label; the command prompts you for the object:
1944
+
1945
+ $ sf generate metadata field --label "My Field"
1946
+
1947
+ Specify the local path to the object's folder:
1948
+
1949
+ $ sf generate metadata field --label "My Field" --object force-app/main/default/objects/MyObject__c
1950
+
1951
+ FLAG DESCRIPTIONS
1952
+ -o, --object=<value> The directory that contains the object's source files.
1953
+
1954
+ The object source files in your local project are grouped in a directoy with the same name as the object. Custom
1955
+ object names always end in "__c". An example of the object directory for the Account standard object is
1956
+ "force-app/main/default/objects/Account" An example custom object directory is
1957
+ "force-app/main/default/objects/MyObject__c"
1958
+
1959
+ If you don't specify this flag, the command prompts you to choose from your local objects.
1960
+ ```
1961
+
1962
+ ## `sf generate metadata platformevent`
1963
+
1964
+ Generate metadata source files for a new platform event.
1965
+
1966
+ ```
1967
+ USAGE
1968
+ $ sf generate metadata platformevent -l <value>
1969
+
1970
+ FLAGS
1971
+ -l, --label=<value> (required) The platform event's label.
1972
+
1973
+ DESCRIPTION
1974
+ Generate metadata source files for a new platform event.
1975
+
1976
+ This command is interactive and must be run in a Salesforce DX project directory. You're required to specify the
1977
+ event's label with the "--label" flag. The command uses this label to provide intelligent suggestions for other event
1978
+ properties, such as its API name.
1979
+
1980
+ EXAMPLES
1981
+ Create a platform event with the specified label:
1982
+
1983
+ $ sf generate metadata platformevent --label "My Platform Event"
1984
+ ```
1985
+
1986
+ ## `sf generate metadata sobject`
1987
+
1988
+ Generate metadata source files for a new custom object.
1989
+
1990
+ ```
1991
+ USAGE
1992
+ $ sf generate metadata sobject -l <value> [-f]
1993
+
1994
+ FLAGS
1995
+ -f, --use-default-features Enable all optional features without prompting.
1996
+ -l, --label=<value> (required) The custom object's label.
1997
+
1998
+ DESCRIPTION
1999
+ Generate metadata source files for a new custom object.
2000
+
2001
+ This command is interactive and must be run in a Salesforce DX project directory. You're required to specify the
2002
+ object's label with the "--label" flag. The command uses this label to provide intelligent suggestions for other
2003
+ object properties, such as its API name and plural label.
2004
+
2005
+ All Salesforce objects are required to have a Name field, so this command also prompts you for the label and type of
2006
+ the Name field. Run the "sf metadata generate field" command to create additional fields for the object.
2007
+
2008
+ To reduce the number of prompts, use the "--use-default-features" flag to automatically enable some features, such as
2009
+ reporting and search on the object.
2010
+
2011
+ EXAMPLES
2012
+ Create a custom object with the specified label and be prompted for additional information:
2013
+
2014
+ $ sf generate metadata sobject --label "My Object"
2015
+
2016
+ Create a custom object and enable optional features without prompting:
2017
+
2018
+ $ sf generate metadata sobject --label "My Object" --use-default-features
2019
+
2020
+ FLAG DESCRIPTIONS
2021
+ -f, --use-default-features Enable all optional features without prompting.
2022
+
2023
+ Enables these features:
2024
+
2025
+ * Search: Allows users to find the custom object's records when they search, including SOSL.
2026
+ * Feeds: Enables feed tracking.
2027
+ * Reports: Allows reporting of the data in the custom object records.
2028
+ * History: Enables object history tracking.
2029
+ * Activities: Allows users to associate tasks and scheduled calendar events related to the custom object records.
2030
+ * Bulk API: With Sharing and Streaming API, classifies the custom object as an Enterprise Application object.
2031
+ * Sharing: With Bulk API and Streaming API, classifies the custom object as an Enterprise Application object.
2032
+ * Streaming API: With Bulk API and Sharing, classifies the custom object as an Enterprise Application object.
2033
+ ```
2034
+
2035
+ ## `sf generate metadata tab`
2036
+
2037
+ Generate the metadata source files for a new custom tab on a custom object.
2038
+
2039
+ ```
2040
+ USAGE
2041
+ $ sf generate metadata tab -o <value> -d <value> -i <value> [--json]
2042
+
2043
+ FLAGS
2044
+ -d, --directory=<value> (required) Path to a "tabs" directory that will contain the source files for your new tab.
2045
+ -i, --icon=<value> (required) [default: 1] Number from 1 to 100 that specifies the color scheme and icon for the
2046
+ custom tab.
2047
+ -o, --object=<value> (required) API name of the custom object you're generating a tab for.
2048
+
2049
+ GLOBAL FLAGS
2050
+ --json Format output as json.
2051
+
2052
+ DESCRIPTION
2053
+ Generate the metadata source files for a new custom tab on a custom object.
2054
+
2055
+ Custom tabs let you display custom object data or other web content in Salesforce. Custom tabs appear in Salesforce as
2056
+ an item in the app’s navigation bar and in the App Launcher.
2057
+
2058
+ This command must be run in a Salesforce DX project directory. You must pass all required information to it with the
2059
+ required flags. The source files for the custom object for which you're generating a tab don't need to exist in your
2060
+ local project.
2061
+
2062
+ EXAMPLES
2063
+ Create a tab on the MyObject__c custom object:
2064
+
2065
+ $ sf generate metadata tab --object MyObject__c --icon 54 --directory force-app/main/default/tabs
2066
+
2067
+ FLAG DESCRIPTIONS
2068
+ -i, --icon=<value> Number from 1 to 100 that specifies the color scheme and icon for the custom tab.
2069
+
2070
+ See https://lightningdesignsystem.com/icons/\#custom for the available icons.
2071
+
2072
+ -o, --object=<value> API name of the custom object you're generating a tab for.
2073
+
2074
+ The API name for a custom object always ends in "__c", such as "MyObject__c".
2075
+ ```
2076
+
1838
2077
  ## `sf generate project`
1839
2078
 
1840
2079
  Generate a Salesforce DX project.
@@ -2016,7 +2255,7 @@ EXAMPLES
2016
2255
  $ sf login
2017
2256
  ```
2018
2257
 
2019
- _See code: [@salesforce/plugin-login](https://github.com/salesforcecli/plugin-login/blob/v1.1.1/src/commands/login.ts)_
2258
+ _See code: [@salesforce/plugin-login](https://github.com/salesforcecli/plugin-login/blob/v1.1.2/src/commands/login.ts)_
2020
2259
 
2021
2260
  ## `sf login functions`
2022
2261
 
@@ -2285,7 +2524,7 @@ EXAMPLES
2285
2524
  $ sf logout --no-prompt
2286
2525
  ```
2287
2526
 
2288
- _See code: [@salesforce/plugin-login](https://github.com/salesforcecli/plugin-login/blob/v1.1.1/src/commands/logout.ts)_
2527
+ _See code: [@salesforce/plugin-login](https://github.com/salesforcecli/plugin-login/blob/v1.1.2/src/commands/logout.ts)_
2289
2528
 
2290
2529
  ## `sf logout functions`
2291
2530
 
@@ -2606,20 +2845,24 @@ Retrieve metadata in source format from an org to your local project.
2606
2845
 
2607
2846
  ```
2608
2847
  USAGE
2609
- $ sf retrieve metadata [--json] [-a <value>] [-c] [-x <value> | -m <value> | -d <value>] [-n <value>] [-o <value>]
2610
- [-w <value>]
2848
+ $ sf retrieve metadata [--json] [-a <value>] [-c] [-x <value> | -m <value> | -d <value>] [-n <value>]
2849
+ [--single-package -t <value>] [-o <value>] [-w <value>] [-z ] [--zip-file-name <value> ]
2611
2850
 
2612
2851
  FLAGS
2613
- -a, --api-version=<value> Target API version for the retrieve.
2614
- -c, --ignore-conflicts Ignore conflicts and retrieve and save files to your local filesystem, even if they
2615
- overwrite your local changes.
2616
- -d, --source-dir=<value>... File paths for source to retrieve from the org.
2617
- -m, --metadata=<value>... Metadata component names to retrieve.
2618
- -n, --package-name=<value>... Package names to retrieve.
2619
- -o, --target-org=<value> Login username or alias for the target org.
2620
- -w, --wait=<value> [default: [object Object]] Number of minutes to wait for the command to complete and
2621
- display results to the terminal window.
2622
- -x, --manifest=<value> File path for the manifest (package.xml) that specifies the components to retrieve.
2852
+ -a, --api-version=<value> Target API version for the retrieve.
2853
+ -c, --ignore-conflicts Ignore conflicts and retrieve and save files to your local filesystem, even if they
2854
+ overwrite your local changes.
2855
+ -d, --source-dir=<value>... File paths for source to retrieve from the org.
2856
+ -m, --metadata=<value>... Metadata component names to retrieve.
2857
+ -n, --package-name=<value>... Package names to retrieve.
2858
+ -o, --target-org=<value> Login username or alias for the target org.
2859
+ -t, --target-metadata-dir=<value> Directory root for the retrieved files.
2860
+ -w, --wait=<value> Number of minutes to wait for the command to complete and display results to the
2861
+ terminal window.
2862
+ -x, --manifest=<value> File path for the manifest (package.xml) that specifies the components to retrieve.
2863
+ -z, --unzip Extract all files from the retrieved zip file.
2864
+ --single-package Indicates that the zip file points to a directory structure for a single package.
2865
+ --zip-file-name=<value> File name to use for the retrieved zip file.
2623
2866
 
2624
2867
  GLOBAL FLAGS
2625
2868
  --json Format output as json.
@@ -2677,6 +2920,14 @@ EXAMPLES
2677
2920
  $ sf retrieve metadata --package-name Package1 "PackageName With Spaces" Package3
2678
2921
  $ sf retrieve metadata --package-name Package1 --package-name "PackageName With Spaces" --package-name Package3
2679
2922
 
2923
+ Retrieve using Metadata API
2924
+
2925
+ $ sf retrieve metadata --source-dir force-app --target-metadata-dir output
2926
+
2927
+ Retrieve using Metadata API and automatically unzip the contents
2928
+
2929
+ $ sf retrieve metadata --source-dir force-app --target-metadata-dir output --unzip
2930
+
2680
2931
  FLAG DESCRIPTIONS
2681
2932
  -a, --api-version=<value> Target API version for the retrieve.
2682
2933
 
@@ -2716,6 +2967,58 @@ ENVIRONMENT VARIABLES
2716
2967
  SF_USE_PROGRESS_BAR Set to false to disable the progress bar when running the metadata deploy command.
2717
2968
  ```
2718
2969
 
2970
+ ## `sf retrieve metadata preview`
2971
+
2972
+ Preview a retrieval to see what will be retrieved from the org, the potential conflicts, and the ignored files.
2973
+
2974
+ ```
2975
+ USAGE
2976
+ $ sf retrieve metadata preview [--json] [-c] [-o <value>]
2977
+
2978
+ FLAGS
2979
+ -c, --ignore-conflicts Ignore conflicts and preview the retrieve of remote components, even if they will overwrite
2980
+ local changes.
2981
+ -o, --target-org=<value> Login username or alias for the target org.
2982
+
2983
+ GLOBAL FLAGS
2984
+ --json Format output as json.
2985
+
2986
+ DESCRIPTION
2987
+ Preview a retrieval to see what will be retrieved from the org, the potential conflicts, and the ignored files.
2988
+
2989
+ You must run this command from within a project.
2990
+
2991
+ The command outputs a table that describes what will happen if you run the "sf retrieve metadata" command. The table
2992
+ lists the metadata components that will be retrieved and deleted. The table also lists the current conflicts between
2993
+ files in your local project and components in the org. Finally, the table lists the files that won't be retrieved
2994
+ because they're included in your .forceignore file.
2995
+
2996
+ If your org allows source tracking, then this command considers conflicts between the org and local. Some orgs, such
2997
+ as production orgs, never allow source tracking. Use the "--no-track-source" flag when you create a scratch or sandbox
2998
+ org to disable source tracking.
2999
+
3000
+ EXAMPLES
3001
+ Preview the retrieve of all changes from the org:
3002
+
3003
+ $ sf retrieve metadata preview
3004
+
3005
+ Preview the retrieve when ignoring any conflicts:
3006
+
3007
+ $ sf retrieve metadata preview --ignore-conflicts
3008
+
3009
+ FLAG DESCRIPTIONS
3010
+ -c, --ignore-conflicts
3011
+
3012
+ Ignore conflicts and preview the retrieve of remote components, even if they will overwrite local changes.
3013
+
3014
+ This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as
3015
+ production orgs.
3016
+
3017
+ -o, --target-org=<value> Login username or alias for the target org.
3018
+
3019
+ Overrides your default org.
3020
+ ```
3021
+
2719
3022
  ## `sf run function`
2720
3023
 
2721
3024
  Send a cloudevent to a function.
@@ -2915,7 +3218,7 @@ FLAG DESCRIPTIONS
2915
3218
  Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.
2916
3219
  ```
2917
3220
 
2918
- _See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v1.1.1/src/commands/version.ts)_
3221
+ _See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v1.1.2/src/commands/version.ts)_
2919
3222
 
2920
3223
  ## `sf whatsnew [-v <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
2921
3224