You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
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.
-c, --ignore-conflicts Ignore conflicts and deploy local files, even if they overwrite changes in the org.
360
+
-d, --source-dir=<value>... Path to the local source files to preview.
361
+
-m, --metadata=<value>... Metadata component names to preview.
362
+
-o, --target-org=<value> Login username or alias for the target org.
363
+
-x, --manifest=<value> Full file path for manifest (package.xml) of components to preview.
364
+
365
+
GLOBAL FLAGS
366
+
--json Format output as json.
367
+
368
+
DESCRIPTION
369
+
Preview a deployment to see what will deploy to the org, the potential conflicts, and the ignored files.
370
+
371
+
You must run this command from within a project.
372
+
373
+
The command outputs a table that describes what will happen if you run the "sf deploy metadata" command. The table
374
+
lists the metadata components that will be deployed and deleted. The table also lists the current conflicts between
375
+
files in your local project and components in the org. Finally, the table lists the files that won't be deployed
376
+
because they're included in your .forceignore file.
377
+
378
+
If your org allows source tracking, then this command considers conflicts between the org and local. Some orgs, such
379
+
as production orgs, never allow source tracking. Use the "--no-track-source" flag when you create a scratch or sandbox
380
+
org to disable source tracking.
381
+
382
+
To preview the deployment of multiple metadata components, either set multiple --metadata <name> flags or a single
383
+
--metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double
384
+
quotes. The same syntax applies to --manifest and --source-dir.
385
+
386
+
EXAMPLES
387
+
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.
388
+
389
+
Preview the deployment of source files in a directory, such as force-app:
390
+
391
+
$ sf deploy metadata preview --source-dir force-app
392
+
393
+
Preview the deployment of all Apex classes:
394
+
395
+
$ sf deploy metadata preview --metadata ApexClass
396
+
397
+
Preview deployment of a specific Apex class:
398
+
399
+
$ sf deploy metadata preview --metadata ApexClass:MyApexClass
400
+
401
+
Preview deployment of all components listed in a manifest:
402
+
403
+
$ sf deploy metadata preview --manifest path/to/package.xml
404
+
405
+
FLAG DESCRIPTIONS
406
+
-c, --ignore-conflicts Ignore conflicts and deploy local files, even if they overwrite changes in the org.
407
+
408
+
This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as
409
+
production orgs.
410
+
411
+
-d, --source-dir=<value>... Path to the local source files to preview.
412
+
413
+
The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder
414
+
(in which case the operation is applied to all metadata types in the directory and its subdirectories).
415
+
416
+
If you specify this flag, don’t specify --metadata or --manifest.
417
+
418
+
-o, --target-org=<value> Login username or alias for the target org.
419
+
420
+
Overrides your default org.
421
+
422
+
-x, --manifest=<value> Full file path for manifest (package.xml) of components to preview.
423
+
424
+
All child components are included. If you specify this flag, don’t specify --metadata or --source-dir.
425
+
```
426
+
349
427
## `sf deploy metadata quick`
350
428
351
429
Quickly deploy a validated deployment to an org.
@@ -358,8 +436,7 @@ FLAGS
358
436
-i, --job-id=<value> Job ID of the deployment you want to quick deploy.
359
437
-o, --target-org=<value> Login username or alias for the target org.
360
438
-r, --use-most-recent Use the job ID of the most recently validated deployment.
361
-
-w, --wait=<minutes> [default: 33 minutes] Number of minutes to wait for the command to complete and display
362
-
results.
439
+
-w, --wait=<minutes> Number of minutes to wait for the command to complete and display results.
363
440
--async Run the command asynchronously.
364
441
--concise Show concise output of the deploy result.
365
442
--verbose Show verbose output of the deploy result.
@@ -548,8 +625,7 @@ FLAGS
548
625
-m, --metadata=<value>... Metadata component names to validate for deployment.
549
626
-o, --target-org=<value> Login username or alias for the target org.
550
627
-t, --tests=<value>... Apex tests to run when --test-level is RunSpecifiedTests.
551
-
-w, --wait=<minutes> [default: 33 minutes] Number of minutes to wait for the command to complete and display
552
-
results.
628
+
-w, --wait=<minutes> Number of minutes to wait for the command to complete and display results.
553
629
-x, --manifest=<value> Full file path for manifest (package.xml) of components to validate for deployment.
554
630
--async Run the command asynchronously.
555
631
--concise Show concise output of the validation result.
@@ -600,8 +676,8 @@ EXAMPLES
600
676
FLAG DESCRIPTIONS
601
677
-a, --api-version=<value> Target API version for the validation.
602
678
603
-
Use this flag to override the default API version, which is the latest version supported the CLI, with the API
604
-
version in your package.xml file.
679
+
Use this flag to override the default API version with the API version of your package.xml file. The default API
680
+
version is the latest version supported by the CLI.
605
681
606
682
-d, --source-dir=<value>... Path to the local source files to validate for deployment.
607
683
@@ -667,8 +743,8 @@ FLAGS
667
743
-m, --metadata=<value>... Metadata component names to retrieve.
668
744
-n, --package-name=<value>... Package names to retrieve.
669
745
-o, --target-org=<value> Login username or alias for the target org.
670
-
-w, --wait=<value> [default: 33 minutes] Number of minutes to wait for the command to complete and display
671
-
results to the terminal window.
746
+
-w, --wait=<value> Number of minutes to wait for the command to complete and display results to the
747
+
terminal window.
672
748
-x, --manifest=<value> File path for the manifest (package.xml) that specifies the components to retrieve.
673
749
674
750
GLOBAL FLAGS
@@ -758,4 +834,56 @@ FLAG DESCRIPTIONS
758
834
If you specify this parameter, don’t specify --metadata or --source-dir.
759
835
```
760
836
837
+
## `sf retrieve metadata preview`
838
+
839
+
Preview a retrieval to see what will be retrieved from the org, the potential conflicts, and the ignored files.
840
+
841
+
```
842
+
USAGE
843
+
$ sf retrieve metadata preview [--json] [-c] [-o <value>]
844
+
845
+
FLAGS
846
+
-c, --ignore-conflicts Ignore conflicts and preview the retrieve of remote components, even if they will overwrite
847
+
local changes.
848
+
-o, --target-org=<value> Login username or alias for the target org.
849
+
850
+
GLOBAL FLAGS
851
+
--json Format output as json.
852
+
853
+
DESCRIPTION
854
+
Preview a retrieval to see what will be retrieved from the org, the potential conflicts, and the ignored files.
855
+
856
+
You must run this command from within a project.
857
+
858
+
The command outputs a table that describes what will happen if you run the "sf retrieve metadata" command. The table
859
+
lists the metadata components that will be retrieved and deleted. The table also lists the current conflicts between
860
+
files in your local project and components in the org. Finally, the table lists the files that won't be retrieved
861
+
because they're included in your .forceignore file.
862
+
863
+
If your org allows source tracking, then this command considers conflicts between the org and local. Some orgs, such
864
+
as production orgs, never allow source tracking. Use the "--no-track-source" flag when you create a scratch or sandbox
865
+
org to disable source tracking.
866
+
867
+
EXAMPLES
868
+
Preview the retrieve of all changes from the org:
869
+
870
+
$ sf retrieve metadata preview
871
+
872
+
Preview the retrieve when ignoring any conflicts:
873
+
874
+
$ sf retrieve metadata preview --ignore-conflicts
875
+
876
+
FLAG DESCRIPTIONS
877
+
-c, --ignore-conflicts
878
+
879
+
Ignore conflicts and preview the retrieve of remote components, even if they will overwrite local changes.
880
+
881
+
This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as
882
+
production orgs.
883
+
884
+
-o, --target-org=<value> Login username or alias for the target org.
0 commit comments