sfdx-hardis 5.10.2-beta202412182204.0 → 5.10.2-beta202412221111.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.
- package/CHANGELOG.md +21 -11
- package/defaults/puppeteer-config.json +6 -0
- package/lib/commands/hardis/doc/flow2markdown.d.ts +13 -0
- package/lib/commands/hardis/doc/flow2markdown.js +78 -0
- package/lib/commands/hardis/doc/flow2markdown.js.map +1 -0
- package/lib/commands/hardis/doc/packagexml2markdown.js +0 -2
- package/lib/commands/hardis/doc/packagexml2markdown.js.map +1 -1
- package/lib/commands/hardis/doc/project2markdown.d.ts +3 -0
- package/lib/commands/hardis/doc/project2markdown.js +76 -5
- package/lib/commands/hardis/doc/project2markdown.js.map +1 -1
- package/lib/commands/hardis/project/deploy/quick.d.ts +1 -0
- package/lib/commands/hardis/project/deploy/quick.js +10 -1
- package/lib/commands/hardis/project/deploy/quick.js.map +1 -1
- package/lib/commands/hardis/project/deploy/smart.d.ts +0 -2
- package/lib/commands/hardis/project/deploy/smart.js +6 -103
- package/lib/commands/hardis/project/deploy/smart.js.map +1 -1
- package/lib/commands/hardis/project/deploy/start.d.ts +1 -0
- package/lib/commands/hardis/project/deploy/start.js +18 -1
- package/lib/commands/hardis/project/deploy/start.js.map +1 -1
- package/lib/commands/hardis/project/deploy/validate.d.ts +1 -0
- package/lib/commands/hardis/project/deploy/validate.js +8 -0
- package/lib/commands/hardis/project/deploy/validate.js.map +1 -1
- package/lib/commands/hardis/project/generate/flow-git-diff.d.ts +13 -0
- package/lib/commands/hardis/project/generate/flow-git-diff.js +95 -0
- package/lib/commands/hardis/project/generate/flow-git-diff.js.map +1 -0
- package/lib/common/gitProvider/index.js +14 -0
- package/lib/common/gitProvider/index.js.map +1 -1
- package/lib/common/gitProvider/utilsMarkdown.d.ts +1 -0
- package/lib/common/gitProvider/utilsMarkdown.js +35 -0
- package/lib/common/gitProvider/utilsMarkdown.js.map +1 -1
- package/lib/common/metadata-utils/index.d.ts +1 -0
- package/lib/common/metadata-utils/index.js +12 -1
- package/lib/common/metadata-utils/index.js.map +1 -1
- package/lib/common/utils/deployUtils.js +3 -3
- package/lib/common/utils/deployUtils.js.map +1 -1
- package/lib/common/utils/flowVisualiser/flowParser.d.ts +20 -0
- package/lib/common/utils/flowVisualiser/flowParser.js +425 -0
- package/lib/common/utils/flowVisualiser/flowParser.js.map +1 -0
- package/lib/common/utils/flowVisualiser/renderConfig.d.ts +122 -0
- package/lib/common/utils/flowVisualiser/renderConfig.js +123 -0
- package/lib/common/utils/flowVisualiser/renderConfig.js.map +1 -0
- package/lib/common/utils/gitUtils.d.ts +4 -0
- package/lib/common/utils/gitUtils.js +132 -0
- package/lib/common/utils/gitUtils.js.map +1 -1
- package/lib/common/utils/mermaidUtils.d.ts +9 -0
- package/lib/common/utils/mermaidUtils.js +331 -0
- package/lib/common/utils/mermaidUtils.js.map +1 -0
- package/lib/common/utils/projectUtils.d.ts +1 -0
- package/lib/common/utils/projectUtils.js +12 -0
- package/lib/common/utils/projectUtils.js.map +1 -1
- package/lib/common/utils/wrapUtils.js +1 -0
- package/lib/common/utils/wrapUtils.js.map +1 -1
- package/lib/hooks/postrun/notify.js +2 -5
- package/lib/hooks/postrun/notify.js.map +1 -1
- package/oclif.lock +306 -321
- package/oclif.manifest.json +532 -318
- package/package.json +8 -5
package/oclif.manifest.json
CHANGED
|
@@ -57,6 +57,78 @@
|
|
|
57
57
|
"world:hello"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
+
"hardis:cache:clear": {
|
|
61
|
+
"aliases": [],
|
|
62
|
+
"args": {},
|
|
63
|
+
"description": "Clear cache generated by sfdx-hardis",
|
|
64
|
+
"examples": [
|
|
65
|
+
"$ sf hardis:cache:clear"
|
|
66
|
+
],
|
|
67
|
+
"flags": {
|
|
68
|
+
"json": {
|
|
69
|
+
"description": "Format output as json.",
|
|
70
|
+
"helpGroup": "GLOBAL",
|
|
71
|
+
"name": "json",
|
|
72
|
+
"allowNo": false,
|
|
73
|
+
"type": "boolean"
|
|
74
|
+
},
|
|
75
|
+
"flags-dir": {
|
|
76
|
+
"helpGroup": "GLOBAL",
|
|
77
|
+
"name": "flags-dir",
|
|
78
|
+
"summary": "Import flag values from a directory.",
|
|
79
|
+
"hasDynamicHelp": false,
|
|
80
|
+
"multiple": false,
|
|
81
|
+
"type": "option"
|
|
82
|
+
},
|
|
83
|
+
"debug": {
|
|
84
|
+
"char": "d",
|
|
85
|
+
"description": "Activate debug mode (more logs)",
|
|
86
|
+
"name": "debug",
|
|
87
|
+
"allowNo": false,
|
|
88
|
+
"type": "boolean"
|
|
89
|
+
},
|
|
90
|
+
"websocket": {
|
|
91
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
92
|
+
"name": "websocket",
|
|
93
|
+
"hasDynamicHelp": false,
|
|
94
|
+
"multiple": false,
|
|
95
|
+
"type": "option"
|
|
96
|
+
},
|
|
97
|
+
"skipauth": {
|
|
98
|
+
"description": "Skip authentication check when a default username is required",
|
|
99
|
+
"name": "skipauth",
|
|
100
|
+
"allowNo": false,
|
|
101
|
+
"type": "boolean"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"hasDynamicHelp": false,
|
|
105
|
+
"hiddenAliases": [],
|
|
106
|
+
"id": "hardis:cache:clear",
|
|
107
|
+
"pluginAlias": "sfdx-hardis",
|
|
108
|
+
"pluginName": "sfdx-hardis",
|
|
109
|
+
"pluginType": "core",
|
|
110
|
+
"strict": true,
|
|
111
|
+
"enableJsonFlag": true,
|
|
112
|
+
"title": "Clear sfdx-hardis cache",
|
|
113
|
+
"requiresProject": false,
|
|
114
|
+
"isESM": true,
|
|
115
|
+
"relativePath": [
|
|
116
|
+
"lib",
|
|
117
|
+
"commands",
|
|
118
|
+
"hardis",
|
|
119
|
+
"cache",
|
|
120
|
+
"clear.js"
|
|
121
|
+
],
|
|
122
|
+
"aliasPermutations": [],
|
|
123
|
+
"permutations": [
|
|
124
|
+
"hardis:cache:clear",
|
|
125
|
+
"cache:hardis:clear",
|
|
126
|
+
"cache:clear:hardis",
|
|
127
|
+
"hardis:clear:cache",
|
|
128
|
+
"clear:hardis:cache",
|
|
129
|
+
"clear:cache:hardis"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
60
132
|
"hardis:auth:login": {
|
|
61
133
|
"aliases": [],
|
|
62
134
|
"args": {},
|
|
@@ -151,12 +223,12 @@
|
|
|
151
223
|
"login:auth:hardis"
|
|
152
224
|
]
|
|
153
225
|
},
|
|
154
|
-
"hardis:
|
|
226
|
+
"hardis:config:get": {
|
|
155
227
|
"aliases": [],
|
|
156
228
|
"args": {},
|
|
157
|
-
"description": "
|
|
229
|
+
"description": "Returns sfdx-hardis project config for a given level",
|
|
158
230
|
"examples": [
|
|
159
|
-
"$ sf hardis:
|
|
231
|
+
"$ sf hardis:project:deploy:sources:metadata"
|
|
160
232
|
],
|
|
161
233
|
"flags": {
|
|
162
234
|
"json": {
|
|
@@ -174,6 +246,20 @@
|
|
|
174
246
|
"multiple": false,
|
|
175
247
|
"type": "option"
|
|
176
248
|
},
|
|
249
|
+
"level": {
|
|
250
|
+
"char": "l",
|
|
251
|
+
"description": "project,branch or user",
|
|
252
|
+
"name": "level",
|
|
253
|
+
"default": "project",
|
|
254
|
+
"hasDynamicHelp": false,
|
|
255
|
+
"multiple": false,
|
|
256
|
+
"options": [
|
|
257
|
+
"project",
|
|
258
|
+
"branch",
|
|
259
|
+
"user"
|
|
260
|
+
],
|
|
261
|
+
"type": "option"
|
|
262
|
+
},
|
|
177
263
|
"debug": {
|
|
178
264
|
"char": "d",
|
|
179
265
|
"description": "Activate debug mode (more logs)",
|
|
@@ -197,38 +283,39 @@
|
|
|
197
283
|
},
|
|
198
284
|
"hasDynamicHelp": false,
|
|
199
285
|
"hiddenAliases": [],
|
|
200
|
-
"id": "hardis:
|
|
286
|
+
"id": "hardis:config:get",
|
|
201
287
|
"pluginAlias": "sfdx-hardis",
|
|
202
288
|
"pluginName": "sfdx-hardis",
|
|
203
289
|
"pluginType": "core",
|
|
204
290
|
"strict": true,
|
|
205
291
|
"enableJsonFlag": true,
|
|
206
|
-
"title": "
|
|
292
|
+
"title": "Deploy metadata sources to org",
|
|
207
293
|
"requiresProject": false,
|
|
208
294
|
"isESM": true,
|
|
209
295
|
"relativePath": [
|
|
210
296
|
"lib",
|
|
211
297
|
"commands",
|
|
212
298
|
"hardis",
|
|
213
|
-
"
|
|
214
|
-
"
|
|
299
|
+
"config",
|
|
300
|
+
"get.js"
|
|
215
301
|
],
|
|
216
302
|
"aliasPermutations": [],
|
|
217
303
|
"permutations": [
|
|
218
|
-
"hardis:
|
|
219
|
-
"
|
|
220
|
-
"
|
|
221
|
-
"hardis:
|
|
222
|
-
"
|
|
223
|
-
"
|
|
304
|
+
"hardis:config:get",
|
|
305
|
+
"config:hardis:get",
|
|
306
|
+
"config:get:hardis",
|
|
307
|
+
"hardis:get:config",
|
|
308
|
+
"get:hardis:config",
|
|
309
|
+
"get:config:hardis"
|
|
224
310
|
]
|
|
225
311
|
},
|
|
226
|
-
"hardis:
|
|
312
|
+
"hardis:doc:flow2markdown": {
|
|
227
313
|
"aliases": [],
|
|
228
314
|
"args": {},
|
|
229
|
-
"description": "
|
|
315
|
+
"description": "Generates a markdown documentation from a Flow file",
|
|
230
316
|
"examples": [
|
|
231
|
-
"$ sf hardis:
|
|
317
|
+
"$ sf hardis:doc:flow2markdown",
|
|
318
|
+
"$ sf hardis:doc:flow2markdown --inputfile force-app/main/default/flows/MyFlow.flow-meta.xml"
|
|
232
319
|
],
|
|
233
320
|
"flags": {
|
|
234
321
|
"json": {
|
|
@@ -246,18 +333,20 @@
|
|
|
246
333
|
"multiple": false,
|
|
247
334
|
"type": "option"
|
|
248
335
|
},
|
|
249
|
-
"
|
|
250
|
-
"char": "
|
|
251
|
-
"description": "
|
|
252
|
-
"name": "
|
|
253
|
-
"
|
|
336
|
+
"inputfile": {
|
|
337
|
+
"char": "x",
|
|
338
|
+
"description": "Path to Flow metadata file. If not specified, the command will prompt the user",
|
|
339
|
+
"name": "inputfile",
|
|
340
|
+
"hasDynamicHelp": false,
|
|
341
|
+
"multiple": false,
|
|
342
|
+
"type": "option"
|
|
343
|
+
},
|
|
344
|
+
"outputfile": {
|
|
345
|
+
"char": "f",
|
|
346
|
+
"description": "Force the path and name of output markdown file. Must end with .md",
|
|
347
|
+
"name": "outputfile",
|
|
254
348
|
"hasDynamicHelp": false,
|
|
255
349
|
"multiple": false,
|
|
256
|
-
"options": [
|
|
257
|
-
"project",
|
|
258
|
-
"branch",
|
|
259
|
-
"user"
|
|
260
|
-
],
|
|
261
350
|
"type": "option"
|
|
262
351
|
},
|
|
263
352
|
"debug": {
|
|
@@ -283,30 +372,30 @@
|
|
|
283
372
|
},
|
|
284
373
|
"hasDynamicHelp": false,
|
|
285
374
|
"hiddenAliases": [],
|
|
286
|
-
"id": "hardis:
|
|
375
|
+
"id": "hardis:doc:flow2markdown",
|
|
287
376
|
"pluginAlias": "sfdx-hardis",
|
|
288
377
|
"pluginName": "sfdx-hardis",
|
|
289
378
|
"pluginType": "core",
|
|
290
379
|
"strict": true,
|
|
291
380
|
"enableJsonFlag": true,
|
|
292
|
-
"title": "
|
|
381
|
+
"title": "Flow to Markdown",
|
|
293
382
|
"requiresProject": false,
|
|
294
383
|
"isESM": true,
|
|
295
384
|
"relativePath": [
|
|
296
385
|
"lib",
|
|
297
386
|
"commands",
|
|
298
387
|
"hardis",
|
|
299
|
-
"
|
|
300
|
-
"
|
|
388
|
+
"doc",
|
|
389
|
+
"flow2markdown.js"
|
|
301
390
|
],
|
|
302
391
|
"aliasPermutations": [],
|
|
303
392
|
"permutations": [
|
|
304
|
-
"hardis:
|
|
305
|
-
"
|
|
306
|
-
"
|
|
307
|
-
"hardis:
|
|
308
|
-
"
|
|
309
|
-
"
|
|
393
|
+
"hardis:doc:flow2markdown",
|
|
394
|
+
"doc:hardis:flow2markdown",
|
|
395
|
+
"doc:flow2markdown:hardis",
|
|
396
|
+
"hardis:flow2markdown:doc",
|
|
397
|
+
"flow2markdown:hardis:doc",
|
|
398
|
+
"flow2markdown:doc:hardis"
|
|
310
399
|
]
|
|
311
400
|
},
|
|
312
401
|
"hardis:doc:packagexml2markdown": {
|
|
@@ -401,7 +490,7 @@
|
|
|
401
490
|
"hardis:doc:project2markdown": {
|
|
402
491
|
"aliases": [],
|
|
403
492
|
"args": {},
|
|
404
|
-
"description": "Generates a markdown documentation from a SFDX project\n\n- Package.xml files\n- Source Packages\n- sfdx-hardis configuration\n- Installed packages\n\nCan work on any sfdx project, no need for it to be a sfdx-hardis flavored one.\n\
|
|
493
|
+
"description": "Generates a markdown documentation from a SFDX project\n\n- Package.xml files\n- Source Packages\n- sfdx-hardis configuration\n- Installed packages\n\nCan work on any sfdx project, no need for it to be a sfdx-hardis flavored one.\n\nGenerates markdown files will be written in **docs** folder (except README.md where a link to doc index is added)\n\nThis command requires @mermaid-js/mermaid-cli to be installed.\n\nRun `npm install @mermaid-js/mermaid-cli --global`\n\n\n\n\n",
|
|
405
494
|
"examples": [
|
|
406
495
|
"$ sf hardis:doc:project2markdown"
|
|
407
496
|
],
|
|
@@ -10230,9 +10319,11 @@
|
|
|
10230
10319
|
]
|
|
10231
10320
|
},
|
|
10232
10321
|
"hardis:project:deploy:quick": {
|
|
10233
|
-
"aliases": [
|
|
10322
|
+
"aliases": [
|
|
10323
|
+
"hardis:deploy:quick"
|
|
10324
|
+
],
|
|
10234
10325
|
"args": {},
|
|
10235
|
-
"description": "sfdx-hardis wrapper for **sf project deploy quick** that displays tips to solve deployment errors.\n\n[](https://nicolas.vuillamy.fr/assisted-solving-of-salesforce-deployments-errors-47f3666a9ed0)\n\n[See documentation of Salesforce command](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_project_commands_unified.htm#cli_reference_project_deploy_quick_unified)\n\n### Deployment pre or post commands\n\nYou can define command lines to run before or after a deployment, with parameters:\n\n- **id**: Unique Id for the command\n- **label**: Human readable label for the command\n- **skipIfError**: If defined to \"true\", the post-command won't be run if there is a deployment failure\n- **context**: Defines the context where the command will be run. Can be **all** (default), **check-deployment-only** or **process-deployment-only**\n- **runOnlyOnceByOrg**: If set to true, the command will be run only one time per org. A record of SfdxHardisTrace__c is stored to make that possible (it needs to be existing in target org)\n\nIf the commands are not the same depending on the target org, you can define them into **config/branches/.sfdx-hardis-BRANCHNAME.yml** instead of root **config/.sfdx-hardis.yml**\n\nExample:\n\n```yaml\ncommandsPreDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to the deployment user\n command: sf data update record --sobject User --where \"Username='deploy.github@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n\ncommandsPostDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to desired username\n command: sf data update record --sobject User --where \"Username='admin-yser@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n - id: someActionToRunJustOneTime\n label: And to run only if deployment is success\n command: sf sfdmu:run ...\n skipIfError: true\n context: process-deployment-only\n runOnlyOnceByOrg: true\n```\n",
|
|
10326
|
+
"description": "sfdx-hardis wrapper for **sf project deploy quick** that displays tips to solve deployment errors.\n\nNote: Use **--json** argument to have better results\n\n[](https://nicolas.vuillamy.fr/assisted-solving-of-salesforce-deployments-errors-47f3666a9ed0)\n\n[See documentation of Salesforce command](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_project_commands_unified.htm#cli_reference_project_deploy_quick_unified)\n\n### Deployment pre or post commands\n\nYou can define command lines to run before or after a deployment, with parameters:\n\n- **id**: Unique Id for the command\n- **label**: Human readable label for the command\n- **skipIfError**: If defined to \"true\", the post-command won't be run if there is a deployment failure\n- **context**: Defines the context where the command will be run. Can be **all** (default), **check-deployment-only** or **process-deployment-only**\n- **runOnlyOnceByOrg**: If set to true, the command will be run only one time per org. A record of SfdxHardisTrace__c is stored to make that possible (it needs to be existing in target org)\n\nIf the commands are not the same depending on the target org, you can define them into **config/branches/.sfdx-hardis-BRANCHNAME.yml** instead of root **config/.sfdx-hardis.yml**\n\nExample:\n\n```yaml\ncommandsPreDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to the deployment user\n command: sf data update record --sobject User --where \"Username='deploy.github@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n\ncommandsPostDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to desired username\n command: sf data update record --sobject User --where \"Username='admin-yser@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n - id: someActionToRunJustOneTime\n label: And to run only if deployment is success\n command: sf sfdmu:run ...\n skipIfError: true\n context: process-deployment-only\n runOnlyOnceByOrg: true\n```\n",
|
|
10236
10327
|
"flags": {
|
|
10237
10328
|
"json": {
|
|
10238
10329
|
"description": "Format output as json.",
|
|
@@ -10335,7 +10426,14 @@
|
|
|
10335
10426
|
"deploy",
|
|
10336
10427
|
"quick.js"
|
|
10337
10428
|
],
|
|
10338
|
-
"aliasPermutations": [
|
|
10429
|
+
"aliasPermutations": [
|
|
10430
|
+
"hardis:deploy:quick",
|
|
10431
|
+
"deploy:hardis:quick",
|
|
10432
|
+
"deploy:quick:hardis",
|
|
10433
|
+
"hardis:quick:deploy",
|
|
10434
|
+
"quick:hardis:deploy",
|
|
10435
|
+
"quick:deploy:hardis"
|
|
10436
|
+
],
|
|
10339
10437
|
"permutations": [
|
|
10340
10438
|
"hardis:project:deploy:quick",
|
|
10341
10439
|
"project:hardis:deploy:quick",
|
|
@@ -10483,7 +10581,7 @@
|
|
|
10483
10581
|
"hardis:project:deploy:sources:dx"
|
|
10484
10582
|
],
|
|
10485
10583
|
"args": {},
|
|
10486
|
-
"description": "Smart deploy of SFDX sources to target org, with many useful options.\n\nIn case of errors, [tips to fix them](https://sfdx-hardis.cloudity.com/deployTips/) will be included within the error messages.\n\n### Quick Deploy\n\nIn case Pull Request comments are configured on the project, Quick Deploy will try to be used (equivalent to button Quick Deploy)\n\nIf you do not want to use QuickDeploy, define variable `SFDX_HARDIS_QUICK_DEPLOY=false`\n\n- [GitHub Pull Requests comments config](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-setup-integration-github/)\n- [Gitlab Merge requests notes config](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-setup-integration-gitlab/)\n- [Azure Pull Requests comments config](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-setup-integration-azure/)\n\n### Delta deployments\n\nTo activate delta deployments, define property `useDeltaDeployment: true` in `config/.sfdx-hardis.yml`.\n\nThis will activate delta deployments only between minor and major branches (major to major remains full deployment mode)\n\nIf you want to force the delta deployment into major orgs (ex: preprod to prod), this is not recommended but you can use env variable ALWAYS_ENABLE_DELTA_DEPLOYMENT=true\n\n### Smart Deployments Tests\n\nNot all metadata updates can break test classes, use Smart Deployment Tests to skip running test classes if ALL the following conditions are met:\n\n- Delta deployment is activated and applicable to the source and target branches\n- Delta deployed metadatas are all matching the list of **NOT_IMPACTING_METADATA_TYPES** (see below)\n- Target org is not a production org\n\nActivate Smart Deployment tests with:\n\n- env variable `USE_SMART_DEPLOYMENT_TESTS=true`\n- .sfdx-hardis.yml config property `useSmartDeploymentTests: true`\n\nDefaut list for **NOT_IMPACTING_METADATA_TYPES** (can be overridden with comma-separated list on env var NOT_IMPACTING_METADATA_TYPES)\n\n- Audience\n- AuraDefinitionBundle\n- Bot\n- BotVersion\n- ContentAsset\n- CustomObjectTranslation\n- CustomSite\n- CustomTab\n- Dashboard\n- ExperienceBundle\n- Flexipage\n- GlobalValueSetTranslation\n- Layout\n- LightningComponentBundle\n- NavigationMenu\n- ReportType\n- Report\n- SiteDotCom\n- StandardValueSetTranslation\n- StaticResource\n- Translations\n\nNote: if you want to disable Smart test classes for a PR, add **nosmart** in the text of the latest commit.\n\n### Dynamic deployment items / Overwrite management\n\nIf necessary,you can define the following files (that supports wildcards <members>*</members>):\n\n- `manifest/package-no-overwrite.xml`: Every element defined in this file will be deployed only if it is not existing yet in the target org (can be useful with ListView for example, if the client wants to update them directly in production org).\n - Can be overridden for a branch using .sfdx-hardis.yml property **packageNoOverwritePath** or environment variable PACKAGE_NO_OVERWRITE_PATH (for example, define: `packageNoOverwritePath: manifest/package-no-overwrite-main.xml` in config file `config/.sfdx-hardis.main.yml`)\n- `manifest/packageXmlOnChange.xml`: Every element defined in this file will not be deployed if it already has a similar definition in target org (can be useful for SharingRules for example)\n\nSee [Overwrite management documentation](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-config-overwrite/)\n\n### Deployment plan\n\nIf you need to deploy in multiple steps, you can define a property `deploymentPlan` in `.sfdx-hardis.yml`.\n\n- If a file `manifest/package.xml` is found, it will be placed with order 0 in the deployment plan\n\n- If a file `manifest/destructiveChanges.xml` is found, it will be executed as --postdestructivechanges\n\n- If env var `SFDX_HARDIS_DEPLOY_IGNORE_SPLIT_PACKAGES` is defined as `false` , split of package.xml will be applied\n\nExample:\n\n```yaml\ndeploymentPlan:\n packages:\n - label: Deploy Flow-Workflow\n packageXmlFile: manifest/splits/packageXmlFlowWorkflow.xml\n order: 6\n - label: Deploy SharingRules - Case\n packageXmlFile: manifest/splits/packageXmlSharingRulesCase.xml\n order: 30\n waitAfter: 30\n```\n\n### Packages installation\n\nYou can define a list of package to install during deployments using property `installedPackages`\n\n- If `INSTALL_PACKAGES_DURING_CHECK_DEPLOY` is defined as `true` (or `installPackagesDuringCheckDeploy: true` in `.sfdx-hardis.yml`), packages will be installed even if the command is called with `--check` mode\n- You can automatically update this property by listing all packages installed on an org using command `sf hardis:org:retrieve:packageconfig`\n\nExample:\n\n```yaml\ninstalledPackages:\n - Id: 0A35r0000009EtECAU\n SubscriberPackageId: 033i0000000LVMYAA4\n SubscriberPackageName: Marketing Cloud\n SubscriberPackageNamespace: et4ae5\n SubscriberPackageVersionId: 04t6S000000l11iQAA\n SubscriberPackageVersionName: Marketing Cloud\n SubscriberPackageVersionNumber: 236.0.0.2\n installOnScratchOrgs: true // true or false depending you want to install this package when creating a new scratch org\n installDuringDeployments: true // set as true to install package during a deployment using sf hardis:project:deploy:smart\n installationkey: xxxxxxxxxxxxxxxxxxxx // if the package has a password, write it in this property\n - Id: 0A35r0000009F9CCAU\n SubscriberPackageId: 033b0000000Pf2AAAS\n SubscriberPackageName: Declarative Lookup Rollup Summaries Tool\n SubscriberPackageNamespace: dlrs\n SubscriberPackageVersionId: 04t5p000001BmLvAAK\n SubscriberPackageVersionName: Release\n SubscriberPackageVersionNumber: 2.15.0.9\n installOnScratchOrgs: true\n installDuringDeployments: true\n```\n\n### Deployment pre or post commands\n\nYou can define command lines to run before or after a deployment, with parameters:\n\n- **id**: Unique Id for the command\n- **label**: Human readable label for the command\n- **skipIfError**: If defined to \"true\", the post-command won't be run if there is a deployment failure\n- **context**: Defines the context where the command will be run. Can be **all** (default), **check-deployment-only** or **process-deployment-only**\n- **runOnlyOnceByOrg**: If set to true, the command will be run only one time per org. A record of SfdxHardisTrace__c is stored to make that possible (it needs to be existing in target org)\n\nIf the commands are not the same depending on the target org, you can define them into **config/branches/.sfdx-hardis-BRANCHNAME.yml** instead of root **config/.sfdx-hardis.yml**\n\nExample:\n\n```yaml\ncommandsPreDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to the deployment user\n command: sf data update record --sobject User --where \"Username='deploy.github@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n\ncommandsPostDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to desired username\n command: sf data update record --sobject User --where \"Username='admin-yser@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n - id: someActionToRunJustOneTime\n label: And to run only if deployment is success\n command: sf sfdmu:run ...\n skipIfError: true\n context: process-deployment-only\n runOnlyOnceByOrg: true\n```\n\n### Automated fixes post deployments\n\n#### List view with scope Mine\n\nIf you defined a property **listViewsToSetToMine** in your .sfdx-hardis.yml, related ListViews will be set to Mine ( see command <https://sfdx-hardis.cloudity.com/hardis/org/fix/listviewmine/> )\n\nExample:\n\n```yaml\nlistViewsToSetToMine:\n - \"Operation__c:MyCurrentOperations\"\n - \"Operation__c:MyFinalizedOperations\"\n - \"Opportunity:Default_Opportunity_Pipeline\"\n - \"Opportunity:MyCurrentSubscriptions\"\n - \"Opportunity:MySubscriptions\"\n - \"Account:MyActivePartners\"\n```\n\nTroubleshooting: if you need to fix ListViews with mine from an alpine-linux based docker image, use this workaround in your dockerfile:\n\n```dockerfile\n# Do not use puppeteer embedded chromium\nRUN apk add --update --no-cache chromium\nENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=\"true\"\nENV CHROMIUM_PATH=\"/usr/bin/chromium-browser\"\nENV PUPPETEER_EXECUTABLE_PATH=\"$\\{CHROMIUM_PATH}\" // remove \\ before {\n```\n\nIf you need to increase the deployment waiting time (sf project deploy start --wait arg), you can define env variable SFDX_DEPLOY_WAIT_MINUTES (default: 120)\n\nIf you need notifications to be sent using the current Pull Request and not the one just merged ([see use case](https://github.com/hardisgroupcom/sfdx-hardis/issues/637#issuecomment-2230798904)), define env variable SFDX_HARDIS_DEPLOY_BEFORE_MERGE=true\n",
|
|
10584
|
+
"description": "Smart deploy of SFDX sources to target org, with many useful options.\n\nIn case of errors, [tips to fix them](https://sfdx-hardis.cloudity.com/deployTips/) will be included within the error messages.\n\n### Quick Deploy\n\nIn case Pull Request comments are configured on the project, Quick Deploy will try to be used (equivalent to button Quick Deploy)\n\nIf you do not want to use QuickDeploy, define variable `SFDX_HARDIS_QUICK_DEPLOY=false`\n\n- [GitHub Pull Requests comments config](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-setup-integration-github/)\n- [Gitlab Merge requests notes config](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-setup-integration-gitlab/)\n- [Azure Pull Requests comments config](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-setup-integration-azure/)\n\n### Delta deployments\n\nTo activate delta deployments, define property `useDeltaDeployment: true` in `config/.sfdx-hardis.yml`.\n\nThis will activate delta deployments only between minor and major branches (major to major remains full deployment mode)\n\nIf you want to force the delta deployment into major orgs (ex: preprod to prod), this is not recommended but you can use env variable ALWAYS_ENABLE_DELTA_DEPLOYMENT=true\n\n### Smart Deployments Tests\n\nNot all metadata updates can break test classes, use Smart Deployment Tests to skip running test classes if ALL the following conditions are met:\n\n- Delta deployment is activated and applicable to the source and target branches\n- Delta deployed metadatas are all matching the list of **NOT_IMPACTING_METADATA_TYPES** (see below)\n- Target org is not a production org\n\nActivate Smart Deployment tests with:\n\n- env variable `USE_SMART_DEPLOYMENT_TESTS=true`\n- .sfdx-hardis.yml config property `useSmartDeploymentTests: true`\n\nDefaut list for **NOT_IMPACTING_METADATA_TYPES** (can be overridden with comma-separated list on env var NOT_IMPACTING_METADATA_TYPES)\n\n- Audience\n- AuraDefinitionBundle\n- Bot\n- BotVersion\n- ContentAsset\n- CustomObjectTranslation\n- CustomSite\n- CustomTab\n- Dashboard\n- ExperienceBundle\n- Flexipage\n- GlobalValueSetTranslation\n- Layout\n- LightningComponentBundle\n- NavigationMenu\n- ReportType\n- Report\n- SiteDotCom\n- StandardValueSetTranslation\n- StaticResource\n- Translations\n\nNote: if you want to disable Smart test classes for a PR, add **nosmart** in the text of the latest commit.\n\n### Dynamic deployment items / Overwrite management\n\nIf necessary,you can define the following files (that supports wildcards <members>*</members>):\n\n- `manifest/package-no-overwrite.xml`: Every element defined in this file will be deployed only if it is not existing yet in the target org (can be useful with ListView for example, if the client wants to update them directly in production org).\n - Can be overridden for a branch using .sfdx-hardis.yml property **packageNoOverwritePath** or environment variable PACKAGE_NO_OVERWRITE_PATH (for example, define: `packageNoOverwritePath: manifest/package-no-overwrite-main.xml` in config file `config/.sfdx-hardis.main.yml`)\n- `manifest/packageXmlOnChange.xml`: Every element defined in this file will not be deployed if it already has a similar definition in target org (can be useful for SharingRules for example)\n\nSee [Overwrite management documentation](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-config-overwrite/)\n\n### Deployment plan\n\nIf you need to deploy in multiple steps, you can define a property `deploymentPlan` in `.sfdx-hardis.yml`.\n\n- If a file `manifest/package.xml` is found, it will be placed with order 0 in the deployment plan\n\n- If a file `manifest/destructiveChanges.xml` is found, it will be executed as --postdestructivechanges\n\n- If env var `SFDX_HARDIS_DEPLOY_IGNORE_SPLIT_PACKAGES` is defined as `false` , split of package.xml will be applied\n\nExample:\n\n```yaml\ndeploymentPlan:\n packages:\n - label: Deploy Flow-Workflow\n packageXmlFile: manifest/splits/packageXmlFlowWorkflow.xml\n order: 6\n - label: Deploy SharingRules - Case\n packageXmlFile: manifest/splits/packageXmlSharingRulesCase.xml\n order: 30\n waitAfter: 30\n```\n\n### Packages installation\n\nYou can define a list of package to install during deployments using property `installedPackages`\n\n- If `INSTALL_PACKAGES_DURING_CHECK_DEPLOY` is defined as `true` (or `installPackagesDuringCheckDeploy: true` in `.sfdx-hardis.yml`), packages will be installed even if the command is called with `--check` mode\n- You can automatically update this property by listing all packages installed on an org using command `sf hardis:org:retrieve:packageconfig`\n\nExample:\n\n```yaml\ninstalledPackages:\n - Id: 0A35r0000009EtECAU\n SubscriberPackageId: 033i0000000LVMYAA4\n SubscriberPackageName: Marketing Cloud\n SubscriberPackageNamespace: et4ae5\n SubscriberPackageVersionId: 04t6S000000l11iQAA\n SubscriberPackageVersionName: Marketing Cloud\n SubscriberPackageVersionNumber: 236.0.0.2\n installOnScratchOrgs: true // true or false depending you want to install this package when creating a new scratch org\n installDuringDeployments: true // set as true to install package during a deployment using sf hardis:project:deploy:smart\n installationkey: xxxxxxxxxxxxxxxxxxxx // if the package has a password, write it in this property\n - Id: 0A35r0000009F9CCAU\n SubscriberPackageId: 033b0000000Pf2AAAS\n SubscriberPackageName: Declarative Lookup Rollup Summaries Tool\n SubscriberPackageNamespace: dlrs\n SubscriberPackageVersionId: 04t5p000001BmLvAAK\n SubscriberPackageVersionName: Release\n SubscriberPackageVersionNumber: 2.15.0.9\n installOnScratchOrgs: true\n installDuringDeployments: true\n```\n\n### Deployment pre or post commands\n\nYou can define command lines to run before or after a deployment, with parameters:\n\n- **id**: Unique Id for the command\n- **label**: Human readable label for the command\n- **skipIfError**: If defined to \"true\", the post-command won't be run if there is a deployment failure\n- **context**: Defines the context where the command will be run. Can be **all** (default), **check-deployment-only** or **process-deployment-only**\n- **runOnlyOnceByOrg**: If set to true, the command will be run only one time per org. A record of SfdxHardisTrace__c is stored to make that possible (it needs to be existing in target org)\n\nIf the commands are not the same depending on the target org, you can define them into **config/branches/.sfdx-hardis-BRANCHNAME.yml** instead of root **config/.sfdx-hardis.yml**\n\nExample:\n\n```yaml\ncommandsPreDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to the deployment user\n command: sf data update record --sobject User --where \"Username='deploy.github@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n\ncommandsPostDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to desired username\n command: sf data update record --sobject User --where \"Username='admin-yser@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n - id: someActionToRunJustOneTime\n label: And to run only if deployment is success\n command: sf sfdmu:run ...\n skipIfError: true\n context: process-deployment-only\n runOnlyOnceByOrg: true\n```\n\n### Automated fixes post deployments\n\n#### List view with scope Mine\n\nIf you defined a property **listViewsToSetToMine** in your .sfdx-hardis.yml, related ListViews will be set to Mine ( see command <https://sfdx-hardis.cloudity.com/hardis/org/fix/listviewmine/> )\n\nExample:\n\n```yaml\nlistViewsToSetToMine:\n - \"Operation__c:MyCurrentOperations\"\n - \"Operation__c:MyFinalizedOperations\"\n - \"Opportunity:Default_Opportunity_Pipeline\"\n - \"Opportunity:MyCurrentSubscriptions\"\n - \"Opportunity:MySubscriptions\"\n - \"Account:MyActivePartners\"\n```\n\nTroubleshooting: if you need to fix ListViews with mine from an alpine-linux based docker image, use this workaround in your dockerfile:\n\n```dockerfile\n# Do not use puppeteer embedded chromium\nRUN apk add --update --no-cache chromium\nENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=\"true\"\nENV CHROMIUM_PATH=\"/usr/bin/chromium-browser\"\nENV PUPPETEER_EXECUTABLE_PATH=\"$\\{CHROMIUM_PATH}\" // remove \\ before {\n```\n\nIf you need to increase the deployment waiting time (sf project deploy start --wait arg), you can define env variable SFDX_DEPLOY_WAIT_MINUTES (default: 120)\n\nIf you need notifications to be sent using the current Pull Request and not the one just merged ([see use case](https://github.com/hardisgroupcom/sfdx-hardis/issues/637#issuecomment-2230798904)), define env variable SFDX_HARDIS_DEPLOY_BEFORE_MERGE=true\n\nIf you want to disable the calculation and display of Flow Visual Git Diff in Pull Request comments, define variable **SFDX_DISABLE_FLOW_DIFF=true**\n",
|
|
10487
10585
|
"examples": [
|
|
10488
10586
|
"$ sf hardis:project:deploy:smart",
|
|
10489
10587
|
"$ sf hardis:project:deploy:smart --check",
|
|
@@ -10759,9 +10857,11 @@
|
|
|
10759
10857
|
]
|
|
10760
10858
|
},
|
|
10761
10859
|
"hardis:project:deploy:start": {
|
|
10762
|
-
"aliases": [
|
|
10860
|
+
"aliases": [
|
|
10861
|
+
"hardis:deploy:start"
|
|
10862
|
+
],
|
|
10763
10863
|
"args": {},
|
|
10764
|
-
"description": "sfdx-hardis wrapper for **sf project deploy start** that displays tips to solve deployment errors.\n\n[](https://nicolas.vuillamy.fr/assisted-solving-of-salesforce-deployments-errors-47f3666a9ed0)\n\n[See documentation of Salesforce command](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_project_commands_unified.htm#cli_reference_project_deploy_start_unified)\n\n### Deployment pre or post commands\n\nYou can define command lines to run before or after a deployment, with parameters:\n\n- **id**: Unique Id for the command\n- **label**: Human readable label for the command\n- **skipIfError**: If defined to \"true\", the post-command won't be run if there is a deployment failure\n- **context**: Defines the context where the command will be run. Can be **all** (default), **check-deployment-only** or **process-deployment-only**\n- **runOnlyOnceByOrg**: If set to true, the command will be run only one time per org. A record of SfdxHardisTrace__c is stored to make that possible (it needs to be existing in target org)\n\nIf the commands are not the same depending on the target org, you can define them into **config/branches/.sfdx-hardis-BRANCHNAME.yml** instead of root **config/.sfdx-hardis.yml**\n\nExample:\n\n```yaml\ncommandsPreDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to the deployment user\n command: sf data update record --sobject User --where \"Username='deploy.github@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n\ncommandsPostDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to desired username\n command: sf data update record --sobject User --where \"Username='admin-yser@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n - id: someActionToRunJustOneTime\n label: And to run only if deployment is success\n command: sf sfdmu:run ...\n skipIfError: true\n context: process-deployment-only\n runOnlyOnceByOrg: true\n```\n",
|
|
10864
|
+
"description": "sfdx-hardis wrapper for **sf project deploy start** that displays tips to solve deployment errors.\n\nNote: Use **--json** argument to have better results\n\n[](https://nicolas.vuillamy.fr/assisted-solving-of-salesforce-deployments-errors-47f3666a9ed0)\n\n[See documentation of Salesforce command](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_project_commands_unified.htm#cli_reference_project_deploy_start_unified)\n\n### Deployment pre or post commands\n\nYou can define command lines to run before or after a deployment, with parameters:\n\n- **id**: Unique Id for the command\n- **label**: Human readable label for the command\n- **skipIfError**: If defined to \"true\", the post-command won't be run if there is a deployment failure\n- **context**: Defines the context where the command will be run. Can be **all** (default), **check-deployment-only** or **process-deployment-only**\n- **runOnlyOnceByOrg**: If set to true, the command will be run only one time per org. A record of SfdxHardisTrace__c is stored to make that possible (it needs to be existing in target org)\n\nIf the commands are not the same depending on the target org, you can define them into **config/branches/.sfdx-hardis-BRANCHNAME.yml** instead of root **config/.sfdx-hardis.yml**\n\nExample:\n\n```yaml\ncommandsPreDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to the deployment user\n command: sf data update record --sobject User --where \"Username='deploy.github@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n\ncommandsPostDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to desired username\n command: sf data update record --sobject User --where \"Username='admin-yser@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n - id: someActionToRunJustOneTime\n label: And to run only if deployment is success\n command: sf sfdmu:run ...\n skipIfError: true\n context: process-deployment-only\n runOnlyOnceByOrg: true\n```\n",
|
|
10765
10865
|
"flags": {
|
|
10766
10866
|
"json": {
|
|
10767
10867
|
"description": "Format output as json.",
|
|
@@ -10969,7 +11069,14 @@
|
|
|
10969
11069
|
"deploy",
|
|
10970
11070
|
"start.js"
|
|
10971
11071
|
],
|
|
10972
|
-
"aliasPermutations": [
|
|
11072
|
+
"aliasPermutations": [
|
|
11073
|
+
"hardis:deploy:start",
|
|
11074
|
+
"deploy:hardis:start",
|
|
11075
|
+
"deploy:start:hardis",
|
|
11076
|
+
"hardis:start:deploy",
|
|
11077
|
+
"start:hardis:deploy",
|
|
11078
|
+
"start:deploy:hardis"
|
|
11079
|
+
],
|
|
10973
11080
|
"permutations": [
|
|
10974
11081
|
"hardis:project:deploy:start",
|
|
10975
11082
|
"project:hardis:deploy:start",
|
|
@@ -10998,9 +11105,11 @@
|
|
|
10998
11105
|
]
|
|
10999
11106
|
},
|
|
11000
11107
|
"hardis:project:deploy:validate": {
|
|
11001
|
-
"aliases": [
|
|
11108
|
+
"aliases": [
|
|
11109
|
+
"hardis:deploy:validate"
|
|
11110
|
+
],
|
|
11002
11111
|
"args": {},
|
|
11003
|
-
"description": "sfdx-hardis wrapper for **sf project deploy validate** that displays tips to solve deployment errors.\n\n[](https://nicolas.vuillamy.fr/assisted-solving-of-salesforce-deployments-errors-47f3666a9ed0)\n\n[See documentation of Salesforce command](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_project_commands_unified.htm#cli_reference_project_deploy_validate_unified)\n\n### Deployment pre or post commands\n\nYou can define command lines to run before or after a deployment, with parameters:\n\n- **id**: Unique Id for the command\n- **label**: Human readable label for the command\n- **skipIfError**: If defined to \"true\", the post-command won't be run if there is a deployment failure\n- **context**: Defines the context where the command will be run. Can be **all** (default), **check-deployment-only** or **process-deployment-only**\n- **runOnlyOnceByOrg**: If set to true, the command will be run only one time per org. A record of SfdxHardisTrace__c is stored to make that possible (it needs to be existing in target org)\n\nIf the commands are not the same depending on the target org, you can define them into **config/branches/.sfdx-hardis-BRANCHNAME.yml** instead of root **config/.sfdx-hardis.yml**\n\nExample:\n\n```yaml\ncommandsPreDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to the deployment user\n command: sf data update record --sobject User --where \"Username='deploy.github@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n\ncommandsPostDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to desired username\n command: sf data update record --sobject User --where \"Username='admin-yser@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n - id: someActionToRunJustOneTime\n label: And to run only if deployment is success\n command: sf sfdmu:run ...\n skipIfError: true\n context: process-deployment-only\n runOnlyOnceByOrg: true\n```\n",
|
|
11112
|
+
"description": "sfdx-hardis wrapper for **sf project deploy validate** that displays tips to solve deployment errors.\n\nNote: Use **--json** argument to have better results\n\n[](https://nicolas.vuillamy.fr/assisted-solving-of-salesforce-deployments-errors-47f3666a9ed0)\n\n[See documentation of Salesforce command](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_project_commands_unified.htm#cli_reference_project_deploy_validate_unified)\n\n### Deployment pre or post commands\n\nYou can define command lines to run before or after a deployment, with parameters:\n\n- **id**: Unique Id for the command\n- **label**: Human readable label for the command\n- **skipIfError**: If defined to \"true\", the post-command won't be run if there is a deployment failure\n- **context**: Defines the context where the command will be run. Can be **all** (default), **check-deployment-only** or **process-deployment-only**\n- **runOnlyOnceByOrg**: If set to true, the command will be run only one time per org. A record of SfdxHardisTrace__c is stored to make that possible (it needs to be existing in target org)\n\nIf the commands are not the same depending on the target org, you can define them into **config/branches/.sfdx-hardis-BRANCHNAME.yml** instead of root **config/.sfdx-hardis.yml**\n\nExample:\n\n```yaml\ncommandsPreDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to the deployment user\n command: sf data update record --sobject User --where \"Username='deploy.github@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n\ncommandsPostDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to desired username\n command: sf data update record --sobject User --where \"Username='admin-yser@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n - id: someActionToRunJustOneTime\n label: And to run only if deployment is success\n command: sf sfdmu:run ...\n skipIfError: true\n context: process-deployment-only\n runOnlyOnceByOrg: true\n```\n",
|
|
11004
11113
|
"flags": {
|
|
11005
11114
|
"json": {
|
|
11006
11115
|
"description": "Format output as json.",
|
|
@@ -11208,7 +11317,14 @@
|
|
|
11208
11317
|
"deploy",
|
|
11209
11318
|
"validate.js"
|
|
11210
11319
|
],
|
|
11211
|
-
"aliasPermutations": [
|
|
11320
|
+
"aliasPermutations": [
|
|
11321
|
+
"hardis:deploy:validate",
|
|
11322
|
+
"deploy:hardis:validate",
|
|
11323
|
+
"deploy:validate:hardis",
|
|
11324
|
+
"hardis:validate:deploy",
|
|
11325
|
+
"validate:hardis:deploy",
|
|
11326
|
+
"validate:deploy:hardis"
|
|
11327
|
+
],
|
|
11212
11328
|
"permutations": [
|
|
11213
11329
|
"hardis:project:deploy:validate",
|
|
11214
11330
|
"project:hardis:deploy:validate",
|
|
@@ -11451,6 +11567,104 @@
|
|
|
11451
11567
|
"v53flexipages:fix:project:hardis"
|
|
11452
11568
|
]
|
|
11453
11569
|
},
|
|
11570
|
+
"hardis:project:generate:flow-git-diff": {
|
|
11571
|
+
"aliases": [],
|
|
11572
|
+
"args": {},
|
|
11573
|
+
"description": "Generate Flow Visual Git Diff markdown between 2 commits\n\nThis command requires @mermaid-js/mermaid-cli to be installed.\n\nRun `npm install @mermaid-js/mermaid-cli --global`\n ",
|
|
11574
|
+
"examples": [
|
|
11575
|
+
"$ sf hardis:project:generate:flow-git-diff"
|
|
11576
|
+
],
|
|
11577
|
+
"flags": {
|
|
11578
|
+
"json": {
|
|
11579
|
+
"description": "Format output as json.",
|
|
11580
|
+
"helpGroup": "GLOBAL",
|
|
11581
|
+
"name": "json",
|
|
11582
|
+
"allowNo": false,
|
|
11583
|
+
"type": "boolean"
|
|
11584
|
+
},
|
|
11585
|
+
"flags-dir": {
|
|
11586
|
+
"helpGroup": "GLOBAL",
|
|
11587
|
+
"name": "flags-dir",
|
|
11588
|
+
"summary": "Import flag values from a directory.",
|
|
11589
|
+
"hasDynamicHelp": false,
|
|
11590
|
+
"multiple": false,
|
|
11591
|
+
"type": "option"
|
|
11592
|
+
},
|
|
11593
|
+
"flow": {
|
|
11594
|
+
"description": "Path to flow file (will be prompted if not set)",
|
|
11595
|
+
"name": "flow",
|
|
11596
|
+
"hasDynamicHelp": false,
|
|
11597
|
+
"multiple": false,
|
|
11598
|
+
"type": "option"
|
|
11599
|
+
},
|
|
11600
|
+
"debug": {
|
|
11601
|
+
"char": "d",
|
|
11602
|
+
"description": "Activate debug mode (more logs)",
|
|
11603
|
+
"name": "debug",
|
|
11604
|
+
"allowNo": false,
|
|
11605
|
+
"type": "boolean"
|
|
11606
|
+
},
|
|
11607
|
+
"websocket": {
|
|
11608
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11609
|
+
"name": "websocket",
|
|
11610
|
+
"hasDynamicHelp": false,
|
|
11611
|
+
"multiple": false,
|
|
11612
|
+
"type": "option"
|
|
11613
|
+
},
|
|
11614
|
+
"skipauth": {
|
|
11615
|
+
"description": "Skip authentication check when a default username is required",
|
|
11616
|
+
"name": "skipauth",
|
|
11617
|
+
"allowNo": false,
|
|
11618
|
+
"type": "boolean"
|
|
11619
|
+
}
|
|
11620
|
+
},
|
|
11621
|
+
"hasDynamicHelp": false,
|
|
11622
|
+
"hiddenAliases": [],
|
|
11623
|
+
"id": "hardis:project:generate:flow-git-diff",
|
|
11624
|
+
"pluginAlias": "sfdx-hardis",
|
|
11625
|
+
"pluginName": "sfdx-hardis",
|
|
11626
|
+
"pluginType": "core",
|
|
11627
|
+
"strict": true,
|
|
11628
|
+
"enableJsonFlag": true,
|
|
11629
|
+
"title": "Generate Flow Visual Gif Diff",
|
|
11630
|
+
"requiresProject": true,
|
|
11631
|
+
"isESM": true,
|
|
11632
|
+
"relativePath": [
|
|
11633
|
+
"lib",
|
|
11634
|
+
"commands",
|
|
11635
|
+
"hardis",
|
|
11636
|
+
"project",
|
|
11637
|
+
"generate",
|
|
11638
|
+
"flow-git-diff.js"
|
|
11639
|
+
],
|
|
11640
|
+
"aliasPermutations": [],
|
|
11641
|
+
"permutations": [
|
|
11642
|
+
"hardis:project:generate:flow-git-diff",
|
|
11643
|
+
"project:hardis:generate:flow-git-diff",
|
|
11644
|
+
"project:generate:hardis:flow-git-diff",
|
|
11645
|
+
"project:generate:flow-git-diff:hardis",
|
|
11646
|
+
"hardis:generate:project:flow-git-diff",
|
|
11647
|
+
"generate:hardis:project:flow-git-diff",
|
|
11648
|
+
"generate:project:hardis:flow-git-diff",
|
|
11649
|
+
"generate:project:flow-git-diff:hardis",
|
|
11650
|
+
"hardis:generate:flow-git-diff:project",
|
|
11651
|
+
"generate:hardis:flow-git-diff:project",
|
|
11652
|
+
"generate:flow-git-diff:hardis:project",
|
|
11653
|
+
"generate:flow-git-diff:project:hardis",
|
|
11654
|
+
"hardis:project:flow-git-diff:generate",
|
|
11655
|
+
"project:hardis:flow-git-diff:generate",
|
|
11656
|
+
"project:flow-git-diff:hardis:generate",
|
|
11657
|
+
"project:flow-git-diff:generate:hardis",
|
|
11658
|
+
"hardis:flow-git-diff:project:generate",
|
|
11659
|
+
"flow-git-diff:hardis:project:generate",
|
|
11660
|
+
"flow-git-diff:project:hardis:generate",
|
|
11661
|
+
"flow-git-diff:project:generate:hardis",
|
|
11662
|
+
"hardis:flow-git-diff:generate:project",
|
|
11663
|
+
"flow-git-diff:hardis:generate:project",
|
|
11664
|
+
"flow-git-diff:generate:hardis:project",
|
|
11665
|
+
"flow-git-diff:generate:project:hardis"
|
|
11666
|
+
]
|
|
11667
|
+
},
|
|
11454
11668
|
"hardis:project:generate:gitdelta": {
|
|
11455
11669
|
"aliases": [],
|
|
11456
11670
|
"args": {},
|
|
@@ -12201,12 +12415,12 @@
|
|
|
12201
12415
|
"view:pool:scratch:hardis"
|
|
12202
12416
|
]
|
|
12203
12417
|
},
|
|
12204
|
-
"hardis:
|
|
12418
|
+
"hardis:org:retrieve:sources:analytics": {
|
|
12205
12419
|
"aliases": [],
|
|
12206
12420
|
"args": {},
|
|
12207
|
-
"description": "
|
|
12421
|
+
"description": "Retrieve all CRM Analytics sources from an org, with workarounds for SFDX bugs",
|
|
12208
12422
|
"examples": [
|
|
12209
|
-
"$ sf hardis:
|
|
12423
|
+
"$ sf hardis:org:retrieve:sources:analytics"
|
|
12210
12424
|
],
|
|
12211
12425
|
"flags": {
|
|
12212
12426
|
"json": {
|
|
@@ -12224,276 +12438,16 @@
|
|
|
12224
12438
|
"multiple": false,
|
|
12225
12439
|
"type": "option"
|
|
12226
12440
|
},
|
|
12227
|
-
"
|
|
12228
|
-
"char": "
|
|
12229
|
-
"description": "
|
|
12230
|
-
"name": "
|
|
12441
|
+
"debug": {
|
|
12442
|
+
"char": "d",
|
|
12443
|
+
"description": "Activate debug mode (more logs)",
|
|
12444
|
+
"name": "debug",
|
|
12231
12445
|
"allowNo": false,
|
|
12232
12446
|
"type": "boolean"
|
|
12233
12447
|
},
|
|
12234
|
-
"
|
|
12235
|
-
"
|
|
12236
|
-
"
|
|
12237
|
-
"name": "deploydir",
|
|
12238
|
-
"default": ".",
|
|
12239
|
-
"hasDynamicHelp": false,
|
|
12240
|
-
"multiple": false,
|
|
12241
|
-
"type": "option"
|
|
12242
|
-
},
|
|
12243
|
-
"packagexml": {
|
|
12244
|
-
"char": "p",
|
|
12245
|
-
"description": "Path to package.xml file to deploy",
|
|
12246
|
-
"name": "packagexml",
|
|
12247
|
-
"hasDynamicHelp": false,
|
|
12248
|
-
"multiple": false,
|
|
12249
|
-
"type": "option"
|
|
12250
|
-
},
|
|
12251
|
-
"filter": {
|
|
12252
|
-
"char": "f",
|
|
12253
|
-
"description": "Filter metadatas before deploying",
|
|
12254
|
-
"name": "filter",
|
|
12255
|
-
"allowNo": false,
|
|
12256
|
-
"type": "boolean"
|
|
12257
|
-
},
|
|
12258
|
-
"destructivepackagexml": {
|
|
12259
|
-
"char": "k",
|
|
12260
|
-
"description": "Path to destructiveChanges.xml file to deploy",
|
|
12261
|
-
"name": "destructivepackagexml",
|
|
12262
|
-
"hasDynamicHelp": false,
|
|
12263
|
-
"multiple": false,
|
|
12264
|
-
"type": "option"
|
|
12265
|
-
},
|
|
12266
|
-
"testlevel": {
|
|
12267
|
-
"char": "l",
|
|
12268
|
-
"description": "Level of tests to apply to validate deployment",
|
|
12269
|
-
"name": "testlevel",
|
|
12270
|
-
"default": "RunLocalTests",
|
|
12271
|
-
"hasDynamicHelp": false,
|
|
12272
|
-
"multiple": false,
|
|
12273
|
-
"options": [
|
|
12274
|
-
"NoTestRun",
|
|
12275
|
-
"RunSpecifiedTests",
|
|
12276
|
-
"RunLocalTests",
|
|
12277
|
-
"RunAllTestsInOrg"
|
|
12278
|
-
],
|
|
12279
|
-
"type": "option"
|
|
12280
|
-
},
|
|
12281
|
-
"debug": {
|
|
12282
|
-
"char": "d",
|
|
12283
|
-
"description": "Activate debug mode (more logs)",
|
|
12284
|
-
"name": "debug",
|
|
12285
|
-
"allowNo": false,
|
|
12286
|
-
"type": "boolean"
|
|
12287
|
-
},
|
|
12288
|
-
"websocket": {
|
|
12289
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
12290
|
-
"name": "websocket",
|
|
12291
|
-
"hasDynamicHelp": false,
|
|
12292
|
-
"multiple": false,
|
|
12293
|
-
"type": "option"
|
|
12294
|
-
},
|
|
12295
|
-
"skipauth": {
|
|
12296
|
-
"description": "Skip authentication check when a default username is required",
|
|
12297
|
-
"name": "skipauth",
|
|
12298
|
-
"allowNo": false,
|
|
12299
|
-
"type": "boolean"
|
|
12300
|
-
},
|
|
12301
|
-
"target-org": {
|
|
12302
|
-
"aliases": [
|
|
12303
|
-
"targetusername",
|
|
12304
|
-
"u"
|
|
12305
|
-
],
|
|
12306
|
-
"char": "o",
|
|
12307
|
-
"deprecateAliases": true,
|
|
12308
|
-
"name": "target-org",
|
|
12309
|
-
"noCacheDefault": true,
|
|
12310
|
-
"required": true,
|
|
12311
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
12312
|
-
"hasDynamicHelp": true,
|
|
12313
|
-
"multiple": false,
|
|
12314
|
-
"type": "option"
|
|
12315
|
-
}
|
|
12316
|
-
},
|
|
12317
|
-
"hasDynamicHelp": true,
|
|
12318
|
-
"hiddenAliases": [],
|
|
12319
|
-
"id": "hardis:project:deploy:sources:metadata",
|
|
12320
|
-
"pluginAlias": "sfdx-hardis",
|
|
12321
|
-
"pluginName": "sfdx-hardis",
|
|
12322
|
-
"pluginType": "core",
|
|
12323
|
-
"strict": true,
|
|
12324
|
-
"enableJsonFlag": true,
|
|
12325
|
-
"title": "Deploy metadata sources to org",
|
|
12326
|
-
"requiresProject": false,
|
|
12327
|
-
"requiresSfdxPlugins": [
|
|
12328
|
-
"sfdx-essentials"
|
|
12329
|
-
],
|
|
12330
|
-
"isESM": true,
|
|
12331
|
-
"relativePath": [
|
|
12332
|
-
"lib",
|
|
12333
|
-
"commands",
|
|
12334
|
-
"hardis",
|
|
12335
|
-
"project",
|
|
12336
|
-
"deploy",
|
|
12337
|
-
"sources",
|
|
12338
|
-
"metadata.js"
|
|
12339
|
-
],
|
|
12340
|
-
"aliasPermutations": [],
|
|
12341
|
-
"permutations": [
|
|
12342
|
-
"hardis:project:deploy:sources:metadata",
|
|
12343
|
-
"project:hardis:deploy:sources:metadata",
|
|
12344
|
-
"project:deploy:hardis:sources:metadata",
|
|
12345
|
-
"project:deploy:sources:hardis:metadata",
|
|
12346
|
-
"project:deploy:sources:metadata:hardis",
|
|
12347
|
-
"hardis:deploy:project:sources:metadata",
|
|
12348
|
-
"deploy:hardis:project:sources:metadata",
|
|
12349
|
-
"deploy:project:hardis:sources:metadata",
|
|
12350
|
-
"deploy:project:sources:hardis:metadata",
|
|
12351
|
-
"deploy:project:sources:metadata:hardis",
|
|
12352
|
-
"hardis:deploy:sources:project:metadata",
|
|
12353
|
-
"deploy:hardis:sources:project:metadata",
|
|
12354
|
-
"deploy:sources:hardis:project:metadata",
|
|
12355
|
-
"deploy:sources:project:hardis:metadata",
|
|
12356
|
-
"deploy:sources:project:metadata:hardis",
|
|
12357
|
-
"hardis:deploy:sources:metadata:project",
|
|
12358
|
-
"deploy:hardis:sources:metadata:project",
|
|
12359
|
-
"deploy:sources:hardis:metadata:project",
|
|
12360
|
-
"deploy:sources:metadata:hardis:project",
|
|
12361
|
-
"deploy:sources:metadata:project:hardis",
|
|
12362
|
-
"hardis:project:sources:deploy:metadata",
|
|
12363
|
-
"project:hardis:sources:deploy:metadata",
|
|
12364
|
-
"project:sources:hardis:deploy:metadata",
|
|
12365
|
-
"project:sources:deploy:hardis:metadata",
|
|
12366
|
-
"project:sources:deploy:metadata:hardis",
|
|
12367
|
-
"hardis:sources:project:deploy:metadata",
|
|
12368
|
-
"sources:hardis:project:deploy:metadata",
|
|
12369
|
-
"sources:project:hardis:deploy:metadata",
|
|
12370
|
-
"sources:project:deploy:hardis:metadata",
|
|
12371
|
-
"sources:project:deploy:metadata:hardis",
|
|
12372
|
-
"hardis:sources:deploy:project:metadata",
|
|
12373
|
-
"sources:hardis:deploy:project:metadata",
|
|
12374
|
-
"sources:deploy:hardis:project:metadata",
|
|
12375
|
-
"sources:deploy:project:hardis:metadata",
|
|
12376
|
-
"sources:deploy:project:metadata:hardis",
|
|
12377
|
-
"hardis:sources:deploy:metadata:project",
|
|
12378
|
-
"sources:hardis:deploy:metadata:project",
|
|
12379
|
-
"sources:deploy:hardis:metadata:project",
|
|
12380
|
-
"sources:deploy:metadata:hardis:project",
|
|
12381
|
-
"sources:deploy:metadata:project:hardis",
|
|
12382
|
-
"hardis:project:sources:metadata:deploy",
|
|
12383
|
-
"project:hardis:sources:metadata:deploy",
|
|
12384
|
-
"project:sources:hardis:metadata:deploy",
|
|
12385
|
-
"project:sources:metadata:hardis:deploy",
|
|
12386
|
-
"project:sources:metadata:deploy:hardis",
|
|
12387
|
-
"hardis:sources:project:metadata:deploy",
|
|
12388
|
-
"sources:hardis:project:metadata:deploy",
|
|
12389
|
-
"sources:project:hardis:metadata:deploy",
|
|
12390
|
-
"sources:project:metadata:hardis:deploy",
|
|
12391
|
-
"sources:project:metadata:deploy:hardis",
|
|
12392
|
-
"hardis:sources:metadata:project:deploy",
|
|
12393
|
-
"sources:hardis:metadata:project:deploy",
|
|
12394
|
-
"sources:metadata:hardis:project:deploy",
|
|
12395
|
-
"sources:metadata:project:hardis:deploy",
|
|
12396
|
-
"sources:metadata:project:deploy:hardis",
|
|
12397
|
-
"hardis:sources:metadata:deploy:project",
|
|
12398
|
-
"sources:hardis:metadata:deploy:project",
|
|
12399
|
-
"sources:metadata:hardis:deploy:project",
|
|
12400
|
-
"sources:metadata:deploy:hardis:project",
|
|
12401
|
-
"sources:metadata:deploy:project:hardis",
|
|
12402
|
-
"hardis:project:deploy:metadata:sources",
|
|
12403
|
-
"project:hardis:deploy:metadata:sources",
|
|
12404
|
-
"project:deploy:hardis:metadata:sources",
|
|
12405
|
-
"project:deploy:metadata:hardis:sources",
|
|
12406
|
-
"project:deploy:metadata:sources:hardis",
|
|
12407
|
-
"hardis:deploy:project:metadata:sources",
|
|
12408
|
-
"deploy:hardis:project:metadata:sources",
|
|
12409
|
-
"deploy:project:hardis:metadata:sources",
|
|
12410
|
-
"deploy:project:metadata:hardis:sources",
|
|
12411
|
-
"deploy:project:metadata:sources:hardis",
|
|
12412
|
-
"hardis:deploy:metadata:project:sources",
|
|
12413
|
-
"deploy:hardis:metadata:project:sources",
|
|
12414
|
-
"deploy:metadata:hardis:project:sources",
|
|
12415
|
-
"deploy:metadata:project:hardis:sources",
|
|
12416
|
-
"deploy:metadata:project:sources:hardis",
|
|
12417
|
-
"hardis:deploy:metadata:sources:project",
|
|
12418
|
-
"deploy:hardis:metadata:sources:project",
|
|
12419
|
-
"deploy:metadata:hardis:sources:project",
|
|
12420
|
-
"deploy:metadata:sources:hardis:project",
|
|
12421
|
-
"deploy:metadata:sources:project:hardis",
|
|
12422
|
-
"hardis:project:metadata:deploy:sources",
|
|
12423
|
-
"project:hardis:metadata:deploy:sources",
|
|
12424
|
-
"project:metadata:hardis:deploy:sources",
|
|
12425
|
-
"project:metadata:deploy:hardis:sources",
|
|
12426
|
-
"project:metadata:deploy:sources:hardis",
|
|
12427
|
-
"hardis:metadata:project:deploy:sources",
|
|
12428
|
-
"metadata:hardis:project:deploy:sources",
|
|
12429
|
-
"metadata:project:hardis:deploy:sources",
|
|
12430
|
-
"metadata:project:deploy:hardis:sources",
|
|
12431
|
-
"metadata:project:deploy:sources:hardis",
|
|
12432
|
-
"hardis:metadata:deploy:project:sources",
|
|
12433
|
-
"metadata:hardis:deploy:project:sources",
|
|
12434
|
-
"metadata:deploy:hardis:project:sources",
|
|
12435
|
-
"metadata:deploy:project:hardis:sources",
|
|
12436
|
-
"metadata:deploy:project:sources:hardis",
|
|
12437
|
-
"hardis:metadata:deploy:sources:project",
|
|
12438
|
-
"metadata:hardis:deploy:sources:project",
|
|
12439
|
-
"metadata:deploy:hardis:sources:project",
|
|
12440
|
-
"metadata:deploy:sources:hardis:project",
|
|
12441
|
-
"metadata:deploy:sources:project:hardis",
|
|
12442
|
-
"hardis:project:metadata:sources:deploy",
|
|
12443
|
-
"project:hardis:metadata:sources:deploy",
|
|
12444
|
-
"project:metadata:hardis:sources:deploy",
|
|
12445
|
-
"project:metadata:sources:hardis:deploy",
|
|
12446
|
-
"project:metadata:sources:deploy:hardis",
|
|
12447
|
-
"hardis:metadata:project:sources:deploy",
|
|
12448
|
-
"metadata:hardis:project:sources:deploy",
|
|
12449
|
-
"metadata:project:hardis:sources:deploy",
|
|
12450
|
-
"metadata:project:sources:hardis:deploy",
|
|
12451
|
-
"metadata:project:sources:deploy:hardis",
|
|
12452
|
-
"hardis:metadata:sources:project:deploy",
|
|
12453
|
-
"metadata:hardis:sources:project:deploy",
|
|
12454
|
-
"metadata:sources:hardis:project:deploy",
|
|
12455
|
-
"metadata:sources:project:hardis:deploy",
|
|
12456
|
-
"metadata:sources:project:deploy:hardis",
|
|
12457
|
-
"hardis:metadata:sources:deploy:project",
|
|
12458
|
-
"metadata:hardis:sources:deploy:project",
|
|
12459
|
-
"metadata:sources:hardis:deploy:project",
|
|
12460
|
-
"metadata:sources:deploy:hardis:project",
|
|
12461
|
-
"metadata:sources:deploy:project:hardis"
|
|
12462
|
-
]
|
|
12463
|
-
},
|
|
12464
|
-
"hardis:org:retrieve:sources:analytics": {
|
|
12465
|
-
"aliases": [],
|
|
12466
|
-
"args": {},
|
|
12467
|
-
"description": "Retrieve all CRM Analytics sources from an org, with workarounds for SFDX bugs",
|
|
12468
|
-
"examples": [
|
|
12469
|
-
"$ sf hardis:org:retrieve:sources:analytics"
|
|
12470
|
-
],
|
|
12471
|
-
"flags": {
|
|
12472
|
-
"json": {
|
|
12473
|
-
"description": "Format output as json.",
|
|
12474
|
-
"helpGroup": "GLOBAL",
|
|
12475
|
-
"name": "json",
|
|
12476
|
-
"allowNo": false,
|
|
12477
|
-
"type": "boolean"
|
|
12478
|
-
},
|
|
12479
|
-
"flags-dir": {
|
|
12480
|
-
"helpGroup": "GLOBAL",
|
|
12481
|
-
"name": "flags-dir",
|
|
12482
|
-
"summary": "Import flag values from a directory.",
|
|
12483
|
-
"hasDynamicHelp": false,
|
|
12484
|
-
"multiple": false,
|
|
12485
|
-
"type": "option"
|
|
12486
|
-
},
|
|
12487
|
-
"debug": {
|
|
12488
|
-
"char": "d",
|
|
12489
|
-
"description": "Activate debug mode (more logs)",
|
|
12490
|
-
"name": "debug",
|
|
12491
|
-
"allowNo": false,
|
|
12492
|
-
"type": "boolean"
|
|
12493
|
-
},
|
|
12494
|
-
"websocket": {
|
|
12495
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
12496
|
-
"name": "websocket",
|
|
12448
|
+
"websocket": {
|
|
12449
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
12450
|
+
"name": "websocket",
|
|
12497
12451
|
"hasDynamicHelp": false,
|
|
12498
12452
|
"multiple": false,
|
|
12499
12453
|
"type": "option"
|
|
@@ -13648,7 +13602,267 @@
|
|
|
13648
13602
|
"retrofit:sources:retrieve:hardis:org",
|
|
13649
13603
|
"retrofit:sources:retrieve:org:hardis"
|
|
13650
13604
|
]
|
|
13605
|
+
},
|
|
13606
|
+
"hardis:project:deploy:sources:metadata": {
|
|
13607
|
+
"aliases": [],
|
|
13608
|
+
"args": {},
|
|
13609
|
+
"description": "Deploy metadatas to source org",
|
|
13610
|
+
"examples": [
|
|
13611
|
+
"$ sf hardis:project:deploy:sources:metadata"
|
|
13612
|
+
],
|
|
13613
|
+
"flags": {
|
|
13614
|
+
"json": {
|
|
13615
|
+
"description": "Format output as json.",
|
|
13616
|
+
"helpGroup": "GLOBAL",
|
|
13617
|
+
"name": "json",
|
|
13618
|
+
"allowNo": false,
|
|
13619
|
+
"type": "boolean"
|
|
13620
|
+
},
|
|
13621
|
+
"flags-dir": {
|
|
13622
|
+
"helpGroup": "GLOBAL",
|
|
13623
|
+
"name": "flags-dir",
|
|
13624
|
+
"summary": "Import flag values from a directory.",
|
|
13625
|
+
"hasDynamicHelp": false,
|
|
13626
|
+
"multiple": false,
|
|
13627
|
+
"type": "option"
|
|
13628
|
+
},
|
|
13629
|
+
"check": {
|
|
13630
|
+
"char": "c",
|
|
13631
|
+
"description": "Only checks the deployment, there is no impact on target org",
|
|
13632
|
+
"name": "check",
|
|
13633
|
+
"allowNo": false,
|
|
13634
|
+
"type": "boolean"
|
|
13635
|
+
},
|
|
13636
|
+
"deploydir": {
|
|
13637
|
+
"char": "x",
|
|
13638
|
+
"description": "Deploy directory",
|
|
13639
|
+
"name": "deploydir",
|
|
13640
|
+
"default": ".",
|
|
13641
|
+
"hasDynamicHelp": false,
|
|
13642
|
+
"multiple": false,
|
|
13643
|
+
"type": "option"
|
|
13644
|
+
},
|
|
13645
|
+
"packagexml": {
|
|
13646
|
+
"char": "p",
|
|
13647
|
+
"description": "Path to package.xml file to deploy",
|
|
13648
|
+
"name": "packagexml",
|
|
13649
|
+
"hasDynamicHelp": false,
|
|
13650
|
+
"multiple": false,
|
|
13651
|
+
"type": "option"
|
|
13652
|
+
},
|
|
13653
|
+
"filter": {
|
|
13654
|
+
"char": "f",
|
|
13655
|
+
"description": "Filter metadatas before deploying",
|
|
13656
|
+
"name": "filter",
|
|
13657
|
+
"allowNo": false,
|
|
13658
|
+
"type": "boolean"
|
|
13659
|
+
},
|
|
13660
|
+
"destructivepackagexml": {
|
|
13661
|
+
"char": "k",
|
|
13662
|
+
"description": "Path to destructiveChanges.xml file to deploy",
|
|
13663
|
+
"name": "destructivepackagexml",
|
|
13664
|
+
"hasDynamicHelp": false,
|
|
13665
|
+
"multiple": false,
|
|
13666
|
+
"type": "option"
|
|
13667
|
+
},
|
|
13668
|
+
"testlevel": {
|
|
13669
|
+
"char": "l",
|
|
13670
|
+
"description": "Level of tests to apply to validate deployment",
|
|
13671
|
+
"name": "testlevel",
|
|
13672
|
+
"default": "RunLocalTests",
|
|
13673
|
+
"hasDynamicHelp": false,
|
|
13674
|
+
"multiple": false,
|
|
13675
|
+
"options": [
|
|
13676
|
+
"NoTestRun",
|
|
13677
|
+
"RunSpecifiedTests",
|
|
13678
|
+
"RunLocalTests",
|
|
13679
|
+
"RunAllTestsInOrg"
|
|
13680
|
+
],
|
|
13681
|
+
"type": "option"
|
|
13682
|
+
},
|
|
13683
|
+
"debug": {
|
|
13684
|
+
"char": "d",
|
|
13685
|
+
"description": "Activate debug mode (more logs)",
|
|
13686
|
+
"name": "debug",
|
|
13687
|
+
"allowNo": false,
|
|
13688
|
+
"type": "boolean"
|
|
13689
|
+
},
|
|
13690
|
+
"websocket": {
|
|
13691
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
13692
|
+
"name": "websocket",
|
|
13693
|
+
"hasDynamicHelp": false,
|
|
13694
|
+
"multiple": false,
|
|
13695
|
+
"type": "option"
|
|
13696
|
+
},
|
|
13697
|
+
"skipauth": {
|
|
13698
|
+
"description": "Skip authentication check when a default username is required",
|
|
13699
|
+
"name": "skipauth",
|
|
13700
|
+
"allowNo": false,
|
|
13701
|
+
"type": "boolean"
|
|
13702
|
+
},
|
|
13703
|
+
"target-org": {
|
|
13704
|
+
"aliases": [
|
|
13705
|
+
"targetusername",
|
|
13706
|
+
"u"
|
|
13707
|
+
],
|
|
13708
|
+
"char": "o",
|
|
13709
|
+
"deprecateAliases": true,
|
|
13710
|
+
"name": "target-org",
|
|
13711
|
+
"noCacheDefault": true,
|
|
13712
|
+
"required": true,
|
|
13713
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
13714
|
+
"hasDynamicHelp": true,
|
|
13715
|
+
"multiple": false,
|
|
13716
|
+
"type": "option"
|
|
13717
|
+
}
|
|
13718
|
+
},
|
|
13719
|
+
"hasDynamicHelp": true,
|
|
13720
|
+
"hiddenAliases": [],
|
|
13721
|
+
"id": "hardis:project:deploy:sources:metadata",
|
|
13722
|
+
"pluginAlias": "sfdx-hardis",
|
|
13723
|
+
"pluginName": "sfdx-hardis",
|
|
13724
|
+
"pluginType": "core",
|
|
13725
|
+
"strict": true,
|
|
13726
|
+
"enableJsonFlag": true,
|
|
13727
|
+
"title": "Deploy metadata sources to org",
|
|
13728
|
+
"requiresProject": false,
|
|
13729
|
+
"requiresSfdxPlugins": [
|
|
13730
|
+
"sfdx-essentials"
|
|
13731
|
+
],
|
|
13732
|
+
"isESM": true,
|
|
13733
|
+
"relativePath": [
|
|
13734
|
+
"lib",
|
|
13735
|
+
"commands",
|
|
13736
|
+
"hardis",
|
|
13737
|
+
"project",
|
|
13738
|
+
"deploy",
|
|
13739
|
+
"sources",
|
|
13740
|
+
"metadata.js"
|
|
13741
|
+
],
|
|
13742
|
+
"aliasPermutations": [],
|
|
13743
|
+
"permutations": [
|
|
13744
|
+
"hardis:project:deploy:sources:metadata",
|
|
13745
|
+
"project:hardis:deploy:sources:metadata",
|
|
13746
|
+
"project:deploy:hardis:sources:metadata",
|
|
13747
|
+
"project:deploy:sources:hardis:metadata",
|
|
13748
|
+
"project:deploy:sources:metadata:hardis",
|
|
13749
|
+
"hardis:deploy:project:sources:metadata",
|
|
13750
|
+
"deploy:hardis:project:sources:metadata",
|
|
13751
|
+
"deploy:project:hardis:sources:metadata",
|
|
13752
|
+
"deploy:project:sources:hardis:metadata",
|
|
13753
|
+
"deploy:project:sources:metadata:hardis",
|
|
13754
|
+
"hardis:deploy:sources:project:metadata",
|
|
13755
|
+
"deploy:hardis:sources:project:metadata",
|
|
13756
|
+
"deploy:sources:hardis:project:metadata",
|
|
13757
|
+
"deploy:sources:project:hardis:metadata",
|
|
13758
|
+
"deploy:sources:project:metadata:hardis",
|
|
13759
|
+
"hardis:deploy:sources:metadata:project",
|
|
13760
|
+
"deploy:hardis:sources:metadata:project",
|
|
13761
|
+
"deploy:sources:hardis:metadata:project",
|
|
13762
|
+
"deploy:sources:metadata:hardis:project",
|
|
13763
|
+
"deploy:sources:metadata:project:hardis",
|
|
13764
|
+
"hardis:project:sources:deploy:metadata",
|
|
13765
|
+
"project:hardis:sources:deploy:metadata",
|
|
13766
|
+
"project:sources:hardis:deploy:metadata",
|
|
13767
|
+
"project:sources:deploy:hardis:metadata",
|
|
13768
|
+
"project:sources:deploy:metadata:hardis",
|
|
13769
|
+
"hardis:sources:project:deploy:metadata",
|
|
13770
|
+
"sources:hardis:project:deploy:metadata",
|
|
13771
|
+
"sources:project:hardis:deploy:metadata",
|
|
13772
|
+
"sources:project:deploy:hardis:metadata",
|
|
13773
|
+
"sources:project:deploy:metadata:hardis",
|
|
13774
|
+
"hardis:sources:deploy:project:metadata",
|
|
13775
|
+
"sources:hardis:deploy:project:metadata",
|
|
13776
|
+
"sources:deploy:hardis:project:metadata",
|
|
13777
|
+
"sources:deploy:project:hardis:metadata",
|
|
13778
|
+
"sources:deploy:project:metadata:hardis",
|
|
13779
|
+
"hardis:sources:deploy:metadata:project",
|
|
13780
|
+
"sources:hardis:deploy:metadata:project",
|
|
13781
|
+
"sources:deploy:hardis:metadata:project",
|
|
13782
|
+
"sources:deploy:metadata:hardis:project",
|
|
13783
|
+
"sources:deploy:metadata:project:hardis",
|
|
13784
|
+
"hardis:project:sources:metadata:deploy",
|
|
13785
|
+
"project:hardis:sources:metadata:deploy",
|
|
13786
|
+
"project:sources:hardis:metadata:deploy",
|
|
13787
|
+
"project:sources:metadata:hardis:deploy",
|
|
13788
|
+
"project:sources:metadata:deploy:hardis",
|
|
13789
|
+
"hardis:sources:project:metadata:deploy",
|
|
13790
|
+
"sources:hardis:project:metadata:deploy",
|
|
13791
|
+
"sources:project:hardis:metadata:deploy",
|
|
13792
|
+
"sources:project:metadata:hardis:deploy",
|
|
13793
|
+
"sources:project:metadata:deploy:hardis",
|
|
13794
|
+
"hardis:sources:metadata:project:deploy",
|
|
13795
|
+
"sources:hardis:metadata:project:deploy",
|
|
13796
|
+
"sources:metadata:hardis:project:deploy",
|
|
13797
|
+
"sources:metadata:project:hardis:deploy",
|
|
13798
|
+
"sources:metadata:project:deploy:hardis",
|
|
13799
|
+
"hardis:sources:metadata:deploy:project",
|
|
13800
|
+
"sources:hardis:metadata:deploy:project",
|
|
13801
|
+
"sources:metadata:hardis:deploy:project",
|
|
13802
|
+
"sources:metadata:deploy:hardis:project",
|
|
13803
|
+
"sources:metadata:deploy:project:hardis",
|
|
13804
|
+
"hardis:project:deploy:metadata:sources",
|
|
13805
|
+
"project:hardis:deploy:metadata:sources",
|
|
13806
|
+
"project:deploy:hardis:metadata:sources",
|
|
13807
|
+
"project:deploy:metadata:hardis:sources",
|
|
13808
|
+
"project:deploy:metadata:sources:hardis",
|
|
13809
|
+
"hardis:deploy:project:metadata:sources",
|
|
13810
|
+
"deploy:hardis:project:metadata:sources",
|
|
13811
|
+
"deploy:project:hardis:metadata:sources",
|
|
13812
|
+
"deploy:project:metadata:hardis:sources",
|
|
13813
|
+
"deploy:project:metadata:sources:hardis",
|
|
13814
|
+
"hardis:deploy:metadata:project:sources",
|
|
13815
|
+
"deploy:hardis:metadata:project:sources",
|
|
13816
|
+
"deploy:metadata:hardis:project:sources",
|
|
13817
|
+
"deploy:metadata:project:hardis:sources",
|
|
13818
|
+
"deploy:metadata:project:sources:hardis",
|
|
13819
|
+
"hardis:deploy:metadata:sources:project",
|
|
13820
|
+
"deploy:hardis:metadata:sources:project",
|
|
13821
|
+
"deploy:metadata:hardis:sources:project",
|
|
13822
|
+
"deploy:metadata:sources:hardis:project",
|
|
13823
|
+
"deploy:metadata:sources:project:hardis",
|
|
13824
|
+
"hardis:project:metadata:deploy:sources",
|
|
13825
|
+
"project:hardis:metadata:deploy:sources",
|
|
13826
|
+
"project:metadata:hardis:deploy:sources",
|
|
13827
|
+
"project:metadata:deploy:hardis:sources",
|
|
13828
|
+
"project:metadata:deploy:sources:hardis",
|
|
13829
|
+
"hardis:metadata:project:deploy:sources",
|
|
13830
|
+
"metadata:hardis:project:deploy:sources",
|
|
13831
|
+
"metadata:project:hardis:deploy:sources",
|
|
13832
|
+
"metadata:project:deploy:hardis:sources",
|
|
13833
|
+
"metadata:project:deploy:sources:hardis",
|
|
13834
|
+
"hardis:metadata:deploy:project:sources",
|
|
13835
|
+
"metadata:hardis:deploy:project:sources",
|
|
13836
|
+
"metadata:deploy:hardis:project:sources",
|
|
13837
|
+
"metadata:deploy:project:hardis:sources",
|
|
13838
|
+
"metadata:deploy:project:sources:hardis",
|
|
13839
|
+
"hardis:metadata:deploy:sources:project",
|
|
13840
|
+
"metadata:hardis:deploy:sources:project",
|
|
13841
|
+
"metadata:deploy:hardis:sources:project",
|
|
13842
|
+
"metadata:deploy:sources:hardis:project",
|
|
13843
|
+
"metadata:deploy:sources:project:hardis",
|
|
13844
|
+
"hardis:project:metadata:sources:deploy",
|
|
13845
|
+
"project:hardis:metadata:sources:deploy",
|
|
13846
|
+
"project:metadata:hardis:sources:deploy",
|
|
13847
|
+
"project:metadata:sources:hardis:deploy",
|
|
13848
|
+
"project:metadata:sources:deploy:hardis",
|
|
13849
|
+
"hardis:metadata:project:sources:deploy",
|
|
13850
|
+
"metadata:hardis:project:sources:deploy",
|
|
13851
|
+
"metadata:project:hardis:sources:deploy",
|
|
13852
|
+
"metadata:project:sources:hardis:deploy",
|
|
13853
|
+
"metadata:project:sources:deploy:hardis",
|
|
13854
|
+
"hardis:metadata:sources:project:deploy",
|
|
13855
|
+
"metadata:hardis:sources:project:deploy",
|
|
13856
|
+
"metadata:sources:hardis:project:deploy",
|
|
13857
|
+
"metadata:sources:project:hardis:deploy",
|
|
13858
|
+
"metadata:sources:project:deploy:hardis",
|
|
13859
|
+
"hardis:metadata:sources:deploy:project",
|
|
13860
|
+
"metadata:hardis:sources:deploy:project",
|
|
13861
|
+
"metadata:sources:hardis:deploy:project",
|
|
13862
|
+
"metadata:sources:deploy:hardis:project",
|
|
13863
|
+
"metadata:sources:deploy:project:hardis"
|
|
13864
|
+
]
|
|
13651
13865
|
}
|
|
13652
13866
|
},
|
|
13653
|
-
"version": "5.10.2-
|
|
13867
|
+
"version": "5.10.2-beta202412221111.0"
|
|
13654
13868
|
}
|