@salesforce/plugin-deploy-retrieve 1.5.4 → 1.6.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/CHANGELOG.md +10 -0
- package/README.md +175 -27
- package/lib/commands/deploy/metadata/preview.d.ts +17 -0
- package/lib/commands/deploy/metadata/preview.js +86 -0
- package/lib/commands/deploy/metadata/preview.js.map +1 -0
- package/lib/commands/deploy/metadata.js.map +1 -1
- package/lib/commands/deploy.d.ts +1 -1
- package/lib/commands/deploy.js +1 -1
- package/lib/commands/deploy.js.map +1 -1
- package/lib/commands/retrieve/metadata/preview.d.ts +14 -0
- package/lib/commands/retrieve/metadata/preview.js +63 -0
- package/lib/commands/retrieve/metadata/preview.js.map +1 -0
- package/lib/commands/retrieve/metadata.d.ts +4 -0
- package/lib/commands/retrieve/metadata.js +74 -21
- package/lib/commands/retrieve/metadata.js.map +1 -1
- package/lib/utils/deploy.js +12 -9
- package/lib/utils/deploy.js.map +1 -1
- package/lib/utils/flags.d.ts +14 -4
- package/lib/utils/flags.js +66 -20
- package/lib/utils/flags.js.map +1 -1
- package/lib/utils/output.d.ts +15 -2
- package/lib/utils/output.js +44 -15
- package/lib/utils/output.js.map +1 -1
- package/lib/utils/previewOutput.d.ts +30 -0
- package/lib/utils/previewOutput.js +199 -0
- package/lib/utils/previewOutput.js.map +1 -0
- package/lib/utils/types.d.ts +5 -1
- package/messages/deploy.metadata.md +12 -2
- package/messages/deploy.metadata.preview.md +93 -0
- package/messages/deploy.metadata.validate.md +1 -1
- package/messages/previewMessages.md +39 -0
- package/messages/retrieve.metadata.md +40 -2
- package/messages/retrieve.metadata.preview.md +59 -0
- package/messages/validation.md +11 -0
- package/oclif.manifest.json +1 -1
- package/package.json +13 -12
- package/schemas/deploy-metadata-preview.json +72 -0
- package/schemas/retrieve-metadata-preview.json +72 -0
- package/schemas/retrieve-metadata.json +121 -52
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
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.6.1](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v1.6.0...v1.6.1) (2022-09-08)
|
|
6
|
+
|
|
7
|
+
## [1.6.0](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v1.5.5...v1.6.0) (2022-09-06)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- support retrieves in metadata format ([#313](https://github.com/salesforcecli/plugin-deploy-retrieve/issues/313)) ([380c978](https://github.com/salesforcecli/plugin-deploy-retrieve/commit/380c978f1a19fe3eac6468d7c5dab6bca7ffbf6d))
|
|
12
|
+
|
|
13
|
+
### [1.5.5](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v1.5.4...v1.5.5) (2022-08-23)
|
|
14
|
+
|
|
5
15
|
### [1.5.4](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v1.5.3...v1.5.4) (2022-08-15)
|
|
6
16
|
|
|
7
17
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -67,11 +67,13 @@ sf plugins
|
|
|
67
67
|
- [`sf deploy`](#sf-deploy)
|
|
68
68
|
- [`sf deploy metadata`](#sf-deploy-metadata)
|
|
69
69
|
- [`sf deploy metadata cancel`](#sf-deploy-metadata-cancel)
|
|
70
|
+
- [`sf deploy metadata preview`](#sf-deploy-metadata-preview)
|
|
70
71
|
- [`sf deploy metadata quick`](#sf-deploy-metadata-quick)
|
|
71
72
|
- [`sf deploy metadata report`](#sf-deploy-metadata-report)
|
|
72
73
|
- [`sf deploy metadata resume`](#sf-deploy-metadata-resume)
|
|
73
74
|
- [`sf deploy metadata validate`](#sf-deploy-metadata-validate)
|
|
74
75
|
- [`sf retrieve metadata`](#sf-retrieve-metadata)
|
|
76
|
+
- [`sf retrieve metadata preview`](#sf-retrieve-metadata-preview)
|
|
75
77
|
|
|
76
78
|
## `sf deploy`
|
|
77
79
|
|
|
@@ -115,11 +117,11 @@ EXAMPLES
|
|
|
115
117
|
$ sf deploy --interactive
|
|
116
118
|
```
|
|
117
119
|
|
|
118
|
-
_See code: [src/commands/deploy.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/v1.
|
|
120
|
+
_See code: [src/commands/deploy.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/v1.6.0/src/commands/deploy.ts)_
|
|
119
121
|
|
|
120
122
|
## `sf deploy metadata`
|
|
121
123
|
|
|
122
|
-
Deploy metadata
|
|
124
|
+
Deploy metadata to an org from your local project.
|
|
123
125
|
|
|
124
126
|
```
|
|
125
127
|
USAGE
|
|
@@ -138,8 +140,7 @@ FLAGS
|
|
|
138
140
|
-o, --target-org=<value> Login username or alias for the target org.
|
|
139
141
|
-r, --ignore-errors Ignore any errors and don’t roll back deployment.
|
|
140
142
|
-t, --tests=<value>... Apex tests to run when --test-level is RunSpecifiedTests.
|
|
141
|
-
-w, --wait=<minutes>
|
|
142
|
-
results.
|
|
143
|
+
-w, --wait=<minutes> Number of minutes to wait for command to complete and display results.
|
|
143
144
|
-x, --manifest=<value> Full file path for manifest (package.xml) of components to deploy.
|
|
144
145
|
--async Run the command asynchronously.
|
|
145
146
|
--concise Show concise output of the deploy result.
|
|
@@ -153,10 +154,14 @@ GLOBAL FLAGS
|
|
|
153
154
|
--json Format output as json.
|
|
154
155
|
|
|
155
156
|
DESCRIPTION
|
|
156
|
-
Deploy metadata
|
|
157
|
+
Deploy metadata to an org from your local project.
|
|
157
158
|
|
|
158
159
|
You must run this command from within a project.
|
|
159
160
|
|
|
161
|
+
Metadata components are deployed in source format by default. Deploy them in metadata format by specifying the
|
|
162
|
+
--metadata-dir flag, which specifies the root directory or ZIP file that contains the metadata formatted files you
|
|
163
|
+
want to deploy.
|
|
164
|
+
|
|
160
165
|
If your org allows source tracking, then this command tracks the changes in your source. Some orgs, such as production
|
|
161
166
|
org, never allow source tracking. You can also use the "--no-track-source" flag when you create a scratch or sandbox
|
|
162
167
|
org to disable source tracking.
|
|
@@ -207,8 +212,8 @@ EXAMPLES
|
|
|
207
212
|
FLAG DESCRIPTIONS
|
|
208
213
|
-a, --api-version=<value> Target API version for the deploy.
|
|
209
214
|
|
|
210
|
-
Use this flag to override the default API version
|
|
211
|
-
version
|
|
215
|
+
Use this flag to override the default API version with the API version of your package.xml file. The default API
|
|
216
|
+
version is the latest version supported by the CLI.
|
|
212
217
|
|
|
213
218
|
-c, --ignore-conflicts Ignore conflicts and deploy local files, even if they overwrite changes in the org.
|
|
214
219
|
|
|
@@ -346,6 +351,83 @@ FLAG DESCRIPTIONS
|
|
|
346
351
|
deploy metadata report".
|
|
347
352
|
```
|
|
348
353
|
|
|
354
|
+
## `sf deploy metadata preview`
|
|
355
|
+
|
|
356
|
+
Preview a deployment to see what will deploy to the org, the potential conflicts, and the ignored files.
|
|
357
|
+
|
|
358
|
+
```
|
|
359
|
+
USAGE
|
|
360
|
+
$ sf deploy metadata preview [--json] [-c] [-x <value> | -d <value> | -m <value>] [-o <value>]
|
|
361
|
+
|
|
362
|
+
FLAGS
|
|
363
|
+
-c, --ignore-conflicts Ignore conflicts and deploy local files, even if they overwrite changes in the org.
|
|
364
|
+
-d, --source-dir=<value>... Path to the local source files to preview.
|
|
365
|
+
-m, --metadata=<value>... Metadata component names to preview.
|
|
366
|
+
-o, --target-org=<value> Login username or alias for the target org.
|
|
367
|
+
-x, --manifest=<value> Full file path for manifest (package.xml) of components to preview.
|
|
368
|
+
|
|
369
|
+
GLOBAL FLAGS
|
|
370
|
+
--json Format output as json.
|
|
371
|
+
|
|
372
|
+
DESCRIPTION
|
|
373
|
+
Preview a deployment to see what will deploy to the org, the potential conflicts, and the ignored files.
|
|
374
|
+
|
|
375
|
+
You must run this command from within a project.
|
|
376
|
+
|
|
377
|
+
The command outputs a table that describes what will happen if you run the "sf deploy metadata" command. The table
|
|
378
|
+
lists the metadata components that will be deployed and deleted. The table also lists the current conflicts between
|
|
379
|
+
files in your local project and components in the org. Finally, the table lists the files that won't be deployed
|
|
380
|
+
because they're included in your .forceignore file.
|
|
381
|
+
|
|
382
|
+
If your org allows source tracking, then this command considers conflicts between the org and local. Some orgs, such
|
|
383
|
+
as production orgs, never allow source tracking. Use the "--no-track-source" flag when you create a scratch or sandbox
|
|
384
|
+
org to disable source tracking.
|
|
385
|
+
|
|
386
|
+
To preview the deployment of multiple metadata components, either set multiple --metadata <name> flags or a single
|
|
387
|
+
--metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double
|
|
388
|
+
quotes. The same syntax applies to --manifest and --source-dir.
|
|
389
|
+
|
|
390
|
+
EXAMPLES
|
|
391
|
+
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.
|
|
392
|
+
|
|
393
|
+
Preview the deployment of source files in a directory, such as force-app:
|
|
394
|
+
|
|
395
|
+
$ sf deploy metadata preview --source-dir force-app
|
|
396
|
+
|
|
397
|
+
Preview the deployment of all Apex classes:
|
|
398
|
+
|
|
399
|
+
$ sf deploy metadata preview --metadata ApexClass
|
|
400
|
+
|
|
401
|
+
Preview deployment of a specific Apex class:
|
|
402
|
+
|
|
403
|
+
$ sf deploy metadata preview --metadata ApexClass:MyApexClass
|
|
404
|
+
|
|
405
|
+
Preview deployment of all components listed in a manifest:
|
|
406
|
+
|
|
407
|
+
$ sf deploy metadata preview --manifest path/to/package.xml
|
|
408
|
+
|
|
409
|
+
FLAG DESCRIPTIONS
|
|
410
|
+
-c, --ignore-conflicts Ignore conflicts and deploy local files, even if they overwrite changes in the org.
|
|
411
|
+
|
|
412
|
+
This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as
|
|
413
|
+
production orgs.
|
|
414
|
+
|
|
415
|
+
-d, --source-dir=<value>... Path to the local source files to preview.
|
|
416
|
+
|
|
417
|
+
The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder
|
|
418
|
+
(in which case the operation is applied to all metadata types in the directory and its subdirectories).
|
|
419
|
+
|
|
420
|
+
If you specify this flag, don’t specify --metadata or --manifest.
|
|
421
|
+
|
|
422
|
+
-o, --target-org=<value> Login username or alias for the target org.
|
|
423
|
+
|
|
424
|
+
Overrides your default org.
|
|
425
|
+
|
|
426
|
+
-x, --manifest=<value> Full file path for manifest (package.xml) of components to preview.
|
|
427
|
+
|
|
428
|
+
All child components are included. If you specify this flag, don’t specify --metadata or --source-dir.
|
|
429
|
+
```
|
|
430
|
+
|
|
349
431
|
## `sf deploy metadata quick`
|
|
350
432
|
|
|
351
433
|
Quickly deploy a validated deployment to an org.
|
|
@@ -358,8 +440,7 @@ FLAGS
|
|
|
358
440
|
-i, --job-id=<value> Job ID of the deployment you want to quick deploy.
|
|
359
441
|
-o, --target-org=<value> Login username or alias for the target org.
|
|
360
442
|
-r, --use-most-recent Use the job ID of the most recently validated deployment.
|
|
361
|
-
-w, --wait=<minutes>
|
|
362
|
-
results.
|
|
443
|
+
-w, --wait=<minutes> Number of minutes to wait for the command to complete and display results.
|
|
363
444
|
--async Run the command asynchronously.
|
|
364
445
|
--concise Show concise output of the deploy result.
|
|
365
446
|
--verbose Show verbose output of the deploy result.
|
|
@@ -548,8 +629,7 @@ FLAGS
|
|
|
548
629
|
-m, --metadata=<value>... Metadata component names to validate for deployment.
|
|
549
630
|
-o, --target-org=<value> Login username or alias for the target org.
|
|
550
631
|
-t, --tests=<value>... Apex tests to run when --test-level is RunSpecifiedTests.
|
|
551
|
-
-w, --wait=<minutes>
|
|
552
|
-
results.
|
|
632
|
+
-w, --wait=<minutes> Number of minutes to wait for the command to complete and display results.
|
|
553
633
|
-x, --manifest=<value> Full file path for manifest (package.xml) of components to validate for deployment.
|
|
554
634
|
--async Run the command asynchronously.
|
|
555
635
|
--concise Show concise output of the validation result.
|
|
@@ -600,8 +680,8 @@ EXAMPLES
|
|
|
600
680
|
FLAG DESCRIPTIONS
|
|
601
681
|
-a, --api-version=<value> Target API version for the validation.
|
|
602
682
|
|
|
603
|
-
Use this flag to override the default API version
|
|
604
|
-
version
|
|
683
|
+
Use this flag to override the default API version with the API version of your package.xml file. The default API
|
|
684
|
+
version is the latest version supported by the CLI.
|
|
605
685
|
|
|
606
686
|
-d, --source-dir=<value>... Path to the local source files to validate for deployment.
|
|
607
687
|
|
|
@@ -652,33 +732,40 @@ FLAG DESCRIPTIONS
|
|
|
652
732
|
|
|
653
733
|
## `sf retrieve metadata`
|
|
654
734
|
|
|
655
|
-
Retrieve metadata
|
|
735
|
+
Retrieve metadata from an org to your local project.
|
|
656
736
|
|
|
657
737
|
```
|
|
658
738
|
USAGE
|
|
659
|
-
$ sf retrieve metadata [--json] [-a <value>] [-c] [-x <value> | -m <value> | -d <value>] [-n <value>]
|
|
660
|
-
[-w <value>]
|
|
739
|
+
$ sf retrieve metadata [--json] [-a <value>] [-c] [-x <value> | -m <value> | -d <value>] [-n <value>]
|
|
740
|
+
[--single-package -t <value>] [-o <value>] [-w <value>] [-z ] [--zip-file-name <value> ]
|
|
661
741
|
|
|
662
742
|
FLAGS
|
|
663
|
-
-a, --api-version=<value>
|
|
664
|
-
-c, --ignore-conflicts
|
|
665
|
-
|
|
666
|
-
-d, --source-dir=<value>...
|
|
667
|
-
-m, --metadata=<value>...
|
|
668
|
-
-n, --package-name=<value>...
|
|
669
|
-
-o, --target-org=<value>
|
|
670
|
-
-
|
|
671
|
-
|
|
672
|
-
|
|
743
|
+
-a, --api-version=<value> Target API version for the retrieve.
|
|
744
|
+
-c, --ignore-conflicts Ignore conflicts and retrieve and save files to your local filesystem, even if they
|
|
745
|
+
overwrite your local changes.
|
|
746
|
+
-d, --source-dir=<value>... File paths for source to retrieve from the org.
|
|
747
|
+
-m, --metadata=<value>... Metadata component names to retrieve.
|
|
748
|
+
-n, --package-name=<value>... Package names to retrieve.
|
|
749
|
+
-o, --target-org=<value> Login username or alias for the target org.
|
|
750
|
+
-t, --target-metadata-dir=<value> Directory that will contain the retrieved metadata format files or ZIP.
|
|
751
|
+
-w, --wait=<value> Number of minutes to wait for the command to complete and display results to the
|
|
752
|
+
terminal window.
|
|
753
|
+
-x, --manifest=<value> File path for the manifest (package.xml) that specifies the components to retrieve.
|
|
754
|
+
-z, --unzip Extract all files from the retrieved zip file.
|
|
755
|
+
--single-package Indicates that the zip file points to a directory structure for a single package.
|
|
756
|
+
--zip-file-name=<value> File name to use for the retrieved zip file.
|
|
673
757
|
|
|
674
758
|
GLOBAL FLAGS
|
|
675
759
|
--json Format output as json.
|
|
676
760
|
|
|
677
761
|
DESCRIPTION
|
|
678
|
-
Retrieve metadata
|
|
762
|
+
Retrieve metadata from an org to your local project.
|
|
679
763
|
|
|
680
764
|
You must run this command from within a project.
|
|
681
765
|
|
|
766
|
+
Metadata components are retrieved in source format by default. Retrieve them in metadata format by specifying the
|
|
767
|
+
--target-metadata-dir flag, which retrieves the components into a ZIP file in the specified directory.
|
|
768
|
+
|
|
682
769
|
If your org allows source tracking, then this command tracks the changes in your source. Some orgs, such as production
|
|
683
770
|
org, never allow source tracking. You can also use the "--no-track-source" flag when you create a scratch or sandbox
|
|
684
771
|
org to disable source tracking.
|
|
@@ -727,6 +814,15 @@ EXAMPLES
|
|
|
727
814
|
$ sf retrieve metadata --package-name Package1 "PackageName With Spaces" Package3
|
|
728
815
|
$ sf retrieve metadata --package-name Package1 --package-name "PackageName With Spaces" --package-name Package3
|
|
729
816
|
|
|
817
|
+
Retrieve the metadata components listed in the force-app directory, but retrieve them in metadata format into a ZIP
|
|
818
|
+
file in the "output" directory:
|
|
819
|
+
|
|
820
|
+
$ sf retrieve metadata --source-dir force-app --target-metadata-dir output
|
|
821
|
+
|
|
822
|
+
Retrieve in metadata format and automatically extract the contents into the "output" directory:
|
|
823
|
+
|
|
824
|
+
$ sf retrieve metadata --source-dir force-app --target-metadata-dir output --unzip
|
|
825
|
+
|
|
730
826
|
FLAG DESCRIPTIONS
|
|
731
827
|
-a, --api-version=<value> Target API version for the retrieve.
|
|
732
828
|
|
|
@@ -758,4 +854,56 @@ FLAG DESCRIPTIONS
|
|
|
758
854
|
If you specify this parameter, don’t specify --metadata or --source-dir.
|
|
759
855
|
```
|
|
760
856
|
|
|
857
|
+
## `sf retrieve metadata preview`
|
|
858
|
+
|
|
859
|
+
Preview a retrieval to see what will be retrieved from the org, the potential conflicts, and the ignored files.
|
|
860
|
+
|
|
861
|
+
```
|
|
862
|
+
USAGE
|
|
863
|
+
$ sf retrieve metadata preview [--json] [-c] [-o <value>]
|
|
864
|
+
|
|
865
|
+
FLAGS
|
|
866
|
+
-c, --ignore-conflicts Ignore conflicts and preview the retrieve of remote components, even if they will overwrite
|
|
867
|
+
local changes.
|
|
868
|
+
-o, --target-org=<value> Login username or alias for the target org.
|
|
869
|
+
|
|
870
|
+
GLOBAL FLAGS
|
|
871
|
+
--json Format output as json.
|
|
872
|
+
|
|
873
|
+
DESCRIPTION
|
|
874
|
+
Preview a retrieval to see what will be retrieved from the org, the potential conflicts, and the ignored files.
|
|
875
|
+
|
|
876
|
+
You must run this command from within a project.
|
|
877
|
+
|
|
878
|
+
The command outputs a table that describes what will happen if you run the "sf retrieve metadata" command. The table
|
|
879
|
+
lists the metadata components that will be retrieved and deleted. The table also lists the current conflicts between
|
|
880
|
+
files in your local project and components in the org. Finally, the table lists the files that won't be retrieved
|
|
881
|
+
because they're included in your .forceignore file.
|
|
882
|
+
|
|
883
|
+
If your org allows source tracking, then this command considers conflicts between the org and local. Some orgs, such
|
|
884
|
+
as production orgs, never allow source tracking. Use the "--no-track-source" flag when you create a scratch or sandbox
|
|
885
|
+
org to disable source tracking.
|
|
886
|
+
|
|
887
|
+
EXAMPLES
|
|
888
|
+
Preview the retrieve of all changes from the org:
|
|
889
|
+
|
|
890
|
+
$ sf retrieve metadata preview
|
|
891
|
+
|
|
892
|
+
Preview the retrieve when ignoring any conflicts:
|
|
893
|
+
|
|
894
|
+
$ sf retrieve metadata preview --ignore-conflicts
|
|
895
|
+
|
|
896
|
+
FLAG DESCRIPTIONS
|
|
897
|
+
-c, --ignore-conflicts
|
|
898
|
+
|
|
899
|
+
Ignore conflicts and preview the retrieve of remote components, even if they will overwrite local changes.
|
|
900
|
+
|
|
901
|
+
This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as
|
|
902
|
+
production orgs.
|
|
903
|
+
|
|
904
|
+
-o, --target-org=<value> Login username or alias for the target org.
|
|
905
|
+
|
|
906
|
+
Overrides your default org.
|
|
907
|
+
```
|
|
908
|
+
|
|
761
909
|
<!-- commandsstop -->
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
+
import { PreviewResult } from '../../../utils/previewOutput';
|
|
3
|
+
export default class DeployMetadataPreview extends SfCommand<PreviewResult> {
|
|
4
|
+
static readonly description: string;
|
|
5
|
+
static readonly summary: string;
|
|
6
|
+
static readonly examples: string[];
|
|
7
|
+
static readonly requiresProject = true;
|
|
8
|
+
static readonly state = "beta";
|
|
9
|
+
static flags: {
|
|
10
|
+
'ignore-conflicts': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
manifest: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
12
|
+
metadata: import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
13
|
+
'source-dir': import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
14
|
+
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org>;
|
|
15
|
+
};
|
|
16
|
+
run(): Promise<PreviewResult>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/*
|
|
4
|
+
* Copyright (c) 2022, salesforce.com, inc.
|
|
5
|
+
* All rights reserved.
|
|
6
|
+
* Licensed under the BSD 3-Clause license.
|
|
7
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
8
|
+
*/
|
|
9
|
+
const core_1 = require("@salesforce/core");
|
|
10
|
+
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
11
|
+
const source_tracking_1 = require("@salesforce/source-tracking");
|
|
12
|
+
const source_deploy_retrieve_1 = require("@salesforce/source-deploy-retrieve");
|
|
13
|
+
const deploy_1 = require("../../../utils/deploy");
|
|
14
|
+
const previewOutput_1 = require("../../../utils/previewOutput");
|
|
15
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
16
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'deploy.metadata.preview');
|
|
17
|
+
const exclusiveFlags = ['manifest', 'source-dir', 'metadata'];
|
|
18
|
+
class DeployMetadataPreview extends sf_plugins_core_1.SfCommand {
|
|
19
|
+
async run() {
|
|
20
|
+
const { flags } = await this.parse(DeployMetadataPreview);
|
|
21
|
+
const deploySpecified = [flags.manifest, flags.metadata, flags['source-dir']].some((f) => f !== undefined);
|
|
22
|
+
// we'll need STL both to check conflicts and to get the list of local changes if no flags are provided
|
|
23
|
+
const stl = flags['ignore-conflicts'] && deploySpecified
|
|
24
|
+
? undefined
|
|
25
|
+
: await source_tracking_1.SourceTracking.create({
|
|
26
|
+
org: flags['target-org'],
|
|
27
|
+
project: this.project,
|
|
28
|
+
});
|
|
29
|
+
const forceIgnore = source_deploy_retrieve_1.ForceIgnore.findAndCreate(this.project.getDefaultPackage().path);
|
|
30
|
+
const [componentSet, filesWithConflicts] = await Promise.all([
|
|
31
|
+
(0, deploy_1.buildComponentSet)({ ...flags, 'target-org': flags['target-org'].getUsername() }, stl),
|
|
32
|
+
(0, previewOutput_1.getConflictFiles)(stl, flags['ignore-conflicts']),
|
|
33
|
+
]);
|
|
34
|
+
const output = (0, previewOutput_1.compileResults)({
|
|
35
|
+
componentSet,
|
|
36
|
+
projectPath: this.project.getPath(),
|
|
37
|
+
filesWithConflicts,
|
|
38
|
+
forceIgnore,
|
|
39
|
+
baseOperation: 'deploy',
|
|
40
|
+
});
|
|
41
|
+
if (!this.jsonEnabled()) {
|
|
42
|
+
(0, previewOutput_1.printTables)(output, 'deploy');
|
|
43
|
+
}
|
|
44
|
+
return output;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.default = DeployMetadataPreview;
|
|
48
|
+
DeployMetadataPreview.description = messages.getMessage('description');
|
|
49
|
+
DeployMetadataPreview.summary = messages.getMessage('summary');
|
|
50
|
+
DeployMetadataPreview.examples = messages.getMessages('examples');
|
|
51
|
+
DeployMetadataPreview.requiresProject = true;
|
|
52
|
+
DeployMetadataPreview.state = 'beta';
|
|
53
|
+
DeployMetadataPreview.flags = {
|
|
54
|
+
'ignore-conflicts': sf_plugins_core_1.Flags.boolean({
|
|
55
|
+
char: 'c',
|
|
56
|
+
summary: messages.getMessage('flags.ignore-conflicts.summary'),
|
|
57
|
+
description: messages.getMessage('flags.ignore-conflicts.description'),
|
|
58
|
+
default: false,
|
|
59
|
+
}),
|
|
60
|
+
manifest: sf_plugins_core_1.Flags.file({
|
|
61
|
+
char: 'x',
|
|
62
|
+
description: messages.getMessage('flags.manifest.description'),
|
|
63
|
+
summary: messages.getMessage('flags.manifest.summary'),
|
|
64
|
+
exclusive: exclusiveFlags.filter((f) => f !== 'manifest'),
|
|
65
|
+
exists: true,
|
|
66
|
+
}),
|
|
67
|
+
metadata: sf_plugins_core_1.Flags.string({
|
|
68
|
+
char: 'm',
|
|
69
|
+
summary: messages.getMessage('flags.metadata.summary'),
|
|
70
|
+
multiple: true,
|
|
71
|
+
exclusive: exclusiveFlags.filter((f) => f !== 'metadata'),
|
|
72
|
+
}),
|
|
73
|
+
'source-dir': sf_plugins_core_1.Flags.string({
|
|
74
|
+
char: 'd',
|
|
75
|
+
description: messages.getMessage('flags.source-dir.description'),
|
|
76
|
+
summary: messages.getMessage('flags.source-dir.summary'),
|
|
77
|
+
multiple: true,
|
|
78
|
+
exclusive: exclusiveFlags.filter((f) => f !== 'source-dir'),
|
|
79
|
+
}),
|
|
80
|
+
'target-org': sf_plugins_core_1.Flags.requiredOrg({
|
|
81
|
+
char: 'o',
|
|
82
|
+
description: messages.getMessage('flags.target-org.description'),
|
|
83
|
+
summary: messages.getMessage('flags.target-org.summary'),
|
|
84
|
+
}),
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=preview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../../../../src/commands/deploy/metadata/preview.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,2CAA4C;AAC5C,iEAA+D;AAC/D,iEAA6D;AAC7D,+EAAiE;AACjE,kDAA0D;AAC1D,gEAA4G;AAE5G,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,yBAAyB,CAAC,CAAC;AAExG,MAAM,cAAc,GAAG,CAAC,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;AAE9D,MAAqB,qBAAsB,SAAQ,2BAAwB;IAyClE,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAC1D,MAAM,eAAe,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC;QAE3G,uGAAuG;QACvG,MAAM,GAAG,GACP,KAAK,CAAC,kBAAkB,CAAC,IAAI,eAAe;YAC1C,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,MAAM,gCAAc,CAAC,MAAM,CAAC;gBAC1B,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC;gBACxB,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC,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EAAE,EAAE;QAChB,SAAS,EAAE,WAAW;QACtB,GAAG,EAAE,CAAC;QACN,SAAS,EAAE,CAAC,OAAO,CAAC;KACrB,CAAC;CACH,CAAC;AAEY,4CAA6B,GAAG,IAAA,+BAAa,EACzD,yBAAyB,EACzB,0BAAmB,CAAC,UAAU,EAC9B,0BAAmB,CAAC,eAAe,EACnC,uBAAU,CAAC,wBAAwB,CACpC,CAAC;AAEY,kCAAmB,GAAG,IAAA,+BAAa,EAC/C,uBAAuB,EACvB,0BAAmB,CAAC,aAAa,EACjC,0BAAmB,CAAC,mBAAmB,CACxC,CAAC;AAEY,yBAAU,GAAG,IAAA,+BAAa,EAAC,aAAa,EAAE,6CAAgC,CAAC,CAAC"}
|
package/lib/commands/deploy.d.ts
CHANGED
|
@@ -5,10 +5,10 @@ export default class Deploy extends SfCommand<void> {
|
|
|
5
5
|
static summary: string;
|
|
6
6
|
static description: string;
|
|
7
7
|
static examples: string[];
|
|
8
|
+
static enableJsonFlag: boolean;
|
|
8
9
|
static flags: {
|
|
9
10
|
interactive: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
11
|
};
|
|
11
|
-
static enableJsonFlag: boolean;
|
|
12
12
|
run(): Promise<void>;
|
|
13
13
|
/**
|
|
14
14
|
* If the deploy file exists, we do not want the command to be interactive. But if the file
|
package/lib/commands/deploy.js
CHANGED
|
@@ -174,10 +174,10 @@ exports.default = Deploy;
|
|
|
174
174
|
Deploy.summary = messages.getMessage('summary');
|
|
175
175
|
Deploy.description = messages.getMessage('description');
|
|
176
176
|
Deploy.examples = messages.getMessages('examples');
|
|
177
|
+
Deploy.enableJsonFlag = false;
|
|
177
178
|
Deploy.flags = {
|
|
178
179
|
interactive: core_1.Flags.boolean({
|
|
179
180
|
summary: messages.getMessage('flags.interactive.summary'),
|
|
180
181
|
}),
|
|
181
182
|
};
|
|
182
|
-
Deploy.enableJsonFlag = false;
|
|
183
183
|
//# sourceMappingURL=deploy.js.map
|
|
@@ -1 +1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AAE;gBACvD,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,YAAY,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;YAChF,CAAC,CAAC,CAAC;YACH,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAAC,CAAC;YACrE,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;YACjC,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;;AAnLH,yBAoLC;AAnLe,cAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AACzC,kBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,eAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAC5C,qBAAc,GAAG,KAAK,CAAC;AAEvB,YAAK,GAAG;IACpB,WAAW,EAAE,YAAK,CAAC,OAAO,CAAC;QACzB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,2BAA2B,CAAC;KAC1D,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
+
import { PreviewResult } from '../../../utils/previewOutput';
|
|
3
|
+
export default class RetrieveMetadataPreview extends SfCommand<PreviewResult> {
|
|
4
|
+
static readonly description: string;
|
|
5
|
+
static readonly summary: string;
|
|
6
|
+
static readonly examples: string[];
|
|
7
|
+
static readonly requiresProject = true;
|
|
8
|
+
static readonly state = "beta";
|
|
9
|
+
static flags: {
|
|
10
|
+
'ignore-conflicts': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org>;
|
|
12
|
+
};
|
|
13
|
+
run(): Promise<PreviewResult>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/*
|
|
4
|
+
* Copyright (c) 2022, salesforce.com, inc.
|
|
5
|
+
* All rights reserved.
|
|
6
|
+
* Licensed under the BSD 3-Clause license.
|
|
7
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
8
|
+
*/
|
|
9
|
+
const core_1 = require("@salesforce/core");
|
|
10
|
+
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
11
|
+
const source_tracking_1 = require("@salesforce/source-tracking");
|
|
12
|
+
const source_deploy_retrieve_1 = require("@salesforce/source-deploy-retrieve");
|
|
13
|
+
const previewOutput_1 = require("../../../utils/previewOutput");
|
|
14
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
15
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'retrieve.metadata.preview');
|
|
16
|
+
class RetrieveMetadataPreview extends sf_plugins_core_1.SfCommand {
|
|
17
|
+
async run() {
|
|
18
|
+
const { flags } = await this.parse(RetrieveMetadataPreview);
|
|
19
|
+
const stl = await source_tracking_1.SourceTracking.create({
|
|
20
|
+
org: flags['target-org'],
|
|
21
|
+
project: this.project,
|
|
22
|
+
ignoreConflicts: flags['ignore-conflicts'],
|
|
23
|
+
});
|
|
24
|
+
const forceIgnore = source_deploy_retrieve_1.ForceIgnore.findAndCreate(this.project.getDefaultPackage().path);
|
|
25
|
+
const [componentSet, filesWithConflicts, remoteDeletes] = await Promise.all([
|
|
26
|
+
stl.remoteNonDeletesAsComponentSet(),
|
|
27
|
+
(0, previewOutput_1.getConflictFiles)(stl, flags['ignore-conflicts']),
|
|
28
|
+
stl.getChanges({ origin: 'remote', state: 'delete', format: 'SourceComponent' }),
|
|
29
|
+
]);
|
|
30
|
+
const output = (0, previewOutput_1.compileResults)({
|
|
31
|
+
componentSet,
|
|
32
|
+
projectPath: this.project.getPath(),
|
|
33
|
+
filesWithConflicts,
|
|
34
|
+
forceIgnore,
|
|
35
|
+
baseOperation: 'retrieve',
|
|
36
|
+
remoteDeletes,
|
|
37
|
+
});
|
|
38
|
+
if (!this.jsonEnabled()) {
|
|
39
|
+
(0, previewOutput_1.printTables)(output, 'retrieve');
|
|
40
|
+
}
|
|
41
|
+
return output;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.default = RetrieveMetadataPreview;
|
|
45
|
+
RetrieveMetadataPreview.description = messages.getMessage('description');
|
|
46
|
+
RetrieveMetadataPreview.summary = messages.getMessage('summary');
|
|
47
|
+
RetrieveMetadataPreview.examples = messages.getMessages('examples');
|
|
48
|
+
RetrieveMetadataPreview.requiresProject = true;
|
|
49
|
+
RetrieveMetadataPreview.state = 'beta';
|
|
50
|
+
RetrieveMetadataPreview.flags = {
|
|
51
|
+
'ignore-conflicts': sf_plugins_core_1.Flags.boolean({
|
|
52
|
+
char: 'c',
|
|
53
|
+
summary: messages.getMessage('flags.ignore-conflicts.summary'),
|
|
54
|
+
description: messages.getMessage('flags.ignore-conflicts.description'),
|
|
55
|
+
default: false,
|
|
56
|
+
}),
|
|
57
|
+
'target-org': sf_plugins_core_1.Flags.requiredOrg({
|
|
58
|
+
char: 'o',
|
|
59
|
+
description: messages.getMessage('flags.target-org.description'),
|
|
60
|
+
summary: messages.getMessage('flags.target-org.summary'),
|
|
61
|
+
}),
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=preview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../../../../src/commands/retrieve/metadata/preview.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,2CAA4C;AAC5C,iEAA+D;AAC/D,iEAA6D;AAC7D,+EAAiE;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AC,CAAC;SACjC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;;AAnDH,0CAoDC;AAnDwB,mCAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,+BAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AACzC,gCAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAC5C,uCAAe,GAAG,IAAI,CAAC;AACvB,6BAAK,GAAG,MAAM,CAAC;AAExB,6BAAK,GAAG;IACpB,kBAAkB,EAAE,uBAAK,CAAC,OAAO,CAAC;QAChC,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,gCAAgC,CAAC;QAC9D,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,oCAAoC,CAAC;QACtE,OAAO,EAAE,KAAK;KACf,CAAC;IACF,YAAY,EAAE,uBAAK,CAAC,WAAW,CAAC;QAC9B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,8BAA8B,CAAC;QAChE,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC;KACzD,CAAC;CACH,CAAC"}
|
|
@@ -14,9 +14,13 @@ export default class RetrieveMetadata extends SfCommand<RetrieveResultJson> {
|
|
|
14
14
|
manifest: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
15
15
|
metadata: import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
16
16
|
'package-name': import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
17
|
+
'single-package': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
17
18
|
'source-dir': import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
19
|
+
'target-metadata-dir': import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
18
20
|
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org>;
|
|
19
21
|
wait: import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/kit").Duration>;
|
|
22
|
+
unzip: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
23
|
+
'zip-file-name': import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
20
24
|
};
|
|
21
25
|
static configurationVariablesSection: import("@salesforce/sf-plugins-core/lib/util").HelpSection;
|
|
22
26
|
static envVariablesSection: import("@salesforce/sf-plugins-core/lib/util").HelpSection;
|