sfdx-hardis 6.9.1-alpha202510261251.0 → 6.9.1-alpha202510261658.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.
@@ -132,12 +132,13 @@
132
132
  "clear:cache:hardis"
133
133
  ]
134
134
  },
135
- "hardis:config:get": {
135
+ "hardis:auth:login": {
136
136
  "aliases": [],
137
137
  "args": {},
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",
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:project:deploy:sources:metadata"
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
- "level": {
159
- "char": "l",
160
- "description": "project,branch or user",
161
- "name": "level",
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:config:get",
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": "Deploy metadata sources to org",
210
+ "title": "Login",
202
211
  "requiresProject": false,
203
212
  "isESM": true,
204
213
  "relativePath": [
205
214
  "lib",
206
215
  "commands",
207
216
  "hardis",
208
- "config",
209
- "get.js"
217
+ "auth",
218
+ "login.js"
210
219
  ],
211
220
  "aliasPermutations": [],
212
221
  "permutations": [
213
- "hardis:config:get",
214
- "config:hardis:get",
215
- "config:get:hardis",
216
- "hardis:get:config",
217
- "get:hardis:config",
218
- "get:config:hardis"
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:auth:login": {
230
+ "hardis:config:get": {
222
231
  "aliases": [],
223
232
  "args": {},
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<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",
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:auth:login",
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
- "instanceurl": {
246
- "char": "r",
247
- "description": "URL of org instance",
248
- "name": "instanceurl",
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:auth:login",
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": "Login",
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
- "auth",
304
- "login.js"
303
+ "config",
304
+ "get.js"
305
305
  ],
306
306
  "aliasPermutations": [],
307
307
  "permutations": [
308
- "hardis:auth:login",
309
- "auth:hardis:login",
310
- "auth:login:hardis",
311
- "hardis:login:auth",
312
- "login:hardis:auth",
313
- "login:auth:hardis"
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": {
@@ -4422,135 +4422,6 @@
4422
4422
  "ws:work:hardis"
4423
4423
  ]
4424
4424
  },
4425
- "hardis:git:pull-requests:extract": {
4426
- "aliases": [],
4427
- "args": {},
4428
- "description": "\n## Command Behavior\n\n**Extracts pull request information from your Git server based on specified filtering criteria.**\n\nThis command provides a powerful way to query and retrieve details about pull requests (or merge requests, depending on your Git provider) in your repository. It's highly useful for reporting, auditing, and analyzing development workflows.\n\nKey functionalities include:\n\n- **Target Branch Filtering:** You can filter pull requests by their target branch using the `--target-branch` flag. If not specified, the command will prompt you to select one.\n- **Status Filtering:** Filter pull requests by their status: `open`, `merged`, or `abandoned` using the `--status` flag. An interactive prompt is provided if no status is specified.\n- **Minimum Date Filtering:** Use the `--min-date` flag to retrieve pull requests created or updated after a specific date.\n- **CSV Output:** The extracted pull request data is generated into a CSV file, which can be used for further analysis in spreadsheet software.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves interacting with a Git provider's API:\n\n- **Git Provider Abstraction:** It uses the `GitProvider.getInstance(true)` to abstract away the specifics of different Git platforms (e.g., GitHub, GitLab, Azure DevOps). This ensures the command can work across various environments.\n- **API Calls:** The `gitProvider.listPullRequests()` method is called with a `prConstraint` object that encapsulates the filtering criteria (target branch, minimum date, status).\n- **Interactive Prompts:** The `prompts` library is used to interactively gather input from the user for the target branch and pull request status if they are not provided as command-line flags.\n- **Date Handling:** The `moment` library is used to parse and handle date inputs for the `--min-date` flag.\n- **CSV Generation:** The `generateCsvFile` utility is responsible for converting the retrieved pull request data into a CSV format, and `generateReportPath` determines the output file location.\n- **Error Handling:** It includes error handling for cases where a Git provider cannot be identified.\n</details>\n",
4429
- "examples": [
4430
- "$ sf hardis:git:pull-requests:extract",
4431
- "$ sf hardis:git:pull-requests:extract --target-branch main --status merged"
4432
- ],
4433
- "flags": {
4434
- "json": {
4435
- "description": "Format output as json.",
4436
- "helpGroup": "GLOBAL",
4437
- "name": "json",
4438
- "allowNo": false,
4439
- "type": "boolean"
4440
- },
4441
- "flags-dir": {
4442
- "helpGroup": "GLOBAL",
4443
- "name": "flags-dir",
4444
- "summary": "Import flag values from a directory.",
4445
- "hasDynamicHelp": false,
4446
- "multiple": false,
4447
- "type": "option"
4448
- },
4449
- "target-branch": {
4450
- "char": "t",
4451
- "description": "Target branch of PRs",
4452
- "name": "target-branch",
4453
- "hasDynamicHelp": false,
4454
- "multiple": false,
4455
- "type": "option"
4456
- },
4457
- "status": {
4458
- "char": "x",
4459
- "description": "Status of the PR",
4460
- "name": "status",
4461
- "hasDynamicHelp": false,
4462
- "multiple": false,
4463
- "options": [
4464
- "open",
4465
- "merged",
4466
- "abandoned"
4467
- ],
4468
- "type": "option"
4469
- },
4470
- "min-date": {
4471
- "char": "m",
4472
- "description": "Minimum date for PR",
4473
- "name": "min-date",
4474
- "hasDynamicHelp": false,
4475
- "multiple": false,
4476
- "type": "option"
4477
- },
4478
- "outputfile": {
4479
- "char": "f",
4480
- "description": "Force the path and name of output report file. Must end with .csv",
4481
- "name": "outputfile",
4482
- "hasDynamicHelp": false,
4483
- "multiple": false,
4484
- "type": "option"
4485
- },
4486
- "debug": {
4487
- "char": "d",
4488
- "description": "Activate debug mode (more logs)",
4489
- "name": "debug",
4490
- "allowNo": false,
4491
- "type": "boolean"
4492
- },
4493
- "websocket": {
4494
- "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
4495
- "name": "websocket",
4496
- "hasDynamicHelp": false,
4497
- "multiple": false,
4498
- "type": "option"
4499
- },
4500
- "skipauth": {
4501
- "description": "Skip authentication check when a default username is required",
4502
- "name": "skipauth",
4503
- "allowNo": false,
4504
- "type": "boolean"
4505
- }
4506
- },
4507
- "hasDynamicHelp": false,
4508
- "hiddenAliases": [],
4509
- "id": "hardis:git:pull-requests:extract",
4510
- "pluginAlias": "sfdx-hardis",
4511
- "pluginName": "sfdx-hardis",
4512
- "pluginType": "core",
4513
- "strict": true,
4514
- "enableJsonFlag": true,
4515
- "title": "Extract pull requests",
4516
- "requiresProject": true,
4517
- "isESM": true,
4518
- "relativePath": [
4519
- "lib",
4520
- "commands",
4521
- "hardis",
4522
- "git",
4523
- "pull-requests",
4524
- "extract.js"
4525
- ],
4526
- "aliasPermutations": [],
4527
- "permutations": [
4528
- "hardis:git:pull-requests:extract",
4529
- "git:hardis:pull-requests:extract",
4530
- "git:pull-requests:hardis:extract",
4531
- "git:pull-requests:extract:hardis",
4532
- "hardis:pull-requests:git:extract",
4533
- "pull-requests:hardis:git:extract",
4534
- "pull-requests:git:hardis:extract",
4535
- "pull-requests:git:extract:hardis",
4536
- "hardis:pull-requests:extract:git",
4537
- "pull-requests:hardis:extract:git",
4538
- "pull-requests:extract:hardis:git",
4539
- "pull-requests:extract:git:hardis",
4540
- "hardis:git:extract:pull-requests",
4541
- "git:hardis:extract:pull-requests",
4542
- "git:extract:hardis:pull-requests",
4543
- "git:extract:pull-requests:hardis",
4544
- "hardis:extract:git:pull-requests",
4545
- "extract:hardis:git:pull-requests",
4546
- "extract:git:hardis:pull-requests",
4547
- "extract:git:pull-requests:hardis",
4548
- "hardis:extract:pull-requests:git",
4549
- "extract:hardis:pull-requests:git",
4550
- "extract:pull-requests:hardis:git",
4551
- "extract:pull-requests:git:hardis"
4552
- ]
4553
- },
4554
4425
  "hardis:doc:extract:permsetgroups": {
4555
4426
  "aliases": [],
4556
4427
  "args": {},
@@ -4741,13 +4612,13 @@
4741
4612
  "generate:plugin:doc:hardis"
4742
4613
  ]
4743
4614
  },
4744
- "hardis:org:community:update": {
4615
+ "hardis:git:pull-requests:extract": {
4745
4616
  "aliases": [],
4746
4617
  "args": {},
4747
- "description": "\n## Command Behavior\n\n**Updates the status of one or more Salesforce Experience Cloud (Community) networks.**\n\nThis command provides a way to programmatically change the status of your Salesforce Communities, allowing you to manage their availability. This is particularly useful for:\n\n- **Maintenance:** Taking communities offline for planned maintenance (`DownForMaintenance`).\n- **Activation/Deactivation:** Bringing communities online or offline (`Live`, `DownForMaintenance`).\n- **Automation:** Integrating community status changes into CI/CD pipelines or scheduled jobs.\n\nKey functionalities:\n\n- **Network Selection:** You can specify one or more community network names (separated by commas) using the `--name` flag.\n- **Status Update:** You can set the new status for the selected communities using the `--status` flag. Supported values are `Live` and `DownForMaintenance`.\n- **Confirmation Prompt:** In non-CI environments, it provides a confirmation prompt before executing the update, ensuring intentional changes.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce SOQL Query:** It first queries the Salesforce `Network` object using SOQL to retrieve the `Id`, `Name`, and `Status` of the specified communities. This ensures that only existing communities are targeted.\n- **SObject Update:** It then constructs an array of `Network` sObjects with their `Id` and the new `Status` and performs a DML update operation using `conn.sobject(\"Network\").update()`. The `allOrNone: false` option is used to allow partial success in case some updates fail.\n- **Error Handling and Reporting:** It iterates through the update results, logging success or failure for each community. It also provides a summary of successful and erroneous updates.\n- **User Interaction:** Uses `prompts` to confirm the update action with the user when not running in a CI environment.\n- **Salesforce Connection:** Establishes a connection to the target Salesforce org using the `target-org` flag.\n</details>\n",
4618
+ "description": "\n## Command Behavior\n\n**Extracts pull request information from your Git server based on specified filtering criteria.**\n\nThis command provides a powerful way to query and retrieve details about pull requests (or merge requests, depending on your Git provider) in your repository. It's highly useful for reporting, auditing, and analyzing development workflows.\n\nKey functionalities include:\n\n- **Target Branch Filtering:** You can filter pull requests by their target branch using the `--target-branch` flag. If not specified, the command will prompt you to select one.\n- **Status Filtering:** Filter pull requests by their status: `open`, `merged`, or `abandoned` using the `--status` flag. An interactive prompt is provided if no status is specified.\n- **Minimum Date Filtering:** Use the `--min-date` flag to retrieve pull requests created or updated after a specific date.\n- **CSV Output:** The extracted pull request data is generated into a CSV file, which can be used for further analysis in spreadsheet software.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves interacting with a Git provider's API:\n\n- **Git Provider Abstraction:** It uses the `GitProvider.getInstance(true)` to abstract away the specifics of different Git platforms (e.g., GitHub, GitLab, Azure DevOps). This ensures the command can work across various environments.\n- **API Calls:** The `gitProvider.listPullRequests()` method is called with a `prConstraint` object that encapsulates the filtering criteria (target branch, minimum date, status).\n- **Interactive Prompts:** The `prompts` library is used to interactively gather input from the user for the target branch and pull request status if they are not provided as command-line flags.\n- **Date Handling:** The `moment` library is used to parse and handle date inputs for the `--min-date` flag.\n- **CSV Generation:** The `generateCsvFile` utility is responsible for converting the retrieved pull request data into a CSV format, and `generateReportPath` determines the output file location.\n- **Error Handling:** It includes error handling for cases where a Git provider cannot be identified.\n</details>\n",
4748
4619
  "examples": [
4749
- "$ sf hardis:org:community:update --name 'MyNetworkName' --status DownForMaintenance",
4750
- "$ sf hardis:org:community:update --name 'MyNetworkName,MySecondNetworkName' --status Live"
4620
+ "$ sf hardis:git:pull-requests:extract",
4621
+ "$ sf hardis:git:pull-requests:extract --target-branch main --status merged"
4751
4622
  ],
4752
4623
  "flags": {
4753
4624
  "json": {
@@ -4765,11 +4636,140 @@
4765
4636
  "multiple": false,
4766
4637
  "type": "option"
4767
4638
  },
4768
- "name": {
4769
- "char": "n",
4770
- "description": "List of Networks Names that you want to update, separated by comma",
4771
- "name": "name",
4772
- "required": true,
4639
+ "target-branch": {
4640
+ "char": "t",
4641
+ "description": "Target branch of PRs",
4642
+ "name": "target-branch",
4643
+ "hasDynamicHelp": false,
4644
+ "multiple": false,
4645
+ "type": "option"
4646
+ },
4647
+ "status": {
4648
+ "char": "x",
4649
+ "description": "Status of the PR",
4650
+ "name": "status",
4651
+ "hasDynamicHelp": false,
4652
+ "multiple": false,
4653
+ "options": [
4654
+ "open",
4655
+ "merged",
4656
+ "abandoned"
4657
+ ],
4658
+ "type": "option"
4659
+ },
4660
+ "min-date": {
4661
+ "char": "m",
4662
+ "description": "Minimum date for PR",
4663
+ "name": "min-date",
4664
+ "hasDynamicHelp": false,
4665
+ "multiple": false,
4666
+ "type": "option"
4667
+ },
4668
+ "outputfile": {
4669
+ "char": "f",
4670
+ "description": "Force the path and name of output report file. Must end with .csv",
4671
+ "name": "outputfile",
4672
+ "hasDynamicHelp": false,
4673
+ "multiple": false,
4674
+ "type": "option"
4675
+ },
4676
+ "debug": {
4677
+ "char": "d",
4678
+ "description": "Activate debug mode (more logs)",
4679
+ "name": "debug",
4680
+ "allowNo": false,
4681
+ "type": "boolean"
4682
+ },
4683
+ "websocket": {
4684
+ "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
4685
+ "name": "websocket",
4686
+ "hasDynamicHelp": false,
4687
+ "multiple": false,
4688
+ "type": "option"
4689
+ },
4690
+ "skipauth": {
4691
+ "description": "Skip authentication check when a default username is required",
4692
+ "name": "skipauth",
4693
+ "allowNo": false,
4694
+ "type": "boolean"
4695
+ }
4696
+ },
4697
+ "hasDynamicHelp": false,
4698
+ "hiddenAliases": [],
4699
+ "id": "hardis:git:pull-requests:extract",
4700
+ "pluginAlias": "sfdx-hardis",
4701
+ "pluginName": "sfdx-hardis",
4702
+ "pluginType": "core",
4703
+ "strict": true,
4704
+ "enableJsonFlag": true,
4705
+ "title": "Extract pull requests",
4706
+ "requiresProject": true,
4707
+ "isESM": true,
4708
+ "relativePath": [
4709
+ "lib",
4710
+ "commands",
4711
+ "hardis",
4712
+ "git",
4713
+ "pull-requests",
4714
+ "extract.js"
4715
+ ],
4716
+ "aliasPermutations": [],
4717
+ "permutations": [
4718
+ "hardis:git:pull-requests:extract",
4719
+ "git:hardis:pull-requests:extract",
4720
+ "git:pull-requests:hardis:extract",
4721
+ "git:pull-requests:extract:hardis",
4722
+ "hardis:pull-requests:git:extract",
4723
+ "pull-requests:hardis:git:extract",
4724
+ "pull-requests:git:hardis:extract",
4725
+ "pull-requests:git:extract:hardis",
4726
+ "hardis:pull-requests:extract:git",
4727
+ "pull-requests:hardis:extract:git",
4728
+ "pull-requests:extract:hardis:git",
4729
+ "pull-requests:extract:git:hardis",
4730
+ "hardis:git:extract:pull-requests",
4731
+ "git:hardis:extract:pull-requests",
4732
+ "git:extract:hardis:pull-requests",
4733
+ "git:extract:pull-requests:hardis",
4734
+ "hardis:extract:git:pull-requests",
4735
+ "extract:hardis:git:pull-requests",
4736
+ "extract:git:hardis:pull-requests",
4737
+ "extract:git:pull-requests:hardis",
4738
+ "hardis:extract:pull-requests:git",
4739
+ "extract:hardis:pull-requests:git",
4740
+ "extract:pull-requests:hardis:git",
4741
+ "extract:pull-requests:git:hardis"
4742
+ ]
4743
+ },
4744
+ "hardis:org:community:update": {
4745
+ "aliases": [],
4746
+ "args": {},
4747
+ "description": "\n## Command Behavior\n\n**Updates the status of one or more Salesforce Experience Cloud (Community) networks.**\n\nThis command provides a way to programmatically change the status of your Salesforce Communities, allowing you to manage their availability. This is particularly useful for:\n\n- **Maintenance:** Taking communities offline for planned maintenance (`DownForMaintenance`).\n- **Activation/Deactivation:** Bringing communities online or offline (`Live`, `DownForMaintenance`).\n- **Automation:** Integrating community status changes into CI/CD pipelines or scheduled jobs.\n\nKey functionalities:\n\n- **Network Selection:** You can specify one or more community network names (separated by commas) using the `--name` flag.\n- **Status Update:** You can set the new status for the selected communities using the `--status` flag. Supported values are `Live` and `DownForMaintenance`.\n- **Confirmation Prompt:** In non-CI environments, it provides a confirmation prompt before executing the update, ensuring intentional changes.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce SOQL Query:** It first queries the Salesforce `Network` object using SOQL to retrieve the `Id`, `Name`, and `Status` of the specified communities. This ensures that only existing communities are targeted.\n- **SObject Update:** It then constructs an array of `Network` sObjects with their `Id` and the new `Status` and performs a DML update operation using `conn.sobject(\"Network\").update()`. The `allOrNone: false` option is used to allow partial success in case some updates fail.\n- **Error Handling and Reporting:** It iterates through the update results, logging success or failure for each community. It also provides a summary of successful and erroneous updates.\n- **User Interaction:** Uses `prompts` to confirm the update action with the user when not running in a CI environment.\n- **Salesforce Connection:** Establishes a connection to the target Salesforce org using the `target-org` flag.\n</details>\n",
4748
+ "examples": [
4749
+ "$ sf hardis:org:community:update --name 'MyNetworkName' --status DownForMaintenance",
4750
+ "$ sf hardis:org:community:update --name 'MyNetworkName,MySecondNetworkName' --status Live"
4751
+ ],
4752
+ "flags": {
4753
+ "json": {
4754
+ "description": "Format output as json.",
4755
+ "helpGroup": "GLOBAL",
4756
+ "name": "json",
4757
+ "allowNo": false,
4758
+ "type": "boolean"
4759
+ },
4760
+ "flags-dir": {
4761
+ "helpGroup": "GLOBAL",
4762
+ "name": "flags-dir",
4763
+ "summary": "Import flag values from a directory.",
4764
+ "hasDynamicHelp": false,
4765
+ "multiple": false,
4766
+ "type": "option"
4767
+ },
4768
+ "name": {
4769
+ "char": "n",
4770
+ "description": "List of Networks Names that you want to update, separated by comma",
4771
+ "name": "name",
4772
+ "required": true,
4773
4773
  "hasDynamicHelp": false,
4774
4774
  "multiple": false,
4775
4775
  "type": "option"
@@ -5539,121 +5539,6 @@
5539
5539
  "import:data:org:hardis"
5540
5540
  ]
5541
5541
  },
5542
- "hardis:org:fix:listviewmine": {
5543
- "aliases": [],
5544
- "args": {},
5545
- "description": "Fix listviews whose scope Mine has been replaced by Everything\n\n[![Invalid scope:Mine, not allowed ? Deploy your ListViews anyway !](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-invalid-scope-mine.jpg)](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",
5546
- "examples": [
5547
- "$ sf hardis:org:fix:listviewmine",
5548
- "$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
5549
- ],
5550
- "flags": {
5551
- "json": {
5552
- "description": "Format output as json.",
5553
- "helpGroup": "GLOBAL",
5554
- "name": "json",
5555
- "allowNo": false,
5556
- "type": "boolean"
5557
- },
5558
- "flags-dir": {
5559
- "helpGroup": "GLOBAL",
5560
- "name": "flags-dir",
5561
- "summary": "Import flag values from a directory.",
5562
- "hasDynamicHelp": false,
5563
- "multiple": false,
5564
- "type": "option"
5565
- },
5566
- "listviews": {
5567
- "char": "l",
5568
- "description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
5569
- "name": "listviews",
5570
- "hasDynamicHelp": false,
5571
- "multiple": false,
5572
- "type": "option"
5573
- },
5574
- "debug": {
5575
- "char": "d",
5576
- "description": "Activate debug mode (more logs)",
5577
- "name": "debug",
5578
- "allowNo": false,
5579
- "type": "boolean"
5580
- },
5581
- "websocket": {
5582
- "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
5583
- "name": "websocket",
5584
- "hasDynamicHelp": false,
5585
- "multiple": false,
5586
- "type": "option"
5587
- },
5588
- "skipauth": {
5589
- "description": "Skip authentication check when a default username is required",
5590
- "name": "skipauth",
5591
- "allowNo": false,
5592
- "type": "boolean"
5593
- },
5594
- "target-org": {
5595
- "aliases": [
5596
- "targetusername",
5597
- "u"
5598
- ],
5599
- "char": "o",
5600
- "deprecateAliases": true,
5601
- "name": "target-org",
5602
- "noCacheDefault": true,
5603
- "required": true,
5604
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
5605
- "hasDynamicHelp": true,
5606
- "multiple": false,
5607
- "type": "option"
5608
- }
5609
- },
5610
- "hasDynamicHelp": true,
5611
- "hiddenAliases": [],
5612
- "id": "hardis:org:fix:listviewmine",
5613
- "pluginAlias": "sfdx-hardis",
5614
- "pluginName": "sfdx-hardis",
5615
- "pluginType": "core",
5616
- "strict": true,
5617
- "enableJsonFlag": true,
5618
- "title": "Fix listviews with ",
5619
- "requiresProject": true,
5620
- "isESM": true,
5621
- "relativePath": [
5622
- "lib",
5623
- "commands",
5624
- "hardis",
5625
- "org",
5626
- "fix",
5627
- "listviewmine.js"
5628
- ],
5629
- "aliasPermutations": [],
5630
- "permutations": [
5631
- "hardis:org:fix:listviewmine",
5632
- "org:hardis:fix:listviewmine",
5633
- "org:fix:hardis:listviewmine",
5634
- "org:fix:listviewmine:hardis",
5635
- "hardis:fix:org:listviewmine",
5636
- "fix:hardis:org:listviewmine",
5637
- "fix:org:hardis:listviewmine",
5638
- "fix:org:listviewmine:hardis",
5639
- "hardis:fix:listviewmine:org",
5640
- "fix:hardis:listviewmine:org",
5641
- "fix:listviewmine:hardis:org",
5642
- "fix:listviewmine:org:hardis",
5643
- "hardis:org:listviewmine:fix",
5644
- "org:hardis:listviewmine:fix",
5645
- "org:listviewmine:hardis:fix",
5646
- "org:listviewmine:fix:hardis",
5647
- "hardis:listviewmine:org:fix",
5648
- "listviewmine:hardis:org:fix",
5649
- "listviewmine:org:hardis:fix",
5650
- "listviewmine:org:fix:hardis",
5651
- "hardis:listviewmine:fix:org",
5652
- "listviewmine:hardis:fix:org",
5653
- "listviewmine:fix:hardis:org",
5654
- "listviewmine:fix:org:hardis"
5655
- ]
5656
- },
5657
5542
  "hardis:org:files:export": {
5658
5543
  "aliases": [],
5659
5544
  "args": {},
@@ -5923,14 +5808,13 @@
5923
5808
  "import:files:org:hardis"
5924
5809
  ]
5925
5810
  },
5926
- "hardis:org:generate:packagexmlfull": {
5811
+ "hardis:org:fix:listviewmine": {
5927
5812
  "aliases": [],
5928
5813
  "args": {},
5929
- "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",
5814
+ "description": "Fix listviews whose scope Mine has been replaced by Everything\n\n[![Invalid scope:Mine, not allowed ? Deploy your ListViews anyway !](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-invalid-scope-mine.jpg)](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",
5930
5815
  "examples": [
5931
- "$ sf hardis:org:generate:packagexmlfull",
5932
- "$ sf hardis:org:generate:packagexmlfull --outputfile /tmp/packagexmlfull.xml",
5933
- "$ sf hardis:org:generate:packagexmlfull --target-org nico@example.com"
5816
+ "$ sf hardis:org:fix:listviewmine",
5817
+ "$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
5934
5818
  ],
5935
5819
  "flags": {
5936
5820
  "json": {
@@ -5948,9 +5832,10 @@
5948
5832
  "multiple": false,
5949
5833
  "type": "option"
5950
5834
  },
5951
- "outputfile": {
5952
- "description": "Output package.xml file",
5953
- "name": "outputfile",
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",
5954
5839
  "hasDynamicHelp": false,
5955
5840
  "multiple": false,
5956
5841
  "type": "option"
@@ -5962,13 +5847,6 @@
5962
5847
  "allowNo": false,
5963
5848
  "type": "boolean"
5964
5849
  },
5965
- "no-prompt": {
5966
- "char": "n",
5967
- "description": "Do not prompt for org username, use the default one",
5968
- "name": "no-prompt",
5969
- "allowNo": false,
5970
- "type": "boolean"
5971
- },
5972
5850
  "websocket": {
5973
5851
  "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
5974
5852
  "name": "websocket",
@@ -6000,49 +5878,49 @@
6000
5878
  },
6001
5879
  "hasDynamicHelp": true,
6002
5880
  "hiddenAliases": [],
6003
- "id": "hardis:org:generate:packagexmlfull",
5881
+ "id": "hardis:org:fix:listviewmine",
6004
5882
  "pluginAlias": "sfdx-hardis",
6005
5883
  "pluginName": "sfdx-hardis",
6006
5884
  "pluginType": "core",
6007
5885
  "strict": true,
6008
5886
  "enableJsonFlag": true,
6009
- "title": "Generate Full Org package.xml",
6010
- "requiresProject": false,
5887
+ "title": "Fix listviews with ",
5888
+ "requiresProject": true,
6011
5889
  "isESM": true,
6012
5890
  "relativePath": [
6013
5891
  "lib",
6014
5892
  "commands",
6015
5893
  "hardis",
6016
5894
  "org",
6017
- "generate",
6018
- "packagexmlfull.js"
5895
+ "fix",
5896
+ "listviewmine.js"
6019
5897
  ],
6020
5898
  "aliasPermutations": [],
6021
5899
  "permutations": [
6022
- "hardis:org:generate:packagexmlfull",
6023
- "org:hardis:generate:packagexmlfull",
6024
- "org:generate:hardis:packagexmlfull",
6025
- "org:generate:packagexmlfull:hardis",
6026
- "hardis:generate:org:packagexmlfull",
6027
- "generate:hardis:org:packagexmlfull",
6028
- "generate:org:hardis:packagexmlfull",
6029
- "generate:org:packagexmlfull:hardis",
6030
- "hardis:generate:packagexmlfull:org",
6031
- "generate:hardis:packagexmlfull:org",
6032
- "generate:packagexmlfull:hardis:org",
6033
- "generate:packagexmlfull:org:hardis",
6034
- "hardis:org:packagexmlfull:generate",
6035
- "org:hardis:packagexmlfull:generate",
6036
- "org:packagexmlfull:hardis:generate",
6037
- "org:packagexmlfull:generate:hardis",
6038
- "hardis:packagexmlfull:org:generate",
6039
- "packagexmlfull:hardis:org:generate",
6040
- "packagexmlfull:org:hardis:generate",
6041
- "packagexmlfull:org:generate:hardis",
6042
- "hardis:packagexmlfull:generate:org",
6043
- "packagexmlfull:hardis:generate:org",
6044
- "packagexmlfull:generate:hardis:org",
6045
- "packagexmlfull:generate:org:hardis"
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"
6046
5924
  ]
6047
5925
  },
6048
5926
  "hardis:org:diagnose:audittrail": {
@@ -7282,30 +7160,152 @@
7282
7160
  ],
7283
7161
  "aliasPermutations": [],
7284
7162
  "permutations": [
7285
- "hardis:org:diagnose:unusedusers",
7286
- "org:hardis:diagnose:unusedusers",
7287
- "org:diagnose:hardis:unusedusers",
7288
- "org:diagnose:unusedusers:hardis",
7289
- "hardis:diagnose:org:unusedusers",
7290
- "diagnose:hardis:org:unusedusers",
7291
- "diagnose:org:hardis:unusedusers",
7292
- "diagnose:org:unusedusers:hardis",
7293
- "hardis:diagnose:unusedusers:org",
7294
- "diagnose:hardis:unusedusers:org",
7295
- "diagnose:unusedusers:hardis:org",
7296
- "diagnose:unusedusers:org:hardis",
7297
- "hardis:org:unusedusers:diagnose",
7298
- "org:hardis:unusedusers:diagnose",
7299
- "org:unusedusers:hardis:diagnose",
7300
- "org:unusedusers:diagnose:hardis",
7301
- "hardis:unusedusers:org:diagnose",
7302
- "unusedusers:hardis:org:diagnose",
7303
- "unusedusers:org:hardis:diagnose",
7304
- "unusedusers:org:diagnose:hardis",
7305
- "hardis:unusedusers:diagnose:org",
7306
- "unusedusers:hardis:diagnose:org",
7307
- "unusedusers:diagnose:hardis:org",
7308
- "unusedusers:diagnose:org:hardis"
7163
+ "hardis:org:diagnose:unusedusers",
7164
+ "org:hardis:diagnose:unusedusers",
7165
+ "org:diagnose:hardis:unusedusers",
7166
+ "org:diagnose:unusedusers:hardis",
7167
+ "hardis:diagnose:org:unusedusers",
7168
+ "diagnose:hardis:org:unusedusers",
7169
+ "diagnose:org:hardis:unusedusers",
7170
+ "diagnose:org:unusedusers:hardis",
7171
+ "hardis:diagnose:unusedusers:org",
7172
+ "diagnose:hardis:unusedusers:org",
7173
+ "diagnose:unusedusers:hardis:org",
7174
+ "diagnose:unusedusers:org:hardis",
7175
+ "hardis:org:unusedusers:diagnose",
7176
+ "org:hardis:unusedusers:diagnose",
7177
+ "org:unusedusers:hardis:diagnose",
7178
+ "org:unusedusers:diagnose:hardis",
7179
+ "hardis:unusedusers:org:diagnose",
7180
+ "unusedusers:hardis:org:diagnose",
7181
+ "unusedusers:org:hardis:diagnose",
7182
+ "unusedusers:org:diagnose:hardis",
7183
+ "hardis:unusedusers:diagnose:org",
7184
+ "unusedusers:hardis:diagnose:org",
7185
+ "unusedusers:diagnose:hardis:org",
7186
+ "unusedusers:diagnose: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
+ ],
7283
+ "aliasPermutations": [],
7284
+ "permutations": [
7285
+ "hardis:org:generate:packagexmlfull",
7286
+ "org:hardis:generate:packagexmlfull",
7287
+ "org:generate:hardis:packagexmlfull",
7288
+ "org:generate:packagexmlfull:hardis",
7289
+ "hardis:generate:org:packagexmlfull",
7290
+ "generate:hardis:org:packagexmlfull",
7291
+ "generate:org:hardis:packagexmlfull",
7292
+ "generate:org:packagexmlfull:hardis",
7293
+ "hardis:generate:packagexmlfull:org",
7294
+ "generate:hardis:packagexmlfull:org",
7295
+ "generate:packagexmlfull:hardis:org",
7296
+ "generate:packagexmlfull:org:hardis",
7297
+ "hardis:org:packagexmlfull:generate",
7298
+ "org:hardis:packagexmlfull:generate",
7299
+ "org:packagexmlfull:hardis:generate",
7300
+ "org:packagexmlfull:generate:hardis",
7301
+ "hardis:packagexmlfull:org:generate",
7302
+ "packagexmlfull:hardis:org:generate",
7303
+ "packagexmlfull:org:hardis:generate",
7304
+ "packagexmlfull:org:generate:hardis",
7305
+ "hardis:packagexmlfull:generate:org",
7306
+ "packagexmlfull:hardis:generate:org",
7307
+ "packagexmlfull:generate:hardis:org",
7308
+ "packagexmlfull:generate:org:hardis"
7309
7309
  ]
7310
7310
  },
7311
7311
  "hardis:org:monitor:all": {
@@ -9277,6 +9277,135 @@
9277
9277
  "promote:version:package:hardis"
9278
9278
  ]
9279
9279
  },
9280
+ "hardis:project:configure:auth": {
9281
+ "aliases": [],
9282
+ "args": {},
9283
+ "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<details markdown=\"1\">\n<summary>Technical explanations</summary>\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",
9284
+ "examples": [
9285
+ "$ sf hardis:project:configure:auth"
9286
+ ],
9287
+ "flags": {
9288
+ "json": {
9289
+ "description": "Format output as json.",
9290
+ "helpGroup": "GLOBAL",
9291
+ "name": "json",
9292
+ "allowNo": false,
9293
+ "type": "boolean"
9294
+ },
9295
+ "flags-dir": {
9296
+ "helpGroup": "GLOBAL",
9297
+ "name": "flags-dir",
9298
+ "summary": "Import flag values from a directory.",
9299
+ "hasDynamicHelp": false,
9300
+ "multiple": false,
9301
+ "type": "option"
9302
+ },
9303
+ "devhub": {
9304
+ "char": "b",
9305
+ "description": "Configure project DevHub",
9306
+ "name": "devhub",
9307
+ "allowNo": false,
9308
+ "type": "boolean"
9309
+ },
9310
+ "debug": {
9311
+ "char": "d",
9312
+ "description": "Activate debug mode (more logs)",
9313
+ "name": "debug",
9314
+ "allowNo": false,
9315
+ "type": "boolean"
9316
+ },
9317
+ "websocket": {
9318
+ "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
9319
+ "name": "websocket",
9320
+ "hasDynamicHelp": false,
9321
+ "multiple": false,
9322
+ "type": "option"
9323
+ },
9324
+ "skipauth": {
9325
+ "description": "Skip authentication check when a default username is required",
9326
+ "name": "skipauth",
9327
+ "allowNo": false,
9328
+ "type": "boolean"
9329
+ },
9330
+ "target-org": {
9331
+ "aliases": [
9332
+ "targetusername",
9333
+ "u"
9334
+ ],
9335
+ "char": "o",
9336
+ "deprecateAliases": true,
9337
+ "name": "target-org",
9338
+ "noCacheDefault": true,
9339
+ "summary": "Username or alias of the target org.",
9340
+ "hasDynamicHelp": true,
9341
+ "multiple": false,
9342
+ "type": "option"
9343
+ },
9344
+ "target-dev-hub": {
9345
+ "aliases": [
9346
+ "targetdevhubusername"
9347
+ ],
9348
+ "char": "v",
9349
+ "deprecateAliases": true,
9350
+ "name": "target-dev-hub",
9351
+ "noCacheDefault": true,
9352
+ "required": false,
9353
+ "summary": "Username or alias of the Dev Hub org.",
9354
+ "hasDynamicHelp": true,
9355
+ "multiple": false,
9356
+ "type": "option"
9357
+ }
9358
+ },
9359
+ "hasDynamicHelp": true,
9360
+ "hiddenAliases": [],
9361
+ "id": "hardis:project:configure:auth",
9362
+ "pluginAlias": "sfdx-hardis",
9363
+ "pluginName": "sfdx-hardis",
9364
+ "pluginType": "core",
9365
+ "strict": true,
9366
+ "enableJsonFlag": true,
9367
+ "title": "Configure authentication",
9368
+ "requiresProject": false,
9369
+ "requiresDependencies": [
9370
+ "openssl"
9371
+ ],
9372
+ "isESM": true,
9373
+ "relativePath": [
9374
+ "lib",
9375
+ "commands",
9376
+ "hardis",
9377
+ "project",
9378
+ "configure",
9379
+ "auth.js"
9380
+ ],
9381
+ "aliasPermutations": [],
9382
+ "permutations": [
9383
+ "hardis:project:configure:auth",
9384
+ "project:hardis:configure:auth",
9385
+ "project:configure:hardis:auth",
9386
+ "project:configure:auth:hardis",
9387
+ "hardis:configure:project:auth",
9388
+ "configure:hardis:project:auth",
9389
+ "configure:project:hardis:auth",
9390
+ "configure:project:auth:hardis",
9391
+ "hardis:configure:auth:project",
9392
+ "configure:hardis:auth:project",
9393
+ "configure:auth:hardis:project",
9394
+ "configure:auth:project:hardis",
9395
+ "hardis:project:auth:configure",
9396
+ "project:hardis:auth:configure",
9397
+ "project:auth:hardis:configure",
9398
+ "project:auth:configure:hardis",
9399
+ "hardis:auth:project:configure",
9400
+ "auth:hardis:project:configure",
9401
+ "auth:project:hardis:configure",
9402
+ "auth:project:configure:hardis",
9403
+ "hardis:auth:configure:project",
9404
+ "auth:hardis:configure:project",
9405
+ "auth:configure:hardis:project",
9406
+ "auth:configure:project:hardis"
9407
+ ]
9408
+ },
9280
9409
  "hardis:project:audit:apiversion": {
9281
9410
  "aliases": [],
9282
9411
  "args": {},
@@ -9690,6 +9819,109 @@
9690
9819
  "remotesites:audit:project:hardis"
9691
9820
  ]
9692
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
+ },
9693
9925
  "hardis:project:clean:emptyitems": {
9694
9926
  "aliases": [],
9695
9927
  "args": {},
@@ -11175,238 +11407,6 @@
11175
11407
  "xml:clean:project:hardis"
11176
11408
  ]
11177
11409
  },
11178
- "hardis:project:configure:auth": {
11179
- "aliases": [],
11180
- "args": {},
11181
- "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<details markdown=\"1\">\n<summary>Technical explanations</summary>\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",
11182
- "examples": [
11183
- "$ sf hardis:project:configure:auth"
11184
- ],
11185
- "flags": {
11186
- "json": {
11187
- "description": "Format output as json.",
11188
- "helpGroup": "GLOBAL",
11189
- "name": "json",
11190
- "allowNo": false,
11191
- "type": "boolean"
11192
- },
11193
- "flags-dir": {
11194
- "helpGroup": "GLOBAL",
11195
- "name": "flags-dir",
11196
- "summary": "Import flag values from a directory.",
11197
- "hasDynamicHelp": false,
11198
- "multiple": false,
11199
- "type": "option"
11200
- },
11201
- "devhub": {
11202
- "char": "b",
11203
- "description": "Configure project DevHub",
11204
- "name": "devhub",
11205
- "allowNo": false,
11206
- "type": "boolean"
11207
- },
11208
- "debug": {
11209
- "char": "d",
11210
- "description": "Activate debug mode (more logs)",
11211
- "name": "debug",
11212
- "allowNo": false,
11213
- "type": "boolean"
11214
- },
11215
- "websocket": {
11216
- "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
11217
- "name": "websocket",
11218
- "hasDynamicHelp": false,
11219
- "multiple": false,
11220
- "type": "option"
11221
- },
11222
- "skipauth": {
11223
- "description": "Skip authentication check when a default username is required",
11224
- "name": "skipauth",
11225
- "allowNo": false,
11226
- "type": "boolean"
11227
- },
11228
- "target-org": {
11229
- "aliases": [
11230
- "targetusername",
11231
- "u"
11232
- ],
11233
- "char": "o",
11234
- "deprecateAliases": true,
11235
- "name": "target-org",
11236
- "noCacheDefault": true,
11237
- "summary": "Username or alias of the target org.",
11238
- "hasDynamicHelp": true,
11239
- "multiple": false,
11240
- "type": "option"
11241
- },
11242
- "target-dev-hub": {
11243
- "aliases": [
11244
- "targetdevhubusername"
11245
- ],
11246
- "char": "v",
11247
- "deprecateAliases": true,
11248
- "name": "target-dev-hub",
11249
- "noCacheDefault": true,
11250
- "required": false,
11251
- "summary": "Username or alias of the Dev Hub org.",
11252
- "hasDynamicHelp": true,
11253
- "multiple": false,
11254
- "type": "option"
11255
- }
11256
- },
11257
- "hasDynamicHelp": true,
11258
- "hiddenAliases": [],
11259
- "id": "hardis:project:configure:auth",
11260
- "pluginAlias": "sfdx-hardis",
11261
- "pluginName": "sfdx-hardis",
11262
- "pluginType": "core",
11263
- "strict": true,
11264
- "enableJsonFlag": true,
11265
- "title": "Configure authentication",
11266
- "requiresProject": false,
11267
- "requiresDependencies": [
11268
- "openssl"
11269
- ],
11270
- "isESM": true,
11271
- "relativePath": [
11272
- "lib",
11273
- "commands",
11274
- "hardis",
11275
- "project",
11276
- "configure",
11277
- "auth.js"
11278
- ],
11279
- "aliasPermutations": [],
11280
- "permutations": [
11281
- "hardis:project:configure:auth",
11282
- "project:hardis:configure:auth",
11283
- "project:configure:hardis:auth",
11284
- "project:configure:auth:hardis",
11285
- "hardis:configure:project:auth",
11286
- "configure:hardis:project:auth",
11287
- "configure:project:hardis:auth",
11288
- "configure:project:auth:hardis",
11289
- "hardis:configure:auth:project",
11290
- "configure:hardis:auth:project",
11291
- "configure:auth:hardis:project",
11292
- "configure:auth:project:hardis",
11293
- "hardis:project:auth:configure",
11294
- "project:hardis:auth:configure",
11295
- "project:auth:hardis:configure",
11296
- "project:auth:configure:hardis",
11297
- "hardis:auth:project:configure",
11298
- "auth:hardis:project:configure",
11299
- "auth:project:hardis:configure",
11300
- "auth:project:configure:hardis",
11301
- "hardis:auth:configure:project",
11302
- "auth:hardis:configure:project",
11303
- "auth:configure:hardis:project",
11304
- "auth:configure: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
11410
  "hardis:project:deploy:notify": {
11411
11411
  "aliases": [],
11412
11412
  "args": {},
@@ -15370,5 +15370,5 @@
15370
15370
  ]
15371
15371
  }
15372
15372
  },
15373
- "version": "6.9.1-alpha202510261251.0"
15373
+ "version": "6.9.1-alpha202510261658.0"
15374
15374
  }