@@ -115,20 +115,21 @@ EXAMPLES
115
115
$ sf deploy --interactive
116
116
```
117
117
118
- _ See code: [ src/commands/deploy.ts] ( https://github.com/salesforcecli/plugin-deploy-retrieve/blob/v1.5.0 /src/commands/deploy.ts ) _
118
+ _ See code: [ src/commands/deploy.ts] ( https://github.com/salesforcecli/plugin-deploy-retrieve/blob/v1.5.1 /src/commands/deploy.ts ) _
119
119
120
120
## ` sf deploy metadata `
121
121
122
122
Deploy metadata in source format to an org from your local project.
123
123
124
124
```
125
125
USAGE
126
- $ sf deploy metadata [--json] [-a <value>] [--async | -w <value>] [--concise | --verbose] [--dry-run] [-r ] [-g] [-x
127
- <value>] [-m <value>] [--single-package --metadata-dir <value>] [-d <value> ] [-o <value>] [-t <value>] [-l
128
- NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg]
126
+ $ sf deploy metadata [--json] [-a <value>] [--async | -w <value>] [--concise | --verbose] [--dry-run] [-c ] [-r]
127
+ [-g] [-x <value> | -d <value> | -m <value> | --metadata-dir <value>] [--single-package ] [-o <value>] [-t <value>]
128
+ [-l NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg]
129
129
130
130
FLAGS
131
131
-a, --api-version=<value> Target API version for the deploy.
132
+ -c, --ignore-conflicts Ignore conflicts and deploy local files, even if they overwrite changes in the org.
132
133
-d, --source-dir=<value>... Path to the local source files to deploy.
133
134
-g, --ignore-warnings Ignore warnings and allow a deployment to complete successfully.
134
135
-l, --test-level=<option> [default: NoTestRun] Deployment Apex testing level.
@@ -156,14 +157,19 @@ DESCRIPTION
156
157
157
158
You must run this command from within a project.
158
159
159
- This command doesn't support source-tracking. The source you deploy overwrites the corresponding metadata in your org.
160
- This command doesn’t attempt to merge your source with the versions in your org.
160
+ If your org allows source tracking, then this command tracks the changes in your source. Some orgs, such as production
161
+ org, never allow source tracking. You can also use the "--no-track-source" flag when you create a scratch or sandbox
162
+ org to disable source tracking.
161
163
162
164
To deploy multiple metadata components, either set multiple --metadata <name> flags or a single --metadata flag with
163
165
multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same syntax
164
166
applies to --manifest and --source-dir.
165
167
166
168
EXAMPLES
169
+ Deploy local changes not in the org:
170
+
171
+ $ sf deploy metadata
172
+
167
173
Deploy the source files in a directory:
168
174
169
175
$ sf deploy metadata --source-dir path/to/source
@@ -204,6 +210,11 @@ FLAG DESCRIPTIONS
204
210
Use this flag to override the default API version, which is the latest version supported the CLI, with the API
205
211
version of your package.xml file.
206
212
213
+ -c, --ignore-conflicts Ignore conflicts and deploy local files, even if they overwrite changes in the org.
214
+
215
+ This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as
216
+ production orgs.
217
+
207
218
-d, --source-dir=<value>... Path to the local source files to deploy.
208
219
209
220
The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder
@@ -645,11 +656,13 @@ Retrieve metadata in source format from an org to your local project.
645
656
646
657
```
647
658
USAGE
648
- $ sf retrieve metadata [--json] [-a <value>] [-x <value> | -m <value> | -d <value>] [-n <value>] [-o <value>] [-w
649
- <value>]
659
+ $ sf retrieve metadata [--json] [-a <value>] [-c] [- x <value> | -m <value> | -d <value>] [-n <value>] [-o <value>]
660
+ [-w <value>]
650
661
651
662
FLAGS
652
663
-a, --api-version=<value> Target API version for the retrieve.
664
+ -c, --ignore-conflicts Ignore conflicts and retrieve and save files to your local filesystem, even if they
665
+ overwrite your local changes.
653
666
-d, --source-dir=<value>... File paths for source to retrieve from the org.
654
667
-m, --metadata=<value>... Metadata component names to retrieve.
655
668
-n, --package-name=<value>... Package names to retrieve.
@@ -666,14 +679,19 @@ DESCRIPTION
666
679
667
680
You must run this command from within a project.
668
681
669
- This command doesn't support source-tracking. The source you retrieve overwrites the corresponding source files in
670
- your local project. This command doesn’t attempt to merge the source from your org with your local source files.
682
+ If your org allows source tracking, then this command tracks the changes in your source. Some orgs, such as production
683
+ org, never allow source tracking. You can also use the "--no-track-source" flag when you create a scratch or sandbox
684
+ org to disable source tracking.
671
685
672
686
To retrieve multiple metadata components, either use multiple --metadata <name> flags or use a single --metadata flag
673
687
with multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same
674
688
syntax applies to --manifest and --source-dir.
675
689
676
690
EXAMPLES
691
+ Retrieve remote changes:
692
+
693
+ $ sf retrieve metadata
694
+
677
695
Retrieve the source files in a directory:
678
696
679
697
$ sf retrieve metadata --source-dir path/to/source
@@ -715,6 +733,13 @@ FLAG DESCRIPTIONS
715
733
Use this flag to override the default API version, which is the latest version supported the CLI, with the API
716
734
version in your package.xml file.
717
735
736
+ -c, --ignore-conflicts
737
+
738
+ Ignore conflicts and retrieve and save files to your local filesystem, even if they overwrite your local changes.
739
+
740
+ This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as
741
+ production orgs.
742
+
718
743
-d, --source-dir=<value>... File paths for source to retrieve from the org.
719
744
720
745
The supplied paths can be to a single file (in which case the operation is applied to only one file) or to a folder
0 commit comments