sfdx-hardis 6.0.7-beta202508202323.0 → 6.0.7-beta202508231327.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 +3 -0
- package/README.md +2 -8
- package/lib/commands/hardis/org/diagnose/unused-connected-apps.js +2 -2
- package/lib/commands/hardis/org/diagnose/unused-connected-apps.js.map +1 -1
- package/lib/commands/hardis/org/refresh/before-refresh.js +11 -0
- package/lib/commands/hardis/org/refresh/before-refresh.js.map +1 -1
- package/lib/commands/hardis/work/save.js +12 -1
- package/lib/commands/hardis/work/save.js.map +1 -1
- package/oclif.lock +17 -17
- package/oclif.manifest.json +754 -754
- package/package.json +5 -5
package/oclif.manifest.json
CHANGED
|
@@ -4407,135 +4407,6 @@
|
|
|
4407
4407
|
"ws:work:hardis"
|
|
4408
4408
|
]
|
|
4409
4409
|
},
|
|
4410
|
-
"hardis:git:pull-requests:extract": {
|
|
4411
|
-
"aliases": [],
|
|
4412
|
-
"args": {},
|
|
4413
|
-
"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",
|
|
4414
|
-
"examples": [
|
|
4415
|
-
"$ sf hardis:git:pull-requests:extract",
|
|
4416
|
-
"$ sf hardis:git:pull-requests:extract --target-branch main --status merged"
|
|
4417
|
-
],
|
|
4418
|
-
"flags": {
|
|
4419
|
-
"json": {
|
|
4420
|
-
"description": "Format output as json.",
|
|
4421
|
-
"helpGroup": "GLOBAL",
|
|
4422
|
-
"name": "json",
|
|
4423
|
-
"allowNo": false,
|
|
4424
|
-
"type": "boolean"
|
|
4425
|
-
},
|
|
4426
|
-
"flags-dir": {
|
|
4427
|
-
"helpGroup": "GLOBAL",
|
|
4428
|
-
"name": "flags-dir",
|
|
4429
|
-
"summary": "Import flag values from a directory.",
|
|
4430
|
-
"hasDynamicHelp": false,
|
|
4431
|
-
"multiple": false,
|
|
4432
|
-
"type": "option"
|
|
4433
|
-
},
|
|
4434
|
-
"target-branch": {
|
|
4435
|
-
"char": "t",
|
|
4436
|
-
"description": "Target branch of PRs",
|
|
4437
|
-
"name": "target-branch",
|
|
4438
|
-
"hasDynamicHelp": false,
|
|
4439
|
-
"multiple": false,
|
|
4440
|
-
"type": "option"
|
|
4441
|
-
},
|
|
4442
|
-
"status": {
|
|
4443
|
-
"char": "x",
|
|
4444
|
-
"description": "Status of the PR",
|
|
4445
|
-
"name": "status",
|
|
4446
|
-
"hasDynamicHelp": false,
|
|
4447
|
-
"multiple": false,
|
|
4448
|
-
"options": [
|
|
4449
|
-
"open",
|
|
4450
|
-
"merged",
|
|
4451
|
-
"abandoned"
|
|
4452
|
-
],
|
|
4453
|
-
"type": "option"
|
|
4454
|
-
},
|
|
4455
|
-
"min-date": {
|
|
4456
|
-
"char": "m",
|
|
4457
|
-
"description": "Minimum date for PR",
|
|
4458
|
-
"name": "min-date",
|
|
4459
|
-
"hasDynamicHelp": false,
|
|
4460
|
-
"multiple": false,
|
|
4461
|
-
"type": "option"
|
|
4462
|
-
},
|
|
4463
|
-
"outputfile": {
|
|
4464
|
-
"char": "f",
|
|
4465
|
-
"description": "Force the path and name of output report file. Must end with .csv",
|
|
4466
|
-
"name": "outputfile",
|
|
4467
|
-
"hasDynamicHelp": false,
|
|
4468
|
-
"multiple": false,
|
|
4469
|
-
"type": "option"
|
|
4470
|
-
},
|
|
4471
|
-
"debug": {
|
|
4472
|
-
"char": "d",
|
|
4473
|
-
"description": "Activate debug mode (more logs)",
|
|
4474
|
-
"name": "debug",
|
|
4475
|
-
"allowNo": false,
|
|
4476
|
-
"type": "boolean"
|
|
4477
|
-
},
|
|
4478
|
-
"websocket": {
|
|
4479
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
4480
|
-
"name": "websocket",
|
|
4481
|
-
"hasDynamicHelp": false,
|
|
4482
|
-
"multiple": false,
|
|
4483
|
-
"type": "option"
|
|
4484
|
-
},
|
|
4485
|
-
"skipauth": {
|
|
4486
|
-
"description": "Skip authentication check when a default username is required",
|
|
4487
|
-
"name": "skipauth",
|
|
4488
|
-
"allowNo": false,
|
|
4489
|
-
"type": "boolean"
|
|
4490
|
-
}
|
|
4491
|
-
},
|
|
4492
|
-
"hasDynamicHelp": false,
|
|
4493
|
-
"hiddenAliases": [],
|
|
4494
|
-
"id": "hardis:git:pull-requests:extract",
|
|
4495
|
-
"pluginAlias": "sfdx-hardis",
|
|
4496
|
-
"pluginName": "sfdx-hardis",
|
|
4497
|
-
"pluginType": "core",
|
|
4498
|
-
"strict": true,
|
|
4499
|
-
"enableJsonFlag": true,
|
|
4500
|
-
"title": "Extract pull requests",
|
|
4501
|
-
"requiresProject": true,
|
|
4502
|
-
"isESM": true,
|
|
4503
|
-
"relativePath": [
|
|
4504
|
-
"lib",
|
|
4505
|
-
"commands",
|
|
4506
|
-
"hardis",
|
|
4507
|
-
"git",
|
|
4508
|
-
"pull-requests",
|
|
4509
|
-
"extract.js"
|
|
4510
|
-
],
|
|
4511
|
-
"aliasPermutations": [],
|
|
4512
|
-
"permutations": [
|
|
4513
|
-
"hardis:git:pull-requests:extract",
|
|
4514
|
-
"git:hardis:pull-requests:extract",
|
|
4515
|
-
"git:pull-requests:hardis:extract",
|
|
4516
|
-
"git:pull-requests:extract:hardis",
|
|
4517
|
-
"hardis:pull-requests:git:extract",
|
|
4518
|
-
"pull-requests:hardis:git:extract",
|
|
4519
|
-
"pull-requests:git:hardis:extract",
|
|
4520
|
-
"pull-requests:git:extract:hardis",
|
|
4521
|
-
"hardis:pull-requests:extract:git",
|
|
4522
|
-
"pull-requests:hardis:extract:git",
|
|
4523
|
-
"pull-requests:extract:hardis:git",
|
|
4524
|
-
"pull-requests:extract:git:hardis",
|
|
4525
|
-
"hardis:git:extract:pull-requests",
|
|
4526
|
-
"git:hardis:extract:pull-requests",
|
|
4527
|
-
"git:extract:hardis:pull-requests",
|
|
4528
|
-
"git:extract:pull-requests:hardis",
|
|
4529
|
-
"hardis:extract:git:pull-requests",
|
|
4530
|
-
"extract:hardis:git:pull-requests",
|
|
4531
|
-
"extract:git:hardis:pull-requests",
|
|
4532
|
-
"extract:git:pull-requests:hardis",
|
|
4533
|
-
"hardis:extract:pull-requests:git",
|
|
4534
|
-
"extract:hardis:pull-requests:git",
|
|
4535
|
-
"extract:pull-requests:hardis:git",
|
|
4536
|
-
"extract:pull-requests:git:hardis"
|
|
4537
|
-
]
|
|
4538
|
-
},
|
|
4539
4410
|
"hardis:doc:extract:permsetgroups": {
|
|
4540
4411
|
"aliases": [],
|
|
4541
4412
|
"args": {},
|
|
@@ -4726,6 +4597,135 @@
|
|
|
4726
4597
|
"generate:plugin:doc:hardis"
|
|
4727
4598
|
]
|
|
4728
4599
|
},
|
|
4600
|
+
"hardis:git:pull-requests:extract": {
|
|
4601
|
+
"aliases": [],
|
|
4602
|
+
"args": {},
|
|
4603
|
+
"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",
|
|
4604
|
+
"examples": [
|
|
4605
|
+
"$ sf hardis:git:pull-requests:extract",
|
|
4606
|
+
"$ sf hardis:git:pull-requests:extract --target-branch main --status merged"
|
|
4607
|
+
],
|
|
4608
|
+
"flags": {
|
|
4609
|
+
"json": {
|
|
4610
|
+
"description": "Format output as json.",
|
|
4611
|
+
"helpGroup": "GLOBAL",
|
|
4612
|
+
"name": "json",
|
|
4613
|
+
"allowNo": false,
|
|
4614
|
+
"type": "boolean"
|
|
4615
|
+
},
|
|
4616
|
+
"flags-dir": {
|
|
4617
|
+
"helpGroup": "GLOBAL",
|
|
4618
|
+
"name": "flags-dir",
|
|
4619
|
+
"summary": "Import flag values from a directory.",
|
|
4620
|
+
"hasDynamicHelp": false,
|
|
4621
|
+
"multiple": false,
|
|
4622
|
+
"type": "option"
|
|
4623
|
+
},
|
|
4624
|
+
"target-branch": {
|
|
4625
|
+
"char": "t",
|
|
4626
|
+
"description": "Target branch of PRs",
|
|
4627
|
+
"name": "target-branch",
|
|
4628
|
+
"hasDynamicHelp": false,
|
|
4629
|
+
"multiple": false,
|
|
4630
|
+
"type": "option"
|
|
4631
|
+
},
|
|
4632
|
+
"status": {
|
|
4633
|
+
"char": "x",
|
|
4634
|
+
"description": "Status of the PR",
|
|
4635
|
+
"name": "status",
|
|
4636
|
+
"hasDynamicHelp": false,
|
|
4637
|
+
"multiple": false,
|
|
4638
|
+
"options": [
|
|
4639
|
+
"open",
|
|
4640
|
+
"merged",
|
|
4641
|
+
"abandoned"
|
|
4642
|
+
],
|
|
4643
|
+
"type": "option"
|
|
4644
|
+
},
|
|
4645
|
+
"min-date": {
|
|
4646
|
+
"char": "m",
|
|
4647
|
+
"description": "Minimum date for PR",
|
|
4648
|
+
"name": "min-date",
|
|
4649
|
+
"hasDynamicHelp": false,
|
|
4650
|
+
"multiple": false,
|
|
4651
|
+
"type": "option"
|
|
4652
|
+
},
|
|
4653
|
+
"outputfile": {
|
|
4654
|
+
"char": "f",
|
|
4655
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
4656
|
+
"name": "outputfile",
|
|
4657
|
+
"hasDynamicHelp": false,
|
|
4658
|
+
"multiple": false,
|
|
4659
|
+
"type": "option"
|
|
4660
|
+
},
|
|
4661
|
+
"debug": {
|
|
4662
|
+
"char": "d",
|
|
4663
|
+
"description": "Activate debug mode (more logs)",
|
|
4664
|
+
"name": "debug",
|
|
4665
|
+
"allowNo": false,
|
|
4666
|
+
"type": "boolean"
|
|
4667
|
+
},
|
|
4668
|
+
"websocket": {
|
|
4669
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
4670
|
+
"name": "websocket",
|
|
4671
|
+
"hasDynamicHelp": false,
|
|
4672
|
+
"multiple": false,
|
|
4673
|
+
"type": "option"
|
|
4674
|
+
},
|
|
4675
|
+
"skipauth": {
|
|
4676
|
+
"description": "Skip authentication check when a default username is required",
|
|
4677
|
+
"name": "skipauth",
|
|
4678
|
+
"allowNo": false,
|
|
4679
|
+
"type": "boolean"
|
|
4680
|
+
}
|
|
4681
|
+
},
|
|
4682
|
+
"hasDynamicHelp": false,
|
|
4683
|
+
"hiddenAliases": [],
|
|
4684
|
+
"id": "hardis:git:pull-requests:extract",
|
|
4685
|
+
"pluginAlias": "sfdx-hardis",
|
|
4686
|
+
"pluginName": "sfdx-hardis",
|
|
4687
|
+
"pluginType": "core",
|
|
4688
|
+
"strict": true,
|
|
4689
|
+
"enableJsonFlag": true,
|
|
4690
|
+
"title": "Extract pull requests",
|
|
4691
|
+
"requiresProject": true,
|
|
4692
|
+
"isESM": true,
|
|
4693
|
+
"relativePath": [
|
|
4694
|
+
"lib",
|
|
4695
|
+
"commands",
|
|
4696
|
+
"hardis",
|
|
4697
|
+
"git",
|
|
4698
|
+
"pull-requests",
|
|
4699
|
+
"extract.js"
|
|
4700
|
+
],
|
|
4701
|
+
"aliasPermutations": [],
|
|
4702
|
+
"permutations": [
|
|
4703
|
+
"hardis:git:pull-requests:extract",
|
|
4704
|
+
"git:hardis:pull-requests:extract",
|
|
4705
|
+
"git:pull-requests:hardis:extract",
|
|
4706
|
+
"git:pull-requests:extract:hardis",
|
|
4707
|
+
"hardis:pull-requests:git:extract",
|
|
4708
|
+
"pull-requests:hardis:git:extract",
|
|
4709
|
+
"pull-requests:git:hardis:extract",
|
|
4710
|
+
"pull-requests:git:extract:hardis",
|
|
4711
|
+
"hardis:pull-requests:extract:git",
|
|
4712
|
+
"pull-requests:hardis:extract:git",
|
|
4713
|
+
"pull-requests:extract:hardis:git",
|
|
4714
|
+
"pull-requests:extract:git:hardis",
|
|
4715
|
+
"hardis:git:extract:pull-requests",
|
|
4716
|
+
"git:hardis:extract:pull-requests",
|
|
4717
|
+
"git:extract:hardis:pull-requests",
|
|
4718
|
+
"git:extract:pull-requests:hardis",
|
|
4719
|
+
"hardis:extract:git:pull-requests",
|
|
4720
|
+
"extract:hardis:git:pull-requests",
|
|
4721
|
+
"extract:git:hardis:pull-requests",
|
|
4722
|
+
"extract:git:pull-requests:hardis",
|
|
4723
|
+
"hardis:extract:pull-requests:git",
|
|
4724
|
+
"extract:hardis:pull-requests:git",
|
|
4725
|
+
"extract:pull-requests:hardis:git",
|
|
4726
|
+
"extract:pull-requests:git:hardis"
|
|
4727
|
+
]
|
|
4728
|
+
},
|
|
4729
4729
|
"hardis:org:community:update": {
|
|
4730
4730
|
"aliases": [],
|
|
4731
4731
|
"args": {},
|
|
@@ -5751,121 +5751,6 @@
|
|
|
5751
5751
|
"import:files:org:hardis"
|
|
5752
5752
|
]
|
|
5753
5753
|
},
|
|
5754
|
-
"hardis:org:fix:listviewmine": {
|
|
5755
|
-
"aliases": [],
|
|
5756
|
-
"args": {},
|
|
5757
|
-
"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",
|
|
5758
|
-
"examples": [
|
|
5759
|
-
"$ sf hardis:org:fix:listviewmine",
|
|
5760
|
-
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
5761
|
-
],
|
|
5762
|
-
"flags": {
|
|
5763
|
-
"json": {
|
|
5764
|
-
"description": "Format output as json.",
|
|
5765
|
-
"helpGroup": "GLOBAL",
|
|
5766
|
-
"name": "json",
|
|
5767
|
-
"allowNo": false,
|
|
5768
|
-
"type": "boolean"
|
|
5769
|
-
},
|
|
5770
|
-
"flags-dir": {
|
|
5771
|
-
"helpGroup": "GLOBAL",
|
|
5772
|
-
"name": "flags-dir",
|
|
5773
|
-
"summary": "Import flag values from a directory.",
|
|
5774
|
-
"hasDynamicHelp": false,
|
|
5775
|
-
"multiple": false,
|
|
5776
|
-
"type": "option"
|
|
5777
|
-
},
|
|
5778
|
-
"listviews": {
|
|
5779
|
-
"char": "l",
|
|
5780
|
-
"description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
|
|
5781
|
-
"name": "listviews",
|
|
5782
|
-
"hasDynamicHelp": false,
|
|
5783
|
-
"multiple": false,
|
|
5784
|
-
"type": "option"
|
|
5785
|
-
},
|
|
5786
|
-
"debug": {
|
|
5787
|
-
"char": "d",
|
|
5788
|
-
"description": "Activate debug mode (more logs)",
|
|
5789
|
-
"name": "debug",
|
|
5790
|
-
"allowNo": false,
|
|
5791
|
-
"type": "boolean"
|
|
5792
|
-
},
|
|
5793
|
-
"websocket": {
|
|
5794
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
5795
|
-
"name": "websocket",
|
|
5796
|
-
"hasDynamicHelp": false,
|
|
5797
|
-
"multiple": false,
|
|
5798
|
-
"type": "option"
|
|
5799
|
-
},
|
|
5800
|
-
"skipauth": {
|
|
5801
|
-
"description": "Skip authentication check when a default username is required",
|
|
5802
|
-
"name": "skipauth",
|
|
5803
|
-
"allowNo": false,
|
|
5804
|
-
"type": "boolean"
|
|
5805
|
-
},
|
|
5806
|
-
"target-org": {
|
|
5807
|
-
"aliases": [
|
|
5808
|
-
"targetusername",
|
|
5809
|
-
"u"
|
|
5810
|
-
],
|
|
5811
|
-
"char": "o",
|
|
5812
|
-
"deprecateAliases": true,
|
|
5813
|
-
"name": "target-org",
|
|
5814
|
-
"noCacheDefault": true,
|
|
5815
|
-
"required": true,
|
|
5816
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5817
|
-
"hasDynamicHelp": true,
|
|
5818
|
-
"multiple": false,
|
|
5819
|
-
"type": "option"
|
|
5820
|
-
}
|
|
5821
|
-
},
|
|
5822
|
-
"hasDynamicHelp": true,
|
|
5823
|
-
"hiddenAliases": [],
|
|
5824
|
-
"id": "hardis:org:fix:listviewmine",
|
|
5825
|
-
"pluginAlias": "sfdx-hardis",
|
|
5826
|
-
"pluginName": "sfdx-hardis",
|
|
5827
|
-
"pluginType": "core",
|
|
5828
|
-
"strict": true,
|
|
5829
|
-
"enableJsonFlag": true,
|
|
5830
|
-
"title": "Fix listviews with ",
|
|
5831
|
-
"requiresProject": true,
|
|
5832
|
-
"isESM": true,
|
|
5833
|
-
"relativePath": [
|
|
5834
|
-
"lib",
|
|
5835
|
-
"commands",
|
|
5836
|
-
"hardis",
|
|
5837
|
-
"org",
|
|
5838
|
-
"fix",
|
|
5839
|
-
"listviewmine.js"
|
|
5840
|
-
],
|
|
5841
|
-
"aliasPermutations": [],
|
|
5842
|
-
"permutations": [
|
|
5843
|
-
"hardis:org:fix:listviewmine",
|
|
5844
|
-
"org:hardis:fix:listviewmine",
|
|
5845
|
-
"org:fix:hardis:listviewmine",
|
|
5846
|
-
"org:fix:listviewmine:hardis",
|
|
5847
|
-
"hardis:fix:org:listviewmine",
|
|
5848
|
-
"fix:hardis:org:listviewmine",
|
|
5849
|
-
"fix:org:hardis:listviewmine",
|
|
5850
|
-
"fix:org:listviewmine:hardis",
|
|
5851
|
-
"hardis:fix:listviewmine:org",
|
|
5852
|
-
"fix:hardis:listviewmine:org",
|
|
5853
|
-
"fix:listviewmine:hardis:org",
|
|
5854
|
-
"fix:listviewmine:org:hardis",
|
|
5855
|
-
"hardis:org:listviewmine:fix",
|
|
5856
|
-
"org:hardis:listviewmine:fix",
|
|
5857
|
-
"org:listviewmine:hardis:fix",
|
|
5858
|
-
"org:listviewmine:fix:hardis",
|
|
5859
|
-
"hardis:listviewmine:org:fix",
|
|
5860
|
-
"listviewmine:hardis:org:fix",
|
|
5861
|
-
"listviewmine:org:hardis:fix",
|
|
5862
|
-
"listviewmine:org:fix:hardis",
|
|
5863
|
-
"hardis:listviewmine:fix:org",
|
|
5864
|
-
"listviewmine:hardis:fix:org",
|
|
5865
|
-
"listviewmine:fix:hardis:org",
|
|
5866
|
-
"listviewmine:fix:org:hardis"
|
|
5867
|
-
]
|
|
5868
|
-
},
|
|
5869
5754
|
"hardis:org:diagnose:audittrail": {
|
|
5870
5755
|
"aliases": [],
|
|
5871
5756
|
"args": {},
|
|
@@ -7137,6 +7022,121 @@
|
|
|
7137
7022
|
"packagexmlfull:generate:org:hardis"
|
|
7138
7023
|
]
|
|
7139
7024
|
},
|
|
7025
|
+
"hardis:org:fix:listviewmine": {
|
|
7026
|
+
"aliases": [],
|
|
7027
|
+
"args": {},
|
|
7028
|
+
"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",
|
|
7029
|
+
"examples": [
|
|
7030
|
+
"$ sf hardis:org:fix:listviewmine",
|
|
7031
|
+
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
7032
|
+
],
|
|
7033
|
+
"flags": {
|
|
7034
|
+
"json": {
|
|
7035
|
+
"description": "Format output as json.",
|
|
7036
|
+
"helpGroup": "GLOBAL",
|
|
7037
|
+
"name": "json",
|
|
7038
|
+
"allowNo": false,
|
|
7039
|
+
"type": "boolean"
|
|
7040
|
+
},
|
|
7041
|
+
"flags-dir": {
|
|
7042
|
+
"helpGroup": "GLOBAL",
|
|
7043
|
+
"name": "flags-dir",
|
|
7044
|
+
"summary": "Import flag values from a directory.",
|
|
7045
|
+
"hasDynamicHelp": false,
|
|
7046
|
+
"multiple": false,
|
|
7047
|
+
"type": "option"
|
|
7048
|
+
},
|
|
7049
|
+
"listviews": {
|
|
7050
|
+
"char": "l",
|
|
7051
|
+
"description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
|
|
7052
|
+
"name": "listviews",
|
|
7053
|
+
"hasDynamicHelp": false,
|
|
7054
|
+
"multiple": false,
|
|
7055
|
+
"type": "option"
|
|
7056
|
+
},
|
|
7057
|
+
"debug": {
|
|
7058
|
+
"char": "d",
|
|
7059
|
+
"description": "Activate debug mode (more logs)",
|
|
7060
|
+
"name": "debug",
|
|
7061
|
+
"allowNo": false,
|
|
7062
|
+
"type": "boolean"
|
|
7063
|
+
},
|
|
7064
|
+
"websocket": {
|
|
7065
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7066
|
+
"name": "websocket",
|
|
7067
|
+
"hasDynamicHelp": false,
|
|
7068
|
+
"multiple": false,
|
|
7069
|
+
"type": "option"
|
|
7070
|
+
},
|
|
7071
|
+
"skipauth": {
|
|
7072
|
+
"description": "Skip authentication check when a default username is required",
|
|
7073
|
+
"name": "skipauth",
|
|
7074
|
+
"allowNo": false,
|
|
7075
|
+
"type": "boolean"
|
|
7076
|
+
},
|
|
7077
|
+
"target-org": {
|
|
7078
|
+
"aliases": [
|
|
7079
|
+
"targetusername",
|
|
7080
|
+
"u"
|
|
7081
|
+
],
|
|
7082
|
+
"char": "o",
|
|
7083
|
+
"deprecateAliases": true,
|
|
7084
|
+
"name": "target-org",
|
|
7085
|
+
"noCacheDefault": true,
|
|
7086
|
+
"required": true,
|
|
7087
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7088
|
+
"hasDynamicHelp": true,
|
|
7089
|
+
"multiple": false,
|
|
7090
|
+
"type": "option"
|
|
7091
|
+
}
|
|
7092
|
+
},
|
|
7093
|
+
"hasDynamicHelp": true,
|
|
7094
|
+
"hiddenAliases": [],
|
|
7095
|
+
"id": "hardis:org:fix:listviewmine",
|
|
7096
|
+
"pluginAlias": "sfdx-hardis",
|
|
7097
|
+
"pluginName": "sfdx-hardis",
|
|
7098
|
+
"pluginType": "core",
|
|
7099
|
+
"strict": true,
|
|
7100
|
+
"enableJsonFlag": true,
|
|
7101
|
+
"title": "Fix listviews with ",
|
|
7102
|
+
"requiresProject": true,
|
|
7103
|
+
"isESM": true,
|
|
7104
|
+
"relativePath": [
|
|
7105
|
+
"lib",
|
|
7106
|
+
"commands",
|
|
7107
|
+
"hardis",
|
|
7108
|
+
"org",
|
|
7109
|
+
"fix",
|
|
7110
|
+
"listviewmine.js"
|
|
7111
|
+
],
|
|
7112
|
+
"aliasPermutations": [],
|
|
7113
|
+
"permutations": [
|
|
7114
|
+
"hardis:org:fix:listviewmine",
|
|
7115
|
+
"org:hardis:fix:listviewmine",
|
|
7116
|
+
"org:fix:hardis:listviewmine",
|
|
7117
|
+
"org:fix:listviewmine:hardis",
|
|
7118
|
+
"hardis:fix:org:listviewmine",
|
|
7119
|
+
"fix:hardis:org:listviewmine",
|
|
7120
|
+
"fix:org:hardis:listviewmine",
|
|
7121
|
+
"fix:org:listviewmine:hardis",
|
|
7122
|
+
"hardis:fix:listviewmine:org",
|
|
7123
|
+
"fix:hardis:listviewmine:org",
|
|
7124
|
+
"fix:listviewmine:hardis:org",
|
|
7125
|
+
"fix:listviewmine:org:hardis",
|
|
7126
|
+
"hardis:org:listviewmine:fix",
|
|
7127
|
+
"org:hardis:listviewmine:fix",
|
|
7128
|
+
"org:listviewmine:hardis:fix",
|
|
7129
|
+
"org:listviewmine:fix:hardis",
|
|
7130
|
+
"hardis:listviewmine:org:fix",
|
|
7131
|
+
"listviewmine:hardis:org:fix",
|
|
7132
|
+
"listviewmine:org:hardis:fix",
|
|
7133
|
+
"listviewmine:org:fix:hardis",
|
|
7134
|
+
"hardis:listviewmine:fix:org",
|
|
7135
|
+
"listviewmine:hardis:fix:org",
|
|
7136
|
+
"listviewmine:fix:hardis:org",
|
|
7137
|
+
"listviewmine:fix:org:hardis"
|
|
7138
|
+
]
|
|
7139
|
+
},
|
|
7140
7140
|
"hardis:org:monitor:all": {
|
|
7141
7141
|
"aliases": [],
|
|
7142
7142
|
"args": {},
|
|
@@ -7880,6 +7880,113 @@
|
|
|
7880
7880
|
"flow:purge:org:hardis"
|
|
7881
7881
|
]
|
|
7882
7882
|
},
|
|
7883
|
+
"hardis:org:retrieve:packageconfig": {
|
|
7884
|
+
"aliases": [],
|
|
7885
|
+
"args": {},
|
|
7886
|
+
"description": "\n**Retrieves the installed package configuration from a Salesforce org and optionally updates the local project configuration.**\n\nThis command is useful for maintaining an accurate record of installed packages within your Salesforce project, which is crucial for managing dependencies and ensuring consistent deployments across environments.\n\nKey functionalities:\n\n- **Package Listing:** Connects to a specified Salesforce org (or prompts for one if not provided) and retrieves a list of all installed packages.\n- **Configuration Update:** Offers the option to update your local project's configuration with the retrieved list of installed packages. This can be beneficial for automating package installations during environment setup or CI/CD processes.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Org Connection:** It establishes a connection to the target Salesforce org using the provided or prompted username.\n- **Metadata Retrieval:** It utilizes `MetadataUtils.listInstalledPackages` to query the Salesforce org and obtain details about the installed packages.\n- **Interactive Prompt:** It uses the `prompts` library to ask the user whether they want to update their local project configuration with the retrieved package list.\n- **Configuration Management:** If the user confirms, it calls `managePackageConfig` to update the project's configuration file (likely `.sfdx-hardis.yml`) with the new package information.\n- **User Feedback:** Provides clear messages to the user about the success of the package retrieval and configuration update.\n</details>\n",
|
|
7887
|
+
"examples": [
|
|
7888
|
+
"$ sf hardis:org:retrieve:packageconfig",
|
|
7889
|
+
"sf hardis:org:retrieve:packageconfig -u myOrg"
|
|
7890
|
+
],
|
|
7891
|
+
"flags": {
|
|
7892
|
+
"json": {
|
|
7893
|
+
"description": "Format output as json.",
|
|
7894
|
+
"helpGroup": "GLOBAL",
|
|
7895
|
+
"name": "json",
|
|
7896
|
+
"allowNo": false,
|
|
7897
|
+
"type": "boolean"
|
|
7898
|
+
},
|
|
7899
|
+
"flags-dir": {
|
|
7900
|
+
"helpGroup": "GLOBAL",
|
|
7901
|
+
"name": "flags-dir",
|
|
7902
|
+
"summary": "Import flag values from a directory.",
|
|
7903
|
+
"hasDynamicHelp": false,
|
|
7904
|
+
"multiple": false,
|
|
7905
|
+
"type": "option"
|
|
7906
|
+
},
|
|
7907
|
+
"debug": {
|
|
7908
|
+
"char": "d",
|
|
7909
|
+
"description": "Activate debug mode (more logs)",
|
|
7910
|
+
"name": "debug",
|
|
7911
|
+
"allowNo": false,
|
|
7912
|
+
"type": "boolean"
|
|
7913
|
+
},
|
|
7914
|
+
"websocket": {
|
|
7915
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7916
|
+
"name": "websocket",
|
|
7917
|
+
"hasDynamicHelp": false,
|
|
7918
|
+
"multiple": false,
|
|
7919
|
+
"type": "option"
|
|
7920
|
+
},
|
|
7921
|
+
"skipauth": {
|
|
7922
|
+
"description": "Skip authentication check when a default username is required",
|
|
7923
|
+
"name": "skipauth",
|
|
7924
|
+
"allowNo": false,
|
|
7925
|
+
"type": "boolean"
|
|
7926
|
+
},
|
|
7927
|
+
"target-org": {
|
|
7928
|
+
"aliases": [
|
|
7929
|
+
"targetusername",
|
|
7930
|
+
"u"
|
|
7931
|
+
],
|
|
7932
|
+
"char": "o",
|
|
7933
|
+
"deprecateAliases": true,
|
|
7934
|
+
"name": "target-org",
|
|
7935
|
+
"noCacheDefault": true,
|
|
7936
|
+
"required": true,
|
|
7937
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7938
|
+
"hasDynamicHelp": true,
|
|
7939
|
+
"multiple": false,
|
|
7940
|
+
"type": "option"
|
|
7941
|
+
}
|
|
7942
|
+
},
|
|
7943
|
+
"hasDynamicHelp": true,
|
|
7944
|
+
"hiddenAliases": [],
|
|
7945
|
+
"id": "hardis:org:retrieve:packageconfig",
|
|
7946
|
+
"pluginAlias": "sfdx-hardis",
|
|
7947
|
+
"pluginName": "sfdx-hardis",
|
|
7948
|
+
"pluginType": "core",
|
|
7949
|
+
"strict": true,
|
|
7950
|
+
"enableJsonFlag": true,
|
|
7951
|
+
"title": "Retrieve package configuration from an org",
|
|
7952
|
+
"requiresProject": false,
|
|
7953
|
+
"isESM": true,
|
|
7954
|
+
"relativePath": [
|
|
7955
|
+
"lib",
|
|
7956
|
+
"commands",
|
|
7957
|
+
"hardis",
|
|
7958
|
+
"org",
|
|
7959
|
+
"retrieve",
|
|
7960
|
+
"packageconfig.js"
|
|
7961
|
+
],
|
|
7962
|
+
"aliasPermutations": [],
|
|
7963
|
+
"permutations": [
|
|
7964
|
+
"hardis:org:retrieve:packageconfig",
|
|
7965
|
+
"org:hardis:retrieve:packageconfig",
|
|
7966
|
+
"org:retrieve:hardis:packageconfig",
|
|
7967
|
+
"org:retrieve:packageconfig:hardis",
|
|
7968
|
+
"hardis:retrieve:org:packageconfig",
|
|
7969
|
+
"retrieve:hardis:org:packageconfig",
|
|
7970
|
+
"retrieve:org:hardis:packageconfig",
|
|
7971
|
+
"retrieve:org:packageconfig:hardis",
|
|
7972
|
+
"hardis:retrieve:packageconfig:org",
|
|
7973
|
+
"retrieve:hardis:packageconfig:org",
|
|
7974
|
+
"retrieve:packageconfig:hardis:org",
|
|
7975
|
+
"retrieve:packageconfig:org:hardis",
|
|
7976
|
+
"hardis:org:packageconfig:retrieve",
|
|
7977
|
+
"org:hardis:packageconfig:retrieve",
|
|
7978
|
+
"org:packageconfig:hardis:retrieve",
|
|
7979
|
+
"org:packageconfig:retrieve:hardis",
|
|
7980
|
+
"hardis:packageconfig:org:retrieve",
|
|
7981
|
+
"packageconfig:hardis:org:retrieve",
|
|
7982
|
+
"packageconfig:org:hardis:retrieve",
|
|
7983
|
+
"packageconfig:org:retrieve:hardis",
|
|
7984
|
+
"hardis:packageconfig:retrieve:org",
|
|
7985
|
+
"packageconfig:hardis:retrieve:org",
|
|
7986
|
+
"packageconfig:retrieve:hardis:org",
|
|
7987
|
+
"packageconfig:retrieve:org:hardis"
|
|
7988
|
+
]
|
|
7989
|
+
},
|
|
7883
7990
|
"hardis:org:refresh:after-refresh": {
|
|
7884
7991
|
"aliases": [],
|
|
7885
7992
|
"args": {},
|
|
@@ -8081,149 +8188,42 @@
|
|
|
8081
8188
|
"pluginType": "core",
|
|
8082
8189
|
"strict": true,
|
|
8083
8190
|
"enableJsonFlag": true,
|
|
8084
|
-
"requiresProject": true,
|
|
8085
|
-
"isESM": true,
|
|
8086
|
-
"relativePath": [
|
|
8087
|
-
"lib",
|
|
8088
|
-
"commands",
|
|
8089
|
-
"hardis",
|
|
8090
|
-
"org",
|
|
8091
|
-
"refresh",
|
|
8092
|
-
"before-refresh.js"
|
|
8093
|
-
],
|
|
8094
|
-
"aliasPermutations": [],
|
|
8095
|
-
"permutations": [
|
|
8096
|
-
"hardis:org:refresh:before-refresh",
|
|
8097
|
-
"org:hardis:refresh:before-refresh",
|
|
8098
|
-
"org:refresh:hardis:before-refresh",
|
|
8099
|
-
"org:refresh:before-refresh:hardis",
|
|
8100
|
-
"hardis:refresh:org:before-refresh",
|
|
8101
|
-
"refresh:hardis:org:before-refresh",
|
|
8102
|
-
"refresh:org:hardis:before-refresh",
|
|
8103
|
-
"refresh:org:before-refresh:hardis",
|
|
8104
|
-
"hardis:refresh:before-refresh:org",
|
|
8105
|
-
"refresh:hardis:before-refresh:org",
|
|
8106
|
-
"refresh:before-refresh:hardis:org",
|
|
8107
|
-
"refresh:before-refresh:org:hardis",
|
|
8108
|
-
"hardis:org:before-refresh:refresh",
|
|
8109
|
-
"org:hardis:before-refresh:refresh",
|
|
8110
|
-
"org:before-refresh:hardis:refresh",
|
|
8111
|
-
"org:before-refresh:refresh:hardis",
|
|
8112
|
-
"hardis:before-refresh:org:refresh",
|
|
8113
|
-
"before-refresh:hardis:org:refresh",
|
|
8114
|
-
"before-refresh:org:hardis:refresh",
|
|
8115
|
-
"before-refresh:org:refresh:hardis",
|
|
8116
|
-
"hardis:before-refresh:refresh:org",
|
|
8117
|
-
"before-refresh:hardis:refresh:org",
|
|
8118
|
-
"before-refresh:refresh:hardis:org",
|
|
8119
|
-
"before-refresh:refresh:org:hardis"
|
|
8120
|
-
]
|
|
8121
|
-
},
|
|
8122
|
-
"hardis:org:retrieve:packageconfig": {
|
|
8123
|
-
"aliases": [],
|
|
8124
|
-
"args": {},
|
|
8125
|
-
"description": "\n**Retrieves the installed package configuration from a Salesforce org and optionally updates the local project configuration.**\n\nThis command is useful for maintaining an accurate record of installed packages within your Salesforce project, which is crucial for managing dependencies and ensuring consistent deployments across environments.\n\nKey functionalities:\n\n- **Package Listing:** Connects to a specified Salesforce org (or prompts for one if not provided) and retrieves a list of all installed packages.\n- **Configuration Update:** Offers the option to update your local project's configuration with the retrieved list of installed packages. This can be beneficial for automating package installations during environment setup or CI/CD processes.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Org Connection:** It establishes a connection to the target Salesforce org using the provided or prompted username.\n- **Metadata Retrieval:** It utilizes `MetadataUtils.listInstalledPackages` to query the Salesforce org and obtain details about the installed packages.\n- **Interactive Prompt:** It uses the `prompts` library to ask the user whether they want to update their local project configuration with the retrieved package list.\n- **Configuration Management:** If the user confirms, it calls `managePackageConfig` to update the project's configuration file (likely `.sfdx-hardis.yml`) with the new package information.\n- **User Feedback:** Provides clear messages to the user about the success of the package retrieval and configuration update.\n</details>\n",
|
|
8126
|
-
"examples": [
|
|
8127
|
-
"$ sf hardis:org:retrieve:packageconfig",
|
|
8128
|
-
"sf hardis:org:retrieve:packageconfig -u myOrg"
|
|
8129
|
-
],
|
|
8130
|
-
"flags": {
|
|
8131
|
-
"json": {
|
|
8132
|
-
"description": "Format output as json.",
|
|
8133
|
-
"helpGroup": "GLOBAL",
|
|
8134
|
-
"name": "json",
|
|
8135
|
-
"allowNo": false,
|
|
8136
|
-
"type": "boolean"
|
|
8137
|
-
},
|
|
8138
|
-
"flags-dir": {
|
|
8139
|
-
"helpGroup": "GLOBAL",
|
|
8140
|
-
"name": "flags-dir",
|
|
8141
|
-
"summary": "Import flag values from a directory.",
|
|
8142
|
-
"hasDynamicHelp": false,
|
|
8143
|
-
"multiple": false,
|
|
8144
|
-
"type": "option"
|
|
8145
|
-
},
|
|
8146
|
-
"debug": {
|
|
8147
|
-
"char": "d",
|
|
8148
|
-
"description": "Activate debug mode (more logs)",
|
|
8149
|
-
"name": "debug",
|
|
8150
|
-
"allowNo": false,
|
|
8151
|
-
"type": "boolean"
|
|
8152
|
-
},
|
|
8153
|
-
"websocket": {
|
|
8154
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
8155
|
-
"name": "websocket",
|
|
8156
|
-
"hasDynamicHelp": false,
|
|
8157
|
-
"multiple": false,
|
|
8158
|
-
"type": "option"
|
|
8159
|
-
},
|
|
8160
|
-
"skipauth": {
|
|
8161
|
-
"description": "Skip authentication check when a default username is required",
|
|
8162
|
-
"name": "skipauth",
|
|
8163
|
-
"allowNo": false,
|
|
8164
|
-
"type": "boolean"
|
|
8165
|
-
},
|
|
8166
|
-
"target-org": {
|
|
8167
|
-
"aliases": [
|
|
8168
|
-
"targetusername",
|
|
8169
|
-
"u"
|
|
8170
|
-
],
|
|
8171
|
-
"char": "o",
|
|
8172
|
-
"deprecateAliases": true,
|
|
8173
|
-
"name": "target-org",
|
|
8174
|
-
"noCacheDefault": true,
|
|
8175
|
-
"required": true,
|
|
8176
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
8177
|
-
"hasDynamicHelp": true,
|
|
8178
|
-
"multiple": false,
|
|
8179
|
-
"type": "option"
|
|
8180
|
-
}
|
|
8181
|
-
},
|
|
8182
|
-
"hasDynamicHelp": true,
|
|
8183
|
-
"hiddenAliases": [],
|
|
8184
|
-
"id": "hardis:org:retrieve:packageconfig",
|
|
8185
|
-
"pluginAlias": "sfdx-hardis",
|
|
8186
|
-
"pluginName": "sfdx-hardis",
|
|
8187
|
-
"pluginType": "core",
|
|
8188
|
-
"strict": true,
|
|
8189
|
-
"enableJsonFlag": true,
|
|
8190
|
-
"title": "Retrieve package configuration from an org",
|
|
8191
|
-
"requiresProject": false,
|
|
8192
|
-
"isESM": true,
|
|
8193
|
-
"relativePath": [
|
|
8194
|
-
"lib",
|
|
8195
|
-
"commands",
|
|
8196
|
-
"hardis",
|
|
8197
|
-
"org",
|
|
8198
|
-
"retrieve",
|
|
8199
|
-
"packageconfig.js"
|
|
8200
|
-
],
|
|
8201
|
-
"aliasPermutations": [],
|
|
8202
|
-
"permutations": [
|
|
8203
|
-
"hardis:org:retrieve:packageconfig",
|
|
8204
|
-
"org:hardis:retrieve:packageconfig",
|
|
8205
|
-
"org:retrieve:hardis:packageconfig",
|
|
8206
|
-
"org:retrieve:packageconfig:hardis",
|
|
8207
|
-
"hardis:retrieve:org:packageconfig",
|
|
8208
|
-
"retrieve:hardis:org:packageconfig",
|
|
8209
|
-
"retrieve:org:hardis:packageconfig",
|
|
8210
|
-
"retrieve:org:packageconfig:hardis",
|
|
8211
|
-
"hardis:retrieve:packageconfig:org",
|
|
8212
|
-
"retrieve:hardis:packageconfig:org",
|
|
8213
|
-
"retrieve:packageconfig:hardis:org",
|
|
8214
|
-
"retrieve:packageconfig:org:hardis",
|
|
8215
|
-
"hardis:org:packageconfig:retrieve",
|
|
8216
|
-
"org:hardis:packageconfig:retrieve",
|
|
8217
|
-
"org:packageconfig:hardis:retrieve",
|
|
8218
|
-
"org:packageconfig:retrieve:hardis",
|
|
8219
|
-
"hardis:packageconfig:org:retrieve",
|
|
8220
|
-
"packageconfig:hardis:org:retrieve",
|
|
8221
|
-
"packageconfig:org:hardis:retrieve",
|
|
8222
|
-
"packageconfig:org:retrieve:hardis",
|
|
8223
|
-
"hardis:packageconfig:retrieve:org",
|
|
8224
|
-
"packageconfig:hardis:retrieve:org",
|
|
8225
|
-
"packageconfig:retrieve:hardis:org",
|
|
8226
|
-
"packageconfig:retrieve:org:hardis"
|
|
8191
|
+
"requiresProject": true,
|
|
8192
|
+
"isESM": true,
|
|
8193
|
+
"relativePath": [
|
|
8194
|
+
"lib",
|
|
8195
|
+
"commands",
|
|
8196
|
+
"hardis",
|
|
8197
|
+
"org",
|
|
8198
|
+
"refresh",
|
|
8199
|
+
"before-refresh.js"
|
|
8200
|
+
],
|
|
8201
|
+
"aliasPermutations": [],
|
|
8202
|
+
"permutations": [
|
|
8203
|
+
"hardis:org:refresh:before-refresh",
|
|
8204
|
+
"org:hardis:refresh:before-refresh",
|
|
8205
|
+
"org:refresh:hardis:before-refresh",
|
|
8206
|
+
"org:refresh:before-refresh:hardis",
|
|
8207
|
+
"hardis:refresh:org:before-refresh",
|
|
8208
|
+
"refresh:hardis:org:before-refresh",
|
|
8209
|
+
"refresh:org:hardis:before-refresh",
|
|
8210
|
+
"refresh:org:before-refresh:hardis",
|
|
8211
|
+
"hardis:refresh:before-refresh:org",
|
|
8212
|
+
"refresh:hardis:before-refresh:org",
|
|
8213
|
+
"refresh:before-refresh:hardis:org",
|
|
8214
|
+
"refresh:before-refresh:org:hardis",
|
|
8215
|
+
"hardis:org:before-refresh:refresh",
|
|
8216
|
+
"org:hardis:before-refresh:refresh",
|
|
8217
|
+
"org:before-refresh:hardis:refresh",
|
|
8218
|
+
"org:before-refresh:refresh:hardis",
|
|
8219
|
+
"hardis:before-refresh:org:refresh",
|
|
8220
|
+
"before-refresh:hardis:org:refresh",
|
|
8221
|
+
"before-refresh:org:hardis:refresh",
|
|
8222
|
+
"before-refresh:org:refresh:hardis",
|
|
8223
|
+
"hardis:before-refresh:refresh:org",
|
|
8224
|
+
"before-refresh:hardis:refresh:org",
|
|
8225
|
+
"before-refresh:refresh:hardis:org",
|
|
8226
|
+
"before-refresh:refresh:org:hardis"
|
|
8227
8227
|
]
|
|
8228
8228
|
},
|
|
8229
8229
|
"hardis:org:test:apex": {
|
|
@@ -9425,229 +9425,9 @@
|
|
|
9425
9425
|
"hardis:project:audit:remotesites": {
|
|
9426
9426
|
"aliases": [],
|
|
9427
9427
|
"args": {},
|
|
9428
|
-
"description": "\n## Command Behavior\n\n**Audits Salesforce Remote Site Settings in your project, providing a comprehensive overview of external endpoints accessed by your Salesforce org.**\n\nThis command is crucial for security reviews, compliance checks, and understanding the external integrations of your Salesforce environment. It helps identify all configured remote sites, their URLs, activity status, and associated protocols.\n\nKey functionalities:\n\n- **Remote Site Discovery:** Scans your project for RemoteSiteSetting metadata files (.remoteSite-meta.xml or .remoteSite).\n- **URL Extraction:** Extracts the URL, active status, and description for each remote site.\n- **Protocol and Domain Identification:** Determines the protocol (HTTP/HTTPS) and extracts the domain from each URL, providing a clearer picture of the external systems being accessed.\n- **Reporting:** Generates a CSV report summarizing all detected remote sites, including their protocol, domain, name, URL, active status, and description.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **File Discovery:** Uses `glob` to find all RemoteSiteSetting metadata files within the project.\n- **Content Analysis:** Reads the content of each XML file and uses regular expressions (/<url>(.*?)<\\/url>/gim, /<isActive>(.*?)<\\/isActive>/gim, /<description>(.*?)<\\/description>/gim) to extract relevant details.\n- **`catchMatches` Utility:** This utility function is used to apply the defined regular expressions to each file and extract all matching occurrences.\n- **URL Parsing:** Uses Node.js's `url` module to parse the extracted URLs and `psl` (Public Suffix List) to extract the domain name from the hostname.\n- **Data Structuring:** Organizes the extracted information into a structured format, including the remote site's name, file name, namespace, URL, active status, description, protocol, and domain.\n- **Reporting:** Uses `generateReports` to create a CSV report and display a table in the console, summarizing the audit findings.\n</details>\n",
|
|
9429
|
-
"examples": [
|
|
9430
|
-
"$ sf hardis:project:audit:remotesites"
|
|
9431
|
-
],
|
|
9432
|
-
"flags": {
|
|
9433
|
-
"json": {
|
|
9434
|
-
"description": "Format output as json.",
|
|
9435
|
-
"helpGroup": "GLOBAL",
|
|
9436
|
-
"name": "json",
|
|
9437
|
-
"allowNo": false,
|
|
9438
|
-
"type": "boolean"
|
|
9439
|
-
},
|
|
9440
|
-
"flags-dir": {
|
|
9441
|
-
"helpGroup": "GLOBAL",
|
|
9442
|
-
"name": "flags-dir",
|
|
9443
|
-
"summary": "Import flag values from a directory.",
|
|
9444
|
-
"hasDynamicHelp": false,
|
|
9445
|
-
"multiple": false,
|
|
9446
|
-
"type": "option"
|
|
9447
|
-
},
|
|
9448
|
-
"debug": {
|
|
9449
|
-
"char": "d",
|
|
9450
|
-
"description": "Activate debug mode (more logs)",
|
|
9451
|
-
"name": "debug",
|
|
9452
|
-
"allowNo": false,
|
|
9453
|
-
"type": "boolean"
|
|
9454
|
-
},
|
|
9455
|
-
"websocket": {
|
|
9456
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
9457
|
-
"name": "websocket",
|
|
9458
|
-
"hasDynamicHelp": false,
|
|
9459
|
-
"multiple": false,
|
|
9460
|
-
"type": "option"
|
|
9461
|
-
},
|
|
9462
|
-
"skipauth": {
|
|
9463
|
-
"description": "Skip authentication check when a default username is required",
|
|
9464
|
-
"name": "skipauth",
|
|
9465
|
-
"allowNo": false,
|
|
9466
|
-
"type": "boolean"
|
|
9467
|
-
}
|
|
9468
|
-
},
|
|
9469
|
-
"hasDynamicHelp": false,
|
|
9470
|
-
"hiddenAliases": [],
|
|
9471
|
-
"id": "hardis:project:audit:remotesites",
|
|
9472
|
-
"pluginAlias": "sfdx-hardis",
|
|
9473
|
-
"pluginName": "sfdx-hardis",
|
|
9474
|
-
"pluginType": "core",
|
|
9475
|
-
"strict": true,
|
|
9476
|
-
"enableJsonFlag": true,
|
|
9477
|
-
"title": "Audit Remote Sites",
|
|
9478
|
-
"requiresProject": true,
|
|
9479
|
-
"isESM": true,
|
|
9480
|
-
"relativePath": [
|
|
9481
|
-
"lib",
|
|
9482
|
-
"commands",
|
|
9483
|
-
"hardis",
|
|
9484
|
-
"project",
|
|
9485
|
-
"audit",
|
|
9486
|
-
"remotesites.js"
|
|
9487
|
-
],
|
|
9488
|
-
"aliasPermutations": [],
|
|
9489
|
-
"permutations": [
|
|
9490
|
-
"hardis:project:audit:remotesites",
|
|
9491
|
-
"project:hardis:audit:remotesites",
|
|
9492
|
-
"project:audit:hardis:remotesites",
|
|
9493
|
-
"project:audit:remotesites:hardis",
|
|
9494
|
-
"hardis:audit:project:remotesites",
|
|
9495
|
-
"audit:hardis:project:remotesites",
|
|
9496
|
-
"audit:project:hardis:remotesites",
|
|
9497
|
-
"audit:project:remotesites:hardis",
|
|
9498
|
-
"hardis:audit:remotesites:project",
|
|
9499
|
-
"audit:hardis:remotesites:project",
|
|
9500
|
-
"audit:remotesites:hardis:project",
|
|
9501
|
-
"audit:remotesites:project:hardis",
|
|
9502
|
-
"hardis:project:remotesites:audit",
|
|
9503
|
-
"project:hardis:remotesites:audit",
|
|
9504
|
-
"project:remotesites:hardis:audit",
|
|
9505
|
-
"project:remotesites:audit:hardis",
|
|
9506
|
-
"hardis:remotesites:project:audit",
|
|
9507
|
-
"remotesites:hardis:project:audit",
|
|
9508
|
-
"remotesites:project:hardis:audit",
|
|
9509
|
-
"remotesites:project:audit:hardis",
|
|
9510
|
-
"hardis:remotesites:audit:project",
|
|
9511
|
-
"remotesites:hardis:audit:project",
|
|
9512
|
-
"remotesites:audit:hardis:project",
|
|
9513
|
-
"remotesites:audit:project:hardis"
|
|
9514
|
-
]
|
|
9515
|
-
},
|
|
9516
|
-
"hardis:project:configure:auth": {
|
|
9517
|
-
"aliases": [],
|
|
9518
|
-
"args": {},
|
|
9519
|
-
"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",
|
|
9520
|
-
"examples": [
|
|
9521
|
-
"$ sf hardis:project:configure:auth"
|
|
9522
|
-
],
|
|
9523
|
-
"flags": {
|
|
9524
|
-
"json": {
|
|
9525
|
-
"description": "Format output as json.",
|
|
9526
|
-
"helpGroup": "GLOBAL",
|
|
9527
|
-
"name": "json",
|
|
9528
|
-
"allowNo": false,
|
|
9529
|
-
"type": "boolean"
|
|
9530
|
-
},
|
|
9531
|
-
"flags-dir": {
|
|
9532
|
-
"helpGroup": "GLOBAL",
|
|
9533
|
-
"name": "flags-dir",
|
|
9534
|
-
"summary": "Import flag values from a directory.",
|
|
9535
|
-
"hasDynamicHelp": false,
|
|
9536
|
-
"multiple": false,
|
|
9537
|
-
"type": "option"
|
|
9538
|
-
},
|
|
9539
|
-
"devhub": {
|
|
9540
|
-
"char": "b",
|
|
9541
|
-
"description": "Configure project DevHub",
|
|
9542
|
-
"name": "devhub",
|
|
9543
|
-
"allowNo": false,
|
|
9544
|
-
"type": "boolean"
|
|
9545
|
-
},
|
|
9546
|
-
"debug": {
|
|
9547
|
-
"char": "d",
|
|
9548
|
-
"description": "Activate debug mode (more logs)",
|
|
9549
|
-
"name": "debug",
|
|
9550
|
-
"allowNo": false,
|
|
9551
|
-
"type": "boolean"
|
|
9552
|
-
},
|
|
9553
|
-
"websocket": {
|
|
9554
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
9555
|
-
"name": "websocket",
|
|
9556
|
-
"hasDynamicHelp": false,
|
|
9557
|
-
"multiple": false,
|
|
9558
|
-
"type": "option"
|
|
9559
|
-
},
|
|
9560
|
-
"skipauth": {
|
|
9561
|
-
"description": "Skip authentication check when a default username is required",
|
|
9562
|
-
"name": "skipauth",
|
|
9563
|
-
"allowNo": false,
|
|
9564
|
-
"type": "boolean"
|
|
9565
|
-
},
|
|
9566
|
-
"target-org": {
|
|
9567
|
-
"aliases": [
|
|
9568
|
-
"targetusername",
|
|
9569
|
-
"u"
|
|
9570
|
-
],
|
|
9571
|
-
"char": "o",
|
|
9572
|
-
"deprecateAliases": true,
|
|
9573
|
-
"name": "target-org",
|
|
9574
|
-
"noCacheDefault": true,
|
|
9575
|
-
"summary": "Username or alias of the target org.",
|
|
9576
|
-
"hasDynamicHelp": true,
|
|
9577
|
-
"multiple": false,
|
|
9578
|
-
"type": "option"
|
|
9579
|
-
},
|
|
9580
|
-
"target-dev-hub": {
|
|
9581
|
-
"aliases": [
|
|
9582
|
-
"targetdevhubusername"
|
|
9583
|
-
],
|
|
9584
|
-
"char": "v",
|
|
9585
|
-
"deprecateAliases": true,
|
|
9586
|
-
"name": "target-dev-hub",
|
|
9587
|
-
"noCacheDefault": true,
|
|
9588
|
-
"required": false,
|
|
9589
|
-
"summary": "Username or alias of the Dev Hub org.",
|
|
9590
|
-
"hasDynamicHelp": true,
|
|
9591
|
-
"multiple": false,
|
|
9592
|
-
"type": "option"
|
|
9593
|
-
}
|
|
9594
|
-
},
|
|
9595
|
-
"hasDynamicHelp": true,
|
|
9596
|
-
"hiddenAliases": [],
|
|
9597
|
-
"id": "hardis:project:configure:auth",
|
|
9598
|
-
"pluginAlias": "sfdx-hardis",
|
|
9599
|
-
"pluginName": "sfdx-hardis",
|
|
9600
|
-
"pluginType": "core",
|
|
9601
|
-
"strict": true,
|
|
9602
|
-
"enableJsonFlag": true,
|
|
9603
|
-
"title": "Configure authentication",
|
|
9604
|
-
"requiresProject": false,
|
|
9605
|
-
"requiresDependencies": [
|
|
9606
|
-
"openssl"
|
|
9607
|
-
],
|
|
9608
|
-
"isESM": true,
|
|
9609
|
-
"relativePath": [
|
|
9610
|
-
"lib",
|
|
9611
|
-
"commands",
|
|
9612
|
-
"hardis",
|
|
9613
|
-
"project",
|
|
9614
|
-
"configure",
|
|
9615
|
-
"auth.js"
|
|
9616
|
-
],
|
|
9617
|
-
"aliasPermutations": [],
|
|
9618
|
-
"permutations": [
|
|
9619
|
-
"hardis:project:configure:auth",
|
|
9620
|
-
"project:hardis:configure:auth",
|
|
9621
|
-
"project:configure:hardis:auth",
|
|
9622
|
-
"project:configure:auth:hardis",
|
|
9623
|
-
"hardis:configure:project:auth",
|
|
9624
|
-
"configure:hardis:project:auth",
|
|
9625
|
-
"configure:project:hardis:auth",
|
|
9626
|
-
"configure:project:auth:hardis",
|
|
9627
|
-
"hardis:configure:auth:project",
|
|
9628
|
-
"configure:hardis:auth:project",
|
|
9629
|
-
"configure:auth:hardis:project",
|
|
9630
|
-
"configure:auth:project:hardis",
|
|
9631
|
-
"hardis:project:auth:configure",
|
|
9632
|
-
"project:hardis:auth:configure",
|
|
9633
|
-
"project:auth:hardis:configure",
|
|
9634
|
-
"project:auth:configure:hardis",
|
|
9635
|
-
"hardis:auth:project:configure",
|
|
9636
|
-
"auth:hardis:project:configure",
|
|
9637
|
-
"auth:project:hardis:configure",
|
|
9638
|
-
"auth:project:configure:hardis",
|
|
9639
|
-
"hardis:auth:configure:project",
|
|
9640
|
-
"auth:hardis:configure:project",
|
|
9641
|
-
"auth:configure:hardis:project",
|
|
9642
|
-
"auth:configure:project:hardis"
|
|
9643
|
-
]
|
|
9644
|
-
},
|
|
9645
|
-
"hardis:project:convert:profilestopermsets": {
|
|
9646
|
-
"aliases": [],
|
|
9647
|
-
"args": {},
|
|
9648
|
-
"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",
|
|
9428
|
+
"description": "\n## Command Behavior\n\n**Audits Salesforce Remote Site Settings in your project, providing a comprehensive overview of external endpoints accessed by your Salesforce org.**\n\nThis command is crucial for security reviews, compliance checks, and understanding the external integrations of your Salesforce environment. It helps identify all configured remote sites, their URLs, activity status, and associated protocols.\n\nKey functionalities:\n\n- **Remote Site Discovery:** Scans your project for RemoteSiteSetting metadata files (.remoteSite-meta.xml or .remoteSite).\n- **URL Extraction:** Extracts the URL, active status, and description for each remote site.\n- **Protocol and Domain Identification:** Determines the protocol (HTTP/HTTPS) and extracts the domain from each URL, providing a clearer picture of the external systems being accessed.\n- **Reporting:** Generates a CSV report summarizing all detected remote sites, including their protocol, domain, name, URL, active status, and description.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **File Discovery:** Uses `glob` to find all RemoteSiteSetting metadata files within the project.\n- **Content Analysis:** Reads the content of each XML file and uses regular expressions (/<url>(.*?)<\\/url>/gim, /<isActive>(.*?)<\\/isActive>/gim, /<description>(.*?)<\\/description>/gim) to extract relevant details.\n- **`catchMatches` Utility:** This utility function is used to apply the defined regular expressions to each file and extract all matching occurrences.\n- **URL Parsing:** Uses Node.js's `url` module to parse the extracted URLs and `psl` (Public Suffix List) to extract the domain name from the hostname.\n- **Data Structuring:** Organizes the extracted information into a structured format, including the remote site's name, file name, namespace, URL, active status, description, protocol, and domain.\n- **Reporting:** Uses `generateReports` to create a CSV report and display a table in the console, summarizing the audit findings.\n</details>\n",
|
|
9649
9429
|
"examples": [
|
|
9650
|
-
"$ sf hardis:project:
|
|
9430
|
+
"$ sf hardis:project:audit:remotesites"
|
|
9651
9431
|
],
|
|
9652
9432
|
"flags": {
|
|
9653
9433
|
"json": {
|
|
@@ -9665,15 +9445,6 @@
|
|
|
9665
9445
|
"multiple": false,
|
|
9666
9446
|
"type": "option"
|
|
9667
9447
|
},
|
|
9668
|
-
"except": {
|
|
9669
|
-
"char": "e",
|
|
9670
|
-
"description": "List of filters",
|
|
9671
|
-
"name": "except",
|
|
9672
|
-
"default": [],
|
|
9673
|
-
"hasDynamicHelp": false,
|
|
9674
|
-
"multiple": true,
|
|
9675
|
-
"type": "option"
|
|
9676
|
-
},
|
|
9677
9448
|
"debug": {
|
|
9678
9449
|
"char": "d",
|
|
9679
9450
|
"description": "Activate debug mode (more logs)",
|
|
@@ -9697,52 +9468,49 @@
|
|
|
9697
9468
|
},
|
|
9698
9469
|
"hasDynamicHelp": false,
|
|
9699
9470
|
"hiddenAliases": [],
|
|
9700
|
-
"id": "hardis:project:
|
|
9471
|
+
"id": "hardis:project:audit:remotesites",
|
|
9701
9472
|
"pluginAlias": "sfdx-hardis",
|
|
9702
9473
|
"pluginName": "sfdx-hardis",
|
|
9703
9474
|
"pluginType": "core",
|
|
9704
9475
|
"strict": true,
|
|
9705
9476
|
"enableJsonFlag": true,
|
|
9706
|
-
"title": "
|
|
9477
|
+
"title": "Audit Remote Sites",
|
|
9707
9478
|
"requiresProject": true,
|
|
9708
|
-
"requiresSfdxPlugins": [
|
|
9709
|
-
"shane-sfdx-plugins"
|
|
9710
|
-
],
|
|
9711
9479
|
"isESM": true,
|
|
9712
9480
|
"relativePath": [
|
|
9713
9481
|
"lib",
|
|
9714
9482
|
"commands",
|
|
9715
9483
|
"hardis",
|
|
9716
9484
|
"project",
|
|
9717
|
-
"
|
|
9718
|
-
"
|
|
9485
|
+
"audit",
|
|
9486
|
+
"remotesites.js"
|
|
9719
9487
|
],
|
|
9720
9488
|
"aliasPermutations": [],
|
|
9721
9489
|
"permutations": [
|
|
9722
|
-
"hardis:project:
|
|
9723
|
-
"project:hardis:
|
|
9724
|
-
"project:
|
|
9725
|
-
"project:
|
|
9726
|
-
"hardis:
|
|
9727
|
-
"
|
|
9728
|
-
"
|
|
9729
|
-
"
|
|
9730
|
-
"hardis:
|
|
9731
|
-
"
|
|
9732
|
-
"
|
|
9733
|
-
"
|
|
9734
|
-
"hardis:project:
|
|
9735
|
-
"project:hardis:
|
|
9736
|
-
"project:
|
|
9737
|
-
"project:
|
|
9738
|
-
"hardis:
|
|
9739
|
-
"
|
|
9740
|
-
"
|
|
9741
|
-
"
|
|
9742
|
-
"hardis:
|
|
9743
|
-
"
|
|
9744
|
-
"
|
|
9745
|
-
"
|
|
9490
|
+
"hardis:project:audit:remotesites",
|
|
9491
|
+
"project:hardis:audit:remotesites",
|
|
9492
|
+
"project:audit:hardis:remotesites",
|
|
9493
|
+
"project:audit:remotesites:hardis",
|
|
9494
|
+
"hardis:audit:project:remotesites",
|
|
9495
|
+
"audit:hardis:project:remotesites",
|
|
9496
|
+
"audit:project:hardis:remotesites",
|
|
9497
|
+
"audit:project:remotesites:hardis",
|
|
9498
|
+
"hardis:audit:remotesites:project",
|
|
9499
|
+
"audit:hardis:remotesites:project",
|
|
9500
|
+
"audit:remotesites:hardis:project",
|
|
9501
|
+
"audit:remotesites:project:hardis",
|
|
9502
|
+
"hardis:project:remotesites:audit",
|
|
9503
|
+
"project:hardis:remotesites:audit",
|
|
9504
|
+
"project:remotesites:hardis:audit",
|
|
9505
|
+
"project:remotesites:audit:hardis",
|
|
9506
|
+
"hardis:remotesites:project:audit",
|
|
9507
|
+
"remotesites:hardis:project:audit",
|
|
9508
|
+
"remotesites:project:hardis:audit",
|
|
9509
|
+
"remotesites:project:audit:hardis",
|
|
9510
|
+
"hardis:remotesites:audit:project",
|
|
9511
|
+
"remotesites:hardis:audit:project",
|
|
9512
|
+
"remotesites:audit:hardis:project",
|
|
9513
|
+
"remotesites:audit:project:hardis"
|
|
9746
9514
|
]
|
|
9747
9515
|
},
|
|
9748
9516
|
"hardis:project:clean:emptyitems": {
|
|
@@ -11230,12 +10998,12 @@
|
|
|
11230
10998
|
"xml:clean:project:hardis"
|
|
11231
10999
|
]
|
|
11232
11000
|
},
|
|
11233
|
-
"hardis:project:
|
|
11001
|
+
"hardis:project:convert:profilestopermsets": {
|
|
11234
11002
|
"aliases": [],
|
|
11235
11003
|
"args": {},
|
|
11236
|
-
"description": "\n## Command Behavior\n\n**
|
|
11004
|
+
"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",
|
|
11237
11005
|
"examples": [
|
|
11238
|
-
"$ sf hardis:project:
|
|
11006
|
+
"$ sf hardis:project:convert:profilestopermsets"
|
|
11239
11007
|
],
|
|
11240
11008
|
"flags": {
|
|
11241
11009
|
"json": {
|
|
@@ -11253,13 +11021,13 @@
|
|
|
11253
11021
|
"multiple": false,
|
|
11254
11022
|
"type": "option"
|
|
11255
11023
|
},
|
|
11256
|
-
"
|
|
11257
|
-
"char": "
|
|
11258
|
-
"description": "
|
|
11259
|
-
"name": "
|
|
11260
|
-
"default":
|
|
11024
|
+
"except": {
|
|
11025
|
+
"char": "e",
|
|
11026
|
+
"description": "List of filters",
|
|
11027
|
+
"name": "except",
|
|
11028
|
+
"default": [],
|
|
11261
11029
|
"hasDynamicHelp": false,
|
|
11262
|
-
"multiple":
|
|
11030
|
+
"multiple": true,
|
|
11263
11031
|
"type": "option"
|
|
11264
11032
|
},
|
|
11265
11033
|
"debug": {
|
|
@@ -11281,76 +11049,64 @@
|
|
|
11281
11049
|
"name": "skipauth",
|
|
11282
11050
|
"allowNo": false,
|
|
11283
11051
|
"type": "boolean"
|
|
11284
|
-
},
|
|
11285
|
-
"target-org": {
|
|
11286
|
-
"aliases": [
|
|
11287
|
-
"targetusername",
|
|
11288
|
-
"u"
|
|
11289
|
-
],
|
|
11290
|
-
"char": "o",
|
|
11291
|
-
"deprecateAliases": true,
|
|
11292
|
-
"name": "target-org",
|
|
11293
|
-
"noCacheDefault": true,
|
|
11294
|
-
"required": true,
|
|
11295
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
11296
|
-
"hasDynamicHelp": true,
|
|
11297
|
-
"multiple": false,
|
|
11298
|
-
"type": "option"
|
|
11299
11052
|
}
|
|
11300
11053
|
},
|
|
11301
|
-
"hasDynamicHelp":
|
|
11054
|
+
"hasDynamicHelp": false,
|
|
11302
11055
|
"hiddenAliases": [],
|
|
11303
|
-
"id": "hardis:project:
|
|
11056
|
+
"id": "hardis:project:convert:profilestopermsets",
|
|
11304
11057
|
"pluginAlias": "sfdx-hardis",
|
|
11305
11058
|
"pluginName": "sfdx-hardis",
|
|
11306
11059
|
"pluginType": "core",
|
|
11307
11060
|
"strict": true,
|
|
11308
11061
|
"enableJsonFlag": true,
|
|
11309
|
-
"title": "
|
|
11062
|
+
"title": "Convert Profiles into Permission Sets",
|
|
11310
11063
|
"requiresProject": true,
|
|
11064
|
+
"requiresSfdxPlugins": [
|
|
11065
|
+
"shane-sfdx-plugins"
|
|
11066
|
+
],
|
|
11311
11067
|
"isESM": true,
|
|
11312
11068
|
"relativePath": [
|
|
11313
11069
|
"lib",
|
|
11314
11070
|
"commands",
|
|
11315
11071
|
"hardis",
|
|
11316
11072
|
"project",
|
|
11317
|
-
"
|
|
11318
|
-
"
|
|
11073
|
+
"convert",
|
|
11074
|
+
"profilestopermsets.js"
|
|
11319
11075
|
],
|
|
11320
11076
|
"aliasPermutations": [],
|
|
11321
11077
|
"permutations": [
|
|
11322
|
-
"hardis:project:
|
|
11323
|
-
"project:hardis:
|
|
11324
|
-
"project:
|
|
11325
|
-
"project:
|
|
11326
|
-
"hardis:
|
|
11327
|
-
"
|
|
11328
|
-
"
|
|
11329
|
-
"
|
|
11330
|
-
"hardis:
|
|
11331
|
-
"
|
|
11332
|
-
"
|
|
11333
|
-
"
|
|
11334
|
-
"hardis:project:
|
|
11335
|
-
"project:hardis:
|
|
11336
|
-
"project:
|
|
11337
|
-
"project:
|
|
11338
|
-
"hardis:
|
|
11339
|
-
"
|
|
11340
|
-
"
|
|
11341
|
-
"
|
|
11342
|
-
"hardis:
|
|
11343
|
-
"
|
|
11344
|
-
"
|
|
11345
|
-
"
|
|
11078
|
+
"hardis:project:convert:profilestopermsets",
|
|
11079
|
+
"project:hardis:convert:profilestopermsets",
|
|
11080
|
+
"project:convert:hardis:profilestopermsets",
|
|
11081
|
+
"project:convert:profilestopermsets:hardis",
|
|
11082
|
+
"hardis:convert:project:profilestopermsets",
|
|
11083
|
+
"convert:hardis:project:profilestopermsets",
|
|
11084
|
+
"convert:project:hardis:profilestopermsets",
|
|
11085
|
+
"convert:project:profilestopermsets:hardis",
|
|
11086
|
+
"hardis:convert:profilestopermsets:project",
|
|
11087
|
+
"convert:hardis:profilestopermsets:project",
|
|
11088
|
+
"convert:profilestopermsets:hardis:project",
|
|
11089
|
+
"convert:profilestopermsets:project:hardis",
|
|
11090
|
+
"hardis:project:profilestopermsets:convert",
|
|
11091
|
+
"project:hardis:profilestopermsets:convert",
|
|
11092
|
+
"project:profilestopermsets:hardis:convert",
|
|
11093
|
+
"project:profilestopermsets:convert:hardis",
|
|
11094
|
+
"hardis:profilestopermsets:project:convert",
|
|
11095
|
+
"profilestopermsets:hardis:project:convert",
|
|
11096
|
+
"profilestopermsets:project:hardis:convert",
|
|
11097
|
+
"profilestopermsets:project:convert:hardis",
|
|
11098
|
+
"hardis:profilestopermsets:convert:project",
|
|
11099
|
+
"profilestopermsets:hardis:convert:project",
|
|
11100
|
+
"profilestopermsets:convert:hardis:project",
|
|
11101
|
+
"profilestopermsets:convert:project:hardis"
|
|
11346
11102
|
]
|
|
11347
11103
|
},
|
|
11348
|
-
"hardis:project:
|
|
11104
|
+
"hardis:project:configure:auth": {
|
|
11349
11105
|
"aliases": [],
|
|
11350
11106
|
"args": {},
|
|
11351
|
-
"description": "\n## Command Behavior\n\n**
|
|
11107
|
+
"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",
|
|
11352
11108
|
"examples": [
|
|
11353
|
-
"$ sf hardis:project:
|
|
11109
|
+
"$ sf hardis:project:configure:auth"
|
|
11354
11110
|
],
|
|
11355
11111
|
"flags": {
|
|
11356
11112
|
"json": {
|
|
@@ -11368,14 +11124,12 @@
|
|
|
11368
11124
|
"multiple": false,
|
|
11369
11125
|
"type": "option"
|
|
11370
11126
|
},
|
|
11371
|
-
"
|
|
11372
|
-
"char": "
|
|
11373
|
-
"description": "
|
|
11374
|
-
"name": "
|
|
11375
|
-
"
|
|
11376
|
-
"
|
|
11377
|
-
"multiple": false,
|
|
11378
|
-
"type": "option"
|
|
11127
|
+
"devhub": {
|
|
11128
|
+
"char": "b",
|
|
11129
|
+
"description": "Configure project DevHub",
|
|
11130
|
+
"name": "devhub",
|
|
11131
|
+
"allowNo": false,
|
|
11132
|
+
"type": "boolean"
|
|
11379
11133
|
},
|
|
11380
11134
|
"debug": {
|
|
11381
11135
|
"char": "d",
|
|
@@ -11396,53 +11150,84 @@
|
|
|
11396
11150
|
"name": "skipauth",
|
|
11397
11151
|
"allowNo": false,
|
|
11398
11152
|
"type": "boolean"
|
|
11153
|
+
},
|
|
11154
|
+
"target-org": {
|
|
11155
|
+
"aliases": [
|
|
11156
|
+
"targetusername",
|
|
11157
|
+
"u"
|
|
11158
|
+
],
|
|
11159
|
+
"char": "o",
|
|
11160
|
+
"deprecateAliases": true,
|
|
11161
|
+
"name": "target-org",
|
|
11162
|
+
"noCacheDefault": true,
|
|
11163
|
+
"summary": "Username or alias of the target org.",
|
|
11164
|
+
"hasDynamicHelp": true,
|
|
11165
|
+
"multiple": false,
|
|
11166
|
+
"type": "option"
|
|
11167
|
+
},
|
|
11168
|
+
"target-dev-hub": {
|
|
11169
|
+
"aliases": [
|
|
11170
|
+
"targetdevhubusername"
|
|
11171
|
+
],
|
|
11172
|
+
"char": "v",
|
|
11173
|
+
"deprecateAliases": true,
|
|
11174
|
+
"name": "target-dev-hub",
|
|
11175
|
+
"noCacheDefault": true,
|
|
11176
|
+
"required": false,
|
|
11177
|
+
"summary": "Username or alias of the Dev Hub org.",
|
|
11178
|
+
"hasDynamicHelp": true,
|
|
11179
|
+
"multiple": false,
|
|
11180
|
+
"type": "option"
|
|
11399
11181
|
}
|
|
11400
11182
|
},
|
|
11401
|
-
"hasDynamicHelp":
|
|
11183
|
+
"hasDynamicHelp": true,
|
|
11402
11184
|
"hiddenAliases": [],
|
|
11403
|
-
"id": "hardis:project:
|
|
11185
|
+
"id": "hardis:project:configure:auth",
|
|
11404
11186
|
"pluginAlias": "sfdx-hardis",
|
|
11405
11187
|
"pluginName": "sfdx-hardis",
|
|
11406
11188
|
"pluginType": "core",
|
|
11407
11189
|
"strict": true,
|
|
11408
|
-
"enableJsonFlag": true,
|
|
11409
|
-
"title": "
|
|
11410
|
-
"requiresProject":
|
|
11411
|
-
"
|
|
11412
|
-
|
|
11413
|
-
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
"
|
|
11417
|
-
"
|
|
11418
|
-
"
|
|
11419
|
-
|
|
11420
|
-
|
|
11421
|
-
|
|
11422
|
-
|
|
11423
|
-
|
|
11424
|
-
|
|
11425
|
-
"project:
|
|
11426
|
-
"hardis:
|
|
11427
|
-
"
|
|
11428
|
-
"
|
|
11429
|
-
"
|
|
11430
|
-
"hardis:
|
|
11431
|
-
"
|
|
11432
|
-
"
|
|
11433
|
-
"
|
|
11434
|
-
"hardis:project
|
|
11435
|
-
"
|
|
11436
|
-
"project:
|
|
11437
|
-
"project:
|
|
11438
|
-
"hardis:
|
|
11439
|
-
"
|
|
11440
|
-
"
|
|
11441
|
-
"
|
|
11442
|
-
"hardis:
|
|
11443
|
-
"
|
|
11444
|
-
"
|
|
11445
|
-
"
|
|
11190
|
+
"enableJsonFlag": true,
|
|
11191
|
+
"title": "Configure authentication",
|
|
11192
|
+
"requiresProject": false,
|
|
11193
|
+
"requiresDependencies": [
|
|
11194
|
+
"openssl"
|
|
11195
|
+
],
|
|
11196
|
+
"isESM": true,
|
|
11197
|
+
"relativePath": [
|
|
11198
|
+
"lib",
|
|
11199
|
+
"commands",
|
|
11200
|
+
"hardis",
|
|
11201
|
+
"project",
|
|
11202
|
+
"configure",
|
|
11203
|
+
"auth.js"
|
|
11204
|
+
],
|
|
11205
|
+
"aliasPermutations": [],
|
|
11206
|
+
"permutations": [
|
|
11207
|
+
"hardis:project:configure:auth",
|
|
11208
|
+
"project:hardis:configure:auth",
|
|
11209
|
+
"project:configure:hardis:auth",
|
|
11210
|
+
"project:configure:auth:hardis",
|
|
11211
|
+
"hardis:configure:project:auth",
|
|
11212
|
+
"configure:hardis:project:auth",
|
|
11213
|
+
"configure:project:hardis:auth",
|
|
11214
|
+
"configure:project:auth:hardis",
|
|
11215
|
+
"hardis:configure:auth:project",
|
|
11216
|
+
"configure:hardis:auth:project",
|
|
11217
|
+
"configure:auth:hardis:project",
|
|
11218
|
+
"configure:auth:project:hardis",
|
|
11219
|
+
"hardis:project:auth:configure",
|
|
11220
|
+
"project:hardis:auth:configure",
|
|
11221
|
+
"project:auth:hardis:configure",
|
|
11222
|
+
"project:auth:configure:hardis",
|
|
11223
|
+
"hardis:auth:project:configure",
|
|
11224
|
+
"auth:hardis:project:configure",
|
|
11225
|
+
"auth:project:hardis:configure",
|
|
11226
|
+
"auth:project:configure:hardis",
|
|
11227
|
+
"hardis:auth:configure:project",
|
|
11228
|
+
"auth:hardis:configure:project",
|
|
11229
|
+
"auth:configure:hardis:project",
|
|
11230
|
+
"auth:configure:project:hardis"
|
|
11446
11231
|
]
|
|
11447
11232
|
},
|
|
11448
11233
|
"hardis:project:deploy:notify": {
|
|
@@ -12620,6 +12405,221 @@
|
|
|
12620
12405
|
"validate:deploy:project:hardis"
|
|
12621
12406
|
]
|
|
12622
12407
|
},
|
|
12408
|
+
"hardis:project:fix:profiletabs": {
|
|
12409
|
+
"aliases": [],
|
|
12410
|
+
"args": {},
|
|
12411
|
+
"description": "\n## Command Behavior\n\n**Interactively updates tab visibility settings in Salesforce profiles, addressing a common issue where tab visibilities are not correctly retrieved by `sf project retrieve start`.**\n\nThis command provides a user-friendly interface to manage tab settings within your profile XML files, ensuring that your local project accurately reflects the intended tab configurations in your Salesforce org.\n\nKey functionalities:\n\n- **Interactive Tab Selection:** Displays a multi-select menu of all available tabs in your org, allowing you to choose which tabs to update.\n- **Visibility Control:** Lets you set the visibility for the selected tabs to either `DefaultOn` (Visible) or `Hidden`.\n- **Profile Selection:** Presents a multi-select menu of all .profile-meta.xml files in your project, allowing you to apply the tab visibility changes to specific profiles.\n- **XML Updates:** Modifies the <tabVisibilities> section of the selected profile XML files to reflect the chosen tab settings. If a tab visibility setting already exists for a selected tab, it will be updated; otherwise, a new one will be added.\n- **Sorted Output:** The <tabVisibilities> in the updated profile XML files are sorted alphabetically for consistency and readability.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **SOQL Queries (Tooling API):** It queries the `TabDefinition` object using `soqlQueryTooling` to retrieve a list of all available tabs in the target org.\n- **File Discovery:** Uses `glob` to find all .profile-meta.xml files within the specified project path.\n- **Interactive Prompts:** Leverages the `prompts` library to create interactive menus for selecting tabs, visibility settings, and profiles.\n- **XML Parsing and Manipulation:** Uses `parseXmlFile` to read the content of profile XML files and `writeXmlFile` to write the modified content back. It manipulates the `tabVisibilities` array within the parsed XML to add or update tab settings.\n- **Array Sorting:** Employs the `sort-array` library to sort the `tabVisibilities` alphabetically by tab name.\n- **Logging:** Provides feedback to the user about which profiles have been updated and a summary of the changes.\n</details>\n",
|
|
12412
|
+
"examples": [
|
|
12413
|
+
"$ sf hardis:project:fix:profiletabs"
|
|
12414
|
+
],
|
|
12415
|
+
"flags": {
|
|
12416
|
+
"json": {
|
|
12417
|
+
"description": "Format output as json.",
|
|
12418
|
+
"helpGroup": "GLOBAL",
|
|
12419
|
+
"name": "json",
|
|
12420
|
+
"allowNo": false,
|
|
12421
|
+
"type": "boolean"
|
|
12422
|
+
},
|
|
12423
|
+
"flags-dir": {
|
|
12424
|
+
"helpGroup": "GLOBAL",
|
|
12425
|
+
"name": "flags-dir",
|
|
12426
|
+
"summary": "Import flag values from a directory.",
|
|
12427
|
+
"hasDynamicHelp": false,
|
|
12428
|
+
"multiple": false,
|
|
12429
|
+
"type": "option"
|
|
12430
|
+
},
|
|
12431
|
+
"path": {
|
|
12432
|
+
"char": "p",
|
|
12433
|
+
"description": "Root folder",
|
|
12434
|
+
"name": "path",
|
|
12435
|
+
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
12436
|
+
"hasDynamicHelp": false,
|
|
12437
|
+
"multiple": false,
|
|
12438
|
+
"type": "option"
|
|
12439
|
+
},
|
|
12440
|
+
"debug": {
|
|
12441
|
+
"char": "d",
|
|
12442
|
+
"description": "Activate debug mode (more logs)",
|
|
12443
|
+
"name": "debug",
|
|
12444
|
+
"allowNo": false,
|
|
12445
|
+
"type": "boolean"
|
|
12446
|
+
},
|
|
12447
|
+
"websocket": {
|
|
12448
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
12449
|
+
"name": "websocket",
|
|
12450
|
+
"hasDynamicHelp": false,
|
|
12451
|
+
"multiple": false,
|
|
12452
|
+
"type": "option"
|
|
12453
|
+
},
|
|
12454
|
+
"skipauth": {
|
|
12455
|
+
"description": "Skip authentication check when a default username is required",
|
|
12456
|
+
"name": "skipauth",
|
|
12457
|
+
"allowNo": false,
|
|
12458
|
+
"type": "boolean"
|
|
12459
|
+
},
|
|
12460
|
+
"target-org": {
|
|
12461
|
+
"aliases": [
|
|
12462
|
+
"targetusername",
|
|
12463
|
+
"u"
|
|
12464
|
+
],
|
|
12465
|
+
"char": "o",
|
|
12466
|
+
"deprecateAliases": true,
|
|
12467
|
+
"name": "target-org",
|
|
12468
|
+
"noCacheDefault": true,
|
|
12469
|
+
"required": true,
|
|
12470
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
12471
|
+
"hasDynamicHelp": true,
|
|
12472
|
+
"multiple": false,
|
|
12473
|
+
"type": "option"
|
|
12474
|
+
}
|
|
12475
|
+
},
|
|
12476
|
+
"hasDynamicHelp": true,
|
|
12477
|
+
"hiddenAliases": [],
|
|
12478
|
+
"id": "hardis:project:fix:profiletabs",
|
|
12479
|
+
"pluginAlias": "sfdx-hardis",
|
|
12480
|
+
"pluginName": "sfdx-hardis",
|
|
12481
|
+
"pluginType": "core",
|
|
12482
|
+
"strict": true,
|
|
12483
|
+
"enableJsonFlag": true,
|
|
12484
|
+
"title": "Fix profiles to add tabs that are not retrieved by SF CLI",
|
|
12485
|
+
"requiresProject": true,
|
|
12486
|
+
"isESM": true,
|
|
12487
|
+
"relativePath": [
|
|
12488
|
+
"lib",
|
|
12489
|
+
"commands",
|
|
12490
|
+
"hardis",
|
|
12491
|
+
"project",
|
|
12492
|
+
"fix",
|
|
12493
|
+
"profiletabs.js"
|
|
12494
|
+
],
|
|
12495
|
+
"aliasPermutations": [],
|
|
12496
|
+
"permutations": [
|
|
12497
|
+
"hardis:project:fix:profiletabs",
|
|
12498
|
+
"project:hardis:fix:profiletabs",
|
|
12499
|
+
"project:fix:hardis:profiletabs",
|
|
12500
|
+
"project:fix:profiletabs:hardis",
|
|
12501
|
+
"hardis:fix:project:profiletabs",
|
|
12502
|
+
"fix:hardis:project:profiletabs",
|
|
12503
|
+
"fix:project:hardis:profiletabs",
|
|
12504
|
+
"fix:project:profiletabs:hardis",
|
|
12505
|
+
"hardis:fix:profiletabs:project",
|
|
12506
|
+
"fix:hardis:profiletabs:project",
|
|
12507
|
+
"fix:profiletabs:hardis:project",
|
|
12508
|
+
"fix:profiletabs:project:hardis",
|
|
12509
|
+
"hardis:project:profiletabs:fix",
|
|
12510
|
+
"project:hardis:profiletabs:fix",
|
|
12511
|
+
"project:profiletabs:hardis:fix",
|
|
12512
|
+
"project:profiletabs:fix:hardis",
|
|
12513
|
+
"hardis:profiletabs:project:fix",
|
|
12514
|
+
"profiletabs:hardis:project:fix",
|
|
12515
|
+
"profiletabs:project:hardis:fix",
|
|
12516
|
+
"profiletabs:project:fix:hardis",
|
|
12517
|
+
"hardis:profiletabs:fix:project",
|
|
12518
|
+
"profiletabs:hardis:fix:project",
|
|
12519
|
+
"profiletabs:fix:hardis:project",
|
|
12520
|
+
"profiletabs:fix:project:hardis"
|
|
12521
|
+
]
|
|
12522
|
+
},
|
|
12523
|
+
"hardis:project:fix:v53flexipages": {
|
|
12524
|
+
"aliases": [],
|
|
12525
|
+
"args": {},
|
|
12526
|
+
"description": "\n## Command Behavior\n\n**Fixes Salesforce FlexiPages for compatibility with API Version 53.0 (Winter '22 release) by adding missing identifiers to component instances.**\n\nSalesforce introduced a change in API Version 53.0 that requires `identifier` tags within `componentInstance` and `fieldInstance` elements in FlexiPage metadata. If these identifiers are missing, deployments to orgs with API version 53.0 or higher will fail. This command automates the process of adding these missing identifiers, ensuring your FlexiPages remain deployable.\n\nKey functionalities:\n\n- **Targeted FlexiPage Processing:** Scans all .flexipage-meta.xml files within the specified root folder (defaults to current working directory).\n- **Identifier Injection:** Inserts a unique `identifier` tag (e.g., `SFDX_HARDIS_REPLACEMENT_ID`) into `componentInstance` and `fieldInstance` elements that lack one.\n\n**Important Note:** After running this command, ensure you update your `apiVersion` to `53.0` (or higher) in your `package.xml` and `sfdx-project.json` files.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **File Discovery:** Uses `glob` to find all .flexipage-meta.xml files.\n- **Content Reading:** Reads the XML content of each FlexiPage file.\n- **Regular Expression Replacement:** Employs a set of regular expressions to identify specific XML patterns (componentName.../componentName.../componentInstance, componentName.../componentName.../visibilityRule, fieldItem.../fieldItem.../fieldInstance) that are missing the `identifier` tag.\n- **Dynamic ID Generation:** For each match, it generates a unique identifier (e.g., `sfdxHardisIdX`) and injects it into the XML structure.\n- **File Writing:** If changes are made, the modified XML content is written back to the FlexiPage file using `fs.writeFile`.\n- **Logging:** Provides messages about which FlexiPages are being processed and a summary of the total number of identifiers added.\n</details>\n",
|
|
12527
|
+
"examples": [
|
|
12528
|
+
"$ sf hardis:project:fix:v53flexipages"
|
|
12529
|
+
],
|
|
12530
|
+
"flags": {
|
|
12531
|
+
"json": {
|
|
12532
|
+
"description": "Format output as json.",
|
|
12533
|
+
"helpGroup": "GLOBAL",
|
|
12534
|
+
"name": "json",
|
|
12535
|
+
"allowNo": false,
|
|
12536
|
+
"type": "boolean"
|
|
12537
|
+
},
|
|
12538
|
+
"flags-dir": {
|
|
12539
|
+
"helpGroup": "GLOBAL",
|
|
12540
|
+
"name": "flags-dir",
|
|
12541
|
+
"summary": "Import flag values from a directory.",
|
|
12542
|
+
"hasDynamicHelp": false,
|
|
12543
|
+
"multiple": false,
|
|
12544
|
+
"type": "option"
|
|
12545
|
+
},
|
|
12546
|
+
"path": {
|
|
12547
|
+
"char": "p",
|
|
12548
|
+
"description": "Root folder",
|
|
12549
|
+
"name": "path",
|
|
12550
|
+
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
12551
|
+
"hasDynamicHelp": false,
|
|
12552
|
+
"multiple": false,
|
|
12553
|
+
"type": "option"
|
|
12554
|
+
},
|
|
12555
|
+
"debug": {
|
|
12556
|
+
"char": "d",
|
|
12557
|
+
"description": "Activate debug mode (more logs)",
|
|
12558
|
+
"name": "debug",
|
|
12559
|
+
"allowNo": false,
|
|
12560
|
+
"type": "boolean"
|
|
12561
|
+
},
|
|
12562
|
+
"websocket": {
|
|
12563
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
12564
|
+
"name": "websocket",
|
|
12565
|
+
"hasDynamicHelp": false,
|
|
12566
|
+
"multiple": false,
|
|
12567
|
+
"type": "option"
|
|
12568
|
+
},
|
|
12569
|
+
"skipauth": {
|
|
12570
|
+
"description": "Skip authentication check when a default username is required",
|
|
12571
|
+
"name": "skipauth",
|
|
12572
|
+
"allowNo": false,
|
|
12573
|
+
"type": "boolean"
|
|
12574
|
+
}
|
|
12575
|
+
},
|
|
12576
|
+
"hasDynamicHelp": false,
|
|
12577
|
+
"hiddenAliases": [],
|
|
12578
|
+
"id": "hardis:project:fix:v53flexipages",
|
|
12579
|
+
"pluginAlias": "sfdx-hardis",
|
|
12580
|
+
"pluginName": "sfdx-hardis",
|
|
12581
|
+
"pluginType": "core",
|
|
12582
|
+
"strict": true,
|
|
12583
|
+
"enableJsonFlag": true,
|
|
12584
|
+
"title": "Fix flexipages for v53",
|
|
12585
|
+
"requiresProject": true,
|
|
12586
|
+
"isESM": true,
|
|
12587
|
+
"relativePath": [
|
|
12588
|
+
"lib",
|
|
12589
|
+
"commands",
|
|
12590
|
+
"hardis",
|
|
12591
|
+
"project",
|
|
12592
|
+
"fix",
|
|
12593
|
+
"v53flexipages.js"
|
|
12594
|
+
],
|
|
12595
|
+
"aliasPermutations": [],
|
|
12596
|
+
"permutations": [
|
|
12597
|
+
"hardis:project:fix:v53flexipages",
|
|
12598
|
+
"project:hardis:fix:v53flexipages",
|
|
12599
|
+
"project:fix:hardis:v53flexipages",
|
|
12600
|
+
"project:fix:v53flexipages:hardis",
|
|
12601
|
+
"hardis:fix:project:v53flexipages",
|
|
12602
|
+
"fix:hardis:project:v53flexipages",
|
|
12603
|
+
"fix:project:hardis:v53flexipages",
|
|
12604
|
+
"fix:project:v53flexipages:hardis",
|
|
12605
|
+
"hardis:fix:v53flexipages:project",
|
|
12606
|
+
"fix:hardis:v53flexipages:project",
|
|
12607
|
+
"fix:v53flexipages:hardis:project",
|
|
12608
|
+
"fix:v53flexipages:project:hardis",
|
|
12609
|
+
"hardis:project:v53flexipages:fix",
|
|
12610
|
+
"project:hardis:v53flexipages:fix",
|
|
12611
|
+
"project:v53flexipages:hardis:fix",
|
|
12612
|
+
"project:v53flexipages:fix:hardis",
|
|
12613
|
+
"hardis:v53flexipages:project:fix",
|
|
12614
|
+
"v53flexipages:hardis:project:fix",
|
|
12615
|
+
"v53flexipages:project:hardis:fix",
|
|
12616
|
+
"v53flexipages:project:fix:hardis",
|
|
12617
|
+
"hardis:v53flexipages:fix:project",
|
|
12618
|
+
"v53flexipages:hardis:fix:project",
|
|
12619
|
+
"v53flexipages:fix:hardis:project",
|
|
12620
|
+
"v53flexipages:fix:project:hardis"
|
|
12621
|
+
]
|
|
12622
|
+
},
|
|
12623
12623
|
"hardis:project:generate:bypass": {
|
|
12624
12624
|
"aliases": [],
|
|
12625
12625
|
"args": {},
|
|
@@ -15102,5 +15102,5 @@
|
|
|
15102
15102
|
]
|
|
15103
15103
|
}
|
|
15104
15104
|
},
|
|
15105
|
-
"version": "6.0.7-
|
|
15105
|
+
"version": "6.0.7-beta202508231327.0"
|
|
15106
15106
|
}
|