@salesforce/plugin-deploy-retrieve 1.5.3 → 1.6.0

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +163 -23
  3. package/lib/commands/deploy/metadata/preview.d.ts +17 -0
  4. package/lib/commands/deploy/metadata/preview.js +86 -0
  5. package/lib/commands/deploy/metadata/preview.js.map +1 -0
  6. package/lib/commands/deploy/metadata/quick.js +2 -3
  7. package/lib/commands/deploy/metadata/quick.js.map +1 -1
  8. package/lib/commands/deploy/metadata.js.map +1 -1
  9. package/lib/commands/deploy.js +19 -11
  10. package/lib/commands/deploy.js.map +1 -1
  11. package/lib/commands/retrieve/metadata/preview.d.ts +14 -0
  12. package/lib/commands/retrieve/metadata/preview.js +63 -0
  13. package/lib/commands/retrieve/metadata/preview.js.map +1 -0
  14. package/lib/commands/retrieve/metadata.d.ts +4 -0
  15. package/lib/commands/retrieve/metadata.js +74 -21
  16. package/lib/commands/retrieve/metadata.js.map +1 -1
  17. package/lib/utils/deploy.js +17 -17
  18. package/lib/utils/deploy.js.map +1 -1
  19. package/lib/utils/flags.d.ts +14 -4
  20. package/lib/utils/flags.js +66 -20
  21. package/lib/utils/flags.js.map +1 -1
  22. package/lib/utils/metadataDeployer.d.ts +2 -2
  23. package/lib/utils/metadataDeployer.js +9 -7
  24. package/lib/utils/metadataDeployer.js.map +1 -1
  25. package/lib/utils/output.d.ts +15 -2
  26. package/lib/utils/output.js +59 -39
  27. package/lib/utils/output.js.map +1 -1
  28. package/lib/utils/previewOutput.d.ts +30 -0
  29. package/lib/utils/previewOutput.js +199 -0
  30. package/lib/utils/previewOutput.js.map +1 -0
  31. package/lib/utils/progressBar.js +1 -2
  32. package/lib/utils/progressBar.js.map +1 -1
  33. package/lib/utils/types.d.ts +5 -1
  34. package/messages/deploy.md +36 -0
  35. package/messages/deploy.metadata.md +9 -1
  36. package/messages/deploy.metadata.preview.md +93 -0
  37. package/messages/deploy.metadata.validate.md +1 -1
  38. package/messages/previewMessages.md +39 -0
  39. package/messages/retrieve.metadata.md +37 -1
  40. package/messages/retrieve.metadata.preview.md +59 -0
  41. package/messages/validation.md +11 -0
  42. package/oclif.manifest.json +1 -1
  43. package/package.json +30 -28
  44. package/schemas/deploy-metadata-preview.json +72 -0
  45. package/schemas/retrieve-metadata-preview.json +72 -0
  46. package/schemas/retrieve-metadata.json +121 -52
@@ -20,7 +20,6 @@ class DeployProgress extends sf_plugins_core_1.Progress {
20
20
  start() {
21
21
  super.start(0, { status: 'Waiting' }, DeployProgress.OPTIONS);
22
22
  this.deploy.onUpdate((data) => {
23
- var _a;
24
23
  // the numCompTot. isn't computed right away, wait to start until we know how many we have
25
24
  if (data.numberComponentsTotal) {
26
25
  this.setTotal(data.numberComponentsTotal + data.numberTestsTotal);
@@ -29,7 +28,7 @@ class DeployProgress extends sf_plugins_core_1.Progress {
29
28
  });
30
29
  }
31
30
  else {
32
- this.update(0, { status: (_a = mdTrasferMessages.getMessage(data.status)) !== null && _a !== void 0 ? _a : 'Waiting' });
31
+ this.update(0, { status: mdTrasferMessages.getMessage(data.status) ?? 'Waiting' });
33
32
  }
34
33
  // the numTestsTot. isn't computed until validated as tests by the server, update the PB once we know
35
34
  if (data.numberTestsTotal && data.numberComponentsTotal) {
@@ -1 +1 @@
1
- {"version":3,"file":"progressBar.js","sourceRoot":"","sources":["../../src/utils/progressBar.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2CAAuE;AAEvE,2CAA4C;AAC5C,iEAAuD;AAEvD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,iBAAiB,GAAG,eAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,mBAAmB,CAAC,CAAC;AAE3G,MAAa,cAAe,SAAQ,0BAAQ;IAS1C,YAA2B,MAAyB,EAAE,WAAW,GAAG,KAAK;QACvE,KAAK,CAAC,CAAC,WAAW,IAAI,cAAG,CAAC,UAAU,CAAC,0BAAmB,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC,CAAC;QAD5D,WAAM,GAAN,MAAM,CAAmB;IAEpD,CAAC;IAEM,KAAK;QACV,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;QAC9D,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,EAAE;;YAC5B,0FAA0F;YAC1F,IAAI,IAAI,CAAC,qBAAqB,EAAE;gBAC9B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC;gBAClE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,wBAAwB,GAAG,IAAI,CAAC,oBAAoB,EAAE;oBACrE,MAAM,EAAE,iBAAiB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC;iBAClD,CAAC,CAAC;aACJ;iBAAM;gBACL,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,MAAA,iBAAiB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,mCAAI,SAAS,EAAE,CAAC,CAAC;aACpF;YAED,qGAAqG;YACrG,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,qBAAqB,EAAE;gBACvD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC;aACnE;QACH,CAAC,CAAC,CAAC;QAEH,8CAA8C;QAC9C,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,iBAAiB,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;QAE5G,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QAExC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAY,EAAE,EAAE;YACnC,IAAI,CAAC,IAAI,EAAE,CAAC;YACZ,MAAM,KAAK,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC;;AAzCH,wCA0CC;AAzCgB,sBAAO,GAAG;IACvB,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,mDAAmD;IAC3D,eAAe,EAAE,QAAQ;IACzB,iBAAiB,EAAE,QAAQ;IAC3B,QAAQ,EAAE,IAAI;CACf,CAAC"}
1
+ {"version":3,"file":"progressBar.js","sourceRoot":"","sources":["../../src/utils/progressBar.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2CAAuE;AAEvE,2CAA4C;AAC5C,iEAAuD;AAEvD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,iBAAiB,GAAG,eAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,mBAAmB,CAAC,CAAC;AAE3G,MAAa,cAAe,SAAQ,0BAAQ;IAS1C,YAA2B,MAAyB,EAAE,WAAW,GAAG,KAAK;QACvE,KAAK,CAAC,CAAC,WAAW,IAAI,cAAG,CAAC,UAAU,CAAC,0BAAmB,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC,CAAC;QAD5D,WAAM,GAAN,MAAM,CAAmB;IAEpD,CAAC;IAEM,KAAK;QACV,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;QAC9D,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,EAAE;YAC5B,0FAA0F;YAC1F,IAAI,IAAI,CAAC,qBAAqB,EAAE;gBAC9B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC;gBAClE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,wBAAwB,GAAG,IAAI,CAAC,oBAAoB,EAAE;oBACrE,MAAM,EAAE,iBAAiB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC;iBAClD,CAAC,CAAC;aACJ;iBAAM;gBACL,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,iBAAiB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC;aACpF;YAED,qGAAqG;YACrG,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,qBAAqB,EAAE;gBACvD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC;aACnE;QACH,CAAC,CAAC,CAAC;QAEH,8CAA8C;QAC9C,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,iBAAiB,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;QAE5G,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QAExC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAY,EAAE,EAAE;YACnC,IAAI,CAAC,IAAI,EAAE,CAAC;YACZ,MAAM,KAAK,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC;;AAzCH,wCA0CC;AAzCgB,sBAAO,GAAG;IACvB,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,mDAAmD;IAC3D,eAAe,EAAE,QAAQ;IACzB,iBAAiB,EAAE,QAAQ;IAC3B,QAAQ,EAAE,IAAI;CACf,CAAC"}
@@ -21,6 +21,10 @@ export declare type AsyncDeployResultJson = Omit<Partial<MetadataApiDeployStatus
21
21
  export declare type DeployResultJson = (MetadataApiDeployStatus & {
22
22
  files: FileResponse[];
23
23
  }) | AsyncDeployResultJson;
24
- export declare type RetrieveResultJson = MetadataApiRetrieveStatus & {
24
+ export declare type MetadataRetrieveResultJson = Omit<MetadataApiRetrieveStatus, 'zipFile'> & {
25
+ zipFilePath: string;
25
26
  files: FileResponse[];
26
27
  };
28
+ export declare type RetrieveResultJson = (MetadataApiRetrieveStatus & {
29
+ files: FileResponse[];
30
+ }) | MetadataRetrieveResultJson;
@@ -44,3 +44,39 @@ Initialization Failures. The following table describes each failure:
44
44
  # warning.TargetOrgIsExpired
45
45
 
46
46
  The target-org, "%s", is expired. Do you want to pick another org?
47
+
48
+ # AnalyzingProject
49
+
50
+ Analyzing project
51
+
52
+ # UsingOptionsFromFile
53
+
54
+ Using options found in %s.
55
+
56
+ # FoundNothingToDeploy
57
+
58
+ Found nothing in the project to deploy.
59
+
60
+ # NothingSelectedToDeploy
61
+
62
+ Nothing was selected to deploy.
63
+
64
+ # DeployOptionsSavedToFile
65
+
66
+ Your deploy options have been saved to %s.
67
+
68
+ # DeployOptionsIncludedInGitIgnore
69
+
70
+ We added %s to the .gitignore for you.
71
+
72
+ # DeployersHaveNonZeroExitCode
73
+
74
+ One or more of the selected deployers exited with a non-zero exit code.
75
+
76
+ # DeployerExitCode
77
+
78
+ Deployer "%s" exited with code %d.
79
+
80
+ # save.as.default
81
+
82
+ Save username %s as default?
@@ -156,7 +156,7 @@ Target API version for the deploy.
156
156
 
157
157
  # flags.api-version.description
158
158
 
159
- Use this flag to override the default API version, which is the latest version supported the CLI, with the API version of your package.xml file.
159
+ Use this flag to override the default API version with the API version of your package.xml file. The default API version is the latest version supported by the CLI.
160
160
 
161
161
  # flags.async.summary
162
162
 
@@ -204,3 +204,11 @@ There are changes in the org that conflict with the local changes you're trying
204
204
  - To overwrite the remote changes, rerun this command with the --ignore-conflicts flag.
205
205
 
206
206
  - To overwrite the local changes, run the "sf retrieve metadata" command with the --ignore-conflicts flag.
207
+
208
+ # error.nothingToDeploy
209
+
210
+ No local changes to deploy.
211
+
212
+ # error.nothingToDeploy.Actions
213
+
214
+ - To see conflicts and ignored files, run "sf deploy metadata preview" with any of the manifest, directory, or metadata flags.
@@ -0,0 +1,93 @@
1
+ # summary
2
+
3
+ Preview a deployment to see what will deploy to the org, the potential conflicts, and the ignored files.
4
+
5
+ # description
6
+
7
+ You must run this command from within a project.
8
+
9
+ The command outputs a table that describes what will happen if you run the "sf deploy metadata" command. The table lists the metadata components that will be deployed and deleted. The table also lists the current conflicts between files in your local project and components in the org. Finally, the table lists the files that won't be deployed because they're included in your .forceignore file.
10
+
11
+ If your org allows source tracking, then this command considers conflicts between the org and local. Some orgs, such as production orgs, never allow source tracking. Use the "--no-track-source" flag when you create a scratch or sandbox org to disable source tracking.
12
+
13
+ To preview the deployment of multiple metadata components, either set multiple --metadata <name> flags or a single --metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same syntax applies to --manifest and --source-dir.
14
+
15
+ # examples
16
+
17
+ - 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.
18
+
19
+ - Preview the deployment of source files in a directory, such as force-app:
20
+
21
+ <%= config.bin %> <%= command.id %> --source-dir force-app
22
+
23
+ - Preview the deployment of all Apex classes:
24
+
25
+ <%= config.bin %> <%= command.id %> --metadata ApexClass
26
+
27
+ - Preview deployment of a specific Apex class:
28
+
29
+ <%= config.bin %> <%= command.id %> --metadata ApexClass:MyApexClass
30
+
31
+ - Preview deployment of all components listed in a manifest:
32
+
33
+ <%= config.bin %> <%= command.id %> --manifest path/to/package.xml
34
+
35
+ # flags.target-org.summary
36
+
37
+ Login username or alias for the target org.
38
+
39
+ # flags.target-org.description
40
+
41
+ Overrides your default org.
42
+
43
+ # flags.metadata.summary
44
+
45
+ Metadata component names to preview.
46
+
47
+ # flags.source-dir.summary
48
+
49
+ Path to the local source files to preview.
50
+
51
+ # flags.source-dir.description
52
+
53
+ The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder (in which case the operation is applied to all metadata types in the directory and its subdirectories).
54
+
55
+ If you specify this flag, don’t specify --metadata or --manifest.
56
+
57
+ # flags.manifest.summary
58
+
59
+ Full file path for manifest (package.xml) of components to preview.
60
+
61
+ # flags.manifest.description
62
+
63
+ All child components are included. If you specify this flag, don’t specify --metadata or --source-dir.
64
+
65
+ # flags.ignore-conflicts.summary
66
+
67
+ Ignore conflicts and deploy local files, even if they overwrite changes in the org.
68
+
69
+ # flags.ignore-conflicts.description
70
+
71
+ This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as production orgs.
72
+
73
+ # flags.concise.summary
74
+
75
+ Omit ignored files.
76
+
77
+ # flags.api-version.summary
78
+
79
+ Target API version for the preview.
80
+
81
+ # flags.api-version.description
82
+
83
+ Use this flag to override the default API version with the API version of your package.xml file. The default API version is the latest version supported by the CLI.
84
+
85
+ # error.Conflicts
86
+
87
+ There are changes in the org that conflict with the local changes you're trying to preview.
88
+
89
+ # error.Conflicts.Actions
90
+
91
+ - To overwrite the remote changes, rerun this command with the --ignore-conflicts flag.
92
+
93
+ - To overwrite the local changes, run the "sf retrieve metadata" command with the --ignore-conflicts flag.
@@ -104,7 +104,7 @@ Target API version for the validation.
104
104
 
105
105
  # flags.api-version.description
106
106
 
107
- Use this flag to override the default API version, which is the latest version supported the CLI, with the API version in your package.xml file.
107
+ Use this flag to override the default API version with the API version of your package.xml file. The default API version is the latest version supported by the CLI.
108
108
 
109
109
  # flags.async.summary
110
110
 
@@ -0,0 +1,39 @@
1
+ # conflicts.none
2
+
3
+ No conflicts found.
4
+
5
+ # conflicts.header
6
+
7
+ Conflicts [%s]. Run the command with the --ignore-conflicts flag to override.
8
+
9
+ # ignored.none
10
+
11
+ No files were ignored. Update your your .forceignore file if you want to ignore certain files.
12
+
13
+ # ignored.header
14
+
15
+ Ignored [%s] files. These files won't %s because they're ignored by your .forceignore file.
16
+
17
+ # deploy.header
18
+
19
+ Will Deploy [%s] files.
20
+
21
+ # deploy.none
22
+
23
+ No files will be deployed.
24
+
25
+ # retrieve.header
26
+
27
+ Will Retrieve [%s] files.
28
+
29
+ # retrieve.none
30
+
31
+ No files will be retrieved.
32
+
33
+ # delete.header
34
+
35
+ Will Delete [%s] files.
36
+
37
+ # delete.none
38
+
39
+ No files will be deleted.
@@ -51,6 +51,14 @@ To retrieve multiple metadata components, either use multiple --metadata <name>
51
51
  <%= config.bin %> <%= command.id %> --package-name Package1 "PackageName With Spaces" Package3
52
52
  <%= config.bin %> <%= command.id %> --package-name Package1 --package-name "PackageName With Spaces" --package-name Package3
53
53
 
54
+ - Retrieve using Metadata API
55
+
56
+ <%= config.bin %> <%= command.id %> --source-dir force-app --target-metadata-dir output
57
+
58
+ - Retrieve using Metadata API and automatically unzip the contents
59
+
60
+ <%= config.bin %> <%= command.id %> --source-dir force-app --target-metadata-dir output --unzip
61
+
54
62
  # flags.api-version.summary
55
63
 
56
64
  Target API version for the retrieve.
@@ -65,7 +73,7 @@ Ignore conflicts and retrieve and save files to your local filesystem, even if t
65
73
 
66
74
  # flags.ignore-conflicts.description
67
75
 
68
- This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as production orgs.
76
+ This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as production orgs.
69
77
 
70
78
  # flags.manifest.summary
71
79
 
@@ -107,6 +115,26 @@ Number of minutes to wait for the command to complete and display results to the
107
115
 
108
116
  If the command continues to run after the wait period, the CLI returns control of the terminal window to you.
109
117
 
118
+ # flags.metadata-dir.summary
119
+
120
+ Root of directory or zip file of metadata formatted files to retrieve.
121
+
122
+ # flags.single-package.summary
123
+
124
+ Indicates that the zip file points to a directory structure for a single package.
125
+
126
+ # flags.target-metadata-dir.summary
127
+
128
+ Directory root for the retrieved files.
129
+
130
+ # flags.unzip.summary
131
+
132
+ Extract all files from the retrieved zip file.
133
+
134
+ # flags.zip-file-name.summary
135
+
136
+ File name to use for the retrieved zip file.
137
+
110
138
  # spinner.start
111
139
 
112
140
  Preparing retrieve request
@@ -128,3 +156,11 @@ There are changes in your local files that conflict with the org changes you're
128
156
  - To overwrite the local changes, rerun this command with the --ignore-conflicts flag.
129
157
 
130
158
  - To overwrite the remote changes, run the "sf deploy metadata" command with the --ignore-conflicts flag.
159
+
160
+ # info.WroteZipFile
161
+
162
+ Wrote retrieve zip file to %s.
163
+
164
+ # info.ExtractedZipFile
165
+
166
+ Extracted %s to %s.
@@ -0,0 +1,59 @@
1
+ # summary
2
+
3
+ Preview a retrieval to see what will be retrieved from the org, the potential conflicts, and the ignored files.
4
+
5
+ # description
6
+
7
+ You must run this command from within a project.
8
+
9
+ The command outputs a table that describes what will happen if you run the "sf retrieve metadata" command. The table lists the metadata components that will be retrieved and deleted. The table also lists the current conflicts between files in your local project and components in the org. Finally, the table lists the files that won't be retrieved because they're included in your .forceignore file.
10
+
11
+ If your org allows source tracking, then this command considers conflicts between the org and local. Some orgs, such as production orgs, never allow source tracking. Use the "--no-track-source" flag when you create a scratch or sandbox org to disable source tracking.
12
+
13
+ # examples
14
+
15
+ - Preview the retrieve of all changes from the org:
16
+
17
+ <%= config.bin %> <%= command.id %>
18
+
19
+ - Preview the retrieve when ignoring any conflicts:
20
+
21
+ <%= config.bin %> <%= command.id %> --ignore-conflicts
22
+
23
+ # flags.target-org.summary
24
+
25
+ Login username or alias for the target org.
26
+
27
+ # flags.target-org.description
28
+
29
+ Overrides your default org.
30
+
31
+ # flags.ignore-conflicts.summary
32
+
33
+ Ignore conflicts and preview the retrieve of remote components, even if they will overwrite local changes.
34
+
35
+ # flags.ignore-conflicts.description
36
+
37
+ This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as production orgs.
38
+
39
+ # flags.concise.summary
40
+
41
+ Omit ignored files.
42
+
43
+ # flags.api-version.summary
44
+
45
+ Target API version for the deploy.
46
+
47
+ # flags.api-version.description
48
+
49
+ Use this flag to override the default API version with the API version of your package.xml file. The default API version is the latest version supported by the CLI.
50
+
51
+ # error.Conflicts
52
+
53
+ There are local changes that conflict with the remote changes that would be retrieved.
54
+
55
+ # error.Conflicts.Actions
56
+
57
+ - To overwrite the remote changes, run the "sf deploy metadata" command with the --ignore-conflicts flag.
58
+
59
+ - To overwrite the local changes, run the "sf retrieve metadata" command with the --ignore-conflicts flag.
@@ -0,0 +1,11 @@
1
+ # error.InvalidFlagPath
2
+
3
+ Invalid path specified: %s. %s
4
+
5
+ # error.ExpectedDirectory
6
+
7
+ Expected a directory but found a file.
8
+
9
+ # error.ExpectedFileOrDirToExist
10
+
11
+ Expected a file or directory to exist.
@@ -1 +1 @@
1
- {"version":"1.5.3","commands":{"deploy":{"id":"deploy","summary":"Deploy a project interactively to any Salesforce environment.","description":"This command must be run from within a project.\n\nThe command first analyzes your project, your active or logged-into environments, and local defaults to determine what to deploy and where to deploy it. The command then prompts you for information about this particular deployment and provides intelligent choices based on its analysis.\n\nFor example, if your local project contains a source directory with metadata files in source format, the command asks if you want to deploy that Salesforce app to an org. The command lists your connected orgs and asks which one you want to deploy to. The list of orgs starts with scratch orgs, ordered by expiration date with the most recently created one first, and then Dev Hub and production orgs ordered by name. If the command finds Apex tests, it asks if you want to run them and at which level.\n\nThe command stores your responses in the \"deploy-options.json\" file in your local project directory and uses them as defaults when you rerun the command. Specify --interactive to force the command to reprompt.\n\nUse this command for quick and simple deploys. For more complicated deployments, use the environment-specific commands, such as \"sf deploy metadata\", that provide additional flags.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","aliases":[],"examples":["Deploy a project and use stored values from a previous command run:\n<%= config.bin %> <%= command.id %>","Reprompt for all deployment inputs:\n<%= config.bin %> <%= command.id %> --interactive"],"flags":{"interactive":{"name":"interactive","type":"boolean","summary":"Force the CLI to prompt for all deployment inputs.","allowNo":false}},"args":[],"enableJsonFlag":false,"_globalFlags":{}},"deploy:metadata":{"id":"deploy:metadata","summary":"Deploy metadata in source format to an org from your local project.","description":"You must run this command from within a project.\n\nIf your org allows source tracking, then this command tracks the changes in your source. Some orgs, such as production org, never allow source tracking. You can also use the \"--no-track-source\" flag when you create a scratch or sandbox org to disable source tracking.\n\nTo deploy multiple metadata components, either set multiple --metadata <name> flags or a single --metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same syntax applies to --manifest and --source-dir.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","state":"beta","aliases":[],"examples":["Deploy local changes not in the org:\n<%= config.bin %> <%= command.id %>","Deploy the source files in a directory:\n<%= config.bin %> <%= command.id %> --source-dir path/to/source","Deploy a specific Apex class and the objects whose source is in a directory (both examples are equivalent):\n<%= config.bin %> <%= command.id %> --source-dir path/to/apex/classes/MyClass.cls path/to/source/objects\n<%= config.bin %> <%= command.id %> --source-dir path/to/apex/classes/MyClass.cls --source-dir path/to/source/objects","Deploy all Apex classes:\n<%= config.bin %> <%= command.id %> --metadata ApexClass","Deploy a specific Apex class:\n<%= config.bin %> <%= command.id %> --metadata ApexClass:MyApexClass","Deploy all custom objects and Apex classes (both examples are equivalent):\n<%= config.bin %> <%= command.id %> --metadata CustomObject ApexClass\n<%= config.bin %> <%= command.id %> --metadata CustomObject --metadata ApexClass","Deploy all Apex classes and a profile that has a space in its name:\n<%= config.bin %> <%= command.id %> --metadata ApexClass --metadata \"Profile:My Profile\"","Deploy all components listed in a manifest:\n<%= config.bin %> <%= command.id %> --manifest path/to/package.xml","Run the tests that aren’t in any managed packages as part of a deployment:\n<%= config.bin %> <%= command.id %> --metadata ApexClass --test-level RunLocalTests"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"api-version":{"name":"api-version","type":"option","char":"a","summary":"Target API version for the deploy.","description":"Use this flag to override the default API version, which is the latest version supported the CLI, with the API version of your package.xml file.","multiple":false},"async":{"name":"async","type":"boolean","summary":"Run the command asynchronously.","description":"The command immediately returns the job ID and control of the terminal to you. This way, you can continue to use the CLI. To resume the deployment, run \"sf deploy metadata resume\". To check the status of the deployment, run \"sf deploy metadata report\".","allowNo":false,"exclusive":["wait"]},"concise":{"name":"concise","type":"boolean","summary":"Show concise output of the deploy result.","allowNo":false,"exclusive":["verbose"]},"dry-run":{"name":"dry-run","type":"boolean","summary":"Validate deploy and run Apex tests but don’t save to the org.","allowNo":false},"ignore-conflicts":{"name":"ignore-conflicts","type":"boolean","char":"c","summary":"Ignore conflicts and deploy local files, even if they overwrite changes in the org.","description":"This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as production orgs.","allowNo":false},"ignore-errors":{"name":"ignore-errors","type":"boolean","char":"r","summary":"Ignore any errors and don’t roll back deployment.","description":"When deploying to a production org, keep this flag set to false (default value). When set to true, components without errors are deployed and components with errors are skipped, and could result in an inconsistent production org.","allowNo":false},"ignore-warnings":{"name":"ignore-warnings","type":"boolean","char":"g","summary":"Ignore warnings and allow a deployment to complete successfully.","description":"If a warning occurs and this flag is set to true, the success status of the deployment is set to true. When this flag is set to false, success is set to false, and the warning is treated like an error.","allowNo":false},"manifest":{"name":"manifest","type":"option","char":"x","summary":"Full file path for manifest (package.xml) of components to deploy.","description":"All child components are included. If you specify this flag, don’t specify --metadata or --source-dir.","multiple":false,"exclusive":["source-dir","metadata","metadata-dir"]},"metadata":{"name":"metadata","type":"option","char":"m","summary":"Metadata component names to deploy.","multiple":true,"exclusive":["manifest","source-dir","metadata-dir"]},"metadata-dir":{"name":"metadata-dir","type":"option","summary":"Root of directory or zip file of metadata formatted files to deploy.","multiple":false,"exclusive":["manifest","source-dir","metadata"]},"single-package":{"name":"single-package","type":"boolean","summary":"Indicates that the metadata zip file points to a directory structure for a single package.","allowNo":false,"dependsOn":["metadata-dir"]},"source-dir":{"name":"source-dir","type":"option","char":"d","summary":"Path to the local source files to deploy.","description":"The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder (in which case the operation is applied to all metadata types in the directory and its subdirectories).\n\nIf you specify this flag, don’t specify --metadata or --manifest.","multiple":true,"exclusive":["manifest","metadata","metadata-dir"]},"target-org":{"name":"target-org","type":"option","char":"o","summary":"Login username or alias for the target org.","description":"Overrides your default org.","multiple":false},"tests":{"name":"tests","type":"option","char":"t","summary":"Apex tests to run when --test-level is RunSpecifiedTests.","description":"Separate multiple test names with commas, and enclose the entire flag value in double quotes if a test contains a space.","multiple":true},"test-level":{"name":"test-level","type":"option","char":"l","summary":"Deployment Apex testing level.","description":"Valid values are:\n\n- NoTestRun — No tests are run. This test level applies only to deployments to development environments, such as sandbox, Developer Edition, or trial orgs. This test level is the default for development environments.\n\n- RunSpecifiedTests — Runs only the tests that you specify with the --run-tests flag. Code coverage requirements differ from the default coverage requirements when using this test level. Executed tests must comprise a minimum of 75% code coverage for each class and trigger in the deployment package. This coverage is computed for each class and trigger individually and is different than the overall coverage percentage.\n\n- RunLocalTests — All tests in your org are run, except the ones that originate from installed managed and unlocked packages. This test level is the default for production deployments that include Apex classes or triggers.\n\n- RunAllTestsInOrg — All tests in your org are run, including tests of managed packages.\n\n If you don’t specify a test level, the default behavior depends on the contents of your deployment package. For more information, see [Running Tests in a Deployment](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy_running_tests.htm) in the \"Metadata API Developer Guide\".","multiple":false,"options":["NoTestRun","RunSpecifiedTests","RunLocalTests","RunAllTestsInOrg"],"default":"NoTestRun"},"verbose":{"name":"verbose","type":"boolean","summary":"Show verbose output of the deploy result.","allowNo":false,"exclusive":["concise"]},"wait":{"name":"wait","type":"option","char":"w","summary":"Number of minutes to wait for command to complete and display results.","description":"If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To resume the deployment, run \"sf deploy metadata resume\". To check the status of the deployment, run \"sf deploy metadata report\".","helpValue":"<minutes>","multiple":false,"exclusive":["async"],"default":{"quantity":33,"unit":0}}},"args":[],"requiresProject":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}},"configurationVariablesSection":{"header":"CONFIGURATION VARIABLES","body":[{"name":"target-org","description":"Username or alias of the org that all commands run against by default. (sf only)"},{"name":"org-api-version","description":"API version of your project. Default: API version of your Dev Hub org."}]},"envVariablesSection":{"header":"ENVIRONMENT VARIABLES","body":[{"name":"SF_TARGET_ORG","description":"Username or alias of your default org. Overrides the target-org configuration variable."},{"name":"SF_USE_PROGRESS_BAR","description":"Set to false to disable the progress bar when running the metadata deploy command."}]},"errorCodes":{"header":"ERROR CODES","body":[{"name":"Succeeded (0)","description":"The deploy succeeded."},{"name":"Canceled (1)","description":"The deploy was canceled."},{"name":"Failed (1)","description":"The deploy failed."},{"name":"SucceededPartial (68)","description":"The deploy partially succeeded."},{"name":"InProgress (69)","description":"The deploy is in progress."},{"name":"Pending (69)","description":"The deploy is pending."},{"name":"Canceling (69)","description":"The deploy is being canceled."}]},"hasDynamicHelp":true},"retrieve:metadata":{"id":"retrieve:metadata","summary":"Retrieve metadata in source format from an org to your local project.","description":"You must run this command from within a project.\n\nIf your org allows source tracking, then this command tracks the changes in your source. Some orgs, such as production org, never allow source tracking. You can also use the \"--no-track-source\" flag when you create a scratch or sandbox org to disable source tracking.\n\nTo retrieve multiple metadata components, either use multiple --metadata <name> flags or use a single --metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same syntax applies to --manifest and --source-dir.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","state":"beta","aliases":[],"examples":["Retrieve remote changes:\n<%= config.bin %> <%= command.id %>","Retrieve the source files in a directory:\n<%= config.bin %> <%= command.id %> --source-dir path/to/source","Retrieve a specific Apex class and the objects whose source is in a directory (both examples are equivalent):\n<%= config.bin %> <%= command.id %> --source-dir path/to/apex/classes/MyClass.cls path/to/source/objects\n<%= config.bin %> <%= command.id %> --source-dir path/to/apex/classes/MyClass.cls --source-dir path/to/source/objects","Retrieve all Apex classes:\n<%= config.bin %> <%= command.id %> --metadata ApexClass","Retrieve a specific Apex class:\n<%= config.bin %> <%= command.id %> --metadata ApexClass:MyApexClass","Retrieve all custom objects and Apex classes (both examples are equivalent):\n<%= config.bin %> <%= command.id %> --metadata CustomObject ApexClass\n<%= config.bin %> <%= command.id %> --metadata CustomObject --metadata ApexClass","Retrieve all metadata components listed in a manifest:\n<%= config.bin %> <%= command.id %> --manifest path/to/package.xml","Retrieve metadata from a package:\n<%= config.bin %> <%= command.id %> --package-name MyPackageName","Retrieve metadata from multiple packages, one of which has a space in its name (both examples are equivalent):\n<%= config.bin %> <%= command.id %> --package-name Package1 \"PackageName With Spaces\" Package3\n<%= config.bin %> <%= command.id %> --package-name Package1 --package-name \"PackageName With Spaces\" --package-name Package3"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"api-version":{"name":"api-version","type":"option","char":"a","summary":"Target API version for the retrieve.","description":"Use this flag to override the default API version, which is the latest version supported the CLI, with the API version in your package.xml file.","multiple":false},"ignore-conflicts":{"name":"ignore-conflicts","type":"boolean","char":"c","summary":"Ignore conflicts and retrieve and save files to your local filesystem, even if they overwrite your local changes.","description":"This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as production orgs.","allowNo":false},"manifest":{"name":"manifest","type":"option","char":"x","summary":"File path for the manifest (package.xml) that specifies the components to retrieve.","description":"If you specify this parameter, don’t specify --metadata or --source-dir.","multiple":false,"exclusive":["metadata","source-dir"]},"metadata":{"name":"metadata","type":"option","char":"m","summary":"Metadata component names to retrieve.","multiple":true,"exclusive":["manifest","source-dir"]},"package-name":{"name":"package-name","type":"option","char":"n","summary":"Package names to retrieve.","multiple":true},"source-dir":{"name":"source-dir","type":"option","char":"d","summary":"File paths for source to retrieve from the org.","description":"The supplied paths can be to a single file (in which case the operation is applied to only one file) or to a folder (in which case the operation is applied to all source files in the directory and its subdirectories).","multiple":true,"exclusive":["manifest","metadata"]},"target-org":{"name":"target-org","type":"option","char":"o","summary":"Login username or alias for the target org.","description":"Overrides your default org.","multiple":false},"wait":{"name":"wait","type":"option","char":"w","summary":"Number of minutes to wait for the command to complete and display results to the terminal window.","description":"If the command continues to run after the wait period, the CLI returns control of the terminal window to you.","multiple":false,"default":{"quantity":33,"unit":0}}},"args":[],"requiresProject":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}},"configurationVariablesSection":{"header":"CONFIGURATION VARIABLES","body":[{"name":"target-org","description":"Username or alias of the org that all commands run against by default. (sf only)"},{"name":"org-api-version","description":"API version of your project. Default: API version of your Dev Hub org."}]},"envVariablesSection":{"header":"ENVIRONMENT VARIABLES","body":[{"name":"SF_TARGET_ORG","description":"Username or alias of your default org. Overrides the target-org configuration variable."},{"name":"SF_USE_PROGRESS_BAR","description":"Set to false to disable the progress bar when running the metadata deploy command."}]},"hasDynamicHelp":true},"deploy:metadata:cancel":{"id":"deploy:metadata:cancel","summary":"Cancel a deploy operation.","description":"Use this command to cancel a deploy operation that hasn't yet completed in the org. Deploy operations include standard deploys, quick deploys, deploy validations, and deploy cancellations.\n\nRun this command by either passing it a job ID or specifying the --use-most-recent flag to use the job ID of the most recent deploy operation.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","state":"beta","aliases":[],"examples":["Cancel a deploy operation using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2","Cancel the most recent deploy operation:\n<%= config.bin %> <%= command.id %> --use-most-recent"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"async":{"name":"async","type":"boolean","summary":"Run the command asynchronously.","description":"The command immediately returns the control of the terminal to you. This way, you can continue to use the CLI. To resume watching the cancellation, run \"sf deploy metadata resume\". To check the status of the cancellation, run \"sf deploy metadata report\".","allowNo":false,"exclusive":["wait"]},"job-id":{"name":"job-id","type":"option","char":"i","summary":"Job ID of the deploy operation you want to cancel.","description":"These commands return a job ID if they time out or you specified the --async flag:\n\n- sf deploy metadata\n- sf deploy metadata validate\n- sf deploy metadata quick\n- sf deploy metadata cancel\n\nThe job ID is valid for 10 days from when you started the deploy operation.","multiple":false},"use-most-recent":{"name":"use-most-recent","type":"boolean","char":"r","summary":"Use the job ID of the most recent deploy operation.","description":"For performance reasons, this flag uses job IDs for deploy operations that started only in the past 3 days or less. If your most recent deploy operations was more than 3 days ago, this flag won't find a job ID.","allowNo":false},"wait":{"name":"wait","type":"option","char":"w","summary":"Number of minutes to wait for the command to complete and display results.","description":"If the command continues to run after the wait period, the CLI returns control of the terminal window to you. To resume watching the cancellation, run \"sf deploy metadata resume\". To check the status of the cancellation, run \"sf deploy metadata report\".","helpValue":"<minutes>","multiple":false,"exclusive":["async"]}},"args":[],"requiresProject":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"deploy:metadata:quick":{"id":"deploy:metadata:quick","summary":"Quickly deploy a validated deployment to an org.","description":"Before you run this command, first create a validated deployment with the \"sf deploy metadata validate\" command, which returns a job ID. Validated deployments haven't been deployed to the org yet; you deploy them with this command. Either pass the job ID to this command or use the --use-most-recent flag to use the job ID of the most recently validated deployment. For the quick deploy to succeed, the associated validated deployment must also have succeeded.\n\nExecuting this quick deploy command takes less time than a standard deploy because it skips running Apex tests. These tests were previously run as part of the validation. Validating first and then running a quick deploy is useful if the deployment to your production org take several hours and you don’t want to risk a failed deploy.\n\nThis command doesn't support source-tracking. The source you deploy overwrites the corresponding metadata in your org. This command doesn’t attempt to merge your source with the versions in your org.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","state":"beta","aliases":[],"examples":["Run a quick deploy to your default org using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2","Asynchronously run a quick deploy of the most recently validated deployment to an org with alias \"my-prod-org\":\n<%= config.bin %> <%= command.id %> --async --use-most-recent --target-org my-prod-org"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"async":{"name":"async","type":"boolean","summary":"Run the command asynchronously.","description":"The command immediately returns the control of the terminal to you. This way, you can continue to use the CLI. To resume watching the deploy, run \"sf deploy metadata resume\". To check the status of the deploy, run \"sf deploy metadata report\".","allowNo":false,"exclusive":["wait"]},"concise":{"name":"concise","type":"boolean","summary":"Show concise output of the deploy result.","allowNo":false,"exclusive":["verbose"]},"job-id":{"name":"job-id","type":"option","char":"i","summary":"Job ID of the deployment you want to quick deploy.","description":"The job ID is valid for 10 days from when you started the validation.","multiple":false},"target-org":{"name":"target-org","type":"option","char":"o","summary":"Login username or alias for the target org.","description":"Overrides your default org.","multiple":false},"use-most-recent":{"name":"use-most-recent","type":"boolean","char":"r","summary":"Use the job ID of the most recently validated deployment.","description":"For performance reasons, this flag uses only job IDs that were validated in the past 3 days or less. If your most recent deployment validation was more than 3 days ago, this flag won't find a job ID.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","summary":"Show verbose output of the deploy result.","allowNo":false,"exclusive":["concise"]},"wait":{"name":"wait","type":"option","char":"w","summary":"Number of minutes to wait for the command to complete and display results.","description":"If the command continues to run after the wait period, the CLI returns control of the terminal window to you. To resume watching the deploy, run \"sf deploy metadata resume\". To check the status of the deploy, run \"sf deploy metadata report\".","helpValue":"<minutes>","multiple":false,"exclusive":["async"],"default":{"quantity":33,"unit":0}}},"args":[],"requiresProject":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}},"errorCodes":{"header":"ERROR CODES","body":[{"name":"Succeeded (0)","description":"The deploy succeeded."},{"name":"Canceled (1)","description":"The deploy was canceled."},{"name":"Failed (1)","description":"The deploy failed."},{"name":"SucceededPartial (68)","description":"The deploy partially succeeded."},{"name":"InProgress (69)","description":"The deploy is in progress."},{"name":"Pending (69)","description":"The deploy is pending."},{"name":"Canceling (69)","description":"The deploy is being canceled."}]},"hasDynamicHelp":true},"deploy:metadata:report":{"id":"deploy:metadata:report","summary":"Check the status of a deploy operation.","description":"Deploy operations include standard deploys, quick deploys, deploy validations, and deploy cancellations.\n\nRun this command by either passing it a job ID or specifying the --use-most-recent flag to use the job ID of the most recent deploy operation.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","state":"beta","aliases":[],"examples":["Check the status using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2","Check the status of the most recent deploy operation:\n<%= config.bin %> <%= command.id %> --use-most-recent"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"job-id":{"name":"job-id","type":"option","char":"i","summary":"Job ID of the deploy operation you want to check the status of.","description":"These commands return a job ID if they time out or you specified the --async flag:\n\n- sf deploy metadata\n- sf deploy metadata validate\n- sf deploy metadata quick\n- sf deploy metadata cancel\n\nThe job ID is valid for 10 days from when you started the deploy operation.","multiple":false},"use-most-recent":{"name":"use-most-recent","type":"boolean","char":"r","summary":"Use the job ID of the most recent deploy operation.","description":"For performance reasons, this flag uses job IDs for deploy operations that started only in the past 3 days or less. If your most recent operation was more than 3 days ago, this flag won't find a job ID.","allowNo":false}},"args":[],"requiresProject":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"deploy:metadata:resume":{"id":"deploy:metadata:resume","summary":"Resume watching a deploy operation.","description":"Use this command to resume watching a deploy operation if the original command times out or you specified the --async flag. Deploy operations include standard deploys, quick deploys, deploy validations, and deploy cancellations. This command doesn't resume the original operation itself, because the operation always continues after you've started it, regardless of whether you're watching it or not.\n\nRun this command by either passing it a job ID or specifying the --use-most-recent flag to use the job ID of the most recent deploy operation.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","state":"beta","aliases":[],"examples":["Resume watching a deploy operation using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2","Resume watching the most recent deploy operation:\n<%= config.bin %> <%= command.id %> --use-most-recent"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"concise":{"name":"concise","type":"boolean","summary":"Show concise output of the deploy operation result.","allowNo":false,"exclusive":["verbose"]},"job-id":{"name":"job-id","type":"option","char":"i","summary":"Job ID of the deploy operation you want to resume.","description":"These commands return a job ID if they time out or you specified the --async flag:\n\n- sf deploy metadata\n- sf deploy metadata validate\n- sf deploy metadata quick\n- sf deploy metadata cancel\n\nThe job ID is valid for 10 days from when you started the deploy operation.","multiple":false},"use-most-recent":{"name":"use-most-recent","type":"boolean","char":"r","summary":"Use the job ID of the most recent deploy operation.","description":"For performance reasons, this flag uses job IDs for deploy operations that started only in the past 3 days or less. If your most recent operation was more than 3 days ago, this flag won't find a job ID.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","summary":"Show verbose output of the deploy operation result.","allowNo":false,"exclusive":["concise"]},"wait":{"name":"wait","type":"option","char":"w","summary":"Number of minutes to wait for the command to complete and display results.","description":"If the command continues to run after the wait period, the CLI returns control of the terminal window to you. To resume watching the deploy operation, run this command again. To check the status of the deploy operation, run \"sf deploy metadata report\".","helpValue":"<minutes>","multiple":false}},"args":[],"requiresProject":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}},"envVariablesSection":{"header":"ENVIRONMENT VARIABLES","body":[{"name":"SF_USE_PROGRESS_BAR","description":"Set to false to disable the progress bar when running the metadata deploy command."}]},"errorCodes":{"header":"ERROR CODES","body":[{"name":"Succeeded (0)","description":"The deploy succeeded."},{"name":"Canceled (1)","description":"The deploy was canceled."},{"name":"Failed (1)","description":"The deploy failed."},{"name":"SucceededPartial (68)","description":"The deploy partially succeeded."},{"name":"InProgress (69)","description":"The deploy is in progress."},{"name":"Pending (69)","description":"The deploy is pending."},{"name":"Canceling (69)","description":"The deploy is being canceled."}]}},"deploy:metadata:validate":{"id":"deploy:metadata:validate","summary":"Validate a metadata deployment without actually executing it.","description":"Use this command to verify whether a deployment will succeed without actually deploying the metadata to your org. This command is similar to \"sf deploy metadata\", except you're required to run Apex tests, and the command returns a job ID rather than executing the deployment. If the validation succeeds, then you pass this job ID to the \"sf deploy metadata quick\" command to actually deploy the metadata. This quick deploy takes less time because it skips running Apex tests. The job ID is valid for 10 days from when you started the validation. Validating first is useful if the deployment to your production org take several hours and you don’t want to risk a failed deploy.\n\nYou must run this command from within a project.\n\nThis command doesn't support source-tracking. When you quick deploy with the resulting job ID, the source you deploy overwrites the corresponding metadata in your org.\n\nTo validate the deployment of multiple metadata components, either set multiple --metadata <name> flags or a single --metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same syntax applies to --manifest and --source-dir.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","state":"beta","aliases":[],"examples":["NOTE: These examples focus on validating large deployments. See the help for \"sf deploy metadata\" for examples of deploying smaller sets of metadata which you can also use to validate.","Validate the deployment of all source files in a directory to the default org:\n<%= config.bin %> <%= command.id %> --source-dir path/to/source","Asynchronously validate the deployment and run all tests in the org with alias \"my-prod-org\"; command immediately returns the job ID:\n<%= config.bin %> <%= command.id %> --source-dir path/to/source --async --test-level RunAllTestsInOrg --target-org my-prod-org","Validate the deployment of all components listed in a manifest:\n<%= config.bin %> <%= command.id %> --manifest path/to/package.xml"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"api-version":{"name":"api-version","type":"option","char":"a","summary":"Target API version for the validation.","description":"Use this flag to override the default API version, which is the latest version supported the CLI, with the API version in your package.xml file.","multiple":false},"async":{"name":"async","type":"boolean","summary":"Run the command asynchronously.","description":"The command immediately returns the job ID and control of the terminal to you. This way, you can continue to use the CLI. To resume watching the validation, run \"sf deploy metadata resume\". To check the status of the validation, run \"sf deploy metadata report\".","allowNo":false},"concise":{"name":"concise","type":"boolean","summary":"Show concise output of the validation result.","allowNo":false,"exclusive":["verbose"]},"manifest":{"name":"manifest","type":"option","char":"x","summary":"Full file path for manifest (package.xml) of components to validate for deployment.","description":"All child components are included. If you specify this flag, don’t specify --metadata or --source-dir.","multiple":false},"metadata":{"name":"metadata","type":"option","char":"m","summary":"Metadata component names to validate for deployment.","multiple":true},"source-dir":{"name":"source-dir","type":"option","char":"d","summary":"Path to the local source files to validate for deployment.","description":"The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder (in which case the operation is applied to all metadata types in the directory and its subdirectories).\n\nIf you specify this flag, don’t specify --metadata or --manifest.","multiple":true},"metadata-dir":{"name":"metadata-dir","type":"option","summary":"Root of directory or zip file of metadata formatted files to deploy.","multiple":false},"single-package":{"name":"single-package","type":"boolean","summary":"Indicates that the metadata zip file points to a directory structure for a single package.","allowNo":false,"dependsOn":["metadata-dir"]},"target-org":{"name":"target-org","type":"option","char":"o","summary":"Login username or alias for the target org.","description":"Overrides your default org.","multiple":false},"tests":{"name":"tests","type":"option","char":"t","summary":"Apex tests to run when --test-level is RunSpecifiedTests.","multiple":true},"test-level":{"name":"test-level","type":"option","char":"l","summary":"Deployment Apex testing level.","description":"Valid values are:\n\n- RunSpecifiedTests — Runs only the tests that you specify with the --run-tests flag. Code coverage requirements differ from the default coverage requirements when using this test level. Executed tests must comprise a minimum of 75% code coverage for each class and trigger in the deployment package. This coverage is computed for each class and trigger individually and is different than the overall coverage percentage.\n\n- RunLocalTests — All tests in your org are run, except the ones that originate from installed managed and unlocked packages. This test level is the default for production deployments that include Apex classes or triggers.\n\n- RunAllTestsInOrg — All tests in your org are run, including tests of managed packages.\n\nIf you don’t specify a test level, the default behavior depends on the contents of your deployment package. For more information, see [Running Tests in a Deployment](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy_running_tests.htm) in the \"Metadata API Developer Guide\".","multiple":false,"options":["RunAllTestsInOrg","RunLocalTests","RunSpecifiedTests"],"default":"RunLocalTests"},"verbose":{"name":"verbose","type":"boolean","summary":"Show verbose output of the validation result.","allowNo":false,"exclusive":["concise"]},"wait":{"name":"wait","type":"option","char":"w","summary":"Number of minutes to wait for the command to complete and display results.","description":"If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To resume watching the validation, run \"sf deploy metadata resume\". To check the status of the validation, run \"sf deploy metadata report\".","helpValue":"<minutes>","multiple":false,"default":{"quantity":33,"unit":0}}},"args":[],"requiresProject":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}},"configurationVariablesSection":{"header":"CONFIGURATION VARIABLES","body":[{"name":"target-org","description":"Username or alias of the org that all commands run against by default. (sf only)"},{"name":"org-api-version","description":"API version of your project. Default: API version of your Dev Hub org."}]},"envVariablesSection":{"header":"ENVIRONMENT VARIABLES","body":[{"name":"SF_TARGET_ORG","description":"Username or alias of your default org. Overrides the target-org configuration variable."},{"name":"SF_USE_PROGRESS_BAR","description":"Set to false to disable the progress bar when running the metadata deploy command."}]},"errorCodes":{"header":"ERROR CODES","body":[{"name":"Succeeded (0)","description":"The deploy succeeded."},{"name":"Canceled (1)","description":"The deploy was canceled."},{"name":"Failed (1)","description":"The deploy failed."},{"name":"SucceededPartial (68)","description":"The deploy partially succeeded."},{"name":"InProgress (69)","description":"The deploy is in progress."},{"name":"Pending (69)","description":"The deploy is pending."},{"name":"Canceling (69)","description":"The deploy is being canceled."}]},"hasDynamicHelp":true}}}
1
+ {"version":"1.6.0","commands":{"deploy":{"id":"deploy","summary":"Deploy a project interactively to any Salesforce environment.","description":"This command must be run from within a project.\n\nThe command first analyzes your project, your active or logged-into environments, and local defaults to determine what to deploy and where to deploy it. The command then prompts you for information about this particular deployment and provides intelligent choices based on its analysis.\n\nFor example, if your local project contains a source directory with metadata files in source format, the command asks if you want to deploy that Salesforce app to an org. The command lists your connected orgs and asks which one you want to deploy to. The list of orgs starts with scratch orgs, ordered by expiration date with the most recently created one first, and then Dev Hub and production orgs ordered by name. If the command finds Apex tests, it asks if you want to run them and at which level.\n\nThe command stores your responses in the \"deploy-options.json\" file in your local project directory and uses them as defaults when you rerun the command. Specify --interactive to force the command to reprompt.\n\nUse this command for quick and simple deploys. For more complicated deployments, use the environment-specific commands, such as \"sf deploy metadata\", that provide additional flags.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","aliases":[],"examples":["Deploy a project and use stored values from a previous command run:\n<%= config.bin %> <%= command.id %>","Reprompt for all deployment inputs:\n<%= config.bin %> <%= command.id %> --interactive"],"flags":{"interactive":{"name":"interactive","type":"boolean","summary":"Force the CLI to prompt for all deployment inputs.","allowNo":false}},"args":[],"_enableJsonFlag":false},"deploy:metadata":{"id":"deploy:metadata","summary":"Deploy metadata in source format to an org from your local project.","description":"You must run this command from within a project.\n\nIf your org allows source tracking, then this command tracks the changes in your source. Some orgs, such as production org, never allow source tracking. You can also use the \"--no-track-source\" flag when you create a scratch or sandbox org to disable source tracking.\n\nTo deploy multiple metadata components, either set multiple --metadata <name> flags or a single --metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same syntax applies to --manifest and --source-dir.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","state":"beta","aliases":[],"examples":["Deploy local changes not in the org:\n<%= config.bin %> <%= command.id %>","Deploy the source files in a directory:\n<%= config.bin %> <%= command.id %> --source-dir path/to/source","Deploy a specific Apex class and the objects whose source is in a directory (both examples are equivalent):\n<%= config.bin %> <%= command.id %> --source-dir path/to/apex/classes/MyClass.cls path/to/source/objects\n<%= config.bin %> <%= command.id %> --source-dir path/to/apex/classes/MyClass.cls --source-dir path/to/source/objects","Deploy all Apex classes:\n<%= config.bin %> <%= command.id %> --metadata ApexClass","Deploy a specific Apex class:\n<%= config.bin %> <%= command.id %> --metadata ApexClass:MyApexClass","Deploy all custom objects and Apex classes (both examples are equivalent):\n<%= config.bin %> <%= command.id %> --metadata CustomObject ApexClass\n<%= config.bin %> <%= command.id %> --metadata CustomObject --metadata ApexClass","Deploy all Apex classes and a profile that has a space in its name:\n<%= config.bin %> <%= command.id %> --metadata ApexClass --metadata \"Profile:My Profile\"","Deploy all components listed in a manifest:\n<%= config.bin %> <%= command.id %> --manifest path/to/package.xml","Run the tests that aren’t in any managed packages as part of a deployment:\n<%= config.bin %> <%= command.id %> --metadata ApexClass --test-level RunLocalTests"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"api-version":{"name":"api-version","type":"option","char":"a","summary":"Target API version for the deploy.","description":"Use this flag to override the default API version with the API version of your package.xml file. The default API version is the latest version supported by the CLI.","multiple":false},"async":{"name":"async","type":"boolean","summary":"Run the command asynchronously.","description":"The command immediately returns the job ID and control of the terminal to you. This way, you can continue to use the CLI. To resume the deployment, run \"sf deploy metadata resume\". To check the status of the deployment, run \"sf deploy metadata report\".","allowNo":false,"exclusive":["wait"]},"concise":{"name":"concise","type":"boolean","summary":"Show concise output of the deploy result.","allowNo":false,"exclusive":["verbose"]},"dry-run":{"name":"dry-run","type":"boolean","summary":"Validate deploy and run Apex tests but don’t save to the org.","allowNo":false},"ignore-conflicts":{"name":"ignore-conflicts","type":"boolean","char":"c","summary":"Ignore conflicts and deploy local files, even if they overwrite changes in the org.","description":"This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as production orgs.","allowNo":false},"ignore-errors":{"name":"ignore-errors","type":"boolean","char":"r","summary":"Ignore any errors and don’t roll back deployment.","description":"When deploying to a production org, keep this flag set to false (default value). When set to true, components without errors are deployed and components with errors are skipped, and could result in an inconsistent production org.","allowNo":false},"ignore-warnings":{"name":"ignore-warnings","type":"boolean","char":"g","summary":"Ignore warnings and allow a deployment to complete successfully.","description":"If a warning occurs and this flag is set to true, the success status of the deployment is set to true. When this flag is set to false, success is set to false, and the warning is treated like an error.","allowNo":false},"manifest":{"name":"manifest","type":"option","char":"x","summary":"Full file path for manifest (package.xml) of components to deploy.","description":"All child components are included. If you specify this flag, don’t specify --metadata or --source-dir.","multiple":false,"exclusive":["source-dir","metadata","metadata-dir"]},"metadata":{"name":"metadata","type":"option","char":"m","summary":"Metadata component names to deploy.","multiple":true,"exclusive":["manifest","source-dir","metadata-dir"]},"metadata-dir":{"name":"metadata-dir","type":"option","summary":"Root of directory or zip file of metadata formatted files to deploy.","multiple":false,"exclusive":["manifest","source-dir","metadata"]},"single-package":{"name":"single-package","type":"boolean","summary":"Indicates that the metadata zip file points to a directory structure for a single package.","allowNo":false,"dependsOn":["metadata-dir"]},"source-dir":{"name":"source-dir","type":"option","char":"d","summary":"Path to the local source files to deploy.","description":"The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder (in which case the operation is applied to all metadata types in the directory and its subdirectories).\n\nIf you specify this flag, don’t specify --metadata or --manifest.","multiple":true,"exclusive":["manifest","metadata","metadata-dir"]},"target-org":{"name":"target-org","type":"option","char":"o","summary":"Login username or alias for the target org.","description":"Overrides your default org.","multiple":false},"tests":{"name":"tests","type":"option","char":"t","summary":"Apex tests to run when --test-level is RunSpecifiedTests.","description":"Separate multiple test names with commas, and enclose the entire flag value in double quotes if a test contains a space.","multiple":true},"test-level":{"name":"test-level","type":"option","char":"l","summary":"Deployment Apex testing level.","description":"Valid values are:\n\n- NoTestRun — No tests are run. This test level applies only to deployments to development environments, such as sandbox, Developer Edition, or trial orgs. This test level is the default for development environments.\n\n- RunSpecifiedTests — Runs only the tests that you specify with the --run-tests flag. Code coverage requirements differ from the default coverage requirements when using this test level. Executed tests must comprise a minimum of 75% code coverage for each class and trigger in the deployment package. This coverage is computed for each class and trigger individually and is different than the overall coverage percentage.\n\n- RunLocalTests — All tests in your org are run, except the ones that originate from installed managed and unlocked packages. This test level is the default for production deployments that include Apex classes or triggers.\n\n- RunAllTestsInOrg — All tests in your org are run, including tests of managed packages.\n\n If you don’t specify a test level, the default behavior depends on the contents of your deployment package. For more information, see [Running Tests in a Deployment](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy_running_tests.htm) in the \"Metadata API Developer Guide\".","multiple":false,"options":["NoTestRun","RunSpecifiedTests","RunLocalTests","RunAllTestsInOrg"],"default":"NoTestRun"},"verbose":{"name":"verbose","type":"boolean","summary":"Show verbose output of the deploy result.","allowNo":false,"exclusive":["concise"]},"wait":{"name":"wait","type":"option","char":"w","summary":"Number of minutes to wait for command to complete and display results.","description":"If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To resume the deployment, run \"sf deploy metadata resume\". To check the status of the deployment, run \"sf deploy metadata report\".","helpValue":"<minutes>","multiple":false,"exclusive":["async"]}},"args":[],"requiresProject":true,"configurationVariablesSection":{"header":"CONFIGURATION VARIABLES","body":[{"name":"target-org","description":"Username or alias of the org that all commands run against by default. (sf only)"},{"name":"org-api-version","description":"API version of your project. Default: API version of your Dev Hub org."}]},"envVariablesSection":{"header":"ENVIRONMENT VARIABLES","body":[{"name":"SF_TARGET_ORG","description":"Username or alias of your default org. Overrides the target-org configuration variable."},{"name":"SF_USE_PROGRESS_BAR","description":"Set to false to disable the progress bar when running the metadata deploy command."}]},"errorCodes":{"header":"ERROR CODES","body":[{"name":"Succeeded (0)","description":"The deploy succeeded."},{"name":"Canceled (1)","description":"The deploy was canceled."},{"name":"Failed (1)","description":"The deploy failed."},{"name":"SucceededPartial (68)","description":"The deploy partially succeeded."},{"name":"InProgress (69)","description":"The deploy is in progress."},{"name":"Pending (69)","description":"The deploy is pending."},{"name":"Canceling (69)","description":"The deploy is being canceled."}]},"hasDynamicHelp":true},"retrieve:metadata":{"id":"retrieve:metadata","summary":"Retrieve metadata in source format from an org to your local project.","description":"You must run this command from within a project.\n\nIf your org allows source tracking, then this command tracks the changes in your source. Some orgs, such as production org, never allow source tracking. You can also use the \"--no-track-source\" flag when you create a scratch or sandbox org to disable source tracking.\n\nTo retrieve multiple metadata components, either use multiple --metadata <name> flags or use a single --metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same syntax applies to --manifest and --source-dir.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","state":"beta","aliases":[],"examples":["Retrieve remote changes:\n<%= config.bin %> <%= command.id %>","Retrieve the source files in a directory:\n<%= config.bin %> <%= command.id %> --source-dir path/to/source","Retrieve a specific Apex class and the objects whose source is in a directory (both examples are equivalent):\n<%= config.bin %> <%= command.id %> --source-dir path/to/apex/classes/MyClass.cls path/to/source/objects\n<%= config.bin %> <%= command.id %> --source-dir path/to/apex/classes/MyClass.cls --source-dir path/to/source/objects","Retrieve all Apex classes:\n<%= config.bin %> <%= command.id %> --metadata ApexClass","Retrieve a specific Apex class:\n<%= config.bin %> <%= command.id %> --metadata ApexClass:MyApexClass","Retrieve all custom objects and Apex classes (both examples are equivalent):\n<%= config.bin %> <%= command.id %> --metadata CustomObject ApexClass\n<%= config.bin %> <%= command.id %> --metadata CustomObject --metadata ApexClass","Retrieve all metadata components listed in a manifest:\n<%= config.bin %> <%= command.id %> --manifest path/to/package.xml","Retrieve metadata from a package:\n<%= config.bin %> <%= command.id %> --package-name MyPackageName","Retrieve metadata from multiple packages, one of which has a space in its name (both examples are equivalent):\n<%= config.bin %> <%= command.id %> --package-name Package1 \"PackageName With Spaces\" Package3\n<%= config.bin %> <%= command.id %> --package-name Package1 --package-name \"PackageName With Spaces\" --package-name Package3","Retrieve using Metadata API\n<%= config.bin %> <%= command.id %> --source-dir force-app --target-metadata-dir output","Retrieve using Metadata API and automatically unzip the contents\n<%= config.bin %> <%= command.id %> --source-dir force-app --target-metadata-dir output --unzip"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"api-version":{"name":"api-version","type":"option","char":"a","summary":"Target API version for the retrieve.","description":"Use this flag to override the default API version, which is the latest version supported the CLI, with the API version in your package.xml file.","multiple":false},"ignore-conflicts":{"name":"ignore-conflicts","type":"boolean","char":"c","summary":"Ignore conflicts and retrieve and save files to your local filesystem, even if they overwrite your local changes.","description":"This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as production orgs.","allowNo":false},"manifest":{"name":"manifest","type":"option","char":"x","summary":"File path for the manifest (package.xml) that specifies the components to retrieve.","description":"If you specify this parameter, don’t specify --metadata or --source-dir.","multiple":false,"exclusive":["metadata","source-dir"]},"metadata":{"name":"metadata","type":"option","char":"m","summary":"Metadata component names to retrieve.","multiple":true,"exclusive":["manifest","source-dir"]},"package-name":{"name":"package-name","type":"option","char":"n","summary":"Package names to retrieve.","multiple":true},"single-package":{"name":"single-package","type":"boolean","summary":"Indicates that the zip file points to a directory structure for a single package.","allowNo":false,"dependsOn":["target-metadata-dir"],"exclusive":["ignore-conflicts"]},"source-dir":{"name":"source-dir","type":"option","char":"d","summary":"File paths for source to retrieve from the org.","description":"The supplied paths can be to a single file (in which case the operation is applied to only one file) or to a folder (in which case the operation is applied to all source files in the directory and its subdirectories).","multiple":true,"exclusive":["manifest","metadata"]},"target-metadata-dir":{"name":"target-metadata-dir","type":"option","char":"t","summary":"Directory root for the retrieved files.","multiple":false,"relationships":[{"type":"some","flags":["manifest","metadata","source-dir","package-name"]}],"exclusive":["ignore-conflicts"]},"target-org":{"name":"target-org","type":"option","char":"o","summary":"Login username or alias for the target org.","description":"Overrides your default org.","multiple":false},"wait":{"name":"wait","type":"option","char":"w","summary":"Number of minutes to wait for the command to complete and display results to the terminal window.","description":"If the command continues to run after the wait period, the CLI returns control of the terminal window to you.","multiple":false},"unzip":{"name":"unzip","type":"boolean","char":"z","summary":"Extract all files from the retrieved zip file.","allowNo":false,"dependsOn":["target-metadata-dir"],"exclusive":["ignore-conflicts"]},"zip-file-name":{"name":"zip-file-name","type":"option","summary":"File name to use for the retrieved zip file.","multiple":false,"dependsOn":["target-metadata-dir"],"exclusive":["ignore-conflicts"]}},"args":[],"requiresProject":true,"configurationVariablesSection":{"header":"CONFIGURATION VARIABLES","body":[{"name":"target-org","description":"Username or alias of the org that all commands run against by default. (sf only)"},{"name":"org-api-version","description":"API version of your project. Default: API version of your Dev Hub org."}]},"envVariablesSection":{"header":"ENVIRONMENT VARIABLES","body":[{"name":"SF_TARGET_ORG","description":"Username or alias of your default org. Overrides the target-org configuration variable."},{"name":"SF_USE_PROGRESS_BAR","description":"Set to false to disable the progress bar when running the metadata deploy command."}]},"hasDynamicHelp":true},"deploy:metadata:cancel":{"id":"deploy:metadata:cancel","summary":"Cancel a deploy operation.","description":"Use this command to cancel a deploy operation that hasn't yet completed in the org. Deploy operations include standard deploys, quick deploys, deploy validations, and deploy cancellations.\n\nRun this command by either passing it a job ID or specifying the --use-most-recent flag to use the job ID of the most recent deploy operation.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","state":"beta","aliases":[],"examples":["Cancel a deploy operation using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2","Cancel the most recent deploy operation:\n<%= config.bin %> <%= command.id %> --use-most-recent"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"async":{"name":"async","type":"boolean","summary":"Run the command asynchronously.","description":"The command immediately returns the control of the terminal to you. This way, you can continue to use the CLI. To resume watching the cancellation, run \"sf deploy metadata resume\". To check the status of the cancellation, run \"sf deploy metadata report\".","allowNo":false,"exclusive":["wait"]},"job-id":{"name":"job-id","type":"option","char":"i","summary":"Job ID of the deploy operation you want to cancel.","description":"These commands return a job ID if they time out or you specified the --async flag:\n\n- sf deploy metadata\n- sf deploy metadata validate\n- sf deploy metadata quick\n- sf deploy metadata cancel\n\nThe job ID is valid for 10 days from when you started the deploy operation.","multiple":false},"use-most-recent":{"name":"use-most-recent","type":"boolean","char":"r","summary":"Use the job ID of the most recent deploy operation.","description":"For performance reasons, this flag uses job IDs for deploy operations that started only in the past 3 days or less. If your most recent deploy operations was more than 3 days ago, this flag won't find a job ID.","allowNo":false},"wait":{"name":"wait","type":"option","char":"w","summary":"Number of minutes to wait for the command to complete and display results.","description":"If the command continues to run after the wait period, the CLI returns control of the terminal window to you. To resume watching the cancellation, run \"sf deploy metadata resume\". To check the status of the cancellation, run \"sf deploy metadata report\".","helpValue":"<minutes>","multiple":false,"exclusive":["async"]}},"args":[],"requiresProject":true},"deploy:metadata:preview":{"id":"deploy:metadata:preview","summary":"Preview a deployment to see what will deploy to the org, the potential conflicts, and the ignored files.","description":"You must run this command from within a project.\n\nThe command outputs a table that describes what will happen if you run the \"sf deploy metadata\" command. The table lists the metadata components that will be deployed and deleted. The table also lists the current conflicts between files in your local project and components in the org. Finally, the table lists the files that won't be deployed because they're included in your .forceignore file.\n\nIf your org allows source tracking, then this command considers conflicts between the org and local. Some orgs, such as production orgs, never allow source tracking. Use the \"--no-track-source\" flag when you create a scratch or sandbox org to disable source tracking.\n\nTo preview the deployment of multiple metadata components, either set multiple --metadata <name> flags or a single --metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same syntax applies to --manifest and --source-dir.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","state":"beta","aliases":[],"examples":["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.","Preview the deployment of source files in a directory, such as force-app:\n<%= config.bin %> <%= command.id %> --source-dir force-app","Preview the deployment of all Apex classes:\n<%= config.bin %> <%= command.id %> --metadata ApexClass","Preview deployment of a specific Apex class:\n<%= config.bin %> <%= command.id %> --metadata ApexClass:MyApexClass","Preview deployment of all components listed in a manifest:\n<%= config.bin %> <%= command.id %> --manifest path/to/package.xml"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"ignore-conflicts":{"name":"ignore-conflicts","type":"boolean","char":"c","summary":"Ignore conflicts and deploy local files, even if they overwrite changes in the org.","description":"This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as production orgs.","allowNo":false},"manifest":{"name":"manifest","type":"option","char":"x","summary":"Full file path for manifest (package.xml) of components to preview.","description":"All child components are included. If you specify this flag, don’t specify --metadata or --source-dir.","multiple":false,"exclusive":["source-dir","metadata"]},"metadata":{"name":"metadata","type":"option","char":"m","summary":"Metadata component names to preview.","multiple":true,"exclusive":["manifest","source-dir"]},"source-dir":{"name":"source-dir","type":"option","char":"d","summary":"Path to the local source files to preview.","description":"The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder (in which case the operation is applied to all metadata types in the directory and its subdirectories).\n\nIf you specify this flag, don’t specify --metadata or --manifest.","multiple":true,"exclusive":["manifest","metadata"]},"target-org":{"name":"target-org","type":"option","char":"o","summary":"Login username or alias for the target org.","description":"Overrides your default org.","multiple":false}},"args":[],"requiresProject":true,"hasDynamicHelp":true},"deploy:metadata:quick":{"id":"deploy:metadata:quick","summary":"Quickly deploy a validated deployment to an org.","description":"Before you run this command, first create a validated deployment with the \"sf deploy metadata validate\" command, which returns a job ID. Validated deployments haven't been deployed to the org yet; you deploy them with this command. Either pass the job ID to this command or use the --use-most-recent flag to use the job ID of the most recently validated deployment. For the quick deploy to succeed, the associated validated deployment must also have succeeded.\n\nExecuting this quick deploy command takes less time than a standard deploy because it skips running Apex tests. These tests were previously run as part of the validation. Validating first and then running a quick deploy is useful if the deployment to your production org take several hours and you don’t want to risk a failed deploy.\n\nThis command doesn't support source-tracking. The source you deploy overwrites the corresponding metadata in your org. This command doesn’t attempt to merge your source with the versions in your org.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","state":"beta","aliases":[],"examples":["Run a quick deploy to your default org using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2","Asynchronously run a quick deploy of the most recently validated deployment to an org with alias \"my-prod-org\":\n<%= config.bin %> <%= command.id %> --async --use-most-recent --target-org my-prod-org"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"async":{"name":"async","type":"boolean","summary":"Run the command asynchronously.","description":"The command immediately returns the control of the terminal to you. This way, you can continue to use the CLI. To resume watching the deploy, run \"sf deploy metadata resume\". To check the status of the deploy, run \"sf deploy metadata report\".","allowNo":false,"exclusive":["wait"]},"concise":{"name":"concise","type":"boolean","summary":"Show concise output of the deploy result.","allowNo":false,"exclusive":["verbose"]},"job-id":{"name":"job-id","type":"option","char":"i","summary":"Job ID of the deployment you want to quick deploy.","description":"The job ID is valid for 10 days from when you started the validation.","multiple":false},"target-org":{"name":"target-org","type":"option","char":"o","summary":"Login username or alias for the target org.","description":"Overrides your default org.","multiple":false},"use-most-recent":{"name":"use-most-recent","type":"boolean","char":"r","summary":"Use the job ID of the most recently validated deployment.","description":"For performance reasons, this flag uses only job IDs that were validated in the past 3 days or less. If your most recent deployment validation was more than 3 days ago, this flag won't find a job ID.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","summary":"Show verbose output of the deploy result.","allowNo":false,"exclusive":["concise"]},"wait":{"name":"wait","type":"option","char":"w","summary":"Number of minutes to wait for the command to complete and display results.","description":"If the command continues to run after the wait period, the CLI returns control of the terminal window to you. To resume watching the deploy, run \"sf deploy metadata resume\". To check the status of the deploy, run \"sf deploy metadata report\".","helpValue":"<minutes>","multiple":false,"exclusive":["async"]}},"args":[],"requiresProject":true,"errorCodes":{"header":"ERROR CODES","body":[{"name":"Succeeded (0)","description":"The deploy succeeded."},{"name":"Canceled (1)","description":"The deploy was canceled."},{"name":"Failed (1)","description":"The deploy failed."},{"name":"SucceededPartial (68)","description":"The deploy partially succeeded."},{"name":"InProgress (69)","description":"The deploy is in progress."},{"name":"Pending (69)","description":"The deploy is pending."},{"name":"Canceling (69)","description":"The deploy is being canceled."}]},"hasDynamicHelp":true},"deploy:metadata:report":{"id":"deploy:metadata:report","summary":"Check the status of a deploy operation.","description":"Deploy operations include standard deploys, quick deploys, deploy validations, and deploy cancellations.\n\nRun this command by either passing it a job ID or specifying the --use-most-recent flag to use the job ID of the most recent deploy operation.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","state":"beta","aliases":[],"examples":["Check the status using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2","Check the status of the most recent deploy operation:\n<%= config.bin %> <%= command.id %> --use-most-recent"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"job-id":{"name":"job-id","type":"option","char":"i","summary":"Job ID of the deploy operation you want to check the status of.","description":"These commands return a job ID if they time out or you specified the --async flag:\n\n- sf deploy metadata\n- sf deploy metadata validate\n- sf deploy metadata quick\n- sf deploy metadata cancel\n\nThe job ID is valid for 10 days from when you started the deploy operation.","multiple":false},"use-most-recent":{"name":"use-most-recent","type":"boolean","char":"r","summary":"Use the job ID of the most recent deploy operation.","description":"For performance reasons, this flag uses job IDs for deploy operations that started only in the past 3 days or less. If your most recent operation was more than 3 days ago, this flag won't find a job ID.","allowNo":false}},"args":[],"requiresProject":true},"deploy:metadata:resume":{"id":"deploy:metadata:resume","summary":"Resume watching a deploy operation.","description":"Use this command to resume watching a deploy operation if the original command times out or you specified the --async flag. Deploy operations include standard deploys, quick deploys, deploy validations, and deploy cancellations. This command doesn't resume the original operation itself, because the operation always continues after you've started it, regardless of whether you're watching it or not.\n\nRun this command by either passing it a job ID or specifying the --use-most-recent flag to use the job ID of the most recent deploy operation.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","state":"beta","aliases":[],"examples":["Resume watching a deploy operation using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2","Resume watching the most recent deploy operation:\n<%= config.bin %> <%= command.id %> --use-most-recent"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"concise":{"name":"concise","type":"boolean","summary":"Show concise output of the deploy operation result.","allowNo":false,"exclusive":["verbose"]},"job-id":{"name":"job-id","type":"option","char":"i","summary":"Job ID of the deploy operation you want to resume.","description":"These commands return a job ID if they time out or you specified the --async flag:\n\n- sf deploy metadata\n- sf deploy metadata validate\n- sf deploy metadata quick\n- sf deploy metadata cancel\n\nThe job ID is valid for 10 days from when you started the deploy operation.","multiple":false},"use-most-recent":{"name":"use-most-recent","type":"boolean","char":"r","summary":"Use the job ID of the most recent deploy operation.","description":"For performance reasons, this flag uses job IDs for deploy operations that started only in the past 3 days or less. If your most recent operation was more than 3 days ago, this flag won't find a job ID.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","summary":"Show verbose output of the deploy operation result.","allowNo":false,"exclusive":["concise"]},"wait":{"name":"wait","type":"option","char":"w","summary":"Number of minutes to wait for the command to complete and display results.","description":"If the command continues to run after the wait period, the CLI returns control of the terminal window to you. To resume watching the deploy operation, run this command again. To check the status of the deploy operation, run \"sf deploy metadata report\".","helpValue":"<minutes>","multiple":false}},"args":[],"requiresProject":true,"envVariablesSection":{"header":"ENVIRONMENT VARIABLES","body":[{"name":"SF_USE_PROGRESS_BAR","description":"Set to false to disable the progress bar when running the metadata deploy command."}]},"errorCodes":{"header":"ERROR CODES","body":[{"name":"Succeeded (0)","description":"The deploy succeeded."},{"name":"Canceled (1)","description":"The deploy was canceled."},{"name":"Failed (1)","description":"The deploy failed."},{"name":"SucceededPartial (68)","description":"The deploy partially succeeded."},{"name":"InProgress (69)","description":"The deploy is in progress."},{"name":"Pending (69)","description":"The deploy is pending."},{"name":"Canceling (69)","description":"The deploy is being canceled."}]}},"deploy:metadata:validate":{"id":"deploy:metadata:validate","summary":"Validate a metadata deployment without actually executing it.","description":"Use this command to verify whether a deployment will succeed without actually deploying the metadata to your org. This command is similar to \"sf deploy metadata\", except you're required to run Apex tests, and the command returns a job ID rather than executing the deployment. If the validation succeeds, then you pass this job ID to the \"sf deploy metadata quick\" command to actually deploy the metadata. This quick deploy takes less time because it skips running Apex tests. The job ID is valid for 10 days from when you started the validation. Validating first is useful if the deployment to your production org take several hours and you don’t want to risk a failed deploy.\n\nYou must run this command from within a project.\n\nThis command doesn't support source-tracking. When you quick deploy with the resulting job ID, the source you deploy overwrites the corresponding metadata in your org.\n\nTo validate the deployment of multiple metadata components, either set multiple --metadata <name> flags or a single --metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same syntax applies to --manifest and --source-dir.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","state":"beta","aliases":[],"examples":["NOTE: These examples focus on validating large deployments. See the help for \"sf deploy metadata\" for examples of deploying smaller sets of metadata which you can also use to validate.","Validate the deployment of all source files in a directory to the default org:\n<%= config.bin %> <%= command.id %> --source-dir path/to/source","Asynchronously validate the deployment and run all tests in the org with alias \"my-prod-org\"; command immediately returns the job ID:\n<%= config.bin %> <%= command.id %> --source-dir path/to/source --async --test-level RunAllTestsInOrg --target-org my-prod-org","Validate the deployment of all components listed in a manifest:\n<%= config.bin %> <%= command.id %> --manifest path/to/package.xml"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"api-version":{"name":"api-version","type":"option","char":"a","summary":"Target API version for the validation.","description":"Use this flag to override the default API version with the API version of your package.xml file. The default API version is the latest version supported by the CLI.","multiple":false},"async":{"name":"async","type":"boolean","summary":"Run the command asynchronously.","description":"The command immediately returns the job ID and control of the terminal to you. This way, you can continue to use the CLI. To resume watching the validation, run \"sf deploy metadata resume\". To check the status of the validation, run \"sf deploy metadata report\".","allowNo":false},"concise":{"name":"concise","type":"boolean","summary":"Show concise output of the validation result.","allowNo":false,"exclusive":["verbose"]},"manifest":{"name":"manifest","type":"option","char":"x","summary":"Full file path for manifest (package.xml) of components to validate for deployment.","description":"All child components are included. If you specify this flag, don’t specify --metadata or --source-dir.","multiple":false},"metadata":{"name":"metadata","type":"option","char":"m","summary":"Metadata component names to validate for deployment.","multiple":true},"source-dir":{"name":"source-dir","type":"option","char":"d","summary":"Path to the local source files to validate for deployment.","description":"The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder (in which case the operation is applied to all metadata types in the directory and its subdirectories).\n\nIf you specify this flag, don’t specify --metadata or --manifest.","multiple":true},"metadata-dir":{"name":"metadata-dir","type":"option","summary":"Root of directory or zip file of metadata formatted files to deploy.","multiple":false},"single-package":{"name":"single-package","type":"boolean","summary":"Indicates that the metadata zip file points to a directory structure for a single package.","allowNo":false,"dependsOn":["metadata-dir"]},"target-org":{"name":"target-org","type":"option","char":"o","summary":"Login username or alias for the target org.","description":"Overrides your default org.","multiple":false},"tests":{"name":"tests","type":"option","char":"t","summary":"Apex tests to run when --test-level is RunSpecifiedTests.","multiple":true},"test-level":{"name":"test-level","type":"option","char":"l","summary":"Deployment Apex testing level.","description":"Valid values are:\n\n- RunSpecifiedTests — Runs only the tests that you specify with the --run-tests flag. Code coverage requirements differ from the default coverage requirements when using this test level. Executed tests must comprise a minimum of 75% code coverage for each class and trigger in the deployment package. This coverage is computed for each class and trigger individually and is different than the overall coverage percentage.\n\n- RunLocalTests — All tests in your org are run, except the ones that originate from installed managed and unlocked packages. This test level is the default for production deployments that include Apex classes or triggers.\n\n- RunAllTestsInOrg — All tests in your org are run, including tests of managed packages.\n\nIf you don’t specify a test level, the default behavior depends on the contents of your deployment package. For more information, see [Running Tests in a Deployment](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy_running_tests.htm) in the \"Metadata API Developer Guide\".","multiple":false,"options":["RunAllTestsInOrg","RunLocalTests","RunSpecifiedTests"],"default":"RunLocalTests"},"verbose":{"name":"verbose","type":"boolean","summary":"Show verbose output of the validation result.","allowNo":false,"exclusive":["concise"]},"wait":{"name":"wait","type":"option","char":"w","summary":"Number of minutes to wait for the command to complete and display results.","description":"If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To resume watching the validation, run \"sf deploy metadata resume\". To check the status of the validation, run \"sf deploy metadata report\".","helpValue":"<minutes>","multiple":false}},"args":[],"requiresProject":true,"configurationVariablesSection":{"header":"CONFIGURATION VARIABLES","body":[{"name":"target-org","description":"Username or alias of the org that all commands run against by default. (sf only)"},{"name":"org-api-version","description":"API version of your project. Default: API version of your Dev Hub org."}]},"envVariablesSection":{"header":"ENVIRONMENT VARIABLES","body":[{"name":"SF_TARGET_ORG","description":"Username or alias of your default org. Overrides the target-org configuration variable."},{"name":"SF_USE_PROGRESS_BAR","description":"Set to false to disable the progress bar when running the metadata deploy command."}]},"errorCodes":{"header":"ERROR CODES","body":[{"name":"Succeeded (0)","description":"The deploy succeeded."},{"name":"Canceled (1)","description":"The deploy was canceled."},{"name":"Failed (1)","description":"The deploy failed."},{"name":"SucceededPartial (68)","description":"The deploy partially succeeded."},{"name":"InProgress (69)","description":"The deploy is in progress."},{"name":"Pending (69)","description":"The deploy is pending."},{"name":"Canceling (69)","description":"The deploy is being canceled."}]},"hasDynamicHelp":true},"retrieve:metadata:preview":{"id":"retrieve:metadata:preview","summary":"Preview a retrieval to see what will be retrieved from the org, the potential conflicts, and the ignored files.","description":"You must run this command from within a project.\n\nThe command outputs a table that describes what will happen if you run the \"sf retrieve metadata\" command. The table lists the metadata components that will be retrieved and deleted. The table also lists the current conflicts between files in your local project and components in the org. Finally, the table lists the files that won't be retrieved because they're included in your .forceignore file.\n\nIf your org allows source tracking, then this command considers conflicts between the org and local. Some orgs, such as production orgs, never allow source tracking. Use the \"--no-track-source\" flag when you create a scratch or sandbox org to disable source tracking.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","state":"beta","aliases":[],"examples":["Preview the retrieve of all changes from the org:\n<%= config.bin %> <%= command.id %>","Preview the retrieve when ignoring any conflicts:\n<%= config.bin %> <%= command.id %> --ignore-conflicts"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"ignore-conflicts":{"name":"ignore-conflicts","type":"boolean","char":"c","summary":"Ignore conflicts and preview the retrieve of remote components, even if they will overwrite local changes.","description":"This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as production orgs.","allowNo":false},"target-org":{"name":"target-org","type":"option","char":"o","summary":"Login username or alias for the target org.","description":"Overrides your default org.","multiple":false}},"args":[],"requiresProject":true,"hasDynamicHelp":true}}}