@salesforce/plugin-deploy-retrieve 1.20.3 → 2.0.1
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/README.md +66 -64
- package/lib/commands/deploy.d.ts +1 -1
- package/lib/commands/deploy.js +48 -51
- package/lib/commands/deploy.js.map +1 -1
- package/lib/commands/project/convert/mdapi.d.ts +8 -8
- package/lib/commands/project/convert/mdapi.js +63 -63
- package/lib/commands/project/convert/mdapi.js.map +1 -1
- package/lib/commands/project/convert/source.d.ts +16 -40
- package/lib/commands/project/convert/source.js +71 -72
- package/lib/commands/project/convert/source.js.map +1 -1
- package/lib/commands/project/delete/source.d.ts +9 -61
- package/lib/commands/project/delete/source.js +182 -180
- package/lib/commands/project/delete/source.js.map +1 -1
- package/lib/commands/project/delete/tracking.d.ts +4 -4
- package/lib/commands/project/delete/tracking.js +27 -29
- package/lib/commands/project/delete/tracking.js.map +1 -1
- package/lib/commands/project/deploy/cancel.d.ts +5 -5
- package/lib/commands/project/deploy/cancel.js +58 -59
- package/lib/commands/project/deploy/cancel.js.map +1 -1
- package/lib/commands/project/deploy/preview.d.ts +6 -6
- package/lib/commands/project/deploy/preview.js +57 -58
- package/lib/commands/project/deploy/preview.js.map +1 -1
- package/lib/commands/project/deploy/quick.d.ts +9 -9
- package/lib/commands/project/deploy/quick.js +85 -86
- package/lib/commands/project/deploy/quick.js.map +1 -1
- package/lib/commands/project/deploy/report.d.ts +8 -60
- package/lib/commands/project/deploy/report.js +72 -73
- package/lib/commands/project/deploy/report.js.map +1 -1
- package/lib/commands/project/deploy/resume.d.ts +9 -61
- package/lib/commands/project/deploy/resume.js +82 -83
- package/lib/commands/project/deploy/resume.js.map +1 -1
- package/lib/commands/project/deploy/start.d.ts +24 -128
- package/lib/commands/project/deploy/start.js +168 -169
- package/lib/commands/project/deploy/start.js.map +1 -1
- package/lib/commands/project/deploy/validate.d.ts +21 -125
- package/lib/commands/project/deploy/validate.js +149 -149
- package/lib/commands/project/deploy/validate.js.map +1 -1
- package/lib/commands/project/generate/manifest.d.ts +9 -9
- package/lib/commands/project/generate/manifest.js +73 -78
- package/lib/commands/project/generate/manifest.js.map +1 -1
- package/lib/commands/project/list/ignored.d.ts +1 -1
- package/lib/commands/project/list/ignored.js +27 -29
- package/lib/commands/project/list/ignored.js.map +1 -1
- package/lib/commands/project/reset/tracking.d.ts +5 -5
- package/lib/commands/project/reset/tracking.js +33 -35
- package/lib/commands/project/reset/tracking.js.map +1 -1
- package/lib/commands/project/retrieve/preview.d.ts +3 -3
- package/lib/commands/project/retrieve/preview.js +35 -36
- package/lib/commands/project/retrieve/preview.js.map +1 -1
- package/lib/commands/project/retrieve/start.d.ts +11 -11
- package/lib/commands/project/retrieve/start.js +148 -149
- package/lib/commands/project/retrieve/start.js.map +1 -1
- package/lib/configMeta.js +8 -9
- package/lib/configMeta.js.map +1 -1
- package/lib/formatters/asyncDeployCancelResultFormatter.d.ts +1 -1
- package/lib/formatters/asyncDeployCancelResultFormatter.js +12 -12
- package/lib/formatters/asyncDeployCancelResultFormatter.js.map +1 -1
- package/lib/formatters/asyncDeployResultFormatter.d.ts +1 -1
- package/lib/formatters/asyncDeployResultFormatter.js +14 -14
- package/lib/formatters/asyncDeployResultFormatter.js.map +1 -1
- package/lib/formatters/deleteResultFormatter.d.ts +2 -2
- package/lib/formatters/deleteResultFormatter.js +21 -23
- package/lib/formatters/deleteResultFormatter.js.map +1 -1
- package/lib/formatters/deployCancelResultFormatter.d.ts +1 -1
- package/lib/formatters/deployCancelResultFormatter.js +7 -10
- package/lib/formatters/deployCancelResultFormatter.js.map +1 -1
- package/lib/formatters/deployReportResultFormatter.d.ts +1 -1
- package/lib/formatters/deployReportResultFormatter.js +18 -22
- package/lib/formatters/deployReportResultFormatter.js.map +1 -1
- package/lib/formatters/deployResultFormatter.d.ts +2 -2
- package/lib/formatters/deployResultFormatter.js +53 -50
- package/lib/formatters/deployResultFormatter.js.map +1 -1
- package/lib/formatters/metadataConvertResultFormatter.d.ts +1 -1
- package/lib/formatters/metadataConvertResultFormatter.js +7 -9
- package/lib/formatters/metadataConvertResultFormatter.js.map +1 -1
- package/lib/formatters/metadataRetrieveResultFormatter.d.ts +1 -1
- package/lib/formatters/metadataRetrieveResultFormatter.js +17 -16
- package/lib/formatters/metadataRetrieveResultFormatter.js.map +1 -1
- package/lib/formatters/retrieveResultFormatter.d.ts +1 -1
- package/lib/formatters/retrieveResultFormatter.js +17 -17
- package/lib/formatters/retrieveResultFormatter.js.map +1 -1
- package/lib/formatters/sourceConvertResultFormatter.d.ts +1 -1
- package/lib/formatters/sourceConvertResultFormatter.js +12 -14
- package/lib/formatters/sourceConvertResultFormatter.js.map +1 -1
- package/lib/formatters/testResultsFormatter.d.ts +1 -1
- package/lib/formatters/testResultsFormatter.js +38 -38
- package/lib/formatters/testResultsFormatter.js.map +1 -1
- package/lib/hooks/deploy.d.ts +1 -1
- package/lib/hooks/deploy.js +5 -7
- package/lib/hooks/deploy.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -2
- package/lib/index.js.map +1 -1
- package/lib/utils/conflicts.js +3 -7
- package/lib/utils/conflicts.js.map +1 -1
- package/lib/utils/coverage.js +20 -30
- package/lib/utils/coverage.js.map +1 -1
- package/lib/utils/deploy.d.ts +1 -1
- package/lib/utils/deploy.js +55 -64
- package/lib/utils/deploy.js.map +1 -1
- package/lib/utils/deployCache.d.ts +1 -1
- package/lib/utils/deployCache.js +12 -16
- package/lib/utils/deployCache.js.map +1 -1
- package/lib/utils/errorCodes.js +15 -16
- package/lib/utils/errorCodes.js.map +1 -1
- package/lib/utils/flags.d.ts +25 -7
- package/lib/utils/flags.js +24 -27
- package/lib/utils/flags.js.map +1 -1
- package/lib/utils/manifestCache.js +9 -14
- package/lib/utils/manifestCache.js.map +1 -1
- package/lib/utils/metadataDeployer.d.ts +1 -1
- package/lib/utils/metadataDeployer.js +40 -39
- package/lib/utils/metadataDeployer.js.map +1 -1
- package/lib/utils/output.js +13 -22
- package/lib/utils/output.js.map +1 -1
- package/lib/utils/previewOutput.js +46 -52
- package/lib/utils/previewOutput.js.map +1 -1
- package/lib/utils/progressBar.js +19 -21
- package/lib/utils/progressBar.js.map +1 -1
- package/lib/utils/project.js +7 -13
- package/lib/utils/project.js.map +1 -1
- package/lib/utils/promiseQueue.js +3 -7
- package/lib/utils/promiseQueue.js.map +1 -1
- package/lib/utils/types.js +12 -19
- package/lib/utils/types.js.map +1 -1
- package/oclif.lock +8667 -0
- package/oclif.manifest.json +1442 -942
- package/package.json +37 -35
- package/schemas/project-retrieve-start.json +14 -11
package/README.md
CHANGED
|
@@ -44,11 +44,11 @@ yarn install
|
|
|
44
44
|
yarn build
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
To use your plugin, run using the local `./bin/dev` or `./bin/dev.cmd` file.
|
|
47
|
+
To use your plugin, run using the local `./bin/dev.js` or `./bin/dev.cmd` file.
|
|
48
48
|
|
|
49
49
|
```bash
|
|
50
50
|
# Run using local run file.
|
|
51
|
-
./bin/dev deploy
|
|
51
|
+
./bin/dev.js deploy
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
There should be no differences when running via the Salesforce CLI or using the local run file. However, it can be useful to link the plugin to do some additional testing or run your commands from anywhere on your machine.
|
|
@@ -97,7 +97,7 @@ FLAGS
|
|
|
97
97
|
-p, --metadata-dir=<value>... Root of directory or zip file of metadata formatted files to convert.
|
|
98
98
|
-r, --root-dir=<value> (required) Root directory that contains the Metadata API–formatted metadata.
|
|
99
99
|
-x, --manifest=<value> File path to manifest (package.xml) of metadata types to convert.
|
|
100
|
-
|
|
100
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
101
101
|
|
|
102
102
|
GLOBAL FLAGS
|
|
103
103
|
--json Format output as json.
|
|
@@ -141,7 +141,7 @@ FLAG DESCRIPTIONS
|
|
|
141
141
|
If you specify this parameter, don’t specify --metadata or --source-dir.
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
-
_See code: [src/commands/project/convert/mdapi.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.
|
|
144
|
+
_See code: [src/commands/project/convert/mdapi.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.4/src/commands/project/convert/mdapi.ts)_
|
|
145
145
|
|
|
146
146
|
## `sf project convert source`
|
|
147
147
|
|
|
@@ -153,14 +153,14 @@ USAGE
|
|
|
153
153
|
<value> | -m <value>]
|
|
154
154
|
|
|
155
155
|
FLAGS
|
|
156
|
-
-d, --output-dir=<value> [default:
|
|
156
|
+
-d, --output-dir=<value> [default: metadataPackage_1699992830510] Output directory to store the Metadata
|
|
157
157
|
API–formatted files in.
|
|
158
158
|
-m, --metadata=<value>... Metadata component names to convert.
|
|
159
159
|
-n, --package-name=<value> Name of the package to associate with the metadata-formatted files.
|
|
160
160
|
-p, --source-dir=<value>... Paths to the local source files to convert.
|
|
161
161
|
-r, --root-dir=<value> Source directory other than the default package to convert.
|
|
162
162
|
-x, --manifest=<value> Path to the manifest (package.xml) file that specifies the metadata types to convert.
|
|
163
|
-
|
|
163
|
+
--api-version=<value> API Version to use in the generated project's manifest. By default, will use the version
|
|
164
164
|
from sfdx-project.json
|
|
165
165
|
|
|
166
166
|
GLOBAL FLAGS
|
|
@@ -213,7 +213,7 @@ FLAG DESCRIPTIONS
|
|
|
213
213
|
Override the api version used for api requests made by this command
|
|
214
214
|
```
|
|
215
215
|
|
|
216
|
-
_See code: [src/commands/project/convert/source.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.
|
|
216
|
+
_See code: [src/commands/project/convert/source.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.4/src/commands/project/convert/source.ts)_
|
|
217
217
|
|
|
218
218
|
## `sf project delete source`
|
|
219
219
|
|
|
@@ -234,13 +234,13 @@ FLAGS
|
|
|
234
234
|
-r, --no-prompt Don't prompt for delete confirmation.
|
|
235
235
|
-t, --track-source If the delete succeeds, update the source tracking information.
|
|
236
236
|
-w, --wait=<value> [default: 33 minutes] Number of minutes to wait for the command to finish.
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
238
|
+
--verbose Verbose output of the delete result.
|
|
239
239
|
|
|
240
240
|
TEST FLAGS
|
|
241
241
|
-l, --test-level=<option> Deployment Apex testing level.
|
|
242
242
|
<options: NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg>
|
|
243
|
-
|
|
243
|
+
--tests=<value>... Apex tests to run when --test-level is RunSpecifiedTests.
|
|
244
244
|
|
|
245
245
|
GLOBAL FLAGS
|
|
246
246
|
--json Format output as json.
|
|
@@ -351,7 +351,7 @@ FLAG DESCRIPTIONS
|
|
|
351
351
|
- Separate the test names with spaces: --tests Test1 Test2 "Test With Space"
|
|
352
352
|
```
|
|
353
353
|
|
|
354
|
-
_See code: [src/commands/project/delete/source.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.
|
|
354
|
+
_See code: [src/commands/project/delete/source.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.4/src/commands/project/delete/source.ts)_
|
|
355
355
|
|
|
356
356
|
## `sf project delete tracking`
|
|
357
357
|
|
|
@@ -362,9 +362,9 @@ USAGE
|
|
|
362
362
|
$ sf project delete tracking -o <value> [--json] [--api-version <value>] [-p]
|
|
363
363
|
|
|
364
364
|
FLAGS
|
|
365
|
-
-o, --target-org=<value>
|
|
366
|
-
-p, --no-prompt
|
|
367
|
-
|
|
365
|
+
-o, --target-org=<value> (required) Username or alias of the target org.
|
|
366
|
+
-p, --no-prompt Don't prompt for source tracking override confirmation.
|
|
367
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
368
368
|
|
|
369
369
|
GLOBAL FLAGS
|
|
370
370
|
--json Format output as json.
|
|
@@ -386,7 +386,7 @@ EXAMPLES
|
|
|
386
386
|
$ sf project delete tracking --target-org my-scratch
|
|
387
387
|
```
|
|
388
388
|
|
|
389
|
-
_See code: [src/commands/project/delete/tracking.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.
|
|
389
|
+
_See code: [src/commands/project/delete/tracking.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.4/src/commands/project/delete/tracking.ts)_
|
|
390
390
|
|
|
391
391
|
## `sf project deploy cancel`
|
|
392
392
|
|
|
@@ -400,7 +400,7 @@ FLAGS
|
|
|
400
400
|
-i, --job-id=<value> Job ID of the deploy operation you want to cancel.
|
|
401
401
|
-r, --use-most-recent Use the job ID of the most recent deploy operation.
|
|
402
402
|
-w, --wait=<minutes> Number of minutes to wait for the command to complete and display results.
|
|
403
|
-
|
|
403
|
+
--async Run the command asynchronously.
|
|
404
404
|
|
|
405
405
|
GLOBAL FLAGS
|
|
406
406
|
--json Format output as json.
|
|
@@ -456,7 +456,7 @@ FLAG DESCRIPTIONS
|
|
|
456
456
|
project deploy report".
|
|
457
457
|
```
|
|
458
458
|
|
|
459
|
-
_See code: [src/commands/project/deploy/cancel.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.
|
|
459
|
+
_See code: [src/commands/project/deploy/cancel.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.4/src/commands/project/deploy/cancel.ts)_
|
|
460
460
|
|
|
461
461
|
## `sf project deploy preview`
|
|
462
462
|
|
|
@@ -539,7 +539,7 @@ FLAG DESCRIPTIONS
|
|
|
539
539
|
All child components are included. If you specify this flag, don’t specify --metadata or --source-dir.
|
|
540
540
|
```
|
|
541
541
|
|
|
542
|
-
_See code: [src/commands/project/deploy/preview.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.
|
|
542
|
+
_See code: [src/commands/project/deploy/preview.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.4/src/commands/project/deploy/preview.ts)_
|
|
543
543
|
|
|
544
544
|
## `sf project deploy quick`
|
|
545
545
|
|
|
@@ -557,9 +557,9 @@ FLAGS
|
|
|
557
557
|
-r, --use-most-recent Use the job ID of the most recently validated deployment.
|
|
558
558
|
-w, --wait=<minutes> [default: 33 minutes] Number of minutes to wait for the command to complete and display
|
|
559
559
|
results.
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
560
|
+
--async Run the command asynchronously.
|
|
561
|
+
--concise Show concise output of the deploy result.
|
|
562
|
+
--verbose Show verbose output of the deploy result.
|
|
563
563
|
|
|
564
564
|
GLOBAL FLAGS
|
|
565
565
|
--json Format output as json.
|
|
@@ -623,7 +623,7 @@ FLAG DESCRIPTIONS
|
|
|
623
623
|
deploy report".
|
|
624
624
|
```
|
|
625
625
|
|
|
626
|
-
_See code: [src/commands/project/deploy/quick.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.
|
|
626
|
+
_See code: [src/commands/project/deploy/quick.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.4/src/commands/project/deploy/quick.ts)_
|
|
627
627
|
|
|
628
628
|
## `sf project deploy report`
|
|
629
629
|
|
|
@@ -718,7 +718,7 @@ FLAG DESCRIPTIONS
|
|
|
718
718
|
--coverage-formatters lcov --coverage-formatters clover
|
|
719
719
|
```
|
|
720
720
|
|
|
721
|
-
_See code: [src/commands/project/deploy/report.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.
|
|
721
|
+
_See code: [src/commands/project/deploy/report.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.4/src/commands/project/deploy/report.ts)_
|
|
722
722
|
|
|
723
723
|
## `sf project deploy resume`
|
|
724
724
|
|
|
@@ -734,8 +734,8 @@ FLAGS
|
|
|
734
734
|
-i, --job-id=<value> Job ID of the deploy operation you want to resume.
|
|
735
735
|
-r, --use-most-recent Use the job ID of the most recent deploy operation.
|
|
736
736
|
-w, --wait=<minutes> Number of minutes to wait for the command to complete and display results.
|
|
737
|
-
|
|
738
|
-
|
|
737
|
+
--concise Show concise output of the deploy operation result.
|
|
738
|
+
--verbose Show verbose output of the deploy operation result.
|
|
739
739
|
|
|
740
740
|
TEST FLAGS
|
|
741
741
|
--coverage-formatters=<option>... Format of the code coverage results.
|
|
@@ -802,7 +802,7 @@ FLAG DESCRIPTIONS
|
|
|
802
802
|
--coverage-formatters lcov --coverage-formatters clover
|
|
803
803
|
```
|
|
804
804
|
|
|
805
|
-
_See code: [src/commands/project/deploy/resume.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.
|
|
805
|
+
_See code: [src/commands/project/deploy/resume.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.4/src/commands/project/deploy/resume.ts)_
|
|
806
806
|
|
|
807
807
|
## `sf project deploy start`
|
|
808
808
|
|
|
@@ -825,10 +825,10 @@ FLAGS
|
|
|
825
825
|
-r, --ignore-errors Ignore any errors and don’t roll back deployment.
|
|
826
826
|
-w, --wait=<minutes> [default: 33 minutes] Number of minutes to wait for command to complete and display
|
|
827
827
|
results.
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
828
|
+
--async Run the command asynchronously.
|
|
829
|
+
--concise Show concise output of the deploy result.
|
|
830
|
+
--dry-run Validate deploy and run Apex tests but don’t save to the org.
|
|
831
|
+
--verbose Show verbose output of the deploy result.
|
|
832
832
|
|
|
833
833
|
SOURCE FORMAT FLAGS
|
|
834
834
|
-d, --source-dir=<value>... Path to the local source files to deploy.
|
|
@@ -837,14 +837,15 @@ SOURCE FORMAT FLAGS
|
|
|
837
837
|
-x, --manifest=<value> Full file path for manifest (package.xml) of components to deploy.
|
|
838
838
|
|
|
839
839
|
TEST FLAGS
|
|
840
|
-
-l, --test-level=<option>
|
|
841
|
-
|
|
842
|
-
-t, --tests=<value>...
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
840
|
+
-l, --test-level=<option> Deployment Apex testing level.
|
|
841
|
+
<options: NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg>
|
|
842
|
+
-t, --tests=<value>... Apex tests to run when --test-level is RunSpecifiedTests.
|
|
843
|
+
--coverage-formatters=<option>... Format of the code coverage results.
|
|
844
|
+
<options: clover|cobertura|html-spa|html|json|json-summary|lcovonly|none|teamci
|
|
845
|
+
ty|text|text-summary>
|
|
846
|
+
--junit Output JUnit test results.
|
|
847
|
+
--results-dir=<value> Output directory for code coverage and JUnit results; defaults to the deploy
|
|
848
|
+
ID.
|
|
848
849
|
|
|
849
850
|
GLOBAL FLAGS
|
|
850
851
|
--json Format output as json.
|
|
@@ -1013,7 +1014,7 @@ FLAG DESCRIPTIONS
|
|
|
1013
1014
|
--coverage-formatters lcov --coverage-formatters clover
|
|
1014
1015
|
```
|
|
1015
1016
|
|
|
1016
|
-
_See code: [src/commands/project/deploy/start.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.
|
|
1017
|
+
_See code: [src/commands/project/deploy/start.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.4/src/commands/project/deploy/start.ts)_
|
|
1017
1018
|
|
|
1018
1019
|
## `sf project deploy validate`
|
|
1019
1020
|
|
|
@@ -1033,9 +1034,9 @@ FLAGS
|
|
|
1033
1034
|
-o, --target-org=<value> (required) Login username or alias for the target org.
|
|
1034
1035
|
-w, --wait=<minutes> [default: 33 minutes] Number of minutes to wait for the command to complete and display
|
|
1035
1036
|
results.
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1037
|
+
--async Run the command asynchronously.
|
|
1038
|
+
--concise Show concise output of the validation result.
|
|
1039
|
+
--verbose Show verbose output of the validation result.
|
|
1039
1040
|
|
|
1040
1041
|
SOURCE FORMAT FLAGS
|
|
1041
1042
|
-d, --source-dir=<value>... Path to the local source files to validate for deployment.
|
|
@@ -1043,14 +1044,15 @@ SOURCE FORMAT FLAGS
|
|
|
1043
1044
|
-x, --manifest=<value> Full file path for manifest (package.xml) of components to validate for deployment.
|
|
1044
1045
|
|
|
1045
1046
|
TEST FLAGS
|
|
1046
|
-
-l, --test-level=<option>
|
|
1047
|
-
|
|
1048
|
-
-t, --tests=<value>...
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1047
|
+
-l, --test-level=<option> [default: RunLocalTests] Deployment Apex testing level.
|
|
1048
|
+
<options: RunAllTestsInOrg|RunLocalTests|RunSpecifiedTests>
|
|
1049
|
+
-t, --tests=<value>... Apex tests to run when --test-level is RunSpecifiedTests.
|
|
1050
|
+
--coverage-formatters=<option>... Format of the code coverage results.
|
|
1051
|
+
<options: clover|cobertura|html-spa|html|json|json-summary|lcovonly|none|teamci
|
|
1052
|
+
ty|text|text-summary>
|
|
1053
|
+
--junit Output JUnit test results.
|
|
1054
|
+
--results-dir=<value> Output directory for code coverage and JUnit results; defaults to the deploy
|
|
1055
|
+
ID.
|
|
1054
1056
|
|
|
1055
1057
|
GLOBAL FLAGS
|
|
1056
1058
|
--json Format output as json.
|
|
@@ -1174,7 +1176,7 @@ FLAG DESCRIPTIONS
|
|
|
1174
1176
|
--coverage-formatters lcov --coverage-formatters clover
|
|
1175
1177
|
```
|
|
1176
1178
|
|
|
1177
|
-
_See code: [src/commands/project/deploy/validate.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.
|
|
1179
|
+
_See code: [src/commands/project/deploy/validate.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.4/src/commands/project/deploy/validate.ts)_
|
|
1178
1180
|
|
|
1179
1181
|
## `sf project generate manifest`
|
|
1180
1182
|
|
|
@@ -1195,8 +1197,8 @@ FLAGS
|
|
|
1195
1197
|
-p, --source-dir=<value>... Paths to the local source files to include in the manifest.
|
|
1196
1198
|
-t, --type=<option> Type of manifest to create; the type determines the name of the created file.
|
|
1197
1199
|
<options: pre|post|destroy|package>
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
1201
|
+
--from-org=<value> Username or alias of the org that contains the metadata components from which to
|
|
1200
1202
|
build a manifest.
|
|
1201
1203
|
|
|
1202
1204
|
GLOBAL FLAGS
|
|
@@ -1249,7 +1251,7 @@ EXAMPLES
|
|
|
1249
1251
|
$ sf project generate manifest --from-org test@myorg.com --include-packages unlocked
|
|
1250
1252
|
```
|
|
1251
1253
|
|
|
1252
|
-
_See code: [src/commands/project/generate/manifest.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.
|
|
1254
|
+
_See code: [src/commands/project/generate/manifest.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.4/src/commands/project/generate/manifest.ts)_
|
|
1253
1255
|
|
|
1254
1256
|
## `sf project list ignored`
|
|
1255
1257
|
|
|
@@ -1290,7 +1292,7 @@ EXAMPLES
|
|
|
1290
1292
|
$ sf project list ignored --source-dir package.xml
|
|
1291
1293
|
```
|
|
1292
1294
|
|
|
1293
|
-
_See code: [src/commands/project/list/ignored.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.
|
|
1295
|
+
_See code: [src/commands/project/list/ignored.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.4/src/commands/project/list/ignored.ts)_
|
|
1294
1296
|
|
|
1295
1297
|
## `sf project reset tracking`
|
|
1296
1298
|
|
|
@@ -1301,10 +1303,10 @@ USAGE
|
|
|
1301
1303
|
$ sf project reset tracking -o <value> [--json] [--api-version <value>] [-r <value>] [-p]
|
|
1302
1304
|
|
|
1303
1305
|
FLAGS
|
|
1304
|
-
-o, --target-org=<value>
|
|
1305
|
-
-p, --no-prompt
|
|
1306
|
-
-r, --revision=<value>
|
|
1307
|
-
|
|
1306
|
+
-o, --target-org=<value> (required) Username or alias of the target org.
|
|
1307
|
+
-p, --no-prompt Don't prompt for source tracking override confirmation.
|
|
1308
|
+
-r, --revision=<value> SourceMember revision counter number to reset to.
|
|
1309
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
1308
1310
|
|
|
1309
1311
|
GLOBAL FLAGS
|
|
1310
1312
|
--json Format output as json.
|
|
@@ -1337,7 +1339,7 @@ EXAMPLES
|
|
|
1337
1339
|
$ sf project reset tracking --revision 30
|
|
1338
1340
|
```
|
|
1339
1341
|
|
|
1340
|
-
_See code: [src/commands/project/reset/tracking.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.
|
|
1342
|
+
_See code: [src/commands/project/reset/tracking.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.4/src/commands/project/reset/tracking.ts)_
|
|
1341
1343
|
|
|
1342
1344
|
## `sf project retrieve preview`
|
|
1343
1345
|
|
|
@@ -1392,7 +1394,7 @@ FLAG DESCRIPTIONS
|
|
|
1392
1394
|
Overrides your default org.
|
|
1393
1395
|
```
|
|
1394
1396
|
|
|
1395
|
-
_See code: [src/commands/project/retrieve/preview.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.
|
|
1397
|
+
_See code: [src/commands/project/retrieve/preview.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.4/src/commands/project/retrieve/preview.ts)_
|
|
1396
1398
|
|
|
1397
1399
|
## `sf project retrieve start`
|
|
1398
1400
|
|
|
@@ -1420,8 +1422,8 @@ FLAGS
|
|
|
1420
1422
|
METADATA API FORMAT FLAGS
|
|
1421
1423
|
-t, --target-metadata-dir=<value> Directory that will contain the retrieved metadata format files or ZIP.
|
|
1422
1424
|
-z, --unzip Extract all files from the retrieved zip file.
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
+
--single-package Indicates that the zip file points to a directory structure for a single package.
|
|
1426
|
+
--zip-file-name=<value> File name to use for the retrieved zip file.
|
|
1425
1427
|
|
|
1426
1428
|
GLOBAL FLAGS
|
|
1427
1429
|
--json Format output as json.
|
|
@@ -1538,6 +1540,6 @@ FLAG DESCRIPTIONS
|
|
|
1538
1540
|
If you specify this parameter, don’t specify --metadata or --source-dir.
|
|
1539
1541
|
```
|
|
1540
1542
|
|
|
1541
|
-
_See code: [src/commands/project/retrieve/start.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.
|
|
1543
|
+
_See code: [src/commands/project/retrieve/start.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/1.20.4/src/commands/project/retrieve/start.ts)_
|
|
1542
1544
|
|
|
1543
1545
|
<!-- commandsstop -->
|
package/lib/commands/deploy.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export default class Deploy extends SfCommand<void> {
|
|
|
13
13
|
message: string;
|
|
14
14
|
};
|
|
15
15
|
static readonly flags: {
|
|
16
|
-
interactive: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
16
|
+
interactive: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
17
17
|
};
|
|
18
18
|
run(): Promise<void>;
|
|
19
19
|
/**
|
package/lib/commands/deploy.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/*
|
|
3
2
|
* Copyright (c) 2021, salesforce.com, inc.
|
|
4
3
|
* All rights reserved.
|
|
@@ -6,29 +5,44 @@
|
|
|
6
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
6
|
*/
|
|
8
7
|
/* eslint-disable class-methods-use-this */
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const messages =
|
|
20
|
-
|
|
21
|
-
class Deploy extends
|
|
8
|
+
import { EOL } from 'node:os';
|
|
9
|
+
import { writeFile, readFile } from 'node:fs/promises';
|
|
10
|
+
import { existsSync } from 'node:fs';
|
|
11
|
+
import { exec } from 'node:child_process';
|
|
12
|
+
import { dirname } from 'node:path';
|
|
13
|
+
import { fileURLToPath } from 'node:url';
|
|
14
|
+
import { Messages } from '@salesforce/core';
|
|
15
|
+
import { Env, parseJsonMap } from '@salesforce/kit';
|
|
16
|
+
import { generateTableChoices, Prompter, SfCommand, SfHook, Flags, } from '@salesforce/sf-plugins-core';
|
|
17
|
+
Messages.importMessagesDirectory(dirname(fileURLToPath(import.meta.url)));
|
|
18
|
+
const messages = Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'deploy');
|
|
19
|
+
export const DEPLOY_OPTIONS_FILE = 'deploy-options.json';
|
|
20
|
+
export default class Deploy extends SfCommand {
|
|
21
|
+
static summary = messages.getMessage('summary');
|
|
22
|
+
static description = messages.getMessage('description');
|
|
23
|
+
static examples = messages.getMessages('examples');
|
|
24
|
+
static enableJsonFlag = false;
|
|
25
|
+
static state = 'deprecated';
|
|
26
|
+
static hidden = true;
|
|
27
|
+
static deprecationOptions = {
|
|
28
|
+
version: '59.0',
|
|
29
|
+
message: messages.getMessage('deprecation'),
|
|
30
|
+
};
|
|
31
|
+
static flags = {
|
|
32
|
+
interactive: Flags.boolean({
|
|
33
|
+
summary: messages.getMessage('flags.interactive.summary'),
|
|
34
|
+
}),
|
|
35
|
+
};
|
|
22
36
|
async run() {
|
|
23
|
-
process.setMaxListeners(new
|
|
37
|
+
process.setMaxListeners(new Env().getNumber('SF_MAX_EVENT_LISTENERS') ?? 1000);
|
|
24
38
|
const { flags } = await this.parse(Deploy);
|
|
25
39
|
flags.interactive = await this.isInteractive(flags.interactive);
|
|
26
40
|
const options = await this.readOptions();
|
|
27
41
|
this.log(messages.getMessage('AnalyzingProject'));
|
|
28
42
|
if (!flags.interactive) {
|
|
29
|
-
this.log(messages.getMessage('UsingOptionsFromFile', [
|
|
43
|
+
this.log(messages.getMessage('UsingOptionsFromFile', [DEPLOY_OPTIONS_FILE]));
|
|
30
44
|
}
|
|
31
|
-
const hookResults = await
|
|
45
|
+
const hookResults = await SfHook.run(this.config, 'sf:deploy', options);
|
|
32
46
|
this.checkForHookFailures(hookResults);
|
|
33
47
|
let deployers = hookResults.successes.flatMap((s) => s.result);
|
|
34
48
|
if (deployers.length === 0) {
|
|
@@ -52,12 +66,12 @@ class Deploy extends sf_plugins_core_1.SfCommand {
|
|
|
52
66
|
deployOptions[deployer.getName()] = await deployer.setup(flags, opts);
|
|
53
67
|
}
|
|
54
68
|
if (flags.interactive && (await this.askToSave())) {
|
|
55
|
-
await
|
|
69
|
+
await writeJson(DEPLOY_OPTIONS_FILE, deployOptions);
|
|
56
70
|
this.log();
|
|
57
|
-
this.log(messages.getMessage('DeployOptionsSavedToFile', [
|
|
71
|
+
this.log(messages.getMessage('DeployOptionsSavedToFile', [DEPLOY_OPTIONS_FILE]));
|
|
58
72
|
if (await this.shouldCommit()) {
|
|
59
73
|
await this.commit();
|
|
60
|
-
this.log(messages.getMessage('DeployOptionsIncludedInGitIgnore', [
|
|
74
|
+
this.log(messages.getMessage('DeployOptionsIncludedInGitIgnore', [DEPLOY_OPTIONS_FILE]));
|
|
61
75
|
}
|
|
62
76
|
}
|
|
63
77
|
const deployResults = [];
|
|
@@ -86,33 +100,33 @@ class Deploy extends sf_plugins_core_1.SfCommand {
|
|
|
86
100
|
async isInteractive(interactive) {
|
|
87
101
|
if (interactive)
|
|
88
102
|
return true;
|
|
89
|
-
const deployFileExists =
|
|
103
|
+
const deployFileExists = existsSync(DEPLOY_OPTIONS_FILE);
|
|
90
104
|
return deployFileExists ? false : true;
|
|
91
105
|
}
|
|
92
106
|
async readOptions() {
|
|
93
|
-
if (
|
|
94
|
-
return
|
|
107
|
+
if (existsSync(DEPLOY_OPTIONS_FILE)) {
|
|
108
|
+
return parseJsonMap(await readFile(DEPLOY_OPTIONS_FILE, 'utf8'));
|
|
95
109
|
}
|
|
96
110
|
else {
|
|
97
111
|
return {};
|
|
98
112
|
}
|
|
99
113
|
}
|
|
100
114
|
async commit() {
|
|
101
|
-
const gitignore = await
|
|
102
|
-
if (!gitignore.includes(
|
|
103
|
-
const addition = `${
|
|
104
|
-
await
|
|
115
|
+
const gitignore = await readFile('.gitignore', 'utf-8');
|
|
116
|
+
if (!gitignore.includes(DEPLOY_OPTIONS_FILE)) {
|
|
117
|
+
const addition = `${EOL}${EOL}# Deploy Options${EOL}${DEPLOY_OPTIONS_FILE}${EOL}`;
|
|
118
|
+
await writeFile('.gitignore', `${gitignore}${addition}`);
|
|
105
119
|
}
|
|
106
|
-
|
|
107
|
-
|
|
120
|
+
exec('git add .gitignore');
|
|
121
|
+
exec(`git commit -am "Add ${DEPLOY_OPTIONS_FILE} to .gitignore"`);
|
|
108
122
|
}
|
|
109
123
|
// this used to be async when it was using fs-extra. Presered public api
|
|
110
124
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
111
125
|
async shouldCommit() {
|
|
112
|
-
return
|
|
126
|
+
return existsSync('.git') && existsSync('functions');
|
|
113
127
|
}
|
|
114
128
|
async askToSave() {
|
|
115
|
-
const prompter = new
|
|
129
|
+
const prompter = new Prompter();
|
|
116
130
|
const { save } = await prompter.prompt({
|
|
117
131
|
name: 'save',
|
|
118
132
|
message: 'Would you like to save these deploy options for future runs?',
|
|
@@ -129,13 +143,13 @@ class Deploy extends sf_plugins_core_1.SfCommand {
|
|
|
129
143
|
path: deployable.getPath(),
|
|
130
144
|
value: deployable,
|
|
131
145
|
}));
|
|
132
|
-
const prompter = new
|
|
146
|
+
const prompter = new Prompter();
|
|
133
147
|
const responses = await prompter.prompt([
|
|
134
148
|
{
|
|
135
149
|
name: 'deployables',
|
|
136
150
|
message: 'Select apps and packages to deploy:',
|
|
137
151
|
type: 'checkbox',
|
|
138
|
-
choices:
|
|
152
|
+
choices: generateTableChoices(columns, options),
|
|
139
153
|
},
|
|
140
154
|
]);
|
|
141
155
|
const chosenDeployers = new Map();
|
|
@@ -175,22 +189,5 @@ class Deploy extends sf_plugins_core_1.SfCommand {
|
|
|
175
189
|
}
|
|
176
190
|
}
|
|
177
191
|
}
|
|
178
|
-
|
|
179
|
-
Deploy.description = messages.getMessage('description');
|
|
180
|
-
Deploy.examples = messages.getMessages('examples');
|
|
181
|
-
Deploy.enableJsonFlag = false;
|
|
182
|
-
Deploy.state = 'deprecated';
|
|
183
|
-
Deploy.hidden = true;
|
|
184
|
-
Deploy.deprecationOptions = {
|
|
185
|
-
version: '59.0',
|
|
186
|
-
message: messages.getMessage('deprecation'),
|
|
187
|
-
};
|
|
188
|
-
Deploy.flags = {
|
|
189
|
-
interactive: sf_plugins_core_1.Flags.boolean({
|
|
190
|
-
summary: messages.getMessage('flags.interactive.summary'),
|
|
191
|
-
}),
|
|
192
|
-
};
|
|
193
|
-
exports.default = Deploy;
|
|
194
|
-
const writeJson = async (filename, data) => (0, promises_1.writeFile)(filename, JSON.stringify(data, null, 2));
|
|
195
|
-
exports.writeJson = writeJson;
|
|
192
|
+
export const writeJson = async (filename, data) => writeFile(filename, JSON.stringify(data, null, 2));
|
|
196
193
|
//# sourceMappingURL=deploy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,2CAA2C;AAE3C,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAGL,oBAAoB,EACpB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,KAAK,GACN,MAAM,6BAA6B,CAAC;AAGrC,QAAQ,CAAC,uBAAuB,CAAC,OAAO,CAAC,aAAa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E,OAAO,CAAC,KAAK,CAAC,IAAI;gBAC7B,YAAY,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO;aACpC,CAAC,CAAC,CAAC;YACJ,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAAC,CAAC;YACrE,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;YAC1D,MAAM,GAAG,GAAG,QAAQ,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;YACzD,GAAG,CAAC,IAAI,GAAG,WAAW,CAAC,QAAQ,CAAC;YAChC,MAAM,GAAG,CAAC;SACX;IACH,CAAC;;AAGH,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,EAAE,QAAgB,EAAE,IAAsC,EAAiB,EAAE,CACzG,SAAS,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
2
|
import { Interfaces } from '@oclif/core';
|
|
3
|
-
import { ConvertMdapiJson } from '../../../utils/types';
|
|
3
|
+
import { ConvertMdapiJson } from '../../../utils/types.js';
|
|
4
4
|
export interface EnsureFsFlagOptions {
|
|
5
5
|
flagName: string;
|
|
6
6
|
path: string;
|
|
@@ -15,13 +15,13 @@ export declare class Mdapi extends SfCommand<ConvertMdapiJson> {
|
|
|
15
15
|
static readonly examples: string[];
|
|
16
16
|
static readonly requiresProject = true;
|
|
17
17
|
static readonly flags: {
|
|
18
|
-
'api-version': Interfaces.OptionFlag<string | undefined,
|
|
19
|
-
loglevel: Interfaces.OptionFlag<string | undefined,
|
|
20
|
-
'root-dir': Interfaces.OptionFlag<string,
|
|
21
|
-
'output-dir': Interfaces.OptionFlag<string | undefined,
|
|
22
|
-
manifest: Interfaces.OptionFlag<string | undefined,
|
|
23
|
-
'metadata-dir': Interfaces.OptionFlag<string[]
|
|
24
|
-
metadata: Interfaces.OptionFlag<string[]
|
|
18
|
+
'api-version': Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
19
|
+
loglevel: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
20
|
+
'root-dir': Interfaces.OptionFlag<string, Interfaces.CustomOptions>;
|
|
21
|
+
'output-dir': Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
22
|
+
manifest: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
23
|
+
'metadata-dir': Interfaces.OptionFlag<string[], Interfaces.CustomOptions>;
|
|
24
|
+
metadata: Interfaces.OptionFlag<string[], Interfaces.CustomOptions>;
|
|
25
25
|
};
|
|
26
26
|
private flags;
|
|
27
27
|
private componentSet?;
|