sfdx-hardis 5.45.1-beta202508100154.0 → 6.0.2-beta202508110129.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 +7 -1
- package/lib/commands/hardis/doc/fieldusage.js +4 -2
- package/lib/commands/hardis/doc/fieldusage.js.map +1 -1
- package/lib/commands/hardis/doc/project2markdown.js +1 -1
- package/lib/commands/hardis/doc/project2markdown.js.map +1 -1
- package/lib/commands/hardis/lint/access.js +3 -3
- package/lib/commands/hardis/lint/access.js.map +1 -1
- package/lib/commands/hardis/org/diagnose/licenses.js +2 -2
- package/lib/commands/hardis/org/diagnose/licenses.js.map +1 -1
- package/lib/commands/hardis/org/diagnose/releaseupdates.js +3 -3
- package/lib/commands/hardis/org/diagnose/releaseupdates.js.map +1 -1
- package/lib/commands/hardis/org/diagnose/unused-apex-classes.js +3 -4
- package/lib/commands/hardis/org/diagnose/unused-apex-classes.js.map +1 -1
- package/lib/commands/hardis/org/diagnose/unused-connected-apps.js +3 -4
- package/lib/commands/hardis/org/diagnose/unused-connected-apps.js.map +1 -1
- package/lib/commands/hardis/org/generate/packagexmlfull.js +1 -1
- package/lib/commands/hardis/org/generate/packagexmlfull.js.map +1 -1
- package/lib/commands/hardis/org/monitor/all.js +3 -3
- package/lib/commands/hardis/org/monitor/all.js.map +1 -1
- package/lib/commands/hardis/org/monitor/limits.js +2 -2
- package/lib/commands/hardis/org/monitor/limits.js.map +1 -1
- package/lib/commands/hardis/org/purge/flow.js +7 -5
- package/lib/commands/hardis/org/purge/flow.js.map +1 -1
- package/lib/commands/hardis/org/select.js +4 -0
- package/lib/commands/hardis/org/select.js.map +1 -1
- package/lib/commands/hardis/org/user/activateinvalid.js +6 -4
- package/lib/commands/hardis/org/user/activateinvalid.js.map +1 -1
- package/lib/commands/hardis/org/user/freeze.js +4 -6
- package/lib/commands/hardis/org/user/freeze.js.map +1 -1
- package/lib/commands/hardis/org/user/unfreeze.js +4 -6
- package/lib/commands/hardis/org/user/unfreeze.js.map +1 -1
- package/lib/commands/hardis/project/audit/apiversion.js +3 -3
- package/lib/commands/hardis/project/audit/apiversion.js.map +1 -1
- package/lib/commands/hardis/project/audit/callincallout.js +4 -2
- package/lib/commands/hardis/project/audit/callincallout.js.map +1 -1
- package/lib/commands/hardis/project/audit/remotesites.js +4 -2
- package/lib/commands/hardis/project/audit/remotesites.js.map +1 -1
- package/lib/commands/hardis/project/generate/bypass.js +5 -3
- package/lib/commands/hardis/project/generate/bypass.js.map +1 -1
- package/lib/commands/hardis/project/generate/gitdelta.js +2 -2
- package/lib/commands/hardis/project/generate/gitdelta.js.map +1 -1
- package/lib/commands/hardis/scratch/pull.js +2 -0
- package/lib/commands/hardis/scratch/pull.js.map +1 -1
- package/lib/commands/hardis/work/save.js +13 -7
- package/lib/commands/hardis/work/save.js.map +1 -1
- package/lib/common/gitProvider/index.d.ts +2 -0
- package/lib/common/gitProvider/index.js +55 -0
- package/lib/common/gitProvider/index.js.map +1 -1
- package/lib/common/utils/deployUtils.js +1 -1
- package/lib/common/utils/deployUtils.js.map +1 -1
- package/lib/common/utils/filesUtils.js +2 -2
- package/lib/common/utils/filesUtils.js.map +1 -1
- package/lib/common/utils/index.d.ts +1 -0
- package/lib/common/utils/index.js +46 -4
- package/lib/common/utils/index.js.map +1 -1
- package/lib/common/utils/orgUtils.js +5 -5
- package/lib/common/utils/orgUtils.js.map +1 -1
- package/lib/common/utils/prompts.js +1 -1
- package/lib/common/utils/prompts.js.map +1 -1
- package/lib/common/websocketClient.d.ts +4 -2
- package/lib/common/websocketClient.js +4 -1
- package/lib/common/websocketClient.js.map +1 -1
- package/lib/hooks/prerun/check-dependencies.js +143 -0
- package/lib/hooks/prerun/check-dependencies.js.map +1 -1
- package/oclif.lock +1 -9
- package/oclif.manifest.json +703 -703
- package/package.json +1 -3
- package/lib/hooks/init/check-local-sfdx-hardis-files.d.ts +0 -3
- package/lib/hooks/init/check-local-sfdx-hardis-files.js +0 -151
- package/lib/hooks/init/check-local-sfdx-hardis-files.js.map +0 -1
package/oclif.manifest.json
CHANGED
|
@@ -132,13 +132,12 @@
|
|
|
132
132
|
"clear:cache:hardis"
|
|
133
133
|
]
|
|
134
134
|
},
|
|
135
|
-
"hardis:
|
|
135
|
+
"hardis:config:get": {
|
|
136
136
|
"aliases": [],
|
|
137
137
|
"args": {},
|
|
138
|
-
"description": "\n## Command Behavior\n\n**
|
|
138
|
+
"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",
|
|
139
139
|
"examples": [
|
|
140
|
-
"$ sf hardis:
|
|
141
|
-
"CI=true sf hardis:auth:login"
|
|
140
|
+
"$ sf hardis:project:deploy:sources:metadata"
|
|
142
141
|
],
|
|
143
142
|
"flags": {
|
|
144
143
|
"json": {
|
|
@@ -156,28 +155,20 @@
|
|
|
156
155
|
"multiple": false,
|
|
157
156
|
"type": "option"
|
|
158
157
|
},
|
|
159
|
-
"
|
|
160
|
-
"char": "
|
|
161
|
-
"description": "
|
|
162
|
-
"name": "
|
|
158
|
+
"level": {
|
|
159
|
+
"char": "l",
|
|
160
|
+
"description": "project,branch or user",
|
|
161
|
+
"name": "level",
|
|
162
|
+
"default": "project",
|
|
163
163
|
"hasDynamicHelp": false,
|
|
164
164
|
"multiple": false,
|
|
165
|
+
"options": [
|
|
166
|
+
"project",
|
|
167
|
+
"branch",
|
|
168
|
+
"user"
|
|
169
|
+
],
|
|
165
170
|
"type": "option"
|
|
166
171
|
},
|
|
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
|
-
},
|
|
181
172
|
"debug": {
|
|
182
173
|
"char": "d",
|
|
183
174
|
"description": "Activate debug mode (more logs)",
|
|
@@ -201,38 +192,39 @@
|
|
|
201
192
|
},
|
|
202
193
|
"hasDynamicHelp": false,
|
|
203
194
|
"hiddenAliases": [],
|
|
204
|
-
"id": "hardis:
|
|
195
|
+
"id": "hardis:config:get",
|
|
205
196
|
"pluginAlias": "sfdx-hardis",
|
|
206
197
|
"pluginName": "sfdx-hardis",
|
|
207
198
|
"pluginType": "core",
|
|
208
199
|
"strict": true,
|
|
209
200
|
"enableJsonFlag": true,
|
|
210
|
-
"title": "
|
|
201
|
+
"title": "Deploy metadata sources to org",
|
|
211
202
|
"requiresProject": false,
|
|
212
203
|
"isESM": true,
|
|
213
204
|
"relativePath": [
|
|
214
205
|
"lib",
|
|
215
206
|
"commands",
|
|
216
207
|
"hardis",
|
|
217
|
-
"
|
|
218
|
-
"
|
|
208
|
+
"config",
|
|
209
|
+
"get.js"
|
|
219
210
|
],
|
|
220
211
|
"aliasPermutations": [],
|
|
221
212
|
"permutations": [
|
|
222
|
-
"hardis:
|
|
223
|
-
"
|
|
224
|
-
"
|
|
225
|
-
"hardis:
|
|
226
|
-
"
|
|
227
|
-
"
|
|
213
|
+
"hardis:config:get",
|
|
214
|
+
"config:hardis:get",
|
|
215
|
+
"config:get:hardis",
|
|
216
|
+
"hardis:get:config",
|
|
217
|
+
"get:hardis:config",
|
|
218
|
+
"get:config:hardis"
|
|
228
219
|
]
|
|
229
220
|
},
|
|
230
|
-
"hardis:
|
|
221
|
+
"hardis:auth:login": {
|
|
231
222
|
"aliases": [],
|
|
232
223
|
"args": {},
|
|
233
|
-
"description": "\n## Command Behavior\n\n**
|
|
224
|
+
"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## Technical explanations\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",
|
|
234
225
|
"examples": [
|
|
235
|
-
"$ sf hardis:
|
|
226
|
+
"$ sf hardis:auth:login",
|
|
227
|
+
"CI=true sf hardis:auth:login"
|
|
236
228
|
],
|
|
237
229
|
"flags": {
|
|
238
230
|
"json": {
|
|
@@ -250,20 +242,28 @@
|
|
|
250
242
|
"multiple": false,
|
|
251
243
|
"type": "option"
|
|
252
244
|
},
|
|
253
|
-
"
|
|
254
|
-
"char": "
|
|
255
|
-
"description": "
|
|
256
|
-
"name": "
|
|
257
|
-
"default": "project",
|
|
245
|
+
"instanceurl": {
|
|
246
|
+
"char": "r",
|
|
247
|
+
"description": "URL of org instance",
|
|
248
|
+
"name": "instanceurl",
|
|
258
249
|
"hasDynamicHelp": false,
|
|
259
250
|
"multiple": false,
|
|
260
|
-
"options": [
|
|
261
|
-
"project",
|
|
262
|
-
"branch",
|
|
263
|
-
"user"
|
|
264
|
-
],
|
|
265
251
|
"type": "option"
|
|
266
252
|
},
|
|
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:auth:login",
|
|
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": "Login",
|
|
297
297
|
"requiresProject": false,
|
|
298
298
|
"isESM": true,
|
|
299
299
|
"relativePath": [
|
|
300
300
|
"lib",
|
|
301
301
|
"commands",
|
|
302
302
|
"hardis",
|
|
303
|
-
"
|
|
304
|
-
"
|
|
303
|
+
"auth",
|
|
304
|
+
"login.js"
|
|
305
305
|
],
|
|
306
306
|
"aliasPermutations": [],
|
|
307
307
|
"permutations": [
|
|
308
|
-
"hardis:
|
|
309
|
-
"
|
|
310
|
-
"
|
|
311
|
-
"hardis:
|
|
312
|
-
"
|
|
313
|
-
"
|
|
308
|
+
"hardis:auth:login",
|
|
309
|
+
"auth:hardis:login",
|
|
310
|
+
"auth:login:hardis",
|
|
311
|
+
"hardis:login:auth",
|
|
312
|
+
"login:hardis:auth",
|
|
313
|
+
"login:auth:hardis"
|
|
314
314
|
]
|
|
315
315
|
},
|
|
316
316
|
"hardis:doc:fieldusage": {
|
|
@@ -4195,7 +4195,7 @@
|
|
|
4195
4195
|
"hardis:work:save": {
|
|
4196
4196
|
"aliases": [],
|
|
4197
4197
|
"args": {},
|
|
4198
|
-
"description": "\n## Command Behavior\n\n**Guides the user through the process of saving their work, preparing it for a
|
|
4198
|
+
"description": "\n## Command Behavior\n\n**Guides the user through the process of saving their work, preparing it for a Merge Request (also named Pull Request), and pushing changes to the remote Git repository.**\n\nThis command automates several critical steps involved in finalizing a development task and integrating it into the main codebase. It ensures that your local changes are properly synchronized, cleaned, and committed before being pushed.\n\nKey functionalities include:\n\n- **Git Status Management:** Ensures a clean Git working directory by handling ongoing merges and unstaging files.\n- **Org Synchronization (Optional):** Prompts the user to pull the latest metadata updates from their scratch org or source-tracked sandbox, ensuring local files reflect the org's state.\n- **Package.xml Updates:** Automatically generates `package.xml` and `destructiveChanges.xml` files based on the Git delta between your current branch and the target branch, reflecting added, modified, and deleted metadata.\n- **Automated Source Cleaning:** Applies predefined cleaning operations to your local Salesforce sources, such as removing unwanted references, minimizing profiles, or cleaning XML files based on configurations in your `.sfdx-hardis.yml`.\n - `autoCleanTypes`: A list of automated source cleanings, configurable via [hardis:project:clean:references](${CONSTANTS.DOC_URL_ROOT}/hardis/project/clean/references/).\n - `autoRemoveUserPermissions`: A list of user permissions to automatically remove from profile metadata.\n- **Deployment Plan Generation:** Builds an automated deployment plan based on the updated `package.xml` and configured deployment splits.\n- **Commit and Push:** Guides the user to commit the changes and push them to the remote Git repository, optionally handling force pushes if a branch reset occurred.\n- **Merge Request Guidance:** Provides information and links to facilitate the creation of a merge request after the changes are pushed.\n\nExample `.sfdx-hardis.yml` configuration:\n\n```yaml\nautoCleanTypes:\n - checkPermissions\n - destructivechanges\n - datadotcom\n - minimizeProfiles\n - listViewsMine\nautoRemoveUserPermissions:\n - EnableCommunityAppLauncher\n - FieldServiceAccess\n - OmnichannelInventorySync\n - SendExternalEmailAvailable\n - UseOmnichannelInventoryAPIs\n - ViewDataLeakageEvents\n - ViewMLModels\n - ViewPlatformEvents\n - WorkCalibrationUser\n```\n\nAdvanced instructions are available in the [Publish a task documentation](${CONSTANTS.DOC_URL_ROOT}/salesforce-ci-cd-publish-task/).\n\n## Technical explanations\n\nThe command's technical implementation involves a series of orchestrated steps:\n\n- **Git Integration:** Extensively uses the `git` utility for status checks, adding files, committing, and pushing. It also leverages `sfdx-git-delta` for generating metadata differences between Git revisions.\n- **Interactive Prompts:** Employs the `prompts` library to interact with the user for decisions like pulling sources or pushing commits.\n- **Configuration Management:** Reads and updates project and user configurations using `getConfig` and `setConfig` to store preferences and deployment plans.\n- **Metadata Synchronization:** Calls `forceSourcePull` to retrieve metadata from the org and `callSfdxGitDelta` to generate `package.xml` and `destructiveChanges.xml` based on Git changes.\n- **XML Manipulation:** Utilizes `appendPackageXmlFilesContent`, `removePackageXmlFilesContent`, `parseXmlFile`, and `writeXmlFile` for modifying `package.xml` and `destructiveChanges.xml` files.\n- **Automated Cleaning:** Integrates with `CleanReferences.run` and `CleanXml.run` commands to perform automated cleaning operations on the Salesforce source files.\n- **Deployment Plan Building:** Dynamically constructs a deployment plan by analyzing the `package.xml` content and applying configured deployment splits.\n- **WebSocket Communication:** Uses `WebSocketClient.sendRefreshStatusMessage` to notify connected VS Code clients about status updates.\n- **External Tool Integration:** Requires the `sfdx-git-delta` plugin to be installed for its core functionality.\n",
|
|
4199
4199
|
"examples": [
|
|
4200
4200
|
"$ sf hardis:work:task:save",
|
|
4201
4201
|
"$ sf hardis:work:task:save --nopull --nogit --noclean"
|
|
@@ -5482,121 +5482,6 @@
|
|
|
5482
5482
|
"import:data:org:hardis"
|
|
5483
5483
|
]
|
|
5484
5484
|
},
|
|
5485
|
-
"hardis:org:fix:listviewmine": {
|
|
5486
|
-
"aliases": [],
|
|
5487
|
-
"args": {},
|
|
5488
|
-
"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",
|
|
5489
|
-
"examples": [
|
|
5490
|
-
"$ sf hardis:org:fix:listviewmine",
|
|
5491
|
-
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
5492
|
-
],
|
|
5493
|
-
"flags": {
|
|
5494
|
-
"json": {
|
|
5495
|
-
"description": "Format output as json.",
|
|
5496
|
-
"helpGroup": "GLOBAL",
|
|
5497
|
-
"name": "json",
|
|
5498
|
-
"allowNo": false,
|
|
5499
|
-
"type": "boolean"
|
|
5500
|
-
},
|
|
5501
|
-
"flags-dir": {
|
|
5502
|
-
"helpGroup": "GLOBAL",
|
|
5503
|
-
"name": "flags-dir",
|
|
5504
|
-
"summary": "Import flag values from a directory.",
|
|
5505
|
-
"hasDynamicHelp": false,
|
|
5506
|
-
"multiple": false,
|
|
5507
|
-
"type": "option"
|
|
5508
|
-
},
|
|
5509
|
-
"listviews": {
|
|
5510
|
-
"char": "l",
|
|
5511
|
-
"description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
|
|
5512
|
-
"name": "listviews",
|
|
5513
|
-
"hasDynamicHelp": false,
|
|
5514
|
-
"multiple": false,
|
|
5515
|
-
"type": "option"
|
|
5516
|
-
},
|
|
5517
|
-
"debug": {
|
|
5518
|
-
"char": "d",
|
|
5519
|
-
"description": "Activate debug mode (more logs)",
|
|
5520
|
-
"name": "debug",
|
|
5521
|
-
"allowNo": false,
|
|
5522
|
-
"type": "boolean"
|
|
5523
|
-
},
|
|
5524
|
-
"websocket": {
|
|
5525
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
5526
|
-
"name": "websocket",
|
|
5527
|
-
"hasDynamicHelp": false,
|
|
5528
|
-
"multiple": false,
|
|
5529
|
-
"type": "option"
|
|
5530
|
-
},
|
|
5531
|
-
"skipauth": {
|
|
5532
|
-
"description": "Skip authentication check when a default username is required",
|
|
5533
|
-
"name": "skipauth",
|
|
5534
|
-
"allowNo": false,
|
|
5535
|
-
"type": "boolean"
|
|
5536
|
-
},
|
|
5537
|
-
"target-org": {
|
|
5538
|
-
"aliases": [
|
|
5539
|
-
"targetusername",
|
|
5540
|
-
"u"
|
|
5541
|
-
],
|
|
5542
|
-
"char": "o",
|
|
5543
|
-
"deprecateAliases": true,
|
|
5544
|
-
"name": "target-org",
|
|
5545
|
-
"noCacheDefault": true,
|
|
5546
|
-
"required": true,
|
|
5547
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5548
|
-
"hasDynamicHelp": true,
|
|
5549
|
-
"multiple": false,
|
|
5550
|
-
"type": "option"
|
|
5551
|
-
}
|
|
5552
|
-
},
|
|
5553
|
-
"hasDynamicHelp": true,
|
|
5554
|
-
"hiddenAliases": [],
|
|
5555
|
-
"id": "hardis:org:fix:listviewmine",
|
|
5556
|
-
"pluginAlias": "sfdx-hardis",
|
|
5557
|
-
"pluginName": "sfdx-hardis",
|
|
5558
|
-
"pluginType": "core",
|
|
5559
|
-
"strict": true,
|
|
5560
|
-
"enableJsonFlag": true,
|
|
5561
|
-
"title": "Fix listviews with ",
|
|
5562
|
-
"requiresProject": true,
|
|
5563
|
-
"isESM": true,
|
|
5564
|
-
"relativePath": [
|
|
5565
|
-
"lib",
|
|
5566
|
-
"commands",
|
|
5567
|
-
"hardis",
|
|
5568
|
-
"org",
|
|
5569
|
-
"fix",
|
|
5570
|
-
"listviewmine.js"
|
|
5571
|
-
],
|
|
5572
|
-
"aliasPermutations": [],
|
|
5573
|
-
"permutations": [
|
|
5574
|
-
"hardis:org:fix:listviewmine",
|
|
5575
|
-
"org:hardis:fix:listviewmine",
|
|
5576
|
-
"org:fix:hardis:listviewmine",
|
|
5577
|
-
"org:fix:listviewmine:hardis",
|
|
5578
|
-
"hardis:fix:org:listviewmine",
|
|
5579
|
-
"fix:hardis:org:listviewmine",
|
|
5580
|
-
"fix:org:hardis:listviewmine",
|
|
5581
|
-
"fix:org:listviewmine:hardis",
|
|
5582
|
-
"hardis:fix:listviewmine:org",
|
|
5583
|
-
"fix:hardis:listviewmine:org",
|
|
5584
|
-
"fix:listviewmine:hardis:org",
|
|
5585
|
-
"fix:listviewmine:org:hardis",
|
|
5586
|
-
"hardis:org:listviewmine:fix",
|
|
5587
|
-
"org:hardis:listviewmine:fix",
|
|
5588
|
-
"org:listviewmine:hardis:fix",
|
|
5589
|
-
"org:listviewmine:fix:hardis",
|
|
5590
|
-
"hardis:listviewmine:org:fix",
|
|
5591
|
-
"listviewmine:hardis:org:fix",
|
|
5592
|
-
"listviewmine:org:hardis:fix",
|
|
5593
|
-
"listviewmine:org:fix:hardis",
|
|
5594
|
-
"hardis:listviewmine:fix:org",
|
|
5595
|
-
"listviewmine:hardis:fix:org",
|
|
5596
|
-
"listviewmine:fix:hardis:org",
|
|
5597
|
-
"listviewmine:fix:org:hardis"
|
|
5598
|
-
]
|
|
5599
|
-
},
|
|
5600
5485
|
"hardis:org:diagnose:audittrail": {
|
|
5601
5486
|
"aliases": [],
|
|
5602
5487
|
"args": {},
|
|
@@ -7008,14 +6893,13 @@
|
|
|
7008
6893
|
"import:files:org:hardis"
|
|
7009
6894
|
]
|
|
7010
6895
|
},
|
|
7011
|
-
"hardis:org:
|
|
6896
|
+
"hardis:org:fix:listviewmine": {
|
|
7012
6897
|
"aliases": [],
|
|
7013
6898
|
"args": {},
|
|
7014
|
-
"description": "
|
|
6899
|
+
"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",
|
|
7015
6900
|
"examples": [
|
|
7016
|
-
"$ sf hardis:org:
|
|
7017
|
-
"$ sf hardis:org:
|
|
7018
|
-
"$ sf hardis:org:generate:packagexmlfull --target-org nico@example.com"
|
|
6901
|
+
"$ sf hardis:org:fix:listviewmine",
|
|
6902
|
+
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
7019
6903
|
],
|
|
7020
6904
|
"flags": {
|
|
7021
6905
|
"json": {
|
|
@@ -7033,9 +6917,10 @@
|
|
|
7033
6917
|
"multiple": false,
|
|
7034
6918
|
"type": "option"
|
|
7035
6919
|
},
|
|
7036
|
-
"
|
|
7037
|
-
"
|
|
7038
|
-
"
|
|
6920
|
+
"listviews": {
|
|
6921
|
+
"char": "l",
|
|
6922
|
+
"description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
|
|
6923
|
+
"name": "listviews",
|
|
7039
6924
|
"hasDynamicHelp": false,
|
|
7040
6925
|
"multiple": false,
|
|
7041
6926
|
"type": "option"
|
|
@@ -7078,30 +6963,145 @@
|
|
|
7078
6963
|
},
|
|
7079
6964
|
"hasDynamicHelp": true,
|
|
7080
6965
|
"hiddenAliases": [],
|
|
7081
|
-
"id": "hardis:org:
|
|
6966
|
+
"id": "hardis:org:fix:listviewmine",
|
|
7082
6967
|
"pluginAlias": "sfdx-hardis",
|
|
7083
6968
|
"pluginName": "sfdx-hardis",
|
|
7084
6969
|
"pluginType": "core",
|
|
7085
6970
|
"strict": true,
|
|
7086
6971
|
"enableJsonFlag": true,
|
|
7087
|
-
"title": "
|
|
7088
|
-
"requiresProject":
|
|
6972
|
+
"title": "Fix listviews with ",
|
|
6973
|
+
"requiresProject": true,
|
|
7089
6974
|
"isESM": true,
|
|
7090
6975
|
"relativePath": [
|
|
7091
6976
|
"lib",
|
|
7092
6977
|
"commands",
|
|
7093
6978
|
"hardis",
|
|
7094
6979
|
"org",
|
|
7095
|
-
"
|
|
7096
|
-
"
|
|
6980
|
+
"fix",
|
|
6981
|
+
"listviewmine.js"
|
|
7097
6982
|
],
|
|
7098
6983
|
"aliasPermutations": [],
|
|
7099
6984
|
"permutations": [
|
|
7100
|
-
"hardis:org:
|
|
7101
|
-
"org:hardis:
|
|
7102
|
-
"org:
|
|
7103
|
-
"org:
|
|
7104
|
-
"hardis:
|
|
6985
|
+
"hardis:org:fix:listviewmine",
|
|
6986
|
+
"org:hardis:fix:listviewmine",
|
|
6987
|
+
"org:fix:hardis:listviewmine",
|
|
6988
|
+
"org:fix:listviewmine:hardis",
|
|
6989
|
+
"hardis:fix:org:listviewmine",
|
|
6990
|
+
"fix:hardis:org:listviewmine",
|
|
6991
|
+
"fix:org:hardis:listviewmine",
|
|
6992
|
+
"fix:org:listviewmine:hardis",
|
|
6993
|
+
"hardis:fix:listviewmine:org",
|
|
6994
|
+
"fix:hardis:listviewmine:org",
|
|
6995
|
+
"fix:listviewmine:hardis:org",
|
|
6996
|
+
"fix:listviewmine:org:hardis",
|
|
6997
|
+
"hardis:org:listviewmine:fix",
|
|
6998
|
+
"org:hardis:listviewmine:fix",
|
|
6999
|
+
"org:listviewmine:hardis:fix",
|
|
7000
|
+
"org:listviewmine:fix:hardis",
|
|
7001
|
+
"hardis:listviewmine:org:fix",
|
|
7002
|
+
"listviewmine:hardis:org:fix",
|
|
7003
|
+
"listviewmine:org:hardis:fix",
|
|
7004
|
+
"listviewmine:org:fix:hardis",
|
|
7005
|
+
"hardis:listviewmine:fix:org",
|
|
7006
|
+
"listviewmine:hardis:fix:org",
|
|
7007
|
+
"listviewmine:fix:hardis:org",
|
|
7008
|
+
"listviewmine:fix:org:hardis"
|
|
7009
|
+
]
|
|
7010
|
+
},
|
|
7011
|
+
"hardis:org:generate:packagexmlfull": {
|
|
7012
|
+
"aliases": [],
|
|
7013
|
+
"args": {},
|
|
7014
|
+
"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.\n\n## Technical explanations\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",
|
|
7015
|
+
"examples": [
|
|
7016
|
+
"$ sf hardis:org:generate:packagexmlfull",
|
|
7017
|
+
"$ sf hardis:org:generate:packagexmlfull --outputfile /tmp/packagexmlfull.xml",
|
|
7018
|
+
"$ sf hardis:org:generate:packagexmlfull --target-org nico@example.com"
|
|
7019
|
+
],
|
|
7020
|
+
"flags": {
|
|
7021
|
+
"json": {
|
|
7022
|
+
"description": "Format output as json.",
|
|
7023
|
+
"helpGroup": "GLOBAL",
|
|
7024
|
+
"name": "json",
|
|
7025
|
+
"allowNo": false,
|
|
7026
|
+
"type": "boolean"
|
|
7027
|
+
},
|
|
7028
|
+
"flags-dir": {
|
|
7029
|
+
"helpGroup": "GLOBAL",
|
|
7030
|
+
"name": "flags-dir",
|
|
7031
|
+
"summary": "Import flag values from a directory.",
|
|
7032
|
+
"hasDynamicHelp": false,
|
|
7033
|
+
"multiple": false,
|
|
7034
|
+
"type": "option"
|
|
7035
|
+
},
|
|
7036
|
+
"outputfile": {
|
|
7037
|
+
"description": "Output package.xml file",
|
|
7038
|
+
"name": "outputfile",
|
|
7039
|
+
"hasDynamicHelp": false,
|
|
7040
|
+
"multiple": false,
|
|
7041
|
+
"type": "option"
|
|
7042
|
+
},
|
|
7043
|
+
"debug": {
|
|
7044
|
+
"char": "d",
|
|
7045
|
+
"description": "Activate debug mode (more logs)",
|
|
7046
|
+
"name": "debug",
|
|
7047
|
+
"allowNo": false,
|
|
7048
|
+
"type": "boolean"
|
|
7049
|
+
},
|
|
7050
|
+
"websocket": {
|
|
7051
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7052
|
+
"name": "websocket",
|
|
7053
|
+
"hasDynamicHelp": false,
|
|
7054
|
+
"multiple": false,
|
|
7055
|
+
"type": "option"
|
|
7056
|
+
},
|
|
7057
|
+
"skipauth": {
|
|
7058
|
+
"description": "Skip authentication check when a default username is required",
|
|
7059
|
+
"name": "skipauth",
|
|
7060
|
+
"allowNo": false,
|
|
7061
|
+
"type": "boolean"
|
|
7062
|
+
},
|
|
7063
|
+
"target-org": {
|
|
7064
|
+
"aliases": [
|
|
7065
|
+
"targetusername",
|
|
7066
|
+
"u"
|
|
7067
|
+
],
|
|
7068
|
+
"char": "o",
|
|
7069
|
+
"deprecateAliases": true,
|
|
7070
|
+
"name": "target-org",
|
|
7071
|
+
"noCacheDefault": true,
|
|
7072
|
+
"required": true,
|
|
7073
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7074
|
+
"hasDynamicHelp": true,
|
|
7075
|
+
"multiple": false,
|
|
7076
|
+
"type": "option"
|
|
7077
|
+
}
|
|
7078
|
+
},
|
|
7079
|
+
"hasDynamicHelp": true,
|
|
7080
|
+
"hiddenAliases": [],
|
|
7081
|
+
"id": "hardis:org:generate:packagexmlfull",
|
|
7082
|
+
"pluginAlias": "sfdx-hardis",
|
|
7083
|
+
"pluginName": "sfdx-hardis",
|
|
7084
|
+
"pluginType": "core",
|
|
7085
|
+
"strict": true,
|
|
7086
|
+
"enableJsonFlag": true,
|
|
7087
|
+
"title": "Generate Full Org package.xml",
|
|
7088
|
+
"requiresProject": false,
|
|
7089
|
+
"isESM": true,
|
|
7090
|
+
"relativePath": [
|
|
7091
|
+
"lib",
|
|
7092
|
+
"commands",
|
|
7093
|
+
"hardis",
|
|
7094
|
+
"org",
|
|
7095
|
+
"generate",
|
|
7096
|
+
"packagexmlfull.js"
|
|
7097
|
+
],
|
|
7098
|
+
"aliasPermutations": [],
|
|
7099
|
+
"permutations": [
|
|
7100
|
+
"hardis:org:generate:packagexmlfull",
|
|
7101
|
+
"org:hardis:generate:packagexmlfull",
|
|
7102
|
+
"org:generate:hardis:packagexmlfull",
|
|
7103
|
+
"org:generate:packagexmlfull:hardis",
|
|
7104
|
+
"hardis:generate:org:packagexmlfull",
|
|
7105
7105
|
"generate:hardis:org:packagexmlfull",
|
|
7106
7106
|
"generate:org:hardis:packagexmlfull",
|
|
7107
7107
|
"generate:org:packagexmlfull:hardis",
|
|
@@ -7973,126 +7973,6 @@
|
|
|
7973
7973
|
"packageconfig:retrieve:org:hardis"
|
|
7974
7974
|
]
|
|
7975
7975
|
},
|
|
7976
|
-
"hardis:org:test:apex": {
|
|
7977
|
-
"aliases": [],
|
|
7978
|
-
"args": {},
|
|
7979
|
-
"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",
|
|
7980
|
-
"examples": [
|
|
7981
|
-
"$ sf hardis:org:test:apex"
|
|
7982
|
-
],
|
|
7983
|
-
"flags": {
|
|
7984
|
-
"json": {
|
|
7985
|
-
"description": "Format output as json.",
|
|
7986
|
-
"helpGroup": "GLOBAL",
|
|
7987
|
-
"name": "json",
|
|
7988
|
-
"allowNo": false,
|
|
7989
|
-
"type": "boolean"
|
|
7990
|
-
},
|
|
7991
|
-
"flags-dir": {
|
|
7992
|
-
"helpGroup": "GLOBAL",
|
|
7993
|
-
"name": "flags-dir",
|
|
7994
|
-
"summary": "Import flag values from a directory.",
|
|
7995
|
-
"hasDynamicHelp": false,
|
|
7996
|
-
"multiple": false,
|
|
7997
|
-
"type": "option"
|
|
7998
|
-
},
|
|
7999
|
-
"testlevel": {
|
|
8000
|
-
"char": "l",
|
|
8001
|
-
"description": "Level of tests to apply to validate deployment",
|
|
8002
|
-
"name": "testlevel",
|
|
8003
|
-
"default": "RunLocalTests",
|
|
8004
|
-
"hasDynamicHelp": false,
|
|
8005
|
-
"multiple": false,
|
|
8006
|
-
"options": [
|
|
8007
|
-
"NoTestRun",
|
|
8008
|
-
"RunSpecifiedTests",
|
|
8009
|
-
"RunLocalTests",
|
|
8010
|
-
"RunAllTestsInOrg"
|
|
8011
|
-
],
|
|
8012
|
-
"type": "option"
|
|
8013
|
-
},
|
|
8014
|
-
"debug": {
|
|
8015
|
-
"char": "d",
|
|
8016
|
-
"description": "Activate debug mode (more logs)",
|
|
8017
|
-
"name": "debug",
|
|
8018
|
-
"allowNo": false,
|
|
8019
|
-
"type": "boolean"
|
|
8020
|
-
},
|
|
8021
|
-
"websocket": {
|
|
8022
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
8023
|
-
"name": "websocket",
|
|
8024
|
-
"hasDynamicHelp": false,
|
|
8025
|
-
"multiple": false,
|
|
8026
|
-
"type": "option"
|
|
8027
|
-
},
|
|
8028
|
-
"skipauth": {
|
|
8029
|
-
"description": "Skip authentication check when a default username is required",
|
|
8030
|
-
"name": "skipauth",
|
|
8031
|
-
"allowNo": false,
|
|
8032
|
-
"type": "boolean"
|
|
8033
|
-
},
|
|
8034
|
-
"target-org": {
|
|
8035
|
-
"aliases": [
|
|
8036
|
-
"targetusername",
|
|
8037
|
-
"u"
|
|
8038
|
-
],
|
|
8039
|
-
"char": "o",
|
|
8040
|
-
"deprecateAliases": true,
|
|
8041
|
-
"name": "target-org",
|
|
8042
|
-
"noCacheDefault": true,
|
|
8043
|
-
"required": true,
|
|
8044
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
8045
|
-
"hasDynamicHelp": true,
|
|
8046
|
-
"multiple": false,
|
|
8047
|
-
"type": "option"
|
|
8048
|
-
}
|
|
8049
|
-
},
|
|
8050
|
-
"hasDynamicHelp": true,
|
|
8051
|
-
"hiddenAliases": [],
|
|
8052
|
-
"id": "hardis:org:test:apex",
|
|
8053
|
-
"pluginAlias": "sfdx-hardis",
|
|
8054
|
-
"pluginName": "sfdx-hardis",
|
|
8055
|
-
"pluginType": "core",
|
|
8056
|
-
"strict": true,
|
|
8057
|
-
"enableJsonFlag": true,
|
|
8058
|
-
"title": "Run apex tests",
|
|
8059
|
-
"isESM": true,
|
|
8060
|
-
"relativePath": [
|
|
8061
|
-
"lib",
|
|
8062
|
-
"commands",
|
|
8063
|
-
"hardis",
|
|
8064
|
-
"org",
|
|
8065
|
-
"test",
|
|
8066
|
-
"apex.js"
|
|
8067
|
-
],
|
|
8068
|
-
"aliasPermutations": [],
|
|
8069
|
-
"permutations": [
|
|
8070
|
-
"hardis:org:test:apex",
|
|
8071
|
-
"org:hardis:test:apex",
|
|
8072
|
-
"org:test:hardis:apex",
|
|
8073
|
-
"org:test:apex:hardis",
|
|
8074
|
-
"hardis:test:org:apex",
|
|
8075
|
-
"test:hardis:org:apex",
|
|
8076
|
-
"test:org:hardis:apex",
|
|
8077
|
-
"test:org:apex:hardis",
|
|
8078
|
-
"hardis:test:apex:org",
|
|
8079
|
-
"test:hardis:apex:org",
|
|
8080
|
-
"test:apex:hardis:org",
|
|
8081
|
-
"test:apex:org:hardis",
|
|
8082
|
-
"hardis:org:apex:test",
|
|
8083
|
-
"org:hardis:apex:test",
|
|
8084
|
-
"org:apex:hardis:test",
|
|
8085
|
-
"org:apex:test:hardis",
|
|
8086
|
-
"hardis:apex:org:test",
|
|
8087
|
-
"apex:hardis:org:test",
|
|
8088
|
-
"apex:org:hardis:test",
|
|
8089
|
-
"apex:org:test:hardis",
|
|
8090
|
-
"hardis:apex:test:org",
|
|
8091
|
-
"apex:hardis:test:org",
|
|
8092
|
-
"apex:test:hardis:org",
|
|
8093
|
-
"apex:test:org:hardis"
|
|
8094
|
-
]
|
|
8095
|
-
},
|
|
8096
7976
|
"hardis:org:user:activateinvalid": {
|
|
8097
7977
|
"aliases": [],
|
|
8098
7978
|
"args": {},
|
|
@@ -8493,12 +8373,12 @@
|
|
|
8493
8373
|
"unfreeze:user:org:hardis"
|
|
8494
8374
|
]
|
|
8495
8375
|
},
|
|
8496
|
-
"hardis:
|
|
8376
|
+
"hardis:org:test:apex": {
|
|
8497
8377
|
"aliases": [],
|
|
8498
8378
|
"args": {},
|
|
8499
|
-
"description": "
|
|
8379
|
+
"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",
|
|
8500
8380
|
"examples": [
|
|
8501
|
-
"$ sf hardis:
|
|
8381
|
+
"$ sf hardis:org:test:apex"
|
|
8502
8382
|
],
|
|
8503
8383
|
"flags": {
|
|
8504
8384
|
"json": {
|
|
@@ -8516,16 +8396,136 @@
|
|
|
8516
8396
|
"multiple": false,
|
|
8517
8397
|
"type": "option"
|
|
8518
8398
|
},
|
|
8519
|
-
"
|
|
8520
|
-
"char": "
|
|
8521
|
-
"description": "
|
|
8522
|
-
"name": "
|
|
8523
|
-
"
|
|
8524
|
-
"
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8399
|
+
"testlevel": {
|
|
8400
|
+
"char": "l",
|
|
8401
|
+
"description": "Level of tests to apply to validate deployment",
|
|
8402
|
+
"name": "testlevel",
|
|
8403
|
+
"default": "RunLocalTests",
|
|
8404
|
+
"hasDynamicHelp": false,
|
|
8405
|
+
"multiple": false,
|
|
8406
|
+
"options": [
|
|
8407
|
+
"NoTestRun",
|
|
8408
|
+
"RunSpecifiedTests",
|
|
8409
|
+
"RunLocalTests",
|
|
8410
|
+
"RunAllTestsInOrg"
|
|
8411
|
+
],
|
|
8412
|
+
"type": "option"
|
|
8413
|
+
},
|
|
8414
|
+
"debug": {
|
|
8415
|
+
"char": "d",
|
|
8416
|
+
"description": "Activate debug mode (more logs)",
|
|
8417
|
+
"name": "debug",
|
|
8418
|
+
"allowNo": false,
|
|
8419
|
+
"type": "boolean"
|
|
8420
|
+
},
|
|
8421
|
+
"websocket": {
|
|
8422
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
8423
|
+
"name": "websocket",
|
|
8424
|
+
"hasDynamicHelp": false,
|
|
8425
|
+
"multiple": false,
|
|
8426
|
+
"type": "option"
|
|
8427
|
+
},
|
|
8428
|
+
"skipauth": {
|
|
8429
|
+
"description": "Skip authentication check when a default username is required",
|
|
8430
|
+
"name": "skipauth",
|
|
8431
|
+
"allowNo": false,
|
|
8432
|
+
"type": "boolean"
|
|
8433
|
+
},
|
|
8434
|
+
"target-org": {
|
|
8435
|
+
"aliases": [
|
|
8436
|
+
"targetusername",
|
|
8437
|
+
"u"
|
|
8438
|
+
],
|
|
8439
|
+
"char": "o",
|
|
8440
|
+
"deprecateAliases": true,
|
|
8441
|
+
"name": "target-org",
|
|
8442
|
+
"noCacheDefault": true,
|
|
8443
|
+
"required": true,
|
|
8444
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
8445
|
+
"hasDynamicHelp": true,
|
|
8446
|
+
"multiple": false,
|
|
8447
|
+
"type": "option"
|
|
8448
|
+
}
|
|
8449
|
+
},
|
|
8450
|
+
"hasDynamicHelp": true,
|
|
8451
|
+
"hiddenAliases": [],
|
|
8452
|
+
"id": "hardis:org:test:apex",
|
|
8453
|
+
"pluginAlias": "sfdx-hardis",
|
|
8454
|
+
"pluginName": "sfdx-hardis",
|
|
8455
|
+
"pluginType": "core",
|
|
8456
|
+
"strict": true,
|
|
8457
|
+
"enableJsonFlag": true,
|
|
8458
|
+
"title": "Run apex tests",
|
|
8459
|
+
"isESM": true,
|
|
8460
|
+
"relativePath": [
|
|
8461
|
+
"lib",
|
|
8462
|
+
"commands",
|
|
8463
|
+
"hardis",
|
|
8464
|
+
"org",
|
|
8465
|
+
"test",
|
|
8466
|
+
"apex.js"
|
|
8467
|
+
],
|
|
8468
|
+
"aliasPermutations": [],
|
|
8469
|
+
"permutations": [
|
|
8470
|
+
"hardis:org:test:apex",
|
|
8471
|
+
"org:hardis:test:apex",
|
|
8472
|
+
"org:test:hardis:apex",
|
|
8473
|
+
"org:test:apex:hardis",
|
|
8474
|
+
"hardis:test:org:apex",
|
|
8475
|
+
"test:hardis:org:apex",
|
|
8476
|
+
"test:org:hardis:apex",
|
|
8477
|
+
"test:org:apex:hardis",
|
|
8478
|
+
"hardis:test:apex:org",
|
|
8479
|
+
"test:hardis:apex:org",
|
|
8480
|
+
"test:apex:hardis:org",
|
|
8481
|
+
"test:apex:org:hardis",
|
|
8482
|
+
"hardis:org:apex:test",
|
|
8483
|
+
"org:hardis:apex:test",
|
|
8484
|
+
"org:apex:hardis:test",
|
|
8485
|
+
"org:apex:test:hardis",
|
|
8486
|
+
"hardis:apex:org:test",
|
|
8487
|
+
"apex:hardis:org:test",
|
|
8488
|
+
"apex:org:hardis:test",
|
|
8489
|
+
"apex:org:test:hardis",
|
|
8490
|
+
"hardis:apex:test:org",
|
|
8491
|
+
"apex:hardis:test:org",
|
|
8492
|
+
"apex:test:hardis:org",
|
|
8493
|
+
"apex:test:org:hardis"
|
|
8494
|
+
]
|
|
8495
|
+
},
|
|
8496
|
+
"hardis:package:version:create": {
|
|
8497
|
+
"aliases": [],
|
|
8498
|
+
"args": {},
|
|
8499
|
+
"description": "\n## Command Behavior\n\n**Creates a new version of a Salesforce package (2GP or Unlocked) in your Dev Hub.**\n\nThis command is a crucial step in the package development lifecycle, allowing you to iterate on your Salesforce functionalities and prepare them for deployment or distribution. It automates the process of creating a new, immutable package version.\n\nKey functionalities:\n\n- **Package Selection:** Prompts you to select an existing package from your `sfdx-project.json` file if not specified via the `--package` flag.\n- **Installation Key:** Allows you to set an installation key (password) for the package version, protecting it from unauthorized installations. This can be provided via the `--installkey` flag or interactively.\n- **Code Coverage:** Automatically includes code coverage checks during package version creation.\n- **Post-Creation Actions:**\n - **Delete After Creation (`--deleteafter`):** Deletes the newly created package version immediately after its creation. This is useful for testing the package creation process without accumulating unnecessary versions.\n - **Install After Creation (`--install`):** Installs the newly created package version on your default Salesforce org. This is convenient for immediate testing or validation.\n\n## Technical explanations\n\nThe command's technical implementation involves:\n\n- **Package Directory Identification:** It identifies the package directory from your `sfdx-project.json` based on the selected package name.\n- **Interactive Prompts:** Uses the `prompts` library to guide the user through package selection and installation key input if not provided as command-line arguments.\n- **Configuration Persistence:** Stores the `defaultPackageInstallationKey` in your project's configuration (`.sfdx-hardis.yml`) for future use.\n- **Salesforce CLI Integration:** It constructs and executes the `sf package version create` command, passing the package ID, installation key, and other flags.\n- **`execSfdxJson`:** This utility is used to execute the Salesforce CLI command and capture its JSON output, which includes the `SubscriberPackageVersionId` of the newly created version.\n- **Post-Creation Command Execution:** If `--deleteafter` or `--install` flags are set, it executes `sf package version delete` or delegates to `MetadataUtils.installPackagesOnOrg` respectively.\n- **Error Handling:** Includes checks for missing package arguments and handles errors during package version creation or post-creation actions.\n",
|
|
8500
|
+
"examples": [
|
|
8501
|
+
"$ sf hardis:package:version:create"
|
|
8502
|
+
],
|
|
8503
|
+
"flags": {
|
|
8504
|
+
"json": {
|
|
8505
|
+
"description": "Format output as json.",
|
|
8506
|
+
"helpGroup": "GLOBAL",
|
|
8507
|
+
"name": "json",
|
|
8508
|
+
"allowNo": false,
|
|
8509
|
+
"type": "boolean"
|
|
8510
|
+
},
|
|
8511
|
+
"flags-dir": {
|
|
8512
|
+
"helpGroup": "GLOBAL",
|
|
8513
|
+
"name": "flags-dir",
|
|
8514
|
+
"summary": "Import flag values from a directory.",
|
|
8515
|
+
"hasDynamicHelp": false,
|
|
8516
|
+
"multiple": false,
|
|
8517
|
+
"type": "option"
|
|
8518
|
+
},
|
|
8519
|
+
"debug": {
|
|
8520
|
+
"char": "d",
|
|
8521
|
+
"description": "Activate debug mode (more logs)",
|
|
8522
|
+
"name": "debug",
|
|
8523
|
+
"allowNo": false,
|
|
8524
|
+
"type": "boolean"
|
|
8525
|
+
},
|
|
8526
|
+
"package": {
|
|
8527
|
+
"char": "p",
|
|
8528
|
+
"description": "Package identifier that you want to use to generate a new package version",
|
|
8529
8529
|
"name": "package",
|
|
8530
8530
|
"default": "",
|
|
8531
8531
|
"hasDynamicHelp": false,
|
|
@@ -8847,6 +8847,135 @@
|
|
|
8847
8847
|
"promote:version:package:hardis"
|
|
8848
8848
|
]
|
|
8849
8849
|
},
|
|
8850
|
+
"hardis:project:configure:auth": {
|
|
8851
|
+
"aliases": [],
|
|
8852
|
+
"args": {},
|
|
8853
|
+
"description": "\n## Command Behavior\n\n**Configures authentication between a Git branch and a target Salesforce org for CI/CD deployments.**\n\nThis command facilitates the setup of automated CI/CD pipelines, enabling seamless deployments from specific Git branches to designated Salesforce orgs. It supports both standard Salesforce orgs and Dev Hub configurations, catering to various enterprise deployment workflows.\n\nKey functionalities include:\n\n- **Org Selection/Login:** Guides the user to select an existing Salesforce org or log in to a new one.\n- **Git Branch Association:** Allows associating a specific Git branch with the chosen Salesforce org.\n- **Merge Target Definition:** Enables defining target Git branches into which the configured branch can merge, ensuring controlled deployment flows.\n- **Salesforce Username Configuration:** Prompts for the Salesforce username to be used by the CI server for deployments.\n- **SSL Certificate Generation:** Automatically generates an SSL certificate for secure authentication.\n\n## Technical explanations\n\nThe command's implementation involves several key technical aspects:\n\n- **SF CLI Integration:** Utilizes \n@salesforce/sf-plugins-core\n for command structure and flag parsing.\n- **Interactive Prompts:** Employs the \nprompts\n library for interactive user input, guiding the configuration process.\n- **Git Integration:** Interacts with Git to retrieve branch information using \n`git().branch([\"--list\", \"-r\"])`\n.\n- **Configuration Management:** Leverages internal utilities (`checkConfig`, `getConfig`, `setConfig`, `setInConfigFile`) to read from and write to project-specific configuration files (e.g., `.sfdx-hardis.<branchName>.yml`).\n- **Salesforce CLI Execution:** Executes Salesforce CLI commands programmatically via `execSfdxJson` for org interactions.\n- **SSL Certificate Generation:** Calls `generateSSLCertificate` to create necessary SSL certificates for JWT-based authentication.\n- **WebSocket Communication:** Uses `WebSocketClient` for potential communication with external tools or processes, such as restarting the command in VS Code.\n- **Dependency Check:** Ensures the presence of `openssl` on the system, which is required for SSL certificate generation.\n",
|
|
8854
|
+
"examples": [
|
|
8855
|
+
"$ sf hardis:project:configure:auth"
|
|
8856
|
+
],
|
|
8857
|
+
"flags": {
|
|
8858
|
+
"json": {
|
|
8859
|
+
"description": "Format output as json.",
|
|
8860
|
+
"helpGroup": "GLOBAL",
|
|
8861
|
+
"name": "json",
|
|
8862
|
+
"allowNo": false,
|
|
8863
|
+
"type": "boolean"
|
|
8864
|
+
},
|
|
8865
|
+
"flags-dir": {
|
|
8866
|
+
"helpGroup": "GLOBAL",
|
|
8867
|
+
"name": "flags-dir",
|
|
8868
|
+
"summary": "Import flag values from a directory.",
|
|
8869
|
+
"hasDynamicHelp": false,
|
|
8870
|
+
"multiple": false,
|
|
8871
|
+
"type": "option"
|
|
8872
|
+
},
|
|
8873
|
+
"devhub": {
|
|
8874
|
+
"char": "b",
|
|
8875
|
+
"description": "Configure project DevHub",
|
|
8876
|
+
"name": "devhub",
|
|
8877
|
+
"allowNo": false,
|
|
8878
|
+
"type": "boolean"
|
|
8879
|
+
},
|
|
8880
|
+
"debug": {
|
|
8881
|
+
"char": "d",
|
|
8882
|
+
"description": "Activate debug mode (more logs)",
|
|
8883
|
+
"name": "debug",
|
|
8884
|
+
"allowNo": false,
|
|
8885
|
+
"type": "boolean"
|
|
8886
|
+
},
|
|
8887
|
+
"websocket": {
|
|
8888
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
8889
|
+
"name": "websocket",
|
|
8890
|
+
"hasDynamicHelp": false,
|
|
8891
|
+
"multiple": false,
|
|
8892
|
+
"type": "option"
|
|
8893
|
+
},
|
|
8894
|
+
"skipauth": {
|
|
8895
|
+
"description": "Skip authentication check when a default username is required",
|
|
8896
|
+
"name": "skipauth",
|
|
8897
|
+
"allowNo": false,
|
|
8898
|
+
"type": "boolean"
|
|
8899
|
+
},
|
|
8900
|
+
"target-org": {
|
|
8901
|
+
"aliases": [
|
|
8902
|
+
"targetusername",
|
|
8903
|
+
"u"
|
|
8904
|
+
],
|
|
8905
|
+
"char": "o",
|
|
8906
|
+
"deprecateAliases": true,
|
|
8907
|
+
"name": "target-org",
|
|
8908
|
+
"noCacheDefault": true,
|
|
8909
|
+
"summary": "Username or alias of the target org.",
|
|
8910
|
+
"hasDynamicHelp": true,
|
|
8911
|
+
"multiple": false,
|
|
8912
|
+
"type": "option"
|
|
8913
|
+
},
|
|
8914
|
+
"target-dev-hub": {
|
|
8915
|
+
"aliases": [
|
|
8916
|
+
"targetdevhubusername"
|
|
8917
|
+
],
|
|
8918
|
+
"char": "v",
|
|
8919
|
+
"deprecateAliases": true,
|
|
8920
|
+
"name": "target-dev-hub",
|
|
8921
|
+
"noCacheDefault": true,
|
|
8922
|
+
"required": false,
|
|
8923
|
+
"summary": "Username or alias of the Dev Hub org.",
|
|
8924
|
+
"hasDynamicHelp": true,
|
|
8925
|
+
"multiple": false,
|
|
8926
|
+
"type": "option"
|
|
8927
|
+
}
|
|
8928
|
+
},
|
|
8929
|
+
"hasDynamicHelp": true,
|
|
8930
|
+
"hiddenAliases": [],
|
|
8931
|
+
"id": "hardis:project:configure:auth",
|
|
8932
|
+
"pluginAlias": "sfdx-hardis",
|
|
8933
|
+
"pluginName": "sfdx-hardis",
|
|
8934
|
+
"pluginType": "core",
|
|
8935
|
+
"strict": true,
|
|
8936
|
+
"enableJsonFlag": true,
|
|
8937
|
+
"title": "Configure authentication",
|
|
8938
|
+
"requiresProject": false,
|
|
8939
|
+
"requiresDependencies": [
|
|
8940
|
+
"openssl"
|
|
8941
|
+
],
|
|
8942
|
+
"isESM": true,
|
|
8943
|
+
"relativePath": [
|
|
8944
|
+
"lib",
|
|
8945
|
+
"commands",
|
|
8946
|
+
"hardis",
|
|
8947
|
+
"project",
|
|
8948
|
+
"configure",
|
|
8949
|
+
"auth.js"
|
|
8950
|
+
],
|
|
8951
|
+
"aliasPermutations": [],
|
|
8952
|
+
"permutations": [
|
|
8953
|
+
"hardis:project:configure:auth",
|
|
8954
|
+
"project:hardis:configure:auth",
|
|
8955
|
+
"project:configure:hardis:auth",
|
|
8956
|
+
"project:configure:auth:hardis",
|
|
8957
|
+
"hardis:configure:project:auth",
|
|
8958
|
+
"configure:hardis:project:auth",
|
|
8959
|
+
"configure:project:hardis:auth",
|
|
8960
|
+
"configure:project:auth:hardis",
|
|
8961
|
+
"hardis:configure:auth:project",
|
|
8962
|
+
"configure:hardis:auth:project",
|
|
8963
|
+
"configure:auth:hardis:project",
|
|
8964
|
+
"configure:auth:project:hardis",
|
|
8965
|
+
"hardis:project:auth:configure",
|
|
8966
|
+
"project:hardis:auth:configure",
|
|
8967
|
+
"project:auth:hardis:configure",
|
|
8968
|
+
"project:auth:configure:hardis",
|
|
8969
|
+
"hardis:auth:project:configure",
|
|
8970
|
+
"auth:hardis:project:configure",
|
|
8971
|
+
"auth:project:hardis:configure",
|
|
8972
|
+
"auth:project:configure:hardis",
|
|
8973
|
+
"hardis:auth:configure:project",
|
|
8974
|
+
"auth:hardis:configure:project",
|
|
8975
|
+
"auth:configure:hardis:project",
|
|
8976
|
+
"auth:configure:project:hardis"
|
|
8977
|
+
]
|
|
8978
|
+
},
|
|
8850
8979
|
"hardis:project:audit:apiversion": {
|
|
8851
8980
|
"aliases": [],
|
|
8852
8981
|
"args": {},
|
|
@@ -9202,191 +9331,62 @@
|
|
|
9202
9331
|
"websocket": {
|
|
9203
9332
|
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
9204
9333
|
"name": "websocket",
|
|
9205
|
-
"hasDynamicHelp": false,
|
|
9206
|
-
"multiple": false,
|
|
9207
|
-
"type": "option"
|
|
9208
|
-
},
|
|
9209
|
-
"skipauth": {
|
|
9210
|
-
"description": "Skip authentication check when a default username is required",
|
|
9211
|
-
"name": "skipauth",
|
|
9212
|
-
"allowNo": false,
|
|
9213
|
-
"type": "boolean"
|
|
9214
|
-
}
|
|
9215
|
-
},
|
|
9216
|
-
"hasDynamicHelp": false,
|
|
9217
|
-
"hiddenAliases": [],
|
|
9218
|
-
"id": "hardis:project:audit:remotesites",
|
|
9219
|
-
"pluginAlias": "sfdx-hardis",
|
|
9220
|
-
"pluginName": "sfdx-hardis",
|
|
9221
|
-
"pluginType": "core",
|
|
9222
|
-
"strict": true,
|
|
9223
|
-
"enableJsonFlag": true,
|
|
9224
|
-
"title": "Audit Remote Sites",
|
|
9225
|
-
"requiresProject": true,
|
|
9226
|
-
"isESM": true,
|
|
9227
|
-
"relativePath": [
|
|
9228
|
-
"lib",
|
|
9229
|
-
"commands",
|
|
9230
|
-
"hardis",
|
|
9231
|
-
"project",
|
|
9232
|
-
"audit",
|
|
9233
|
-
"remotesites.js"
|
|
9234
|
-
],
|
|
9235
|
-
"aliasPermutations": [],
|
|
9236
|
-
"permutations": [
|
|
9237
|
-
"hardis:project:audit:remotesites",
|
|
9238
|
-
"project:hardis:audit:remotesites",
|
|
9239
|
-
"project:audit:hardis:remotesites",
|
|
9240
|
-
"project:audit:remotesites:hardis",
|
|
9241
|
-
"hardis:audit:project:remotesites",
|
|
9242
|
-
"audit:hardis:project:remotesites",
|
|
9243
|
-
"audit:project:hardis:remotesites",
|
|
9244
|
-
"audit:project:remotesites:hardis",
|
|
9245
|
-
"hardis:audit:remotesites:project",
|
|
9246
|
-
"audit:hardis:remotesites:project",
|
|
9247
|
-
"audit:remotesites:hardis:project",
|
|
9248
|
-
"audit:remotesites:project:hardis",
|
|
9249
|
-
"hardis:project:remotesites:audit",
|
|
9250
|
-
"project:hardis:remotesites:audit",
|
|
9251
|
-
"project:remotesites:hardis:audit",
|
|
9252
|
-
"project:remotesites:audit:hardis",
|
|
9253
|
-
"hardis:remotesites:project:audit",
|
|
9254
|
-
"remotesites:hardis:project:audit",
|
|
9255
|
-
"remotesites:project:hardis:audit",
|
|
9256
|
-
"remotesites:project:audit:hardis",
|
|
9257
|
-
"hardis:remotesites:audit:project",
|
|
9258
|
-
"remotesites:hardis:audit:project",
|
|
9259
|
-
"remotesites:audit:hardis:project",
|
|
9260
|
-
"remotesites:audit:project:hardis"
|
|
9261
|
-
]
|
|
9262
|
-
},
|
|
9263
|
-
"hardis:project:configure:auth": {
|
|
9264
|
-
"aliases": [],
|
|
9265
|
-
"args": {},
|
|
9266
|
-
"description": "\n## Command Behavior\n\n**Configures authentication between a Git branch and a target Salesforce org for CI/CD deployments.**\n\nThis command facilitates the setup of automated CI/CD pipelines, enabling seamless deployments from specific Git branches to designated Salesforce orgs. It supports both standard Salesforce orgs and Dev Hub configurations, catering to various enterprise deployment workflows.\n\nKey functionalities include:\n\n- **Org Selection/Login:** Guides the user to select an existing Salesforce org or log in to a new one.\n- **Git Branch Association:** Allows associating a specific Git branch with the chosen Salesforce org.\n- **Merge Target Definition:** Enables defining target Git branches into which the configured branch can merge, ensuring controlled deployment flows.\n- **Salesforce Username Configuration:** Prompts for the Salesforce username to be used by the CI server for deployments.\n- **SSL Certificate Generation:** Automatically generates an SSL certificate for secure authentication.\n\n## Technical explanations\n\nThe command's implementation involves several key technical aspects:\n\n- **SF CLI Integration:** Utilizes \n@salesforce/sf-plugins-core\n for command structure and flag parsing.\n- **Interactive Prompts:** Employs the \nprompts\n library for interactive user input, guiding the configuration process.\n- **Git Integration:** Interacts with Git to retrieve branch information using \n`git().branch([\"--list\", \"-r\"])`\n.\n- **Configuration Management:** Leverages internal utilities (`checkConfig`, `getConfig`, `setConfig`, `setInConfigFile`) to read from and write to project-specific configuration files (e.g., `.sfdx-hardis.<branchName>.yml`).\n- **Salesforce CLI Execution:** Executes Salesforce CLI commands programmatically via `execSfdxJson` for org interactions.\n- **SSL Certificate Generation:** Calls `generateSSLCertificate` to create necessary SSL certificates for JWT-based authentication.\n- **WebSocket Communication:** Uses `WebSocketClient` for potential communication with external tools or processes, such as restarting the command in VS Code.\n- **Dependency Check:** Ensures the presence of `openssl` on the system, which is required for SSL certificate generation.\n",
|
|
9267
|
-
"examples": [
|
|
9268
|
-
"$ sf hardis:project:configure:auth"
|
|
9269
|
-
],
|
|
9270
|
-
"flags": {
|
|
9271
|
-
"json": {
|
|
9272
|
-
"description": "Format output as json.",
|
|
9273
|
-
"helpGroup": "GLOBAL",
|
|
9274
|
-
"name": "json",
|
|
9275
|
-
"allowNo": false,
|
|
9276
|
-
"type": "boolean"
|
|
9277
|
-
},
|
|
9278
|
-
"flags-dir": {
|
|
9279
|
-
"helpGroup": "GLOBAL",
|
|
9280
|
-
"name": "flags-dir",
|
|
9281
|
-
"summary": "Import flag values from a directory.",
|
|
9282
|
-
"hasDynamicHelp": false,
|
|
9283
|
-
"multiple": false,
|
|
9284
|
-
"type": "option"
|
|
9285
|
-
},
|
|
9286
|
-
"devhub": {
|
|
9287
|
-
"char": "b",
|
|
9288
|
-
"description": "Configure project DevHub",
|
|
9289
|
-
"name": "devhub",
|
|
9290
|
-
"allowNo": false,
|
|
9291
|
-
"type": "boolean"
|
|
9292
|
-
},
|
|
9293
|
-
"debug": {
|
|
9294
|
-
"char": "d",
|
|
9295
|
-
"description": "Activate debug mode (more logs)",
|
|
9296
|
-
"name": "debug",
|
|
9297
|
-
"allowNo": false,
|
|
9298
|
-
"type": "boolean"
|
|
9299
|
-
},
|
|
9300
|
-
"websocket": {
|
|
9301
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
9302
|
-
"name": "websocket",
|
|
9303
|
-
"hasDynamicHelp": false,
|
|
9304
|
-
"multiple": false,
|
|
9305
|
-
"type": "option"
|
|
9306
|
-
},
|
|
9307
|
-
"skipauth": {
|
|
9308
|
-
"description": "Skip authentication check when a default username is required",
|
|
9309
|
-
"name": "skipauth",
|
|
9310
|
-
"allowNo": false,
|
|
9311
|
-
"type": "boolean"
|
|
9312
|
-
},
|
|
9313
|
-
"target-org": {
|
|
9314
|
-
"aliases": [
|
|
9315
|
-
"targetusername",
|
|
9316
|
-
"u"
|
|
9317
|
-
],
|
|
9318
|
-
"char": "o",
|
|
9319
|
-
"deprecateAliases": true,
|
|
9320
|
-
"name": "target-org",
|
|
9321
|
-
"noCacheDefault": true,
|
|
9322
|
-
"summary": "Username or alias of the target org.",
|
|
9323
|
-
"hasDynamicHelp": true,
|
|
9334
|
+
"hasDynamicHelp": false,
|
|
9324
9335
|
"multiple": false,
|
|
9325
9336
|
"type": "option"
|
|
9326
9337
|
},
|
|
9327
|
-
"
|
|
9328
|
-
"
|
|
9329
|
-
|
|
9330
|
-
|
|
9331
|
-
"
|
|
9332
|
-
"deprecateAliases": true,
|
|
9333
|
-
"name": "target-dev-hub",
|
|
9334
|
-
"noCacheDefault": true,
|
|
9335
|
-
"required": false,
|
|
9336
|
-
"summary": "Username or alias of the Dev Hub org.",
|
|
9337
|
-
"hasDynamicHelp": true,
|
|
9338
|
-
"multiple": false,
|
|
9339
|
-
"type": "option"
|
|
9338
|
+
"skipauth": {
|
|
9339
|
+
"description": "Skip authentication check when a default username is required",
|
|
9340
|
+
"name": "skipauth",
|
|
9341
|
+
"allowNo": false,
|
|
9342
|
+
"type": "boolean"
|
|
9340
9343
|
}
|
|
9341
9344
|
},
|
|
9342
|
-
"hasDynamicHelp":
|
|
9345
|
+
"hasDynamicHelp": false,
|
|
9343
9346
|
"hiddenAliases": [],
|
|
9344
|
-
"id": "hardis:project:
|
|
9347
|
+
"id": "hardis:project:audit:remotesites",
|
|
9345
9348
|
"pluginAlias": "sfdx-hardis",
|
|
9346
9349
|
"pluginName": "sfdx-hardis",
|
|
9347
9350
|
"pluginType": "core",
|
|
9348
9351
|
"strict": true,
|
|
9349
9352
|
"enableJsonFlag": true,
|
|
9350
|
-
"title": "
|
|
9351
|
-
"requiresProject":
|
|
9352
|
-
"requiresDependencies": [
|
|
9353
|
-
"openssl"
|
|
9354
|
-
],
|
|
9353
|
+
"title": "Audit Remote Sites",
|
|
9354
|
+
"requiresProject": true,
|
|
9355
9355
|
"isESM": true,
|
|
9356
9356
|
"relativePath": [
|
|
9357
9357
|
"lib",
|
|
9358
9358
|
"commands",
|
|
9359
9359
|
"hardis",
|
|
9360
9360
|
"project",
|
|
9361
|
-
"
|
|
9362
|
-
"
|
|
9361
|
+
"audit",
|
|
9362
|
+
"remotesites.js"
|
|
9363
9363
|
],
|
|
9364
9364
|
"aliasPermutations": [],
|
|
9365
9365
|
"permutations": [
|
|
9366
|
-
"hardis:project:
|
|
9367
|
-
"project:hardis:
|
|
9368
|
-
"project:
|
|
9369
|
-
"project:
|
|
9370
|
-
"hardis:
|
|
9371
|
-
"
|
|
9372
|
-
"
|
|
9373
|
-
"
|
|
9374
|
-
"hardis:
|
|
9375
|
-
"
|
|
9376
|
-
"
|
|
9377
|
-
"
|
|
9378
|
-
"hardis:project:
|
|
9379
|
-
"project:hardis:
|
|
9380
|
-
"project:
|
|
9381
|
-
"project:
|
|
9382
|
-
"hardis:
|
|
9383
|
-
"
|
|
9384
|
-
"
|
|
9385
|
-
"
|
|
9386
|
-
"hardis:
|
|
9387
|
-
"
|
|
9388
|
-
"
|
|
9389
|
-
"
|
|
9366
|
+
"hardis:project:audit:remotesites",
|
|
9367
|
+
"project:hardis:audit:remotesites",
|
|
9368
|
+
"project:audit:hardis:remotesites",
|
|
9369
|
+
"project:audit:remotesites:hardis",
|
|
9370
|
+
"hardis:audit:project:remotesites",
|
|
9371
|
+
"audit:hardis:project:remotesites",
|
|
9372
|
+
"audit:project:hardis:remotesites",
|
|
9373
|
+
"audit:project:remotesites:hardis",
|
|
9374
|
+
"hardis:audit:remotesites:project",
|
|
9375
|
+
"audit:hardis:remotesites:project",
|
|
9376
|
+
"audit:remotesites:hardis:project",
|
|
9377
|
+
"audit:remotesites:project:hardis",
|
|
9378
|
+
"hardis:project:remotesites:audit",
|
|
9379
|
+
"project:hardis:remotesites:audit",
|
|
9380
|
+
"project:remotesites:hardis:audit",
|
|
9381
|
+
"project:remotesites:audit:hardis",
|
|
9382
|
+
"hardis:remotesites:project:audit",
|
|
9383
|
+
"remotesites:hardis:project:audit",
|
|
9384
|
+
"remotesites:project:hardis:audit",
|
|
9385
|
+
"remotesites:project:audit:hardis",
|
|
9386
|
+
"hardis:remotesites:audit:project",
|
|
9387
|
+
"remotesites:hardis:audit:project",
|
|
9388
|
+
"remotesites:audit:hardis:project",
|
|
9389
|
+
"remotesites:audit:project:hardis"
|
|
9390
9390
|
]
|
|
9391
9391
|
},
|
|
9392
9392
|
"hardis:project:convert:profilestopermsets": {
|
|
@@ -10977,6 +10977,221 @@
|
|
|
10977
10977
|
"xml:clean:project:hardis"
|
|
10978
10978
|
]
|
|
10979
10979
|
},
|
|
10980
|
+
"hardis:project:fix:profiletabs": {
|
|
10981
|
+
"aliases": [],
|
|
10982
|
+
"args": {},
|
|
10983
|
+
"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## Technical explanations\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",
|
|
10984
|
+
"examples": [
|
|
10985
|
+
"$ sf hardis:project:fix:profiletabs"
|
|
10986
|
+
],
|
|
10987
|
+
"flags": {
|
|
10988
|
+
"json": {
|
|
10989
|
+
"description": "Format output as json.",
|
|
10990
|
+
"helpGroup": "GLOBAL",
|
|
10991
|
+
"name": "json",
|
|
10992
|
+
"allowNo": false,
|
|
10993
|
+
"type": "boolean"
|
|
10994
|
+
},
|
|
10995
|
+
"flags-dir": {
|
|
10996
|
+
"helpGroup": "GLOBAL",
|
|
10997
|
+
"name": "flags-dir",
|
|
10998
|
+
"summary": "Import flag values from a directory.",
|
|
10999
|
+
"hasDynamicHelp": false,
|
|
11000
|
+
"multiple": false,
|
|
11001
|
+
"type": "option"
|
|
11002
|
+
},
|
|
11003
|
+
"path": {
|
|
11004
|
+
"char": "p",
|
|
11005
|
+
"description": "Root folder",
|
|
11006
|
+
"name": "path",
|
|
11007
|
+
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
11008
|
+
"hasDynamicHelp": false,
|
|
11009
|
+
"multiple": false,
|
|
11010
|
+
"type": "option"
|
|
11011
|
+
},
|
|
11012
|
+
"debug": {
|
|
11013
|
+
"char": "d",
|
|
11014
|
+
"description": "Activate debug mode (more logs)",
|
|
11015
|
+
"name": "debug",
|
|
11016
|
+
"allowNo": false,
|
|
11017
|
+
"type": "boolean"
|
|
11018
|
+
},
|
|
11019
|
+
"websocket": {
|
|
11020
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11021
|
+
"name": "websocket",
|
|
11022
|
+
"hasDynamicHelp": false,
|
|
11023
|
+
"multiple": false,
|
|
11024
|
+
"type": "option"
|
|
11025
|
+
},
|
|
11026
|
+
"skipauth": {
|
|
11027
|
+
"description": "Skip authentication check when a default username is required",
|
|
11028
|
+
"name": "skipauth",
|
|
11029
|
+
"allowNo": false,
|
|
11030
|
+
"type": "boolean"
|
|
11031
|
+
},
|
|
11032
|
+
"target-org": {
|
|
11033
|
+
"aliases": [
|
|
11034
|
+
"targetusername",
|
|
11035
|
+
"u"
|
|
11036
|
+
],
|
|
11037
|
+
"char": "o",
|
|
11038
|
+
"deprecateAliases": true,
|
|
11039
|
+
"name": "target-org",
|
|
11040
|
+
"noCacheDefault": true,
|
|
11041
|
+
"required": true,
|
|
11042
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
11043
|
+
"hasDynamicHelp": true,
|
|
11044
|
+
"multiple": false,
|
|
11045
|
+
"type": "option"
|
|
11046
|
+
}
|
|
11047
|
+
},
|
|
11048
|
+
"hasDynamicHelp": true,
|
|
11049
|
+
"hiddenAliases": [],
|
|
11050
|
+
"id": "hardis:project:fix:profiletabs",
|
|
11051
|
+
"pluginAlias": "sfdx-hardis",
|
|
11052
|
+
"pluginName": "sfdx-hardis",
|
|
11053
|
+
"pluginType": "core",
|
|
11054
|
+
"strict": true,
|
|
11055
|
+
"enableJsonFlag": true,
|
|
11056
|
+
"title": "Fix profiles to add tabs that are not retrieved by SF CLI",
|
|
11057
|
+
"requiresProject": true,
|
|
11058
|
+
"isESM": true,
|
|
11059
|
+
"relativePath": [
|
|
11060
|
+
"lib",
|
|
11061
|
+
"commands",
|
|
11062
|
+
"hardis",
|
|
11063
|
+
"project",
|
|
11064
|
+
"fix",
|
|
11065
|
+
"profiletabs.js"
|
|
11066
|
+
],
|
|
11067
|
+
"aliasPermutations": [],
|
|
11068
|
+
"permutations": [
|
|
11069
|
+
"hardis:project:fix:profiletabs",
|
|
11070
|
+
"project:hardis:fix:profiletabs",
|
|
11071
|
+
"project:fix:hardis:profiletabs",
|
|
11072
|
+
"project:fix:profiletabs:hardis",
|
|
11073
|
+
"hardis:fix:project:profiletabs",
|
|
11074
|
+
"fix:hardis:project:profiletabs",
|
|
11075
|
+
"fix:project:hardis:profiletabs",
|
|
11076
|
+
"fix:project:profiletabs:hardis",
|
|
11077
|
+
"hardis:fix:profiletabs:project",
|
|
11078
|
+
"fix:hardis:profiletabs:project",
|
|
11079
|
+
"fix:profiletabs:hardis:project",
|
|
11080
|
+
"fix:profiletabs:project:hardis",
|
|
11081
|
+
"hardis:project:profiletabs:fix",
|
|
11082
|
+
"project:hardis:profiletabs:fix",
|
|
11083
|
+
"project:profiletabs:hardis:fix",
|
|
11084
|
+
"project:profiletabs:fix:hardis",
|
|
11085
|
+
"hardis:profiletabs:project:fix",
|
|
11086
|
+
"profiletabs:hardis:project:fix",
|
|
11087
|
+
"profiletabs:project:hardis:fix",
|
|
11088
|
+
"profiletabs:project:fix:hardis",
|
|
11089
|
+
"hardis:profiletabs:fix:project",
|
|
11090
|
+
"profiletabs:hardis:fix:project",
|
|
11091
|
+
"profiletabs:fix:hardis:project",
|
|
11092
|
+
"profiletabs:fix:project:hardis"
|
|
11093
|
+
]
|
|
11094
|
+
},
|
|
11095
|
+
"hardis:project:fix:v53flexipages": {
|
|
11096
|
+
"aliases": [],
|
|
11097
|
+
"args": {},
|
|
11098
|
+
"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## Technical explanations\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",
|
|
11099
|
+
"examples": [
|
|
11100
|
+
"$ sf hardis:project:fix:v53flexipages"
|
|
11101
|
+
],
|
|
11102
|
+
"flags": {
|
|
11103
|
+
"json": {
|
|
11104
|
+
"description": "Format output as json.",
|
|
11105
|
+
"helpGroup": "GLOBAL",
|
|
11106
|
+
"name": "json",
|
|
11107
|
+
"allowNo": false,
|
|
11108
|
+
"type": "boolean"
|
|
11109
|
+
},
|
|
11110
|
+
"flags-dir": {
|
|
11111
|
+
"helpGroup": "GLOBAL",
|
|
11112
|
+
"name": "flags-dir",
|
|
11113
|
+
"summary": "Import flag values from a directory.",
|
|
11114
|
+
"hasDynamicHelp": false,
|
|
11115
|
+
"multiple": false,
|
|
11116
|
+
"type": "option"
|
|
11117
|
+
},
|
|
11118
|
+
"path": {
|
|
11119
|
+
"char": "p",
|
|
11120
|
+
"description": "Root folder",
|
|
11121
|
+
"name": "path",
|
|
11122
|
+
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
11123
|
+
"hasDynamicHelp": false,
|
|
11124
|
+
"multiple": false,
|
|
11125
|
+
"type": "option"
|
|
11126
|
+
},
|
|
11127
|
+
"debug": {
|
|
11128
|
+
"char": "d",
|
|
11129
|
+
"description": "Activate debug mode (more logs)",
|
|
11130
|
+
"name": "debug",
|
|
11131
|
+
"allowNo": false,
|
|
11132
|
+
"type": "boolean"
|
|
11133
|
+
},
|
|
11134
|
+
"websocket": {
|
|
11135
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11136
|
+
"name": "websocket",
|
|
11137
|
+
"hasDynamicHelp": false,
|
|
11138
|
+
"multiple": false,
|
|
11139
|
+
"type": "option"
|
|
11140
|
+
},
|
|
11141
|
+
"skipauth": {
|
|
11142
|
+
"description": "Skip authentication check when a default username is required",
|
|
11143
|
+
"name": "skipauth",
|
|
11144
|
+
"allowNo": false,
|
|
11145
|
+
"type": "boolean"
|
|
11146
|
+
}
|
|
11147
|
+
},
|
|
11148
|
+
"hasDynamicHelp": false,
|
|
11149
|
+
"hiddenAliases": [],
|
|
11150
|
+
"id": "hardis:project:fix:v53flexipages",
|
|
11151
|
+
"pluginAlias": "sfdx-hardis",
|
|
11152
|
+
"pluginName": "sfdx-hardis",
|
|
11153
|
+
"pluginType": "core",
|
|
11154
|
+
"strict": true,
|
|
11155
|
+
"enableJsonFlag": true,
|
|
11156
|
+
"title": "Fix flexipages for v53",
|
|
11157
|
+
"requiresProject": true,
|
|
11158
|
+
"isESM": true,
|
|
11159
|
+
"relativePath": [
|
|
11160
|
+
"lib",
|
|
11161
|
+
"commands",
|
|
11162
|
+
"hardis",
|
|
11163
|
+
"project",
|
|
11164
|
+
"fix",
|
|
11165
|
+
"v53flexipages.js"
|
|
11166
|
+
],
|
|
11167
|
+
"aliasPermutations": [],
|
|
11168
|
+
"permutations": [
|
|
11169
|
+
"hardis:project:fix:v53flexipages",
|
|
11170
|
+
"project:hardis:fix:v53flexipages",
|
|
11171
|
+
"project:fix:hardis:v53flexipages",
|
|
11172
|
+
"project:fix:v53flexipages:hardis",
|
|
11173
|
+
"hardis:fix:project:v53flexipages",
|
|
11174
|
+
"fix:hardis:project:v53flexipages",
|
|
11175
|
+
"fix:project:hardis:v53flexipages",
|
|
11176
|
+
"fix:project:v53flexipages:hardis",
|
|
11177
|
+
"hardis:fix:v53flexipages:project",
|
|
11178
|
+
"fix:hardis:v53flexipages:project",
|
|
11179
|
+
"fix:v53flexipages:hardis:project",
|
|
11180
|
+
"fix:v53flexipages:project:hardis",
|
|
11181
|
+
"hardis:project:v53flexipages:fix",
|
|
11182
|
+
"project:hardis:v53flexipages:fix",
|
|
11183
|
+
"project:v53flexipages:hardis:fix",
|
|
11184
|
+
"project:v53flexipages:fix:hardis",
|
|
11185
|
+
"hardis:v53flexipages:project:fix",
|
|
11186
|
+
"v53flexipages:hardis:project:fix",
|
|
11187
|
+
"v53flexipages:project:hardis:fix",
|
|
11188
|
+
"v53flexipages:project:fix:hardis",
|
|
11189
|
+
"hardis:v53flexipages:fix:project",
|
|
11190
|
+
"v53flexipages:hardis:fix:project",
|
|
11191
|
+
"v53flexipages:fix:hardis:project",
|
|
11192
|
+
"v53flexipages:fix:project:hardis"
|
|
11193
|
+
]
|
|
11194
|
+
},
|
|
10980
11195
|
"hardis:project:deploy:notify": {
|
|
10981
11196
|
"aliases": [],
|
|
10982
11197
|
"args": {},
|
|
@@ -12152,221 +12367,6 @@
|
|
|
12152
12367
|
"validate:deploy:project:hardis"
|
|
12153
12368
|
]
|
|
12154
12369
|
},
|
|
12155
|
-
"hardis:project:fix:profiletabs": {
|
|
12156
|
-
"aliases": [],
|
|
12157
|
-
"args": {},
|
|
12158
|
-
"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## Technical explanations\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",
|
|
12159
|
-
"examples": [
|
|
12160
|
-
"$ sf hardis:project:fix:profiletabs"
|
|
12161
|
-
],
|
|
12162
|
-
"flags": {
|
|
12163
|
-
"json": {
|
|
12164
|
-
"description": "Format output as json.",
|
|
12165
|
-
"helpGroup": "GLOBAL",
|
|
12166
|
-
"name": "json",
|
|
12167
|
-
"allowNo": false,
|
|
12168
|
-
"type": "boolean"
|
|
12169
|
-
},
|
|
12170
|
-
"flags-dir": {
|
|
12171
|
-
"helpGroup": "GLOBAL",
|
|
12172
|
-
"name": "flags-dir",
|
|
12173
|
-
"summary": "Import flag values from a directory.",
|
|
12174
|
-
"hasDynamicHelp": false,
|
|
12175
|
-
"multiple": false,
|
|
12176
|
-
"type": "option"
|
|
12177
|
-
},
|
|
12178
|
-
"path": {
|
|
12179
|
-
"char": "p",
|
|
12180
|
-
"description": "Root folder",
|
|
12181
|
-
"name": "path",
|
|
12182
|
-
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
12183
|
-
"hasDynamicHelp": false,
|
|
12184
|
-
"multiple": false,
|
|
12185
|
-
"type": "option"
|
|
12186
|
-
},
|
|
12187
|
-
"debug": {
|
|
12188
|
-
"char": "d",
|
|
12189
|
-
"description": "Activate debug mode (more logs)",
|
|
12190
|
-
"name": "debug",
|
|
12191
|
-
"allowNo": false,
|
|
12192
|
-
"type": "boolean"
|
|
12193
|
-
},
|
|
12194
|
-
"websocket": {
|
|
12195
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
12196
|
-
"name": "websocket",
|
|
12197
|
-
"hasDynamicHelp": false,
|
|
12198
|
-
"multiple": false,
|
|
12199
|
-
"type": "option"
|
|
12200
|
-
},
|
|
12201
|
-
"skipauth": {
|
|
12202
|
-
"description": "Skip authentication check when a default username is required",
|
|
12203
|
-
"name": "skipauth",
|
|
12204
|
-
"allowNo": false,
|
|
12205
|
-
"type": "boolean"
|
|
12206
|
-
},
|
|
12207
|
-
"target-org": {
|
|
12208
|
-
"aliases": [
|
|
12209
|
-
"targetusername",
|
|
12210
|
-
"u"
|
|
12211
|
-
],
|
|
12212
|
-
"char": "o",
|
|
12213
|
-
"deprecateAliases": true,
|
|
12214
|
-
"name": "target-org",
|
|
12215
|
-
"noCacheDefault": true,
|
|
12216
|
-
"required": true,
|
|
12217
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
12218
|
-
"hasDynamicHelp": true,
|
|
12219
|
-
"multiple": false,
|
|
12220
|
-
"type": "option"
|
|
12221
|
-
}
|
|
12222
|
-
},
|
|
12223
|
-
"hasDynamicHelp": true,
|
|
12224
|
-
"hiddenAliases": [],
|
|
12225
|
-
"id": "hardis:project:fix:profiletabs",
|
|
12226
|
-
"pluginAlias": "sfdx-hardis",
|
|
12227
|
-
"pluginName": "sfdx-hardis",
|
|
12228
|
-
"pluginType": "core",
|
|
12229
|
-
"strict": true,
|
|
12230
|
-
"enableJsonFlag": true,
|
|
12231
|
-
"title": "Fix profiles to add tabs that are not retrieved by SF CLI",
|
|
12232
|
-
"requiresProject": true,
|
|
12233
|
-
"isESM": true,
|
|
12234
|
-
"relativePath": [
|
|
12235
|
-
"lib",
|
|
12236
|
-
"commands",
|
|
12237
|
-
"hardis",
|
|
12238
|
-
"project",
|
|
12239
|
-
"fix",
|
|
12240
|
-
"profiletabs.js"
|
|
12241
|
-
],
|
|
12242
|
-
"aliasPermutations": [],
|
|
12243
|
-
"permutations": [
|
|
12244
|
-
"hardis:project:fix:profiletabs",
|
|
12245
|
-
"project:hardis:fix:profiletabs",
|
|
12246
|
-
"project:fix:hardis:profiletabs",
|
|
12247
|
-
"project:fix:profiletabs:hardis",
|
|
12248
|
-
"hardis:fix:project:profiletabs",
|
|
12249
|
-
"fix:hardis:project:profiletabs",
|
|
12250
|
-
"fix:project:hardis:profiletabs",
|
|
12251
|
-
"fix:project:profiletabs:hardis",
|
|
12252
|
-
"hardis:fix:profiletabs:project",
|
|
12253
|
-
"fix:hardis:profiletabs:project",
|
|
12254
|
-
"fix:profiletabs:hardis:project",
|
|
12255
|
-
"fix:profiletabs:project:hardis",
|
|
12256
|
-
"hardis:project:profiletabs:fix",
|
|
12257
|
-
"project:hardis:profiletabs:fix",
|
|
12258
|
-
"project:profiletabs:hardis:fix",
|
|
12259
|
-
"project:profiletabs:fix:hardis",
|
|
12260
|
-
"hardis:profiletabs:project:fix",
|
|
12261
|
-
"profiletabs:hardis:project:fix",
|
|
12262
|
-
"profiletabs:project:hardis:fix",
|
|
12263
|
-
"profiletabs:project:fix:hardis",
|
|
12264
|
-
"hardis:profiletabs:fix:project",
|
|
12265
|
-
"profiletabs:hardis:fix:project",
|
|
12266
|
-
"profiletabs:fix:hardis:project",
|
|
12267
|
-
"profiletabs:fix:project:hardis"
|
|
12268
|
-
]
|
|
12269
|
-
},
|
|
12270
|
-
"hardis:project:fix:v53flexipages": {
|
|
12271
|
-
"aliases": [],
|
|
12272
|
-
"args": {},
|
|
12273
|
-
"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## Technical explanations\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",
|
|
12274
|
-
"examples": [
|
|
12275
|
-
"$ sf hardis:project:fix:v53flexipages"
|
|
12276
|
-
],
|
|
12277
|
-
"flags": {
|
|
12278
|
-
"json": {
|
|
12279
|
-
"description": "Format output as json.",
|
|
12280
|
-
"helpGroup": "GLOBAL",
|
|
12281
|
-
"name": "json",
|
|
12282
|
-
"allowNo": false,
|
|
12283
|
-
"type": "boolean"
|
|
12284
|
-
},
|
|
12285
|
-
"flags-dir": {
|
|
12286
|
-
"helpGroup": "GLOBAL",
|
|
12287
|
-
"name": "flags-dir",
|
|
12288
|
-
"summary": "Import flag values from a directory.",
|
|
12289
|
-
"hasDynamicHelp": false,
|
|
12290
|
-
"multiple": false,
|
|
12291
|
-
"type": "option"
|
|
12292
|
-
},
|
|
12293
|
-
"path": {
|
|
12294
|
-
"char": "p",
|
|
12295
|
-
"description": "Root folder",
|
|
12296
|
-
"name": "path",
|
|
12297
|
-
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
12298
|
-
"hasDynamicHelp": false,
|
|
12299
|
-
"multiple": false,
|
|
12300
|
-
"type": "option"
|
|
12301
|
-
},
|
|
12302
|
-
"debug": {
|
|
12303
|
-
"char": "d",
|
|
12304
|
-
"description": "Activate debug mode (more logs)",
|
|
12305
|
-
"name": "debug",
|
|
12306
|
-
"allowNo": false,
|
|
12307
|
-
"type": "boolean"
|
|
12308
|
-
},
|
|
12309
|
-
"websocket": {
|
|
12310
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
12311
|
-
"name": "websocket",
|
|
12312
|
-
"hasDynamicHelp": false,
|
|
12313
|
-
"multiple": false,
|
|
12314
|
-
"type": "option"
|
|
12315
|
-
},
|
|
12316
|
-
"skipauth": {
|
|
12317
|
-
"description": "Skip authentication check when a default username is required",
|
|
12318
|
-
"name": "skipauth",
|
|
12319
|
-
"allowNo": false,
|
|
12320
|
-
"type": "boolean"
|
|
12321
|
-
}
|
|
12322
|
-
},
|
|
12323
|
-
"hasDynamicHelp": false,
|
|
12324
|
-
"hiddenAliases": [],
|
|
12325
|
-
"id": "hardis:project:fix:v53flexipages",
|
|
12326
|
-
"pluginAlias": "sfdx-hardis",
|
|
12327
|
-
"pluginName": "sfdx-hardis",
|
|
12328
|
-
"pluginType": "core",
|
|
12329
|
-
"strict": true,
|
|
12330
|
-
"enableJsonFlag": true,
|
|
12331
|
-
"title": "Fix flexipages for v53",
|
|
12332
|
-
"requiresProject": true,
|
|
12333
|
-
"isESM": true,
|
|
12334
|
-
"relativePath": [
|
|
12335
|
-
"lib",
|
|
12336
|
-
"commands",
|
|
12337
|
-
"hardis",
|
|
12338
|
-
"project",
|
|
12339
|
-
"fix",
|
|
12340
|
-
"v53flexipages.js"
|
|
12341
|
-
],
|
|
12342
|
-
"aliasPermutations": [],
|
|
12343
|
-
"permutations": [
|
|
12344
|
-
"hardis:project:fix:v53flexipages",
|
|
12345
|
-
"project:hardis:fix:v53flexipages",
|
|
12346
|
-
"project:fix:hardis:v53flexipages",
|
|
12347
|
-
"project:fix:v53flexipages:hardis",
|
|
12348
|
-
"hardis:fix:project:v53flexipages",
|
|
12349
|
-
"fix:hardis:project:v53flexipages",
|
|
12350
|
-
"fix:project:hardis:v53flexipages",
|
|
12351
|
-
"fix:project:v53flexipages:hardis",
|
|
12352
|
-
"hardis:fix:v53flexipages:project",
|
|
12353
|
-
"fix:hardis:v53flexipages:project",
|
|
12354
|
-
"fix:v53flexipages:hardis:project",
|
|
12355
|
-
"fix:v53flexipages:project:hardis",
|
|
12356
|
-
"hardis:project:v53flexipages:fix",
|
|
12357
|
-
"project:hardis:v53flexipages:fix",
|
|
12358
|
-
"project:v53flexipages:hardis:fix",
|
|
12359
|
-
"project:v53flexipages:fix:hardis",
|
|
12360
|
-
"hardis:v53flexipages:project:fix",
|
|
12361
|
-
"v53flexipages:hardis:project:fix",
|
|
12362
|
-
"v53flexipages:project:hardis:fix",
|
|
12363
|
-
"v53flexipages:project:fix:hardis",
|
|
12364
|
-
"hardis:v53flexipages:fix:project",
|
|
12365
|
-
"v53flexipages:hardis:fix:project",
|
|
12366
|
-
"v53flexipages:fix:hardis:project",
|
|
12367
|
-
"v53flexipages:fix:project:hardis"
|
|
12368
|
-
]
|
|
12369
|
-
},
|
|
12370
12370
|
"hardis:project:generate:bypass": {
|
|
12371
12371
|
"aliases": [],
|
|
12372
12372
|
"args": {},
|
|
@@ -14849,5 +14849,5 @@
|
|
|
14849
14849
|
]
|
|
14850
14850
|
}
|
|
14851
14851
|
},
|
|
14852
|
-
"version": "
|
|
14852
|
+
"version": "6.0.2-beta202508110129.0"
|
|
14853
14853
|
}
|