@@ -115,20 +115,21 @@ EXAMPLES
115115 $ sf deploy --interactive
116116```
117117
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 ) _
119119
120120## ` sf deploy metadata `
121121
122122Deploy metadata in source format to an org from your local project.
123123
124124```
125125USAGE
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]
129129
130130FLAGS
131131 -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.
132133 -d, --source-dir=<value>... Path to the local source files to deploy.
133134 -g, --ignore-warnings Ignore warnings and allow a deployment to complete successfully.
134135 -l, --test-level=<option> [default: NoTestRun] Deployment Apex testing level.
@@ -156,14 +157,19 @@ DESCRIPTION
156157
157158 You must run this command from within a project.
158159
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.
161163
162164 To deploy multiple metadata components, either set multiple --metadata <name> flags or a single --metadata flag with
163165 multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same syntax
164166 applies to --manifest and --source-dir.
165167
166168EXAMPLES
169+ Deploy local changes not in the org:
170+
171+ $ sf deploy metadata
172+
167173 Deploy the source files in a directory:
168174
169175 $ sf deploy metadata --source-dir path/to/source
@@ -204,6 +210,11 @@ FLAG DESCRIPTIONS
204210 Use this flag to override the default API version, which is the latest version supported the CLI, with the API
205211 version of your package.xml file.
206212
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+
207218 -d, --source-dir=<value>... Path to the local source files to deploy.
208219
209220 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.
645656
646657```
647658USAGE
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>]
650661
651662FLAGS
652663 -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.
653666 -d, --source-dir=<value>... File paths for source to retrieve from the org.
654667 -m, --metadata=<value>... Metadata component names to retrieve.
655668 -n, --package-name=<value>... Package names to retrieve.
@@ -666,14 +679,19 @@ DESCRIPTION
666679
667680 You must run this command from within a project.
668681
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.
671685
672686 To retrieve multiple metadata components, either use multiple --metadata <name> flags or use a single --metadata flag
673687 with multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same
674688 syntax applies to --manifest and --source-dir.
675689
676690EXAMPLES
691+ Retrieve remote changes:
692+
693+ $ sf retrieve metadata
694+
677695 Retrieve the source files in a directory:
678696
679697 $ sf retrieve metadata --source-dir path/to/source
@@ -715,6 +733,13 @@ FLAG DESCRIPTIONS
715733 Use this flag to override the default API version, which is the latest version supported the CLI, with the API
716734 version in your package.xml file.
717735
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+
718743 -d, --source-dir=<value>... File paths for source to retrieve from the org.
719744
720745 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