sfdx-hardis 6.8.1 → 6.9.1-alpha202510252146.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 +11 -0
- package/defaults/ci/.github/workflows/check-deploy.yml +2 -2
- package/defaults/ci/.github/workflows/process-deploy.yml +2 -2
- package/defaults/ci/azure-pipelines-checks.yml +1 -1
- package/defaults/ci/azure-pipelines-deployment.yml +1 -1
- package/defaults/monitoring/.github/workflows/org-monitoring.yml +6 -7
- package/lib/commands/hardis/misc/servicenow-report.d.ts +1 -0
- package/lib/commands/hardis/misc/servicenow-report.js +40 -2
- package/lib/commands/hardis/misc/servicenow-report.js.map +1 -1
- package/lib/commands/hardis/org/test/apex.js +3 -3
- package/lib/commands/hardis/org/test/apex.js.map +1 -1
- package/lib/commands/hardis/project/deploy/notify.js +2 -2
- package/lib/commands/hardis/project/deploy/notify.js.map +1 -1
- package/lib/commands/hardis/project/deploy/quick.js +2 -1
- package/lib/commands/hardis/project/deploy/quick.js.map +1 -1
- package/lib/commands/hardis/project/deploy/start.js +2 -1
- package/lib/commands/hardis/project/deploy/start.js.map +1 -1
- package/lib/commands/hardis/project/deploy/validate.js +2 -1
- package/lib/commands/hardis/project/deploy/validate.js.map +1 -1
- package/lib/commands/hardis/source/deploy.js +2 -1
- package/lib/commands/hardis/source/deploy.js.map +1 -1
- package/lib/common/gitProvider/azureDevops.d.ts +1 -0
- package/lib/common/gitProvider/azureDevops.js +68 -1
- package/lib/common/gitProvider/azureDevops.js.map +1 -1
- package/lib/common/gitProvider/bitbucket.d.ts +1 -0
- package/lib/common/gitProvider/bitbucket.js +78 -0
- package/lib/common/gitProvider/bitbucket.js.map +1 -1
- package/lib/common/gitProvider/gitProviderRoot.d.ts +1 -0
- package/lib/common/gitProvider/gitProviderRoot.js +6 -0
- package/lib/common/gitProvider/gitProviderRoot.js.map +1 -1
- package/lib/common/gitProvider/github.d.ts +1 -0
- package/lib/common/gitProvider/github.js +71 -0
- package/lib/common/gitProvider/github.js.map +1 -1
- package/lib/common/gitProvider/gitlab.d.ts +3 -0
- package/lib/common/gitProvider/gitlab.js +107 -0
- package/lib/common/gitProvider/gitlab.js.map +1 -1
- package/lib/common/gitProvider/index.js +49 -37
- package/lib/common/gitProvider/index.js.map +1 -1
- package/lib/common/notifProvider/teamsProvider.d.ts +7 -0
- package/lib/common/notifProvider/teamsProvider.js +146 -6
- package/lib/common/notifProvider/teamsProvider.js.map +1 -1
- package/lib/common/utils/dataUtils.d.ts +1 -1
- package/lib/common/utils/dataUtils.js +1 -0
- package/lib/common/utils/dataUtils.js.map +1 -1
- package/lib/common/utils/deployTips.js +2 -1
- package/lib/common/utils/deployTips.js.map +1 -1
- package/lib/common/utils/deployUtils.d.ts +0 -7
- package/lib/common/utils/deployUtils.js +11 -65
- package/lib/common/utils/deployUtils.js.map +1 -1
- package/lib/common/utils/gitUtils.d.ts +2 -0
- package/lib/common/utils/gitUtils.js +7 -1
- package/lib/common/utils/gitUtils.js.map +1 -1
- package/lib/common/utils/prePostCommandUtils.d.ts +25 -0
- package/lib/common/utils/prePostCommandUtils.js +331 -0
- package/lib/common/utils/prePostCommandUtils.js.map +1 -0
- package/oclif.lock +938 -918
- package/oclif.manifest.json +676 -676
- package/package.json +4 -4
package/oclif.manifest.json
CHANGED
|
@@ -132,12 +132,13 @@
|
|
|
132
132
|
"clear:cache:hardis"
|
|
133
133
|
]
|
|
134
134
|
},
|
|
135
|
-
"hardis:
|
|
135
|
+
"hardis:auth:login": {
|
|
136
136
|
"aliases": [],
|
|
137
137
|
"args": {},
|
|
138
|
-
"description": "\n## Command Behavior\n\n**
|
|
138
|
+
"description": "\n## Command Behavior\n\n**Authenticates to a Salesforce org, primarily designed for CI/CD workflows.**\n\nThis command facilitates secure and automated logins to Salesforce organizations within continuous integration and continuous delivery pipelines. It leverages pre-configured authentication details, ensuring that CI/CD processes can interact with Salesforce without manual intervention.\n\nKey aspects:\n\n- **Configuration-Driven:** It relies on authentication variables and files set up by dedicated configuration commands:\n - For CI/CD repositories: [Configure Org CI Authentication](https://sfdx-hardis.cloudity.com/hardis/project/configure/auth/)\n - For Monitoring repositories: [Configure Org Monitoring](https://sfdx-hardis.cloudity.com/hardis/org/configure/monitoring/)\n- **Technical Org Support:** Supports authentication to a 'technical org' (e.g., for calling Agentforce from another org) by utilizing the `SFDX_AUTH_URL_TECHNICAL_ORG` environment variable. If this variable is set, the command authenticates to this org with the alias `TECHNICAL_ORG`.\n\nTo obtain the `SFDX_AUTH_URL_TECHNICAL_ORG` value, you can run `sf org display --verbose --json` and copy the `sfdxAuthUrl` field from the output.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical flow involves:\n\n- **Flag Parsing:** It parses command-line flags such as `instanceurl`, `devhub`, `scratchorg`, and `debug` to determine the authentication context.\n- **Authentication Hook:** It triggers an internal authentication hook (`this.config.runHook('auth', ...`)) which is responsible for executing the actual authentication logic based on the provided flags (e.g., whether it's a Dev Hub or a scratch org).\n- **Environment Variable Check:** It checks for the presence of `SFDX_AUTH_URL_TECHNICAL_ORG` or `TECHNICAL_ORG_ALIAS` environment variables.\n- **`authOrg` Utility:** If a technical org is configured, it calls the `authOrg` utility function to perform the authentication for that specific org, ensuring it's connected and available for subsequent operations.\n- **Salesforce CLI Integration:** It integrates with the Salesforce CLI's authentication mechanisms to establish and manage org connections.\n</details>\n",
|
|
139
139
|
"examples": [
|
|
140
|
-
"$ sf hardis:
|
|
140
|
+
"$ sf hardis:auth:login",
|
|
141
|
+
"CI=true CI_COMMIT_REF_NAME=monitoring_myclient sf hardis:auth:login"
|
|
141
142
|
],
|
|
142
143
|
"flags": {
|
|
143
144
|
"json": {
|
|
@@ -155,20 +156,28 @@
|
|
|
155
156
|
"multiple": false,
|
|
156
157
|
"type": "option"
|
|
157
158
|
},
|
|
158
|
-
"
|
|
159
|
-
"char": "
|
|
160
|
-
"description": "
|
|
161
|
-
"name": "
|
|
162
|
-
"default": "project",
|
|
159
|
+
"instanceurl": {
|
|
160
|
+
"char": "r",
|
|
161
|
+
"description": "URL of org instance",
|
|
162
|
+
"name": "instanceurl",
|
|
163
163
|
"hasDynamicHelp": false,
|
|
164
164
|
"multiple": false,
|
|
165
|
-
"options": [
|
|
166
|
-
"project",
|
|
167
|
-
"branch",
|
|
168
|
-
"user"
|
|
169
|
-
],
|
|
170
165
|
"type": "option"
|
|
171
166
|
},
|
|
167
|
+
"devhub": {
|
|
168
|
+
"char": "h",
|
|
169
|
+
"description": "Also connect associated DevHub",
|
|
170
|
+
"name": "devhub",
|
|
171
|
+
"allowNo": false,
|
|
172
|
+
"type": "boolean"
|
|
173
|
+
},
|
|
174
|
+
"scratchorg": {
|
|
175
|
+
"char": "s",
|
|
176
|
+
"description": "Scratch org",
|
|
177
|
+
"name": "scratchorg",
|
|
178
|
+
"allowNo": false,
|
|
179
|
+
"type": "boolean"
|
|
180
|
+
},
|
|
172
181
|
"debug": {
|
|
173
182
|
"char": "d",
|
|
174
183
|
"description": "Activate debug mode (more logs)",
|
|
@@ -192,39 +201,38 @@
|
|
|
192
201
|
},
|
|
193
202
|
"hasDynamicHelp": false,
|
|
194
203
|
"hiddenAliases": [],
|
|
195
|
-
"id": "hardis:
|
|
204
|
+
"id": "hardis:auth:login",
|
|
196
205
|
"pluginAlias": "sfdx-hardis",
|
|
197
206
|
"pluginName": "sfdx-hardis",
|
|
198
207
|
"pluginType": "core",
|
|
199
208
|
"strict": true,
|
|
200
209
|
"enableJsonFlag": true,
|
|
201
|
-
"title": "
|
|
210
|
+
"title": "Login",
|
|
202
211
|
"requiresProject": false,
|
|
203
212
|
"isESM": true,
|
|
204
213
|
"relativePath": [
|
|
205
214
|
"lib",
|
|
206
215
|
"commands",
|
|
207
216
|
"hardis",
|
|
208
|
-
"
|
|
209
|
-
"
|
|
217
|
+
"auth",
|
|
218
|
+
"login.js"
|
|
210
219
|
],
|
|
211
220
|
"aliasPermutations": [],
|
|
212
221
|
"permutations": [
|
|
213
|
-
"hardis:
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
"hardis:
|
|
217
|
-
"
|
|
218
|
-
"
|
|
222
|
+
"hardis:auth:login",
|
|
223
|
+
"auth:hardis:login",
|
|
224
|
+
"auth:login:hardis",
|
|
225
|
+
"hardis:login:auth",
|
|
226
|
+
"login:hardis:auth",
|
|
227
|
+
"login:auth:hardis"
|
|
219
228
|
]
|
|
220
229
|
},
|
|
221
|
-
"hardis:
|
|
230
|
+
"hardis:config:get": {
|
|
222
231
|
"aliases": [],
|
|
223
232
|
"args": {},
|
|
224
|
-
"description": "\n## Command Behavior\n\n**
|
|
233
|
+
"description": "\n## Command Behavior\n\n**Retrieves and displays the sfdx-hardis configuration for a specified level.**\n\nThis command allows you to inspect the configuration that is currently in effect for your project, which is useful for debugging and understanding how sfdx-hardis will behave.\n\n- **Configuration levels:** It can retrieve configuration from three different levels:\n - **Project:** The configuration defined in the project's `.sfdx-hardis.yml` file.\n - **Branch:** The configuration defined in a branch-specific configuration file (e.g., `.sfdx-hardis.production.yml`).\n - **User:** The global user-level configuration.\n\n## Technical explanations\n\nThe command's logic is straightforward:\n\n- **`getConfig` function:** It calls the `getConfig` utility function, passing the desired configuration level as an argument.\n- **Configuration loading:** The `getConfig` function is responsible for finding the appropriate configuration file, reading its contents, and parsing it as YAML or JSON.\n- **Output:** The retrieved configuration is then displayed to the user as a JSON string.\n",
|
|
225
234
|
"examples": [
|
|
226
|
-
"$ sf hardis:
|
|
227
|
-
"CI=true CI_COMMIT_REF_NAME=monitoring_myclient sf hardis:auth:login"
|
|
235
|
+
"$ sf hardis:project:deploy:sources:metadata"
|
|
228
236
|
],
|
|
229
237
|
"flags": {
|
|
230
238
|
"json": {
|
|
@@ -242,28 +250,20 @@
|
|
|
242
250
|
"multiple": false,
|
|
243
251
|
"type": "option"
|
|
244
252
|
},
|
|
245
|
-
"
|
|
246
|
-
"char": "
|
|
247
|
-
"description": "
|
|
248
|
-
"name": "
|
|
253
|
+
"level": {
|
|
254
|
+
"char": "l",
|
|
255
|
+
"description": "project,branch or user",
|
|
256
|
+
"name": "level",
|
|
257
|
+
"default": "project",
|
|
249
258
|
"hasDynamicHelp": false,
|
|
250
259
|
"multiple": false,
|
|
260
|
+
"options": [
|
|
261
|
+
"project",
|
|
262
|
+
"branch",
|
|
263
|
+
"user"
|
|
264
|
+
],
|
|
251
265
|
"type": "option"
|
|
252
266
|
},
|
|
253
|
-
"devhub": {
|
|
254
|
-
"char": "h",
|
|
255
|
-
"description": "Also connect associated DevHub",
|
|
256
|
-
"name": "devhub",
|
|
257
|
-
"allowNo": false,
|
|
258
|
-
"type": "boolean"
|
|
259
|
-
},
|
|
260
|
-
"scratchorg": {
|
|
261
|
-
"char": "s",
|
|
262
|
-
"description": "Scratch org",
|
|
263
|
-
"name": "scratchorg",
|
|
264
|
-
"allowNo": false,
|
|
265
|
-
"type": "boolean"
|
|
266
|
-
},
|
|
267
267
|
"debug": {
|
|
268
268
|
"char": "d",
|
|
269
269
|
"description": "Activate debug mode (more logs)",
|
|
@@ -287,30 +287,30 @@
|
|
|
287
287
|
},
|
|
288
288
|
"hasDynamicHelp": false,
|
|
289
289
|
"hiddenAliases": [],
|
|
290
|
-
"id": "hardis:
|
|
290
|
+
"id": "hardis:config:get",
|
|
291
291
|
"pluginAlias": "sfdx-hardis",
|
|
292
292
|
"pluginName": "sfdx-hardis",
|
|
293
293
|
"pluginType": "core",
|
|
294
294
|
"strict": true,
|
|
295
295
|
"enableJsonFlag": true,
|
|
296
|
-
"title": "
|
|
296
|
+
"title": "Deploy metadata sources to org",
|
|
297
297
|
"requiresProject": false,
|
|
298
298
|
"isESM": true,
|
|
299
299
|
"relativePath": [
|
|
300
300
|
"lib",
|
|
301
301
|
"commands",
|
|
302
302
|
"hardis",
|
|
303
|
-
"
|
|
304
|
-
"
|
|
303
|
+
"config",
|
|
304
|
+
"get.js"
|
|
305
305
|
],
|
|
306
306
|
"aliasPermutations": [],
|
|
307
307
|
"permutations": [
|
|
308
|
-
"hardis:
|
|
309
|
-
"
|
|
310
|
-
"
|
|
311
|
-
"hardis:
|
|
312
|
-
"
|
|
313
|
-
"
|
|
308
|
+
"hardis:config:get",
|
|
309
|
+
"config:hardis:get",
|
|
310
|
+
"config:get:hardis",
|
|
311
|
+
"hardis:get:config",
|
|
312
|
+
"get:hardis:config",
|
|
313
|
+
"get:config:hardis"
|
|
314
314
|
]
|
|
315
315
|
},
|
|
316
316
|
"hardis:doc:fieldusage": {
|
|
@@ -5808,121 +5808,6 @@
|
|
|
5808
5808
|
"import:files:org:hardis"
|
|
5809
5809
|
]
|
|
5810
5810
|
},
|
|
5811
|
-
"hardis:org:fix:listviewmine": {
|
|
5812
|
-
"aliases": [],
|
|
5813
|
-
"args": {},
|
|
5814
|
-
"description": "Fix listviews whose scope Mine has been replaced by Everything\n\n[](https://nicolas.vuillamy.fr/invalid-scope-mine-not-allowed-deploy-your-listviews-anyway-443aceca8ac7)\n\nList of ListViews can be:\n\n- read from .sfdx-hardis.yml file in property **listViewsToSetToMine**\n- sent in argument listviews\n\nNote: property **listViewsToSetToMine** can be auto-generated by command hardis:work:save if .sfdx-hardis.yml contains the following configuration\n\n```yaml\nautoCleanTypes:\n - listViewsMine\n```\n\n- Example of sfdx-hardis.yml property `listViewsToSetToMine`:\n\n```yaml\nlistViewsToSetToMine:\n - \"force-app/main/default/objects/Operation__c/listViews/MyCurrentOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Operation__c/listViews/MyFinalizedOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/Default_Opportunity_Pipeline.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MyCurrentSubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MySubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Account/listViews/MyActivePartners.listView-meta.xml\"\n```\n\n- If manually written, this could also be:\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 run this command 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",
|
|
5815
|
-
"examples": [
|
|
5816
|
-
"$ sf hardis:org:fix:listviewmine",
|
|
5817
|
-
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
5818
|
-
],
|
|
5819
|
-
"flags": {
|
|
5820
|
-
"json": {
|
|
5821
|
-
"description": "Format output as json.",
|
|
5822
|
-
"helpGroup": "GLOBAL",
|
|
5823
|
-
"name": "json",
|
|
5824
|
-
"allowNo": false,
|
|
5825
|
-
"type": "boolean"
|
|
5826
|
-
},
|
|
5827
|
-
"flags-dir": {
|
|
5828
|
-
"helpGroup": "GLOBAL",
|
|
5829
|
-
"name": "flags-dir",
|
|
5830
|
-
"summary": "Import flag values from a directory.",
|
|
5831
|
-
"hasDynamicHelp": false,
|
|
5832
|
-
"multiple": false,
|
|
5833
|
-
"type": "option"
|
|
5834
|
-
},
|
|
5835
|
-
"listviews": {
|
|
5836
|
-
"char": "l",
|
|
5837
|
-
"description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
|
|
5838
|
-
"name": "listviews",
|
|
5839
|
-
"hasDynamicHelp": false,
|
|
5840
|
-
"multiple": false,
|
|
5841
|
-
"type": "option"
|
|
5842
|
-
},
|
|
5843
|
-
"debug": {
|
|
5844
|
-
"char": "d",
|
|
5845
|
-
"description": "Activate debug mode (more logs)",
|
|
5846
|
-
"name": "debug",
|
|
5847
|
-
"allowNo": false,
|
|
5848
|
-
"type": "boolean"
|
|
5849
|
-
},
|
|
5850
|
-
"websocket": {
|
|
5851
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
5852
|
-
"name": "websocket",
|
|
5853
|
-
"hasDynamicHelp": false,
|
|
5854
|
-
"multiple": false,
|
|
5855
|
-
"type": "option"
|
|
5856
|
-
},
|
|
5857
|
-
"skipauth": {
|
|
5858
|
-
"description": "Skip authentication check when a default username is required",
|
|
5859
|
-
"name": "skipauth",
|
|
5860
|
-
"allowNo": false,
|
|
5861
|
-
"type": "boolean"
|
|
5862
|
-
},
|
|
5863
|
-
"target-org": {
|
|
5864
|
-
"aliases": [
|
|
5865
|
-
"targetusername",
|
|
5866
|
-
"u"
|
|
5867
|
-
],
|
|
5868
|
-
"char": "o",
|
|
5869
|
-
"deprecateAliases": true,
|
|
5870
|
-
"name": "target-org",
|
|
5871
|
-
"noCacheDefault": true,
|
|
5872
|
-
"required": true,
|
|
5873
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5874
|
-
"hasDynamicHelp": true,
|
|
5875
|
-
"multiple": false,
|
|
5876
|
-
"type": "option"
|
|
5877
|
-
}
|
|
5878
|
-
},
|
|
5879
|
-
"hasDynamicHelp": true,
|
|
5880
|
-
"hiddenAliases": [],
|
|
5881
|
-
"id": "hardis:org:fix:listviewmine",
|
|
5882
|
-
"pluginAlias": "sfdx-hardis",
|
|
5883
|
-
"pluginName": "sfdx-hardis",
|
|
5884
|
-
"pluginType": "core",
|
|
5885
|
-
"strict": true,
|
|
5886
|
-
"enableJsonFlag": true,
|
|
5887
|
-
"title": "Fix listviews with ",
|
|
5888
|
-
"requiresProject": true,
|
|
5889
|
-
"isESM": true,
|
|
5890
|
-
"relativePath": [
|
|
5891
|
-
"lib",
|
|
5892
|
-
"commands",
|
|
5893
|
-
"hardis",
|
|
5894
|
-
"org",
|
|
5895
|
-
"fix",
|
|
5896
|
-
"listviewmine.js"
|
|
5897
|
-
],
|
|
5898
|
-
"aliasPermutations": [],
|
|
5899
|
-
"permutations": [
|
|
5900
|
-
"hardis:org:fix:listviewmine",
|
|
5901
|
-
"org:hardis:fix:listviewmine",
|
|
5902
|
-
"org:fix:hardis:listviewmine",
|
|
5903
|
-
"org:fix:listviewmine:hardis",
|
|
5904
|
-
"hardis:fix:org:listviewmine",
|
|
5905
|
-
"fix:hardis:org:listviewmine",
|
|
5906
|
-
"fix:org:hardis:listviewmine",
|
|
5907
|
-
"fix:org:listviewmine:hardis",
|
|
5908
|
-
"hardis:fix:listviewmine:org",
|
|
5909
|
-
"fix:hardis:listviewmine:org",
|
|
5910
|
-
"fix:listviewmine:hardis:org",
|
|
5911
|
-
"fix:listviewmine:org:hardis",
|
|
5912
|
-
"hardis:org:listviewmine:fix",
|
|
5913
|
-
"org:hardis:listviewmine:fix",
|
|
5914
|
-
"org:listviewmine:hardis:fix",
|
|
5915
|
-
"org:listviewmine:fix:hardis",
|
|
5916
|
-
"hardis:listviewmine:org:fix",
|
|
5917
|
-
"listviewmine:hardis:org:fix",
|
|
5918
|
-
"listviewmine:org:hardis:fix",
|
|
5919
|
-
"listviewmine:org:fix:hardis",
|
|
5920
|
-
"hardis:listviewmine:fix:org",
|
|
5921
|
-
"listviewmine:hardis:fix:org",
|
|
5922
|
-
"listviewmine:fix:hardis:org",
|
|
5923
|
-
"listviewmine:fix:org:hardis"
|
|
5924
|
-
]
|
|
5925
|
-
},
|
|
5926
5811
|
"hardis:org:diagnose:audittrail": {
|
|
5927
5812
|
"aliases": [],
|
|
5928
5813
|
"args": {},
|
|
@@ -7186,14 +7071,13 @@
|
|
|
7186
7071
|
"unusedusers:diagnose:org:hardis"
|
|
7187
7072
|
]
|
|
7188
7073
|
},
|
|
7189
|
-
"hardis:org:
|
|
7074
|
+
"hardis:org:fix:listviewmine": {
|
|
7190
7075
|
"aliases": [],
|
|
7191
7076
|
"args": {},
|
|
7192
|
-
"description": "
|
|
7077
|
+
"description": "Fix listviews whose scope Mine has been replaced by Everything\n\n[](https://nicolas.vuillamy.fr/invalid-scope-mine-not-allowed-deploy-your-listviews-anyway-443aceca8ac7)\n\nList of ListViews can be:\n\n- read from .sfdx-hardis.yml file in property **listViewsToSetToMine**\n- sent in argument listviews\n\nNote: property **listViewsToSetToMine** can be auto-generated by command hardis:work:save if .sfdx-hardis.yml contains the following configuration\n\n```yaml\nautoCleanTypes:\n - listViewsMine\n```\n\n- Example of sfdx-hardis.yml property `listViewsToSetToMine`:\n\n```yaml\nlistViewsToSetToMine:\n - \"force-app/main/default/objects/Operation__c/listViews/MyCurrentOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Operation__c/listViews/MyFinalizedOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/Default_Opportunity_Pipeline.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MyCurrentSubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MySubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Account/listViews/MyActivePartners.listView-meta.xml\"\n```\n\n- If manually written, this could also be:\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 run this command 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",
|
|
7193
7078
|
"examples": [
|
|
7194
|
-
"$ sf hardis:org:
|
|
7195
|
-
"$ sf hardis:org:
|
|
7196
|
-
"$ sf hardis:org:generate:packagexmlfull --target-org nico@example.com"
|
|
7079
|
+
"$ sf hardis:org:fix:listviewmine",
|
|
7080
|
+
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
7197
7081
|
],
|
|
7198
7082
|
"flags": {
|
|
7199
7083
|
"json": {
|
|
@@ -7211,9 +7095,10 @@
|
|
|
7211
7095
|
"multiple": false,
|
|
7212
7096
|
"type": "option"
|
|
7213
7097
|
},
|
|
7214
|
-
"
|
|
7215
|
-
"
|
|
7216
|
-
"
|
|
7098
|
+
"listviews": {
|
|
7099
|
+
"char": "l",
|
|
7100
|
+
"description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
|
|
7101
|
+
"name": "listviews",
|
|
7217
7102
|
"hasDynamicHelp": false,
|
|
7218
7103
|
"multiple": false,
|
|
7219
7104
|
"type": "option"
|
|
@@ -7225,13 +7110,6 @@
|
|
|
7225
7110
|
"allowNo": false,
|
|
7226
7111
|
"type": "boolean"
|
|
7227
7112
|
},
|
|
7228
|
-
"no-prompt": {
|
|
7229
|
-
"char": "n",
|
|
7230
|
-
"description": "Do not prompt for org username, use the default one",
|
|
7231
|
-
"name": "no-prompt",
|
|
7232
|
-
"allowNo": false,
|
|
7233
|
-
"type": "boolean"
|
|
7234
|
-
},
|
|
7235
7113
|
"websocket": {
|
|
7236
7114
|
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7237
7115
|
"name": "websocket",
|
|
@@ -7263,22 +7141,144 @@
|
|
|
7263
7141
|
},
|
|
7264
7142
|
"hasDynamicHelp": true,
|
|
7265
7143
|
"hiddenAliases": [],
|
|
7266
|
-
"id": "hardis:org:
|
|
7144
|
+
"id": "hardis:org:fix:listviewmine",
|
|
7267
7145
|
"pluginAlias": "sfdx-hardis",
|
|
7268
7146
|
"pluginName": "sfdx-hardis",
|
|
7269
7147
|
"pluginType": "core",
|
|
7270
7148
|
"strict": true,
|
|
7271
7149
|
"enableJsonFlag": true,
|
|
7272
|
-
"title": "
|
|
7273
|
-
"requiresProject":
|
|
7150
|
+
"title": "Fix listviews with ",
|
|
7151
|
+
"requiresProject": true,
|
|
7274
7152
|
"isESM": true,
|
|
7275
7153
|
"relativePath": [
|
|
7276
7154
|
"lib",
|
|
7277
7155
|
"commands",
|
|
7278
7156
|
"hardis",
|
|
7279
7157
|
"org",
|
|
7280
|
-
"
|
|
7281
|
-
"
|
|
7158
|
+
"fix",
|
|
7159
|
+
"listviewmine.js"
|
|
7160
|
+
],
|
|
7161
|
+
"aliasPermutations": [],
|
|
7162
|
+
"permutations": [
|
|
7163
|
+
"hardis:org:fix:listviewmine",
|
|
7164
|
+
"org:hardis:fix:listviewmine",
|
|
7165
|
+
"org:fix:hardis:listviewmine",
|
|
7166
|
+
"org:fix:listviewmine:hardis",
|
|
7167
|
+
"hardis:fix:org:listviewmine",
|
|
7168
|
+
"fix:hardis:org:listviewmine",
|
|
7169
|
+
"fix:org:hardis:listviewmine",
|
|
7170
|
+
"fix:org:listviewmine:hardis",
|
|
7171
|
+
"hardis:fix:listviewmine:org",
|
|
7172
|
+
"fix:hardis:listviewmine:org",
|
|
7173
|
+
"fix:listviewmine:hardis:org",
|
|
7174
|
+
"fix:listviewmine:org:hardis",
|
|
7175
|
+
"hardis:org:listviewmine:fix",
|
|
7176
|
+
"org:hardis:listviewmine:fix",
|
|
7177
|
+
"org:listviewmine:hardis:fix",
|
|
7178
|
+
"org:listviewmine:fix:hardis",
|
|
7179
|
+
"hardis:listviewmine:org:fix",
|
|
7180
|
+
"listviewmine:hardis:org:fix",
|
|
7181
|
+
"listviewmine:org:hardis:fix",
|
|
7182
|
+
"listviewmine:org:fix:hardis",
|
|
7183
|
+
"hardis:listviewmine:fix:org",
|
|
7184
|
+
"listviewmine:hardis:fix:org",
|
|
7185
|
+
"listviewmine:fix:hardis:org",
|
|
7186
|
+
"listviewmine:fix:org:hardis"
|
|
7187
|
+
]
|
|
7188
|
+
},
|
|
7189
|
+
"hardis:org:generate:packagexmlfull": {
|
|
7190
|
+
"aliases": [],
|
|
7191
|
+
"args": {},
|
|
7192
|
+
"description": "\n## Command Behavior\n\n**Generates a comprehensive `package.xml` file for a Salesforce org, including all metadata components, even managed ones.**\n\nThis command is essential for various Salesforce development and administration tasks, especially when you need a complete snapshot of an org's metadata. It goes beyond typical source tracking by including managed package components, which is crucial for understanding the full metadata footprint of an org.\n\nKey functionalities:\n\n- **Full Org Metadata Retrieval:** Connects to a specified Salesforce org (or prompts for one if not provided) and retrieves a complete list of all metadata types and their members.\n- **Managed Package Inclusion:** Unlike standard source retrieval, this command explicitly includes metadata from managed packages, providing a truly comprehensive `package.xml`.\n- **Customizable Output:** Allows you to specify the output file path for the generated `package.xml`.\n- **Interactive Org Selection:** If no target org is specified, it interactively prompts the user to choose an org. (or use --no-prompt to skip this step)\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce Metadata API Interaction:** It leverages the Salesforce Metadata API to list all available metadata types and then retrieve all components for each type.\n- **`buildOrgManifest` Utility:** The core logic for querying the org's metadata and constructing the `package.xml` is encapsulated within the `buildOrgManifest` utility function.\n- **XML Generation:** It dynamically builds the XML structure of the `package.xml` file, including the `types` and `members` elements for all retrieved metadata.\n- **File System Operations:** It writes the generated `package.xml` file to the specified output path.\n- **Interactive Prompts:** Uses `promptOrgUsernameDefault` to guide the user in selecting the target Salesforce org.\n</details>\n",
|
|
7193
|
+
"examples": [
|
|
7194
|
+
"$ sf hardis:org:generate:packagexmlfull",
|
|
7195
|
+
"$ sf hardis:org:generate:packagexmlfull --outputfile /tmp/packagexmlfull.xml",
|
|
7196
|
+
"$ sf hardis:org:generate:packagexmlfull --target-org nico@example.com"
|
|
7197
|
+
],
|
|
7198
|
+
"flags": {
|
|
7199
|
+
"json": {
|
|
7200
|
+
"description": "Format output as json.",
|
|
7201
|
+
"helpGroup": "GLOBAL",
|
|
7202
|
+
"name": "json",
|
|
7203
|
+
"allowNo": false,
|
|
7204
|
+
"type": "boolean"
|
|
7205
|
+
},
|
|
7206
|
+
"flags-dir": {
|
|
7207
|
+
"helpGroup": "GLOBAL",
|
|
7208
|
+
"name": "flags-dir",
|
|
7209
|
+
"summary": "Import flag values from a directory.",
|
|
7210
|
+
"hasDynamicHelp": false,
|
|
7211
|
+
"multiple": false,
|
|
7212
|
+
"type": "option"
|
|
7213
|
+
},
|
|
7214
|
+
"outputfile": {
|
|
7215
|
+
"description": "Output package.xml file",
|
|
7216
|
+
"name": "outputfile",
|
|
7217
|
+
"hasDynamicHelp": false,
|
|
7218
|
+
"multiple": false,
|
|
7219
|
+
"type": "option"
|
|
7220
|
+
},
|
|
7221
|
+
"debug": {
|
|
7222
|
+
"char": "d",
|
|
7223
|
+
"description": "Activate debug mode (more logs)",
|
|
7224
|
+
"name": "debug",
|
|
7225
|
+
"allowNo": false,
|
|
7226
|
+
"type": "boolean"
|
|
7227
|
+
},
|
|
7228
|
+
"no-prompt": {
|
|
7229
|
+
"char": "n",
|
|
7230
|
+
"description": "Do not prompt for org username, use the default one",
|
|
7231
|
+
"name": "no-prompt",
|
|
7232
|
+
"allowNo": false,
|
|
7233
|
+
"type": "boolean"
|
|
7234
|
+
},
|
|
7235
|
+
"websocket": {
|
|
7236
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7237
|
+
"name": "websocket",
|
|
7238
|
+
"hasDynamicHelp": false,
|
|
7239
|
+
"multiple": false,
|
|
7240
|
+
"type": "option"
|
|
7241
|
+
},
|
|
7242
|
+
"skipauth": {
|
|
7243
|
+
"description": "Skip authentication check when a default username is required",
|
|
7244
|
+
"name": "skipauth",
|
|
7245
|
+
"allowNo": false,
|
|
7246
|
+
"type": "boolean"
|
|
7247
|
+
},
|
|
7248
|
+
"target-org": {
|
|
7249
|
+
"aliases": [
|
|
7250
|
+
"targetusername",
|
|
7251
|
+
"u"
|
|
7252
|
+
],
|
|
7253
|
+
"char": "o",
|
|
7254
|
+
"deprecateAliases": true,
|
|
7255
|
+
"name": "target-org",
|
|
7256
|
+
"noCacheDefault": true,
|
|
7257
|
+
"required": true,
|
|
7258
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7259
|
+
"hasDynamicHelp": true,
|
|
7260
|
+
"multiple": false,
|
|
7261
|
+
"type": "option"
|
|
7262
|
+
}
|
|
7263
|
+
},
|
|
7264
|
+
"hasDynamicHelp": true,
|
|
7265
|
+
"hiddenAliases": [],
|
|
7266
|
+
"id": "hardis:org:generate:packagexmlfull",
|
|
7267
|
+
"pluginAlias": "sfdx-hardis",
|
|
7268
|
+
"pluginName": "sfdx-hardis",
|
|
7269
|
+
"pluginType": "core",
|
|
7270
|
+
"strict": true,
|
|
7271
|
+
"enableJsonFlag": true,
|
|
7272
|
+
"title": "Generate Full Org package.xml",
|
|
7273
|
+
"requiresProject": false,
|
|
7274
|
+
"isESM": true,
|
|
7275
|
+
"relativePath": [
|
|
7276
|
+
"lib",
|
|
7277
|
+
"commands",
|
|
7278
|
+
"hardis",
|
|
7279
|
+
"org",
|
|
7280
|
+
"generate",
|
|
7281
|
+
"packagexmlfull.js"
|
|
7282
7282
|
],
|
|
7283
7283
|
"aliasPermutations": [],
|
|
7284
7284
|
"permutations": [
|
|
@@ -8057,6 +8057,113 @@
|
|
|
8057
8057
|
"flow:purge:org:hardis"
|
|
8058
8058
|
]
|
|
8059
8059
|
},
|
|
8060
|
+
"hardis:org:retrieve:packageconfig": {
|
|
8061
|
+
"aliases": [],
|
|
8062
|
+
"args": {},
|
|
8063
|
+
"description": "\n**Retrieves the installed package configuration from a Salesforce org and optionally updates the local project configuration.**\n\nThis command is useful for maintaining an accurate record of installed packages within your Salesforce project, which is crucial for managing dependencies and ensuring consistent deployments across environments.\n\nKey functionalities:\n\n- **Package Listing:** Connects to a specified Salesforce org (or prompts for one if not provided) and retrieves a list of all installed packages.\n- **Configuration Update:** Offers the option to update your local project's configuration with the retrieved list of installed packages. This can be beneficial for automating package installations during environment setup or CI/CD processes.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Org Connection:** It establishes a connection to the target Salesforce org using the provided or prompted username.\n- **Metadata Retrieval:** It utilizes `MetadataUtils.listInstalledPackages` to query the Salesforce org and obtain details about the installed packages.\n- **Interactive Prompt:** It uses the `prompts` library to ask the user whether they want to update their local project configuration with the retrieved package list.\n- **Configuration Management:** If the user confirms, it calls `managePackageConfig` to update the project's configuration file (likely `.sfdx-hardis.yml`) with the new package information.\n- **User Feedback:** Provides clear messages to the user about the success of the package retrieval and configuration update.\n</details>\n",
|
|
8064
|
+
"examples": [
|
|
8065
|
+
"$ sf hardis:org:retrieve:packageconfig",
|
|
8066
|
+
"sf hardis:org:retrieve:packageconfig -u myOrg"
|
|
8067
|
+
],
|
|
8068
|
+
"flags": {
|
|
8069
|
+
"json": {
|
|
8070
|
+
"description": "Format output as json.",
|
|
8071
|
+
"helpGroup": "GLOBAL",
|
|
8072
|
+
"name": "json",
|
|
8073
|
+
"allowNo": false,
|
|
8074
|
+
"type": "boolean"
|
|
8075
|
+
},
|
|
8076
|
+
"flags-dir": {
|
|
8077
|
+
"helpGroup": "GLOBAL",
|
|
8078
|
+
"name": "flags-dir",
|
|
8079
|
+
"summary": "Import flag values from a directory.",
|
|
8080
|
+
"hasDynamicHelp": false,
|
|
8081
|
+
"multiple": false,
|
|
8082
|
+
"type": "option"
|
|
8083
|
+
},
|
|
8084
|
+
"debug": {
|
|
8085
|
+
"char": "d",
|
|
8086
|
+
"description": "Activate debug mode (more logs)",
|
|
8087
|
+
"name": "debug",
|
|
8088
|
+
"allowNo": false,
|
|
8089
|
+
"type": "boolean"
|
|
8090
|
+
},
|
|
8091
|
+
"websocket": {
|
|
8092
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
8093
|
+
"name": "websocket",
|
|
8094
|
+
"hasDynamicHelp": false,
|
|
8095
|
+
"multiple": false,
|
|
8096
|
+
"type": "option"
|
|
8097
|
+
},
|
|
8098
|
+
"skipauth": {
|
|
8099
|
+
"description": "Skip authentication check when a default username is required",
|
|
8100
|
+
"name": "skipauth",
|
|
8101
|
+
"allowNo": false,
|
|
8102
|
+
"type": "boolean"
|
|
8103
|
+
},
|
|
8104
|
+
"target-org": {
|
|
8105
|
+
"aliases": [
|
|
8106
|
+
"targetusername",
|
|
8107
|
+
"u"
|
|
8108
|
+
],
|
|
8109
|
+
"char": "o",
|
|
8110
|
+
"deprecateAliases": true,
|
|
8111
|
+
"name": "target-org",
|
|
8112
|
+
"noCacheDefault": true,
|
|
8113
|
+
"required": true,
|
|
8114
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
8115
|
+
"hasDynamicHelp": true,
|
|
8116
|
+
"multiple": false,
|
|
8117
|
+
"type": "option"
|
|
8118
|
+
}
|
|
8119
|
+
},
|
|
8120
|
+
"hasDynamicHelp": true,
|
|
8121
|
+
"hiddenAliases": [],
|
|
8122
|
+
"id": "hardis:org:retrieve:packageconfig",
|
|
8123
|
+
"pluginAlias": "sfdx-hardis",
|
|
8124
|
+
"pluginName": "sfdx-hardis",
|
|
8125
|
+
"pluginType": "core",
|
|
8126
|
+
"strict": true,
|
|
8127
|
+
"enableJsonFlag": true,
|
|
8128
|
+
"title": "Retrieve package configuration from an org",
|
|
8129
|
+
"requiresProject": false,
|
|
8130
|
+
"isESM": true,
|
|
8131
|
+
"relativePath": [
|
|
8132
|
+
"lib",
|
|
8133
|
+
"commands",
|
|
8134
|
+
"hardis",
|
|
8135
|
+
"org",
|
|
8136
|
+
"retrieve",
|
|
8137
|
+
"packageconfig.js"
|
|
8138
|
+
],
|
|
8139
|
+
"aliasPermutations": [],
|
|
8140
|
+
"permutations": [
|
|
8141
|
+
"hardis:org:retrieve:packageconfig",
|
|
8142
|
+
"org:hardis:retrieve:packageconfig",
|
|
8143
|
+
"org:retrieve:hardis:packageconfig",
|
|
8144
|
+
"org:retrieve:packageconfig:hardis",
|
|
8145
|
+
"hardis:retrieve:org:packageconfig",
|
|
8146
|
+
"retrieve:hardis:org:packageconfig",
|
|
8147
|
+
"retrieve:org:hardis:packageconfig",
|
|
8148
|
+
"retrieve:org:packageconfig:hardis",
|
|
8149
|
+
"hardis:retrieve:packageconfig:org",
|
|
8150
|
+
"retrieve:hardis:packageconfig:org",
|
|
8151
|
+
"retrieve:packageconfig:hardis:org",
|
|
8152
|
+
"retrieve:packageconfig:org:hardis",
|
|
8153
|
+
"hardis:org:packageconfig:retrieve",
|
|
8154
|
+
"org:hardis:packageconfig:retrieve",
|
|
8155
|
+
"org:packageconfig:hardis:retrieve",
|
|
8156
|
+
"org:packageconfig:retrieve:hardis",
|
|
8157
|
+
"hardis:packageconfig:org:retrieve",
|
|
8158
|
+
"packageconfig:hardis:org:retrieve",
|
|
8159
|
+
"packageconfig:org:hardis:retrieve",
|
|
8160
|
+
"packageconfig:org:retrieve:hardis",
|
|
8161
|
+
"hardis:packageconfig:retrieve:org",
|
|
8162
|
+
"packageconfig:hardis:retrieve:org",
|
|
8163
|
+
"packageconfig:retrieve:hardis:org",
|
|
8164
|
+
"packageconfig:retrieve:org:hardis"
|
|
8165
|
+
]
|
|
8166
|
+
},
|
|
8060
8167
|
"hardis:org:refresh:after-refresh": {
|
|
8061
8168
|
"aliases": [],
|
|
8062
8169
|
"args": {},
|
|
@@ -8296,13 +8403,12 @@
|
|
|
8296
8403
|
"before-refresh:refresh:org:hardis"
|
|
8297
8404
|
]
|
|
8298
8405
|
},
|
|
8299
|
-
"hardis:org:
|
|
8406
|
+
"hardis:org:test:apex": {
|
|
8300
8407
|
"aliases": [],
|
|
8301
8408
|
"args": {},
|
|
8302
|
-
"description": "
|
|
8409
|
+
"description": "Run apex tests in Salesforce org\n\nIf following configuration is defined, it will fail if apex coverage target is not reached:\n\n- Env `APEX_TESTS_MIN_COVERAGE_ORG_WIDE` or `.sfdx-hardis` property `apexTestsMinCoverageOrgWide`\n- Env `APEX_TESTS_MIN_COVERAGE_ORG_WIDE` or `.sfdx-hardis` property `apexTestsMinCoverageOrgWide`\n\nYou can override env var SFDX_TEST_WAIT_MINUTES to wait more than 120 minutes.\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-apex-tests/) and can output Grafana, Slack and MsTeams Notifications.\n",
|
|
8303
8410
|
"examples": [
|
|
8304
|
-
"$ sf hardis:org:
|
|
8305
|
-
"sf hardis:org:retrieve:packageconfig -u myOrg"
|
|
8411
|
+
"$ sf hardis:org:test:apex"
|
|
8306
8412
|
],
|
|
8307
8413
|
"flags": {
|
|
8308
8414
|
"json": {
|
|
@@ -8320,6 +8426,21 @@
|
|
|
8320
8426
|
"multiple": false,
|
|
8321
8427
|
"type": "option"
|
|
8322
8428
|
},
|
|
8429
|
+
"testlevel": {
|
|
8430
|
+
"char": "l",
|
|
8431
|
+
"description": "Level of tests to apply to validate deployment",
|
|
8432
|
+
"name": "testlevel",
|
|
8433
|
+
"default": "RunLocalTests",
|
|
8434
|
+
"hasDynamicHelp": false,
|
|
8435
|
+
"multiple": false,
|
|
8436
|
+
"options": [
|
|
8437
|
+
"NoTestRun",
|
|
8438
|
+
"RunSpecifiedTests",
|
|
8439
|
+
"RunLocalTests",
|
|
8440
|
+
"RunAllTestsInOrg"
|
|
8441
|
+
],
|
|
8442
|
+
"type": "option"
|
|
8443
|
+
},
|
|
8323
8444
|
"debug": {
|
|
8324
8445
|
"char": "d",
|
|
8325
8446
|
"description": "Activate debug mode (more logs)",
|
|
@@ -8358,128 +8479,7 @@
|
|
|
8358
8479
|
},
|
|
8359
8480
|
"hasDynamicHelp": true,
|
|
8360
8481
|
"hiddenAliases": [],
|
|
8361
|
-
"id": "hardis:org:
|
|
8362
|
-
"pluginAlias": "sfdx-hardis",
|
|
8363
|
-
"pluginName": "sfdx-hardis",
|
|
8364
|
-
"pluginType": "core",
|
|
8365
|
-
"strict": true,
|
|
8366
|
-
"enableJsonFlag": true,
|
|
8367
|
-
"title": "Retrieve package configuration from an org",
|
|
8368
|
-
"requiresProject": false,
|
|
8369
|
-
"isESM": true,
|
|
8370
|
-
"relativePath": [
|
|
8371
|
-
"lib",
|
|
8372
|
-
"commands",
|
|
8373
|
-
"hardis",
|
|
8374
|
-
"org",
|
|
8375
|
-
"retrieve",
|
|
8376
|
-
"packageconfig.js"
|
|
8377
|
-
],
|
|
8378
|
-
"aliasPermutations": [],
|
|
8379
|
-
"permutations": [
|
|
8380
|
-
"hardis:org:retrieve:packageconfig",
|
|
8381
|
-
"org:hardis:retrieve:packageconfig",
|
|
8382
|
-
"org:retrieve:hardis:packageconfig",
|
|
8383
|
-
"org:retrieve:packageconfig:hardis",
|
|
8384
|
-
"hardis:retrieve:org:packageconfig",
|
|
8385
|
-
"retrieve:hardis:org:packageconfig",
|
|
8386
|
-
"retrieve:org:hardis:packageconfig",
|
|
8387
|
-
"retrieve:org:packageconfig:hardis",
|
|
8388
|
-
"hardis:retrieve:packageconfig:org",
|
|
8389
|
-
"retrieve:hardis:packageconfig:org",
|
|
8390
|
-
"retrieve:packageconfig:hardis:org",
|
|
8391
|
-
"retrieve:packageconfig:org:hardis",
|
|
8392
|
-
"hardis:org:packageconfig:retrieve",
|
|
8393
|
-
"org:hardis:packageconfig:retrieve",
|
|
8394
|
-
"org:packageconfig:hardis:retrieve",
|
|
8395
|
-
"org:packageconfig:retrieve:hardis",
|
|
8396
|
-
"hardis:packageconfig:org:retrieve",
|
|
8397
|
-
"packageconfig:hardis:org:retrieve",
|
|
8398
|
-
"packageconfig:org:hardis:retrieve",
|
|
8399
|
-
"packageconfig:org:retrieve:hardis",
|
|
8400
|
-
"hardis:packageconfig:retrieve:org",
|
|
8401
|
-
"packageconfig:hardis:retrieve:org",
|
|
8402
|
-
"packageconfig:retrieve:hardis:org",
|
|
8403
|
-
"packageconfig:retrieve:org:hardis"
|
|
8404
|
-
]
|
|
8405
|
-
},
|
|
8406
|
-
"hardis:org:test:apex": {
|
|
8407
|
-
"aliases": [],
|
|
8408
|
-
"args": {},
|
|
8409
|
-
"description": "Run apex tests in Salesforce org\n\nIf following configuration is defined, it will fail if apex coverage target is not reached:\n\n- Env `APEX_TESTS_MIN_COVERAGE_ORG_WIDE` or `.sfdx-hardis` property `apexTestsMinCoverageOrgWide`\n- Env `APEX_TESTS_MIN_COVERAGE_ORG_WIDE` or `.sfdx-hardis` property `apexTestsMinCoverageOrgWide`\n\nYou can override env var SFDX_TEST_WAIT_MINUTES to wait more than 60 minutes.\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-apex-tests/) and can output Grafana, Slack and MsTeams Notifications.\n",
|
|
8410
|
-
"examples": [
|
|
8411
|
-
"$ sf hardis:org:test:apex"
|
|
8412
|
-
],
|
|
8413
|
-
"flags": {
|
|
8414
|
-
"json": {
|
|
8415
|
-
"description": "Format output as json.",
|
|
8416
|
-
"helpGroup": "GLOBAL",
|
|
8417
|
-
"name": "json",
|
|
8418
|
-
"allowNo": false,
|
|
8419
|
-
"type": "boolean"
|
|
8420
|
-
},
|
|
8421
|
-
"flags-dir": {
|
|
8422
|
-
"helpGroup": "GLOBAL",
|
|
8423
|
-
"name": "flags-dir",
|
|
8424
|
-
"summary": "Import flag values from a directory.",
|
|
8425
|
-
"hasDynamicHelp": false,
|
|
8426
|
-
"multiple": false,
|
|
8427
|
-
"type": "option"
|
|
8428
|
-
},
|
|
8429
|
-
"testlevel": {
|
|
8430
|
-
"char": "l",
|
|
8431
|
-
"description": "Level of tests to apply to validate deployment",
|
|
8432
|
-
"name": "testlevel",
|
|
8433
|
-
"default": "RunLocalTests",
|
|
8434
|
-
"hasDynamicHelp": false,
|
|
8435
|
-
"multiple": false,
|
|
8436
|
-
"options": [
|
|
8437
|
-
"NoTestRun",
|
|
8438
|
-
"RunSpecifiedTests",
|
|
8439
|
-
"RunLocalTests",
|
|
8440
|
-
"RunAllTestsInOrg"
|
|
8441
|
-
],
|
|
8442
|
-
"type": "option"
|
|
8443
|
-
},
|
|
8444
|
-
"debug": {
|
|
8445
|
-
"char": "d",
|
|
8446
|
-
"description": "Activate debug mode (more logs)",
|
|
8447
|
-
"name": "debug",
|
|
8448
|
-
"allowNo": false,
|
|
8449
|
-
"type": "boolean"
|
|
8450
|
-
},
|
|
8451
|
-
"websocket": {
|
|
8452
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
8453
|
-
"name": "websocket",
|
|
8454
|
-
"hasDynamicHelp": false,
|
|
8455
|
-
"multiple": false,
|
|
8456
|
-
"type": "option"
|
|
8457
|
-
},
|
|
8458
|
-
"skipauth": {
|
|
8459
|
-
"description": "Skip authentication check when a default username is required",
|
|
8460
|
-
"name": "skipauth",
|
|
8461
|
-
"allowNo": false,
|
|
8462
|
-
"type": "boolean"
|
|
8463
|
-
},
|
|
8464
|
-
"target-org": {
|
|
8465
|
-
"aliases": [
|
|
8466
|
-
"targetusername",
|
|
8467
|
-
"u"
|
|
8468
|
-
],
|
|
8469
|
-
"char": "o",
|
|
8470
|
-
"deprecateAliases": true,
|
|
8471
|
-
"name": "target-org",
|
|
8472
|
-
"noCacheDefault": true,
|
|
8473
|
-
"required": true,
|
|
8474
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
8475
|
-
"hasDynamicHelp": true,
|
|
8476
|
-
"multiple": false,
|
|
8477
|
-
"type": "option"
|
|
8478
|
-
}
|
|
8479
|
-
},
|
|
8480
|
-
"hasDynamicHelp": true,
|
|
8481
|
-
"hiddenAliases": [],
|
|
8482
|
-
"id": "hardis:org:test:apex",
|
|
8482
|
+
"id": "hardis:org:test:apex",
|
|
8483
8483
|
"pluginAlias": "sfdx-hardis",
|
|
8484
8484
|
"pluginName": "sfdx-hardis",
|
|
8485
8485
|
"pluginType": "core",
|
|
@@ -9819,6 +9819,109 @@
|
|
|
9819
9819
|
"auth:configure:project:hardis"
|
|
9820
9820
|
]
|
|
9821
9821
|
},
|
|
9822
|
+
"hardis:project:convert:profilestopermsets": {
|
|
9823
|
+
"aliases": [],
|
|
9824
|
+
"args": {},
|
|
9825
|
+
"description": "\n## Command Behavior\n\n**Converts existing Salesforce Profiles into Permission Sets, facilitating a more granular and recommended security model.**\n\nThis command helps in migrating permissions from Profiles to Permission Sets, which is a best practice for managing user access in Salesforce. It creates a new Permission Set for each specified Profile, adopting a naming convention of `PS_PROFILENAME`.\n\nKey functionalities:\n\n- **Profile to Permission Set Conversion:** Automatically extracts permissions from a Profile and creates a corresponding Permission Set.\n- **Naming Convention:** New Permission Sets are named with a `PS_` prefix followed by the Profile name (e.g., `PS_Standard_User`).\n- **Exclusion Filter:** Allows you to exclude specific Profiles from the conversion process using the `--except` flag.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **External Plugin Integration:** It relies on the `shane-sfdx-plugins` (specifically the `sf shane:profile:convert` command) to perform the actual conversion.\n- **File System Scan:** It reads the contents of the `force-app/main/default/profiles` directory to identify all available Profile metadata files.\n- **Command Execution:** For each identified Profile (that is not excluded), it constructs and executes the `sf shane:profile:convert` command with the appropriate Profile name and desired Permission Set name.\n- **Error Handling:** Includes basic error handling for the external command execution.\n</details>\n",
|
|
9826
|
+
"examples": [
|
|
9827
|
+
"$ sf hardis:project:convert:profilestopermsets"
|
|
9828
|
+
],
|
|
9829
|
+
"flags": {
|
|
9830
|
+
"json": {
|
|
9831
|
+
"description": "Format output as json.",
|
|
9832
|
+
"helpGroup": "GLOBAL",
|
|
9833
|
+
"name": "json",
|
|
9834
|
+
"allowNo": false,
|
|
9835
|
+
"type": "boolean"
|
|
9836
|
+
},
|
|
9837
|
+
"flags-dir": {
|
|
9838
|
+
"helpGroup": "GLOBAL",
|
|
9839
|
+
"name": "flags-dir",
|
|
9840
|
+
"summary": "Import flag values from a directory.",
|
|
9841
|
+
"hasDynamicHelp": false,
|
|
9842
|
+
"multiple": false,
|
|
9843
|
+
"type": "option"
|
|
9844
|
+
},
|
|
9845
|
+
"except": {
|
|
9846
|
+
"char": "e",
|
|
9847
|
+
"description": "List of filters",
|
|
9848
|
+
"name": "except",
|
|
9849
|
+
"default": [],
|
|
9850
|
+
"hasDynamicHelp": false,
|
|
9851
|
+
"multiple": true,
|
|
9852
|
+
"type": "option"
|
|
9853
|
+
},
|
|
9854
|
+
"debug": {
|
|
9855
|
+
"char": "d",
|
|
9856
|
+
"description": "Activate debug mode (more logs)",
|
|
9857
|
+
"name": "debug",
|
|
9858
|
+
"allowNo": false,
|
|
9859
|
+
"type": "boolean"
|
|
9860
|
+
},
|
|
9861
|
+
"websocket": {
|
|
9862
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
9863
|
+
"name": "websocket",
|
|
9864
|
+
"hasDynamicHelp": false,
|
|
9865
|
+
"multiple": false,
|
|
9866
|
+
"type": "option"
|
|
9867
|
+
},
|
|
9868
|
+
"skipauth": {
|
|
9869
|
+
"description": "Skip authentication check when a default username is required",
|
|
9870
|
+
"name": "skipauth",
|
|
9871
|
+
"allowNo": false,
|
|
9872
|
+
"type": "boolean"
|
|
9873
|
+
}
|
|
9874
|
+
},
|
|
9875
|
+
"hasDynamicHelp": false,
|
|
9876
|
+
"hiddenAliases": [],
|
|
9877
|
+
"id": "hardis:project:convert:profilestopermsets",
|
|
9878
|
+
"pluginAlias": "sfdx-hardis",
|
|
9879
|
+
"pluginName": "sfdx-hardis",
|
|
9880
|
+
"pluginType": "core",
|
|
9881
|
+
"strict": true,
|
|
9882
|
+
"enableJsonFlag": true,
|
|
9883
|
+
"title": "Convert Profiles into Permission Sets",
|
|
9884
|
+
"requiresProject": true,
|
|
9885
|
+
"requiresSfdxPlugins": [
|
|
9886
|
+
"shane-sfdx-plugins"
|
|
9887
|
+
],
|
|
9888
|
+
"isESM": true,
|
|
9889
|
+
"relativePath": [
|
|
9890
|
+
"lib",
|
|
9891
|
+
"commands",
|
|
9892
|
+
"hardis",
|
|
9893
|
+
"project",
|
|
9894
|
+
"convert",
|
|
9895
|
+
"profilestopermsets.js"
|
|
9896
|
+
],
|
|
9897
|
+
"aliasPermutations": [],
|
|
9898
|
+
"permutations": [
|
|
9899
|
+
"hardis:project:convert:profilestopermsets",
|
|
9900
|
+
"project:hardis:convert:profilestopermsets",
|
|
9901
|
+
"project:convert:hardis:profilestopermsets",
|
|
9902
|
+
"project:convert:profilestopermsets:hardis",
|
|
9903
|
+
"hardis:convert:project:profilestopermsets",
|
|
9904
|
+
"convert:hardis:project:profilestopermsets",
|
|
9905
|
+
"convert:project:hardis:profilestopermsets",
|
|
9906
|
+
"convert:project:profilestopermsets:hardis",
|
|
9907
|
+
"hardis:convert:profilestopermsets:project",
|
|
9908
|
+
"convert:hardis:profilestopermsets:project",
|
|
9909
|
+
"convert:profilestopermsets:hardis:project",
|
|
9910
|
+
"convert:profilestopermsets:project:hardis",
|
|
9911
|
+
"hardis:project:profilestopermsets:convert",
|
|
9912
|
+
"project:hardis:profilestopermsets:convert",
|
|
9913
|
+
"project:profilestopermsets:hardis:convert",
|
|
9914
|
+
"project:profilestopermsets:convert:hardis",
|
|
9915
|
+
"hardis:profilestopermsets:project:convert",
|
|
9916
|
+
"profilestopermsets:hardis:project:convert",
|
|
9917
|
+
"profilestopermsets:project:hardis:convert",
|
|
9918
|
+
"profilestopermsets:project:convert:hardis",
|
|
9919
|
+
"hardis:profilestopermsets:convert:project",
|
|
9920
|
+
"profilestopermsets:hardis:convert:project",
|
|
9921
|
+
"profilestopermsets:convert:hardis:project",
|
|
9922
|
+
"profilestopermsets:convert:project:hardis"
|
|
9923
|
+
]
|
|
9924
|
+
},
|
|
9822
9925
|
"hardis:project:clean:emptyitems": {
|
|
9823
9926
|
"aliases": [],
|
|
9824
9927
|
"args": {},
|
|
@@ -11261,365 +11364,47 @@
|
|
|
11261
11364
|
"hiddenAliases": [],
|
|
11262
11365
|
"id": "hardis:project:clean:xml",
|
|
11263
11366
|
"pluginAlias": "sfdx-hardis",
|
|
11264
|
-
"pluginName": "sfdx-hardis",
|
|
11265
|
-
"pluginType": "core",
|
|
11266
|
-
"strict": true,
|
|
11267
|
-
"enableJsonFlag": true,
|
|
11268
|
-
"title": "Clean retrieved empty items in dx sources",
|
|
11269
|
-
"requiresProject": true,
|
|
11270
|
-
"isESM": true,
|
|
11271
|
-
"relativePath": [
|
|
11272
|
-
"lib",
|
|
11273
|
-
"commands",
|
|
11274
|
-
"hardis",
|
|
11275
|
-
"project",
|
|
11276
|
-
"clean",
|
|
11277
|
-
"xml.js"
|
|
11278
|
-
],
|
|
11279
|
-
"aliasPermutations": [],
|
|
11280
|
-
"permutations": [
|
|
11281
|
-
"hardis:project:clean:xml",
|
|
11282
|
-
"project:hardis:clean:xml",
|
|
11283
|
-
"project:clean:hardis:xml",
|
|
11284
|
-
"project:clean:xml:hardis",
|
|
11285
|
-
"hardis:clean:project:xml",
|
|
11286
|
-
"clean:hardis:project:xml",
|
|
11287
|
-
"clean:project:hardis:xml",
|
|
11288
|
-
"clean:project:xml:hardis",
|
|
11289
|
-
"hardis:clean:xml:project",
|
|
11290
|
-
"clean:hardis:xml:project",
|
|
11291
|
-
"clean:xml:hardis:project",
|
|
11292
|
-
"clean:xml:project:hardis",
|
|
11293
|
-
"hardis:project:xml:clean",
|
|
11294
|
-
"project:hardis:xml:clean",
|
|
11295
|
-
"project:xml:hardis:clean",
|
|
11296
|
-
"project:xml:clean:hardis",
|
|
11297
|
-
"hardis:xml:project:clean",
|
|
11298
|
-
"xml:hardis:project:clean",
|
|
11299
|
-
"xml:project:hardis:clean",
|
|
11300
|
-
"xml:project:clean:hardis",
|
|
11301
|
-
"hardis:xml:clean:project",
|
|
11302
|
-
"xml:hardis:clean:project",
|
|
11303
|
-
"xml:clean:hardis:project",
|
|
11304
|
-
"xml:clean:project:hardis"
|
|
11305
|
-
]
|
|
11306
|
-
},
|
|
11307
|
-
"hardis:project:convert:profilestopermsets": {
|
|
11308
|
-
"aliases": [],
|
|
11309
|
-
"args": {},
|
|
11310
|
-
"description": "\n## Command Behavior\n\n**Converts existing Salesforce Profiles into Permission Sets, facilitating a more granular and recommended security model.**\n\nThis command helps in migrating permissions from Profiles to Permission Sets, which is a best practice for managing user access in Salesforce. It creates a new Permission Set for each specified Profile, adopting a naming convention of `PS_PROFILENAME`.\n\nKey functionalities:\n\n- **Profile to Permission Set Conversion:** Automatically extracts permissions from a Profile and creates a corresponding Permission Set.\n- **Naming Convention:** New Permission Sets are named with a `PS_` prefix followed by the Profile name (e.g., `PS_Standard_User`).\n- **Exclusion Filter:** Allows you to exclude specific Profiles from the conversion process using the `--except` flag.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **External Plugin Integration:** It relies on the `shane-sfdx-plugins` (specifically the `sf shane:profile:convert` command) to perform the actual conversion.\n- **File System Scan:** It reads the contents of the `force-app/main/default/profiles` directory to identify all available Profile metadata files.\n- **Command Execution:** For each identified Profile (that is not excluded), it constructs and executes the `sf shane:profile:convert` command with the appropriate Profile name and desired Permission Set name.\n- **Error Handling:** Includes basic error handling for the external command execution.\n</details>\n",
|
|
11311
|
-
"examples": [
|
|
11312
|
-
"$ sf hardis:project:convert:profilestopermsets"
|
|
11313
|
-
],
|
|
11314
|
-
"flags": {
|
|
11315
|
-
"json": {
|
|
11316
|
-
"description": "Format output as json.",
|
|
11317
|
-
"helpGroup": "GLOBAL",
|
|
11318
|
-
"name": "json",
|
|
11319
|
-
"allowNo": false,
|
|
11320
|
-
"type": "boolean"
|
|
11321
|
-
},
|
|
11322
|
-
"flags-dir": {
|
|
11323
|
-
"helpGroup": "GLOBAL",
|
|
11324
|
-
"name": "flags-dir",
|
|
11325
|
-
"summary": "Import flag values from a directory.",
|
|
11326
|
-
"hasDynamicHelp": false,
|
|
11327
|
-
"multiple": false,
|
|
11328
|
-
"type": "option"
|
|
11329
|
-
},
|
|
11330
|
-
"except": {
|
|
11331
|
-
"char": "e",
|
|
11332
|
-
"description": "List of filters",
|
|
11333
|
-
"name": "except",
|
|
11334
|
-
"default": [],
|
|
11335
|
-
"hasDynamicHelp": false,
|
|
11336
|
-
"multiple": true,
|
|
11337
|
-
"type": "option"
|
|
11338
|
-
},
|
|
11339
|
-
"debug": {
|
|
11340
|
-
"char": "d",
|
|
11341
|
-
"description": "Activate debug mode (more logs)",
|
|
11342
|
-
"name": "debug",
|
|
11343
|
-
"allowNo": false,
|
|
11344
|
-
"type": "boolean"
|
|
11345
|
-
},
|
|
11346
|
-
"websocket": {
|
|
11347
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11348
|
-
"name": "websocket",
|
|
11349
|
-
"hasDynamicHelp": false,
|
|
11350
|
-
"multiple": false,
|
|
11351
|
-
"type": "option"
|
|
11352
|
-
},
|
|
11353
|
-
"skipauth": {
|
|
11354
|
-
"description": "Skip authentication check when a default username is required",
|
|
11355
|
-
"name": "skipauth",
|
|
11356
|
-
"allowNo": false,
|
|
11357
|
-
"type": "boolean"
|
|
11358
|
-
}
|
|
11359
|
-
},
|
|
11360
|
-
"hasDynamicHelp": false,
|
|
11361
|
-
"hiddenAliases": [],
|
|
11362
|
-
"id": "hardis:project:convert:profilestopermsets",
|
|
11363
|
-
"pluginAlias": "sfdx-hardis",
|
|
11364
|
-
"pluginName": "sfdx-hardis",
|
|
11365
|
-
"pluginType": "core",
|
|
11366
|
-
"strict": true,
|
|
11367
|
-
"enableJsonFlag": true,
|
|
11368
|
-
"title": "Convert Profiles into Permission Sets",
|
|
11369
|
-
"requiresProject": true,
|
|
11370
|
-
"requiresSfdxPlugins": [
|
|
11371
|
-
"shane-sfdx-plugins"
|
|
11372
|
-
],
|
|
11373
|
-
"isESM": true,
|
|
11374
|
-
"relativePath": [
|
|
11375
|
-
"lib",
|
|
11376
|
-
"commands",
|
|
11377
|
-
"hardis",
|
|
11378
|
-
"project",
|
|
11379
|
-
"convert",
|
|
11380
|
-
"profilestopermsets.js"
|
|
11381
|
-
],
|
|
11382
|
-
"aliasPermutations": [],
|
|
11383
|
-
"permutations": [
|
|
11384
|
-
"hardis:project:convert:profilestopermsets",
|
|
11385
|
-
"project:hardis:convert:profilestopermsets",
|
|
11386
|
-
"project:convert:hardis:profilestopermsets",
|
|
11387
|
-
"project:convert:profilestopermsets:hardis",
|
|
11388
|
-
"hardis:convert:project:profilestopermsets",
|
|
11389
|
-
"convert:hardis:project:profilestopermsets",
|
|
11390
|
-
"convert:project:hardis:profilestopermsets",
|
|
11391
|
-
"convert:project:profilestopermsets:hardis",
|
|
11392
|
-
"hardis:convert:profilestopermsets:project",
|
|
11393
|
-
"convert:hardis:profilestopermsets:project",
|
|
11394
|
-
"convert:profilestopermsets:hardis:project",
|
|
11395
|
-
"convert:profilestopermsets:project:hardis",
|
|
11396
|
-
"hardis:project:profilestopermsets:convert",
|
|
11397
|
-
"project:hardis:profilestopermsets:convert",
|
|
11398
|
-
"project:profilestopermsets:hardis:convert",
|
|
11399
|
-
"project:profilestopermsets:convert:hardis",
|
|
11400
|
-
"hardis:profilestopermsets:project:convert",
|
|
11401
|
-
"profilestopermsets:hardis:project:convert",
|
|
11402
|
-
"profilestopermsets:project:hardis:convert",
|
|
11403
|
-
"profilestopermsets:project:convert:hardis",
|
|
11404
|
-
"hardis:profilestopermsets:convert:project",
|
|
11405
|
-
"profilestopermsets:hardis:convert:project",
|
|
11406
|
-
"profilestopermsets:convert:hardis:project",
|
|
11407
|
-
"profilestopermsets:convert:project:hardis"
|
|
11408
|
-
]
|
|
11409
|
-
},
|
|
11410
|
-
"hardis:project:fix:profiletabs": {
|
|
11411
|
-
"aliases": [],
|
|
11412
|
-
"args": {},
|
|
11413
|
-
"description": "\n## Command Behavior\n\n**Interactively updates tab visibility settings in Salesforce profiles, addressing a common issue where tab visibilities are not correctly retrieved by `sf project retrieve start`.**\n\nThis command provides a user-friendly interface to manage tab settings within your profile XML files, ensuring that your local project accurately reflects the intended tab configurations in your Salesforce org.\n\nKey functionalities:\n\n- **Interactive Tab Selection:** Displays a multi-select menu of all available tabs in your org, allowing you to choose which tabs to update.\n- **Visibility Control:** Lets you set the visibility for the selected tabs to either `DefaultOn` (Visible) or `Hidden`.\n- **Profile Selection:** Presents a multi-select menu of all .profile-meta.xml files in your project, allowing you to apply the tab visibility changes to specific profiles.\n- **XML Updates:** Modifies the <tabVisibilities> section of the selected profile XML files to reflect the chosen tab settings. If a tab visibility setting already exists for a selected tab, it will be updated; otherwise, a new one will be added.\n- **Sorted Output:** The <tabVisibilities> in the updated profile XML files are sorted alphabetically for consistency and readability.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **SOQL Queries (Tooling API):** It queries the `TabDefinition` object using `soqlQueryTooling` to retrieve a list of all available tabs in the target org.\n- **File Discovery:** Uses `glob` to find all .profile-meta.xml files within the specified project path.\n- **Interactive Prompts:** Leverages the `prompts` library to create interactive menus for selecting tabs, visibility settings, and profiles.\n- **XML Parsing and Manipulation:** Uses `parseXmlFile` to read the content of profile XML files and `writeXmlFile` to write the modified content back. It manipulates the `tabVisibilities` array within the parsed XML to add or update tab settings.\n- **Array Sorting:** Employs the `sort-array` library to sort the `tabVisibilities` alphabetically by tab name.\n- **Logging:** Provides feedback to the user about which profiles have been updated and a summary of the changes.\n</details>\n",
|
|
11414
|
-
"examples": [
|
|
11415
|
-
"$ sf hardis:project:fix:profiletabs"
|
|
11416
|
-
],
|
|
11417
|
-
"flags": {
|
|
11418
|
-
"json": {
|
|
11419
|
-
"description": "Format output as json.",
|
|
11420
|
-
"helpGroup": "GLOBAL",
|
|
11421
|
-
"name": "json",
|
|
11422
|
-
"allowNo": false,
|
|
11423
|
-
"type": "boolean"
|
|
11424
|
-
},
|
|
11425
|
-
"flags-dir": {
|
|
11426
|
-
"helpGroup": "GLOBAL",
|
|
11427
|
-
"name": "flags-dir",
|
|
11428
|
-
"summary": "Import flag values from a directory.",
|
|
11429
|
-
"hasDynamicHelp": false,
|
|
11430
|
-
"multiple": false,
|
|
11431
|
-
"type": "option"
|
|
11432
|
-
},
|
|
11433
|
-
"path": {
|
|
11434
|
-
"char": "p",
|
|
11435
|
-
"description": "Root folder",
|
|
11436
|
-
"name": "path",
|
|
11437
|
-
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
11438
|
-
"hasDynamicHelp": false,
|
|
11439
|
-
"multiple": false,
|
|
11440
|
-
"type": "option"
|
|
11441
|
-
},
|
|
11442
|
-
"debug": {
|
|
11443
|
-
"char": "d",
|
|
11444
|
-
"description": "Activate debug mode (more logs)",
|
|
11445
|
-
"name": "debug",
|
|
11446
|
-
"allowNo": false,
|
|
11447
|
-
"type": "boolean"
|
|
11448
|
-
},
|
|
11449
|
-
"websocket": {
|
|
11450
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11451
|
-
"name": "websocket",
|
|
11452
|
-
"hasDynamicHelp": false,
|
|
11453
|
-
"multiple": false,
|
|
11454
|
-
"type": "option"
|
|
11455
|
-
},
|
|
11456
|
-
"skipauth": {
|
|
11457
|
-
"description": "Skip authentication check when a default username is required",
|
|
11458
|
-
"name": "skipauth",
|
|
11459
|
-
"allowNo": false,
|
|
11460
|
-
"type": "boolean"
|
|
11461
|
-
},
|
|
11462
|
-
"target-org": {
|
|
11463
|
-
"aliases": [
|
|
11464
|
-
"targetusername",
|
|
11465
|
-
"u"
|
|
11466
|
-
],
|
|
11467
|
-
"char": "o",
|
|
11468
|
-
"deprecateAliases": true,
|
|
11469
|
-
"name": "target-org",
|
|
11470
|
-
"noCacheDefault": true,
|
|
11471
|
-
"required": true,
|
|
11472
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
11473
|
-
"hasDynamicHelp": true,
|
|
11474
|
-
"multiple": false,
|
|
11475
|
-
"type": "option"
|
|
11476
|
-
}
|
|
11477
|
-
},
|
|
11478
|
-
"hasDynamicHelp": true,
|
|
11479
|
-
"hiddenAliases": [],
|
|
11480
|
-
"id": "hardis:project:fix:profiletabs",
|
|
11481
|
-
"pluginAlias": "sfdx-hardis",
|
|
11482
|
-
"pluginName": "sfdx-hardis",
|
|
11483
|
-
"pluginType": "core",
|
|
11484
|
-
"strict": true,
|
|
11485
|
-
"enableJsonFlag": true,
|
|
11486
|
-
"title": "Fix profiles to add tabs that are not retrieved by SF CLI",
|
|
11487
|
-
"requiresProject": true,
|
|
11488
|
-
"isESM": true,
|
|
11489
|
-
"relativePath": [
|
|
11490
|
-
"lib",
|
|
11491
|
-
"commands",
|
|
11492
|
-
"hardis",
|
|
11493
|
-
"project",
|
|
11494
|
-
"fix",
|
|
11495
|
-
"profiletabs.js"
|
|
11496
|
-
],
|
|
11497
|
-
"aliasPermutations": [],
|
|
11498
|
-
"permutations": [
|
|
11499
|
-
"hardis:project:fix:profiletabs",
|
|
11500
|
-
"project:hardis:fix:profiletabs",
|
|
11501
|
-
"project:fix:hardis:profiletabs",
|
|
11502
|
-
"project:fix:profiletabs:hardis",
|
|
11503
|
-
"hardis:fix:project:profiletabs",
|
|
11504
|
-
"fix:hardis:project:profiletabs",
|
|
11505
|
-
"fix:project:hardis:profiletabs",
|
|
11506
|
-
"fix:project:profiletabs:hardis",
|
|
11507
|
-
"hardis:fix:profiletabs:project",
|
|
11508
|
-
"fix:hardis:profiletabs:project",
|
|
11509
|
-
"fix:profiletabs:hardis:project",
|
|
11510
|
-
"fix:profiletabs:project:hardis",
|
|
11511
|
-
"hardis:project:profiletabs:fix",
|
|
11512
|
-
"project:hardis:profiletabs:fix",
|
|
11513
|
-
"project:profiletabs:hardis:fix",
|
|
11514
|
-
"project:profiletabs:fix:hardis",
|
|
11515
|
-
"hardis:profiletabs:project:fix",
|
|
11516
|
-
"profiletabs:hardis:project:fix",
|
|
11517
|
-
"profiletabs:project:hardis:fix",
|
|
11518
|
-
"profiletabs:project:fix:hardis",
|
|
11519
|
-
"hardis:profiletabs:fix:project",
|
|
11520
|
-
"profiletabs:hardis:fix:project",
|
|
11521
|
-
"profiletabs:fix:hardis:project",
|
|
11522
|
-
"profiletabs:fix:project:hardis"
|
|
11523
|
-
]
|
|
11524
|
-
},
|
|
11525
|
-
"hardis:project:fix:v53flexipages": {
|
|
11526
|
-
"aliases": [],
|
|
11527
|
-
"args": {},
|
|
11528
|
-
"description": "\n## Command Behavior\n\n**Fixes Salesforce FlexiPages for compatibility with API Version 53.0 (Winter '22 release) by adding missing identifiers to component instances.**\n\nSalesforce introduced a change in API Version 53.0 that requires `identifier` tags within `componentInstance` and `fieldInstance` elements in FlexiPage metadata. If these identifiers are missing, deployments to orgs with API version 53.0 or higher will fail. This command automates the process of adding these missing identifiers, ensuring your FlexiPages remain deployable.\n\nKey functionalities:\n\n- **Targeted FlexiPage Processing:** Scans all .flexipage-meta.xml files within the specified root folder (defaults to current working directory).\n- **Identifier Injection:** Inserts a unique `identifier` tag (e.g., `SFDX_HARDIS_REPLACEMENT_ID`) into `componentInstance` and `fieldInstance` elements that lack one.\n\n**Important Note:** After running this command, ensure you update your `apiVersion` to `53.0` (or higher) in your `package.xml` and `sfdx-project.json` files.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **File Discovery:** Uses `glob` to find all .flexipage-meta.xml files.\n- **Content Reading:** Reads the XML content of each FlexiPage file.\n- **Regular Expression Replacement:** Employs a set of regular expressions to identify specific XML patterns (componentName.../componentName.../componentInstance, componentName.../componentName.../visibilityRule, fieldItem.../fieldItem.../fieldInstance) that are missing the `identifier` tag.\n- **Dynamic ID Generation:** For each match, it generates a unique identifier (e.g., `sfdxHardisIdX`) and injects it into the XML structure.\n- **File Writing:** If changes are made, the modified XML content is written back to the FlexiPage file using `fs.writeFile`.\n- **Logging:** Provides messages about which FlexiPages are being processed and a summary of the total number of identifiers added.\n</details>\n",
|
|
11529
|
-
"examples": [
|
|
11530
|
-
"$ sf hardis:project:fix:v53flexipages"
|
|
11531
|
-
],
|
|
11532
|
-
"flags": {
|
|
11533
|
-
"json": {
|
|
11534
|
-
"description": "Format output as json.",
|
|
11535
|
-
"helpGroup": "GLOBAL",
|
|
11536
|
-
"name": "json",
|
|
11537
|
-
"allowNo": false,
|
|
11538
|
-
"type": "boolean"
|
|
11539
|
-
},
|
|
11540
|
-
"flags-dir": {
|
|
11541
|
-
"helpGroup": "GLOBAL",
|
|
11542
|
-
"name": "flags-dir",
|
|
11543
|
-
"summary": "Import flag values from a directory.",
|
|
11544
|
-
"hasDynamicHelp": false,
|
|
11545
|
-
"multiple": false,
|
|
11546
|
-
"type": "option"
|
|
11547
|
-
},
|
|
11548
|
-
"path": {
|
|
11549
|
-
"char": "p",
|
|
11550
|
-
"description": "Root folder",
|
|
11551
|
-
"name": "path",
|
|
11552
|
-
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
11553
|
-
"hasDynamicHelp": false,
|
|
11554
|
-
"multiple": false,
|
|
11555
|
-
"type": "option"
|
|
11556
|
-
},
|
|
11557
|
-
"debug": {
|
|
11558
|
-
"char": "d",
|
|
11559
|
-
"description": "Activate debug mode (more logs)",
|
|
11560
|
-
"name": "debug",
|
|
11561
|
-
"allowNo": false,
|
|
11562
|
-
"type": "boolean"
|
|
11563
|
-
},
|
|
11564
|
-
"websocket": {
|
|
11565
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11566
|
-
"name": "websocket",
|
|
11567
|
-
"hasDynamicHelp": false,
|
|
11568
|
-
"multiple": false,
|
|
11569
|
-
"type": "option"
|
|
11570
|
-
},
|
|
11571
|
-
"skipauth": {
|
|
11572
|
-
"description": "Skip authentication check when a default username is required",
|
|
11573
|
-
"name": "skipauth",
|
|
11574
|
-
"allowNo": false,
|
|
11575
|
-
"type": "boolean"
|
|
11576
|
-
}
|
|
11577
|
-
},
|
|
11578
|
-
"hasDynamicHelp": false,
|
|
11579
|
-
"hiddenAliases": [],
|
|
11580
|
-
"id": "hardis:project:fix:v53flexipages",
|
|
11581
|
-
"pluginAlias": "sfdx-hardis",
|
|
11582
|
-
"pluginName": "sfdx-hardis",
|
|
11583
|
-
"pluginType": "core",
|
|
11584
|
-
"strict": true,
|
|
11585
|
-
"enableJsonFlag": true,
|
|
11586
|
-
"title": "Fix flexipages for v53",
|
|
11587
|
-
"requiresProject": true,
|
|
11588
|
-
"isESM": true,
|
|
11589
|
-
"relativePath": [
|
|
11590
|
-
"lib",
|
|
11591
|
-
"commands",
|
|
11592
|
-
"hardis",
|
|
11593
|
-
"project",
|
|
11594
|
-
"fix",
|
|
11595
|
-
"v53flexipages.js"
|
|
11596
|
-
],
|
|
11597
|
-
"aliasPermutations": [],
|
|
11598
|
-
"permutations": [
|
|
11599
|
-
"hardis:project:fix:v53flexipages",
|
|
11600
|
-
"project:hardis:fix:v53flexipages",
|
|
11601
|
-
"project:fix:hardis:v53flexipages",
|
|
11602
|
-
"project:fix:v53flexipages:hardis",
|
|
11603
|
-
"hardis:fix:project:v53flexipages",
|
|
11604
|
-
"fix:hardis:project:v53flexipages",
|
|
11605
|
-
"fix:project:hardis:v53flexipages",
|
|
11606
|
-
"fix:project:v53flexipages:hardis",
|
|
11607
|
-
"hardis:fix:v53flexipages:project",
|
|
11608
|
-
"fix:hardis:v53flexipages:project",
|
|
11609
|
-
"fix:v53flexipages:hardis:project",
|
|
11610
|
-
"fix:v53flexipages:project:hardis",
|
|
11611
|
-
"hardis:project:v53flexipages:fix",
|
|
11612
|
-
"project:hardis:v53flexipages:fix",
|
|
11613
|
-
"project:v53flexipages:hardis:fix",
|
|
11614
|
-
"project:v53flexipages:fix:hardis",
|
|
11615
|
-
"hardis:v53flexipages:project:fix",
|
|
11616
|
-
"v53flexipages:hardis:project:fix",
|
|
11617
|
-
"v53flexipages:project:hardis:fix",
|
|
11618
|
-
"v53flexipages:project:fix:hardis",
|
|
11619
|
-
"hardis:v53flexipages:fix:project",
|
|
11620
|
-
"v53flexipages:hardis:fix:project",
|
|
11621
|
-
"v53flexipages:fix:hardis:project",
|
|
11622
|
-
"v53flexipages:fix:project:hardis"
|
|
11367
|
+
"pluginName": "sfdx-hardis",
|
|
11368
|
+
"pluginType": "core",
|
|
11369
|
+
"strict": true,
|
|
11370
|
+
"enableJsonFlag": true,
|
|
11371
|
+
"title": "Clean retrieved empty items in dx sources",
|
|
11372
|
+
"requiresProject": true,
|
|
11373
|
+
"isESM": true,
|
|
11374
|
+
"relativePath": [
|
|
11375
|
+
"lib",
|
|
11376
|
+
"commands",
|
|
11377
|
+
"hardis",
|
|
11378
|
+
"project",
|
|
11379
|
+
"clean",
|
|
11380
|
+
"xml.js"
|
|
11381
|
+
],
|
|
11382
|
+
"aliasPermutations": [],
|
|
11383
|
+
"permutations": [
|
|
11384
|
+
"hardis:project:clean:xml",
|
|
11385
|
+
"project:hardis:clean:xml",
|
|
11386
|
+
"project:clean:hardis:xml",
|
|
11387
|
+
"project:clean:xml:hardis",
|
|
11388
|
+
"hardis:clean:project:xml",
|
|
11389
|
+
"clean:hardis:project:xml",
|
|
11390
|
+
"clean:project:hardis:xml",
|
|
11391
|
+
"clean:project:xml:hardis",
|
|
11392
|
+
"hardis:clean:xml:project",
|
|
11393
|
+
"clean:hardis:xml:project",
|
|
11394
|
+
"clean:xml:hardis:project",
|
|
11395
|
+
"clean:xml:project:hardis",
|
|
11396
|
+
"hardis:project:xml:clean",
|
|
11397
|
+
"project:hardis:xml:clean",
|
|
11398
|
+
"project:xml:hardis:clean",
|
|
11399
|
+
"project:xml:clean:hardis",
|
|
11400
|
+
"hardis:xml:project:clean",
|
|
11401
|
+
"xml:hardis:project:clean",
|
|
11402
|
+
"xml:project:hardis:clean",
|
|
11403
|
+
"xml:project:clean:hardis",
|
|
11404
|
+
"hardis:xml:clean:project",
|
|
11405
|
+
"xml:hardis:clean:project",
|
|
11406
|
+
"xml:clean:hardis:project",
|
|
11407
|
+
"xml:clean:project:hardis"
|
|
11623
11408
|
]
|
|
11624
11409
|
},
|
|
11625
11410
|
"hardis:project:deploy:notify": {
|
|
@@ -12797,6 +12582,221 @@
|
|
|
12797
12582
|
"validate:deploy:project:hardis"
|
|
12798
12583
|
]
|
|
12799
12584
|
},
|
|
12585
|
+
"hardis:project:fix:profiletabs": {
|
|
12586
|
+
"aliases": [],
|
|
12587
|
+
"args": {},
|
|
12588
|
+
"description": "\n## Command Behavior\n\n**Interactively updates tab visibility settings in Salesforce profiles, addressing a common issue where tab visibilities are not correctly retrieved by `sf project retrieve start`.**\n\nThis command provides a user-friendly interface to manage tab settings within your profile XML files, ensuring that your local project accurately reflects the intended tab configurations in your Salesforce org.\n\nKey functionalities:\n\n- **Interactive Tab Selection:** Displays a multi-select menu of all available tabs in your org, allowing you to choose which tabs to update.\n- **Visibility Control:** Lets you set the visibility for the selected tabs to either `DefaultOn` (Visible) or `Hidden`.\n- **Profile Selection:** Presents a multi-select menu of all .profile-meta.xml files in your project, allowing you to apply the tab visibility changes to specific profiles.\n- **XML Updates:** Modifies the <tabVisibilities> section of the selected profile XML files to reflect the chosen tab settings. If a tab visibility setting already exists for a selected tab, it will be updated; otherwise, a new one will be added.\n- **Sorted Output:** The <tabVisibilities> in the updated profile XML files are sorted alphabetically for consistency and readability.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **SOQL Queries (Tooling API):** It queries the `TabDefinition` object using `soqlQueryTooling` to retrieve a list of all available tabs in the target org.\n- **File Discovery:** Uses `glob` to find all .profile-meta.xml files within the specified project path.\n- **Interactive Prompts:** Leverages the `prompts` library to create interactive menus for selecting tabs, visibility settings, and profiles.\n- **XML Parsing and Manipulation:** Uses `parseXmlFile` to read the content of profile XML files and `writeXmlFile` to write the modified content back. It manipulates the `tabVisibilities` array within the parsed XML to add or update tab settings.\n- **Array Sorting:** Employs the `sort-array` library to sort the `tabVisibilities` alphabetically by tab name.\n- **Logging:** Provides feedback to the user about which profiles have been updated and a summary of the changes.\n</details>\n",
|
|
12589
|
+
"examples": [
|
|
12590
|
+
"$ sf hardis:project:fix:profiletabs"
|
|
12591
|
+
],
|
|
12592
|
+
"flags": {
|
|
12593
|
+
"json": {
|
|
12594
|
+
"description": "Format output as json.",
|
|
12595
|
+
"helpGroup": "GLOBAL",
|
|
12596
|
+
"name": "json",
|
|
12597
|
+
"allowNo": false,
|
|
12598
|
+
"type": "boolean"
|
|
12599
|
+
},
|
|
12600
|
+
"flags-dir": {
|
|
12601
|
+
"helpGroup": "GLOBAL",
|
|
12602
|
+
"name": "flags-dir",
|
|
12603
|
+
"summary": "Import flag values from a directory.",
|
|
12604
|
+
"hasDynamicHelp": false,
|
|
12605
|
+
"multiple": false,
|
|
12606
|
+
"type": "option"
|
|
12607
|
+
},
|
|
12608
|
+
"path": {
|
|
12609
|
+
"char": "p",
|
|
12610
|
+
"description": "Root folder",
|
|
12611
|
+
"name": "path",
|
|
12612
|
+
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
12613
|
+
"hasDynamicHelp": false,
|
|
12614
|
+
"multiple": false,
|
|
12615
|
+
"type": "option"
|
|
12616
|
+
},
|
|
12617
|
+
"debug": {
|
|
12618
|
+
"char": "d",
|
|
12619
|
+
"description": "Activate debug mode (more logs)",
|
|
12620
|
+
"name": "debug",
|
|
12621
|
+
"allowNo": false,
|
|
12622
|
+
"type": "boolean"
|
|
12623
|
+
},
|
|
12624
|
+
"websocket": {
|
|
12625
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
12626
|
+
"name": "websocket",
|
|
12627
|
+
"hasDynamicHelp": false,
|
|
12628
|
+
"multiple": false,
|
|
12629
|
+
"type": "option"
|
|
12630
|
+
},
|
|
12631
|
+
"skipauth": {
|
|
12632
|
+
"description": "Skip authentication check when a default username is required",
|
|
12633
|
+
"name": "skipauth",
|
|
12634
|
+
"allowNo": false,
|
|
12635
|
+
"type": "boolean"
|
|
12636
|
+
},
|
|
12637
|
+
"target-org": {
|
|
12638
|
+
"aliases": [
|
|
12639
|
+
"targetusername",
|
|
12640
|
+
"u"
|
|
12641
|
+
],
|
|
12642
|
+
"char": "o",
|
|
12643
|
+
"deprecateAliases": true,
|
|
12644
|
+
"name": "target-org",
|
|
12645
|
+
"noCacheDefault": true,
|
|
12646
|
+
"required": true,
|
|
12647
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
12648
|
+
"hasDynamicHelp": true,
|
|
12649
|
+
"multiple": false,
|
|
12650
|
+
"type": "option"
|
|
12651
|
+
}
|
|
12652
|
+
},
|
|
12653
|
+
"hasDynamicHelp": true,
|
|
12654
|
+
"hiddenAliases": [],
|
|
12655
|
+
"id": "hardis:project:fix:profiletabs",
|
|
12656
|
+
"pluginAlias": "sfdx-hardis",
|
|
12657
|
+
"pluginName": "sfdx-hardis",
|
|
12658
|
+
"pluginType": "core",
|
|
12659
|
+
"strict": true,
|
|
12660
|
+
"enableJsonFlag": true,
|
|
12661
|
+
"title": "Fix profiles to add tabs that are not retrieved by SF CLI",
|
|
12662
|
+
"requiresProject": true,
|
|
12663
|
+
"isESM": true,
|
|
12664
|
+
"relativePath": [
|
|
12665
|
+
"lib",
|
|
12666
|
+
"commands",
|
|
12667
|
+
"hardis",
|
|
12668
|
+
"project",
|
|
12669
|
+
"fix",
|
|
12670
|
+
"profiletabs.js"
|
|
12671
|
+
],
|
|
12672
|
+
"aliasPermutations": [],
|
|
12673
|
+
"permutations": [
|
|
12674
|
+
"hardis:project:fix:profiletabs",
|
|
12675
|
+
"project:hardis:fix:profiletabs",
|
|
12676
|
+
"project:fix:hardis:profiletabs",
|
|
12677
|
+
"project:fix:profiletabs:hardis",
|
|
12678
|
+
"hardis:fix:project:profiletabs",
|
|
12679
|
+
"fix:hardis:project:profiletabs",
|
|
12680
|
+
"fix:project:hardis:profiletabs",
|
|
12681
|
+
"fix:project:profiletabs:hardis",
|
|
12682
|
+
"hardis:fix:profiletabs:project",
|
|
12683
|
+
"fix:hardis:profiletabs:project",
|
|
12684
|
+
"fix:profiletabs:hardis:project",
|
|
12685
|
+
"fix:profiletabs:project:hardis",
|
|
12686
|
+
"hardis:project:profiletabs:fix",
|
|
12687
|
+
"project:hardis:profiletabs:fix",
|
|
12688
|
+
"project:profiletabs:hardis:fix",
|
|
12689
|
+
"project:profiletabs:fix:hardis",
|
|
12690
|
+
"hardis:profiletabs:project:fix",
|
|
12691
|
+
"profiletabs:hardis:project:fix",
|
|
12692
|
+
"profiletabs:project:hardis:fix",
|
|
12693
|
+
"profiletabs:project:fix:hardis",
|
|
12694
|
+
"hardis:profiletabs:fix:project",
|
|
12695
|
+
"profiletabs:hardis:fix:project",
|
|
12696
|
+
"profiletabs:fix:hardis:project",
|
|
12697
|
+
"profiletabs:fix:project:hardis"
|
|
12698
|
+
]
|
|
12699
|
+
},
|
|
12700
|
+
"hardis:project:fix:v53flexipages": {
|
|
12701
|
+
"aliases": [],
|
|
12702
|
+
"args": {},
|
|
12703
|
+
"description": "\n## Command Behavior\n\n**Fixes Salesforce FlexiPages for compatibility with API Version 53.0 (Winter '22 release) by adding missing identifiers to component instances.**\n\nSalesforce introduced a change in API Version 53.0 that requires `identifier` tags within `componentInstance` and `fieldInstance` elements in FlexiPage metadata. If these identifiers are missing, deployments to orgs with API version 53.0 or higher will fail. This command automates the process of adding these missing identifiers, ensuring your FlexiPages remain deployable.\n\nKey functionalities:\n\n- **Targeted FlexiPage Processing:** Scans all .flexipage-meta.xml files within the specified root folder (defaults to current working directory).\n- **Identifier Injection:** Inserts a unique `identifier` tag (e.g., `SFDX_HARDIS_REPLACEMENT_ID`) into `componentInstance` and `fieldInstance` elements that lack one.\n\n**Important Note:** After running this command, ensure you update your `apiVersion` to `53.0` (or higher) in your `package.xml` and `sfdx-project.json` files.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **File Discovery:** Uses `glob` to find all .flexipage-meta.xml files.\n- **Content Reading:** Reads the XML content of each FlexiPage file.\n- **Regular Expression Replacement:** Employs a set of regular expressions to identify specific XML patterns (componentName.../componentName.../componentInstance, componentName.../componentName.../visibilityRule, fieldItem.../fieldItem.../fieldInstance) that are missing the `identifier` tag.\n- **Dynamic ID Generation:** For each match, it generates a unique identifier (e.g., `sfdxHardisIdX`) and injects it into the XML structure.\n- **File Writing:** If changes are made, the modified XML content is written back to the FlexiPage file using `fs.writeFile`.\n- **Logging:** Provides messages about which FlexiPages are being processed and a summary of the total number of identifiers added.\n</details>\n",
|
|
12704
|
+
"examples": [
|
|
12705
|
+
"$ sf hardis:project:fix:v53flexipages"
|
|
12706
|
+
],
|
|
12707
|
+
"flags": {
|
|
12708
|
+
"json": {
|
|
12709
|
+
"description": "Format output as json.",
|
|
12710
|
+
"helpGroup": "GLOBAL",
|
|
12711
|
+
"name": "json",
|
|
12712
|
+
"allowNo": false,
|
|
12713
|
+
"type": "boolean"
|
|
12714
|
+
},
|
|
12715
|
+
"flags-dir": {
|
|
12716
|
+
"helpGroup": "GLOBAL",
|
|
12717
|
+
"name": "flags-dir",
|
|
12718
|
+
"summary": "Import flag values from a directory.",
|
|
12719
|
+
"hasDynamicHelp": false,
|
|
12720
|
+
"multiple": false,
|
|
12721
|
+
"type": "option"
|
|
12722
|
+
},
|
|
12723
|
+
"path": {
|
|
12724
|
+
"char": "p",
|
|
12725
|
+
"description": "Root folder",
|
|
12726
|
+
"name": "path",
|
|
12727
|
+
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
12728
|
+
"hasDynamicHelp": false,
|
|
12729
|
+
"multiple": false,
|
|
12730
|
+
"type": "option"
|
|
12731
|
+
},
|
|
12732
|
+
"debug": {
|
|
12733
|
+
"char": "d",
|
|
12734
|
+
"description": "Activate debug mode (more logs)",
|
|
12735
|
+
"name": "debug",
|
|
12736
|
+
"allowNo": false,
|
|
12737
|
+
"type": "boolean"
|
|
12738
|
+
},
|
|
12739
|
+
"websocket": {
|
|
12740
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
12741
|
+
"name": "websocket",
|
|
12742
|
+
"hasDynamicHelp": false,
|
|
12743
|
+
"multiple": false,
|
|
12744
|
+
"type": "option"
|
|
12745
|
+
},
|
|
12746
|
+
"skipauth": {
|
|
12747
|
+
"description": "Skip authentication check when a default username is required",
|
|
12748
|
+
"name": "skipauth",
|
|
12749
|
+
"allowNo": false,
|
|
12750
|
+
"type": "boolean"
|
|
12751
|
+
}
|
|
12752
|
+
},
|
|
12753
|
+
"hasDynamicHelp": false,
|
|
12754
|
+
"hiddenAliases": [],
|
|
12755
|
+
"id": "hardis:project:fix:v53flexipages",
|
|
12756
|
+
"pluginAlias": "sfdx-hardis",
|
|
12757
|
+
"pluginName": "sfdx-hardis",
|
|
12758
|
+
"pluginType": "core",
|
|
12759
|
+
"strict": true,
|
|
12760
|
+
"enableJsonFlag": true,
|
|
12761
|
+
"title": "Fix flexipages for v53",
|
|
12762
|
+
"requiresProject": true,
|
|
12763
|
+
"isESM": true,
|
|
12764
|
+
"relativePath": [
|
|
12765
|
+
"lib",
|
|
12766
|
+
"commands",
|
|
12767
|
+
"hardis",
|
|
12768
|
+
"project",
|
|
12769
|
+
"fix",
|
|
12770
|
+
"v53flexipages.js"
|
|
12771
|
+
],
|
|
12772
|
+
"aliasPermutations": [],
|
|
12773
|
+
"permutations": [
|
|
12774
|
+
"hardis:project:fix:v53flexipages",
|
|
12775
|
+
"project:hardis:fix:v53flexipages",
|
|
12776
|
+
"project:fix:hardis:v53flexipages",
|
|
12777
|
+
"project:fix:v53flexipages:hardis",
|
|
12778
|
+
"hardis:fix:project:v53flexipages",
|
|
12779
|
+
"fix:hardis:project:v53flexipages",
|
|
12780
|
+
"fix:project:hardis:v53flexipages",
|
|
12781
|
+
"fix:project:v53flexipages:hardis",
|
|
12782
|
+
"hardis:fix:v53flexipages:project",
|
|
12783
|
+
"fix:hardis:v53flexipages:project",
|
|
12784
|
+
"fix:v53flexipages:hardis:project",
|
|
12785
|
+
"fix:v53flexipages:project:hardis",
|
|
12786
|
+
"hardis:project:v53flexipages:fix",
|
|
12787
|
+
"project:hardis:v53flexipages:fix",
|
|
12788
|
+
"project:v53flexipages:hardis:fix",
|
|
12789
|
+
"project:v53flexipages:fix:hardis",
|
|
12790
|
+
"hardis:v53flexipages:project:fix",
|
|
12791
|
+
"v53flexipages:hardis:project:fix",
|
|
12792
|
+
"v53flexipages:project:hardis:fix",
|
|
12793
|
+
"v53flexipages:project:fix:hardis",
|
|
12794
|
+
"hardis:v53flexipages:fix:project",
|
|
12795
|
+
"v53flexipages:hardis:fix:project",
|
|
12796
|
+
"v53flexipages:fix:hardis:project",
|
|
12797
|
+
"v53flexipages:fix:project:hardis"
|
|
12798
|
+
]
|
|
12799
|
+
},
|
|
12800
12800
|
"hardis:project:generate:bypass": {
|
|
12801
12801
|
"aliases": [],
|
|
12802
12802
|
"args": {},
|
|
@@ -15370,5 +15370,5 @@
|
|
|
15370
15370
|
]
|
|
15371
15371
|
}
|
|
15372
15372
|
},
|
|
15373
|
-
"version": "6.
|
|
15373
|
+
"version": "6.9.1-alpha202510252146.0"
|
|
15374
15374
|
}
|