sfdx-hardis 6.9.1-alpha202510261312.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.
- package/lib/common/actionsProvider/actionsProviderRoot.d.ts +17 -0
- package/lib/common/actionsProvider/actionsProviderRoot.js +24 -0
- package/lib/common/actionsProvider/actionsProviderRoot.js.map +1 -0
- package/lib/common/actionsProvider/apexAction.d.ts +7 -0
- package/lib/common/actionsProvider/apexAction.js +35 -0
- package/lib/common/actionsProvider/apexAction.js.map +1 -0
- package/lib/common/actionsProvider/commandAction.d.ts +7 -0
- package/lib/common/actionsProvider/commandAction.js +28 -0
- package/lib/common/actionsProvider/commandAction.js.map +1 -0
- package/lib/common/actionsProvider/dataAction.d.ts +7 -0
- package/lib/common/actionsProvider/dataAction.js +30 -0
- package/lib/common/actionsProvider/dataAction.js.map +1 -0
- package/lib/common/actionsProvider/manualAction.d.ts +7 -0
- package/lib/common/actionsProvider/manualAction.js +26 -0
- package/lib/common/actionsProvider/manualAction.js.map +1 -0
- package/lib/common/actionsProvider/publishCommunityAction.d.ts +7 -0
- package/lib/common/actionsProvider/publishCommunityAction.js +30 -0
- package/lib/common/actionsProvider/publishCommunityAction.js.map +1 -0
- package/lib/common/utils/prePostCommandUtils.js +24 -144
- package/lib/common/utils/prePostCommandUtils.js.map +1 -1
- package/oclif.manifest.json +803 -803
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -5539,15 +5539,12 @@
|
|
|
5539
5539
|
"import:data:org:hardis"
|
|
5540
5540
|
]
|
|
5541
5541
|
},
|
|
5542
|
-
"hardis:org:
|
|
5542
|
+
"hardis:org:files:export": {
|
|
5543
5543
|
"aliases": [],
|
|
5544
5544
|
"args": {},
|
|
5545
|
-
"description": "
|
|
5545
|
+
"description": "\n## Command Behavior\n\n**Exports file attachments (ContentVersion, Attachment) from a Salesforce org based on a predefined configuration.**\n\nThis command enables the mass download of files associated with Salesforce records, providing a robust solution for backing up files, migrating them to other systems, or integrating them with external document management solutions.\n\nKey functionalities:\n\n- **Configuration-Driven Export:** Relies on an `export.json` file within a designated file export project to define the export criteria, including the SOQL query for parent records, file types to export, output naming conventions, and file size filtering.\n- **File Size Filtering:** Supports minimum file size filtering via the `fileSizeMin` configuration parameter (in KB). Files smaller than the specified size will be skipped during export.\n- **File Validation:** After downloading each file, validates the integrity by:\n - **Checksum Validation:** For ContentVersion files, compares MD5 checksum with Salesforce's stored checksum\n - **Size Validation:** For both ContentVersion and Attachment files, verifies actual file size matches expected size\n - **Status Tracking:** Files are categorized with specific statuses: `success` (valid files), `failed` (download errors), `skipped` (filtered files), `invalid` (downloaded but failed validation)\n - All validation results are logged in the CSV export log for audit purposes\n- **Resume/Restart Capability:** \n - **Resume Mode:** When `--resume` flag is used (default in CI environments), checks existing downloaded files for validity. Valid files are skipped, invalid files are re-downloaded.\n - **Restart Mode:** When resume is disabled, clears the output folder and starts a fresh export.\n - **Interactive Mode:** When existing files are found and `--resume` is not explicitly specified (non-CI environments), prompts the user to choose between resume or restart.\n- **Interactive Project Selection:** If the file export project path is not provided via the `--path` flag, it interactively prompts the user to select one.\n- **Configurable Export Options:** Allows overriding default export settings such as `chunksize` (number of records processed in a batch), `polltimeout` (timeout for Bulk API calls), and `startchunknumber` (to resume a failed export).\n- **Support for ContentVersion and Attachment:** Handles both modern Salesforce Files (ContentVersion) and older Attachments.\n\nSee this article for a practical example:\n\n[](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **FilesExporter Class:** The core logic is encapsulated within the `FilesExporter` class, which orchestrates the entire export process.\n- **SOQL Queries (Bulk API):** It uses Salesforce Bulk API queries to efficiently retrieve large volumes of parent record IDs and file metadata, including checksums and file sizes.\n- **File Download:** Downloads the actual file content from Salesforce.\n- **File Validation:** After each successful download, validates file integrity by comparing checksums (ContentVersion) and file sizes (both ContentVersion and Attachment) against Salesforce metadata.\n- **Resume Logic:** In resume mode, checks for existing files before downloading, validates their integrity, and only re-downloads invalid or missing files. This enables efficient recovery from interrupted exports.\n- **File System Operations:** Writes the downloaded files to the local file system, organizing them into folders based on the configured naming conventions.\n- **Configuration Loading:** Reads the `export.json` file to get the export configuration. It also allows for interactive overriding of these settings.\n- **Interactive Prompts:** Uses `selectFilesWorkspace` to allow the user to choose a file export project, `promptFilesExportConfiguration` for customizing export options, and prompts for resume/restart choice when existing files are found.\n- **Error Handling:** Includes mechanisms to handle potential errors during the export process, such as network issues, API limits, and file validation failures. Each file is assigned a specific status (`success`, `failed`, `skipped`, `invalid`) for comprehensive tracking and troubleshooting.\n</details>\n",
|
|
5546
5546
|
"examples": [
|
|
5547
|
-
"$ sf hardis:org:
|
|
5548
|
-
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
|
|
5549
|
-
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
|
|
5550
|
-
"$ sf hardis:org:diagnose:audittrail --lastndays 5"
|
|
5547
|
+
"$ sf hardis:org:files:export"
|
|
5551
5548
|
],
|
|
5552
5549
|
"flags": {
|
|
5553
5550
|
"json": {
|
|
@@ -5565,30 +5562,48 @@
|
|
|
5565
5562
|
"multiple": false,
|
|
5566
5563
|
"type": "option"
|
|
5567
5564
|
},
|
|
5568
|
-
"
|
|
5569
|
-
"char": "
|
|
5570
|
-
"description": "
|
|
5571
|
-
"name": "
|
|
5565
|
+
"path": {
|
|
5566
|
+
"char": "p",
|
|
5567
|
+
"description": "Path to the file export project",
|
|
5568
|
+
"name": "path",
|
|
5572
5569
|
"hasDynamicHelp": false,
|
|
5573
5570
|
"multiple": false,
|
|
5574
5571
|
"type": "option"
|
|
5575
5572
|
},
|
|
5576
|
-
"
|
|
5573
|
+
"chunksize": {
|
|
5574
|
+
"char": "c",
|
|
5575
|
+
"description": "Number of records to add in a chunk before it is processed",
|
|
5576
|
+
"name": "chunksize",
|
|
5577
|
+
"default": 1000,
|
|
5578
|
+
"hasDynamicHelp": false,
|
|
5579
|
+
"multiple": false,
|
|
5580
|
+
"type": "option"
|
|
5581
|
+
},
|
|
5582
|
+
"polltimeout": {
|
|
5577
5583
|
"char": "t",
|
|
5578
|
-
"description": "
|
|
5579
|
-
"name": "
|
|
5584
|
+
"description": "Timeout in MS for Bulk API calls",
|
|
5585
|
+
"name": "polltimeout",
|
|
5586
|
+
"default": 300000,
|
|
5580
5587
|
"hasDynamicHelp": false,
|
|
5581
5588
|
"multiple": false,
|
|
5582
5589
|
"type": "option"
|
|
5583
5590
|
},
|
|
5584
|
-
"
|
|
5585
|
-
"char": "
|
|
5586
|
-
"description": "
|
|
5587
|
-
"name": "
|
|
5591
|
+
"startchunknumber": {
|
|
5592
|
+
"char": "s",
|
|
5593
|
+
"description": "Chunk number to start from",
|
|
5594
|
+
"name": "startchunknumber",
|
|
5595
|
+
"default": 0,
|
|
5588
5596
|
"hasDynamicHelp": false,
|
|
5589
5597
|
"multiple": false,
|
|
5590
5598
|
"type": "option"
|
|
5591
5599
|
},
|
|
5600
|
+
"resume": {
|
|
5601
|
+
"char": "r",
|
|
5602
|
+
"description": "Resume previous export by checking existing files (default in CI)",
|
|
5603
|
+
"name": "resume",
|
|
5604
|
+
"allowNo": false,
|
|
5605
|
+
"type": "boolean"
|
|
5606
|
+
},
|
|
5592
5607
|
"debug": {
|
|
5593
5608
|
"char": "d",
|
|
5594
5609
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5627,13 +5642,13 @@
|
|
|
5627
5642
|
},
|
|
5628
5643
|
"hasDynamicHelp": true,
|
|
5629
5644
|
"hiddenAliases": [],
|
|
5630
|
-
"id": "hardis:org:
|
|
5645
|
+
"id": "hardis:org:files:export",
|
|
5631
5646
|
"pluginAlias": "sfdx-hardis",
|
|
5632
5647
|
"pluginName": "sfdx-hardis",
|
|
5633
5648
|
"pluginType": "core",
|
|
5634
5649
|
"strict": true,
|
|
5635
5650
|
"enableJsonFlag": true,
|
|
5636
|
-
"title": "
|
|
5651
|
+
"title": "Export files",
|
|
5637
5652
|
"requiresProject": false,
|
|
5638
5653
|
"isESM": true,
|
|
5639
5654
|
"relativePath": [
|
|
@@ -5641,43 +5656,43 @@
|
|
|
5641
5656
|
"commands",
|
|
5642
5657
|
"hardis",
|
|
5643
5658
|
"org",
|
|
5644
|
-
"
|
|
5645
|
-
"
|
|
5659
|
+
"files",
|
|
5660
|
+
"export.js"
|
|
5646
5661
|
],
|
|
5647
5662
|
"aliasPermutations": [],
|
|
5648
5663
|
"permutations": [
|
|
5649
|
-
"hardis:org:
|
|
5650
|
-
"org:hardis:
|
|
5651
|
-
"org:
|
|
5652
|
-
"org:
|
|
5653
|
-
"hardis:
|
|
5654
|
-
"
|
|
5655
|
-
"
|
|
5656
|
-
"
|
|
5657
|
-
"hardis:
|
|
5658
|
-
"
|
|
5659
|
-
"
|
|
5660
|
-
"
|
|
5661
|
-
"hardis:org:
|
|
5662
|
-
"org:hardis:
|
|
5663
|
-
"org:
|
|
5664
|
-
"org:
|
|
5665
|
-
"hardis:
|
|
5666
|
-
"
|
|
5667
|
-
"
|
|
5668
|
-
"
|
|
5669
|
-
"hardis:
|
|
5670
|
-
"
|
|
5671
|
-
"
|
|
5672
|
-
"
|
|
5664
|
+
"hardis:org:files:export",
|
|
5665
|
+
"org:hardis:files:export",
|
|
5666
|
+
"org:files:hardis:export",
|
|
5667
|
+
"org:files:export:hardis",
|
|
5668
|
+
"hardis:files:org:export",
|
|
5669
|
+
"files:hardis:org:export",
|
|
5670
|
+
"files:org:hardis:export",
|
|
5671
|
+
"files:org:export:hardis",
|
|
5672
|
+
"hardis:files:export:org",
|
|
5673
|
+
"files:hardis:export:org",
|
|
5674
|
+
"files:export:hardis:org",
|
|
5675
|
+
"files:export:org:hardis",
|
|
5676
|
+
"hardis:org:export:files",
|
|
5677
|
+
"org:hardis:export:files",
|
|
5678
|
+
"org:export:hardis:files",
|
|
5679
|
+
"org:export:files:hardis",
|
|
5680
|
+
"hardis:export:org:files",
|
|
5681
|
+
"export:hardis:org:files",
|
|
5682
|
+
"export:org:hardis:files",
|
|
5683
|
+
"export:org:files:hardis",
|
|
5684
|
+
"hardis:export:files:org",
|
|
5685
|
+
"export:hardis:files:org",
|
|
5686
|
+
"export:files:hardis:org",
|
|
5687
|
+
"export:files:org:hardis"
|
|
5673
5688
|
]
|
|
5674
5689
|
},
|
|
5675
|
-
"hardis:org:
|
|
5690
|
+
"hardis:org:files:import": {
|
|
5676
5691
|
"aliases": [],
|
|
5677
5692
|
"args": {},
|
|
5678
|
-
"description": "\
|
|
5693
|
+
"description": "\nThis command facilitates the mass upload of files into Salesforce, allowing you to populate records with associated documents, images, or other file types. It's a crucial tool for data migration, content seeding, or synchronizing external file repositories with Salesforce.\n\nKey functionalities:\n\n- **Configuration-Driven Import:** Relies on an `export.json` file within a designated file export project (created using `sf hardis:org:configure:files`) to determine which files to import and how they should be associated with Salesforce records.\n- **Interactive Project Selection:** If the file import project path is not provided via the `--path` flag, it interactively prompts the user to select one.\n- **Overwrite Option:** The `--overwrite` flag allows you to replace existing files in Salesforce with local versions that have the same name. Be aware that this option doubles the number of API calls used.\n- **Support for ContentVersion and Attachment:** Handles both modern Salesforce Files (ContentVersion) and older Attachments.\n\nSee this article for how to export files, which is often a prerequisite for importing:\n\n[](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **FilesImporter Class:** The core logic is encapsulated within the `FilesImporter` class, which orchestrates the entire import process.\n- **File System Scan:** Scans the local file system within the configured project directory to identify files for import.\n- **Salesforce API Interaction:** Uses Salesforce APIs (e.g., ContentVersion, Attachment) to upload files and associate them with records.\n- **Configuration Loading:** Reads the `export.json` file to get the import configuration, including SOQL queries to identify parent records for file association.\n- **Interactive Prompts:** Uses `selectFilesWorkspace` to allow the user to choose a file import project and `prompts` for confirming the overwrite behavior.\n- **Error Handling:** Includes mechanisms to handle potential errors during the import process, such as API limits or file upload failures.\n</details>\n",
|
|
5679
5694
|
"examples": [
|
|
5680
|
-
"$ sf hardis:org:
|
|
5695
|
+
"$ sf hardis:org:files:import"
|
|
5681
5696
|
],
|
|
5682
5697
|
"flags": {
|
|
5683
5698
|
"json": {
|
|
@@ -5695,6 +5710,21 @@
|
|
|
5695
5710
|
"multiple": false,
|
|
5696
5711
|
"type": "option"
|
|
5697
5712
|
},
|
|
5713
|
+
"path": {
|
|
5714
|
+
"char": "p",
|
|
5715
|
+
"description": "Path to the file export project",
|
|
5716
|
+
"name": "path",
|
|
5717
|
+
"hasDynamicHelp": false,
|
|
5718
|
+
"multiple": false,
|
|
5719
|
+
"type": "option"
|
|
5720
|
+
},
|
|
5721
|
+
"overwrite": {
|
|
5722
|
+
"char": "f",
|
|
5723
|
+
"description": "Override existing files (doubles the number of API calls)",
|
|
5724
|
+
"name": "overwrite",
|
|
5725
|
+
"allowNo": false,
|
|
5726
|
+
"type": "boolean"
|
|
5727
|
+
},
|
|
5698
5728
|
"debug": {
|
|
5699
5729
|
"char": "d",
|
|
5700
5730
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5733,13 +5763,13 @@
|
|
|
5733
5763
|
},
|
|
5734
5764
|
"hasDynamicHelp": true,
|
|
5735
5765
|
"hiddenAliases": [],
|
|
5736
|
-
"id": "hardis:org:
|
|
5766
|
+
"id": "hardis:org:files:import",
|
|
5737
5767
|
"pluginAlias": "sfdx-hardis",
|
|
5738
5768
|
"pluginName": "sfdx-hardis",
|
|
5739
5769
|
"pluginType": "core",
|
|
5740
5770
|
"strict": true,
|
|
5741
5771
|
"enableJsonFlag": true,
|
|
5742
|
-
"title": "
|
|
5772
|
+
"title": "Import files",
|
|
5743
5773
|
"requiresProject": false,
|
|
5744
5774
|
"isESM": true,
|
|
5745
5775
|
"relativePath": [
|
|
@@ -5747,46 +5777,44 @@
|
|
|
5747
5777
|
"commands",
|
|
5748
5778
|
"hardis",
|
|
5749
5779
|
"org",
|
|
5750
|
-
"
|
|
5751
|
-
"
|
|
5780
|
+
"files",
|
|
5781
|
+
"import.js"
|
|
5752
5782
|
],
|
|
5753
5783
|
"aliasPermutations": [],
|
|
5754
5784
|
"permutations": [
|
|
5755
|
-
"hardis:org:
|
|
5756
|
-
"org:hardis:
|
|
5757
|
-
"org:
|
|
5758
|
-
"org:
|
|
5759
|
-
"hardis:
|
|
5760
|
-
"
|
|
5761
|
-
"
|
|
5762
|
-
"
|
|
5763
|
-
"hardis:
|
|
5764
|
-
"
|
|
5765
|
-
"
|
|
5766
|
-
"
|
|
5767
|
-
"hardis:org:
|
|
5768
|
-
"org:hardis:
|
|
5769
|
-
"org:
|
|
5770
|
-
"org:
|
|
5771
|
-
"hardis:
|
|
5772
|
-
"
|
|
5773
|
-
"
|
|
5774
|
-
"
|
|
5775
|
-
"hardis:
|
|
5776
|
-
"
|
|
5777
|
-
"
|
|
5778
|
-
"
|
|
5785
|
+
"hardis:org:files:import",
|
|
5786
|
+
"org:hardis:files:import",
|
|
5787
|
+
"org:files:hardis:import",
|
|
5788
|
+
"org:files:import:hardis",
|
|
5789
|
+
"hardis:files:org:import",
|
|
5790
|
+
"files:hardis:org:import",
|
|
5791
|
+
"files:org:hardis:import",
|
|
5792
|
+
"files:org:import:hardis",
|
|
5793
|
+
"hardis:files:import:org",
|
|
5794
|
+
"files:hardis:import:org",
|
|
5795
|
+
"files:import:hardis:org",
|
|
5796
|
+
"files:import:org:hardis",
|
|
5797
|
+
"hardis:org:import:files",
|
|
5798
|
+
"org:hardis:import:files",
|
|
5799
|
+
"org:import:hardis:files",
|
|
5800
|
+
"org:import:files:hardis",
|
|
5801
|
+
"hardis:import:org:files",
|
|
5802
|
+
"import:hardis:org:files",
|
|
5803
|
+
"import:org:hardis:files",
|
|
5804
|
+
"import:org:files:hardis",
|
|
5805
|
+
"hardis:import:files:org",
|
|
5806
|
+
"import:hardis:files:org",
|
|
5807
|
+
"import:files:hardis:org",
|
|
5808
|
+
"import:files:org:hardis"
|
|
5779
5809
|
]
|
|
5780
5810
|
},
|
|
5781
|
-
"hardis:org:
|
|
5811
|
+
"hardis:org:fix:listviewmine": {
|
|
5782
5812
|
"aliases": [],
|
|
5783
5813
|
"args": {},
|
|
5784
|
-
"description": "
|
|
5814
|
+
"description": "Fix listviews whose scope Mine has been replaced by Everything\n\n[](https://nicolas.vuillamy.fr/invalid-scope-mine-not-allowed-deploy-your-listviews-anyway-443aceca8ac7)\n\nList of ListViews can be:\n\n- read from .sfdx-hardis.yml file in property **listViewsToSetToMine**\n- sent in argument listviews\n\nNote: property **listViewsToSetToMine** can be auto-generated by command hardis:work:save if .sfdx-hardis.yml contains the following configuration\n\n```yaml\nautoCleanTypes:\n - listViewsMine\n```\n\n- Example of sfdx-hardis.yml property `listViewsToSetToMine`:\n\n```yaml\nlistViewsToSetToMine:\n - \"force-app/main/default/objects/Operation__c/listViews/MyCurrentOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Operation__c/listViews/MyFinalizedOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/Default_Opportunity_Pipeline.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MyCurrentSubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MySubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Account/listViews/MyActivePartners.listView-meta.xml\"\n```\n\n- If manually written, this could also be:\n\n```yaml\nlistViewsToSetToMine:\n - \"Operation__c:MyCurrentOperations\"\n - \"Operation__c:MyFinalizedOperations\"\n - \"Opportunity:Default_Opportunity_Pipeline\"\n - \"Opportunity:MyCurrentSubscriptions\"\n - \"Opportunity:MySubscriptions\"\n - \"Account:MyActivePartners\"\n```\n\nTroubleshooting: if you need to run this command from an alpine-linux based docker image, use this workaround in your dockerfile:\n\n```dockerfile\n# Do not use puppeteer embedded chromium\nRUN apk add --update --no-cache chromium\nENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=\"true\"\nENV CHROMIUM_PATH=\"/usr/bin/chromium-browser\"\nENV PUPPETEER_EXECUTABLE_PATH=\"$\\{CHROMIUM_PATH}\" // remove \\ before {\n```\n",
|
|
5785
5815
|
"examples": [
|
|
5786
|
-
"$ sf hardis:org:
|
|
5787
|
-
"$ sf hardis:org:
|
|
5788
|
-
"$ sf hardis:org:diagnose:legacyapi --outputfile 'c:/path/to/folder/legacyapi.csv'",
|
|
5789
|
-
"$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com --outputfile ./tmp/legacyapi.csv"
|
|
5816
|
+
"$ sf hardis:org:fix:listviewmine",
|
|
5817
|
+
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
5790
5818
|
],
|
|
5791
5819
|
"flags": {
|
|
5792
5820
|
"json": {
|
|
@@ -5804,28 +5832,10 @@
|
|
|
5804
5832
|
"multiple": false,
|
|
5805
5833
|
"type": "option"
|
|
5806
5834
|
},
|
|
5807
|
-
"
|
|
5808
|
-
"char": "e",
|
|
5809
|
-
"description": "Type of EventLogFile event to analyze",
|
|
5810
|
-
"name": "eventtype",
|
|
5811
|
-
"default": "ApiTotalUsage",
|
|
5812
|
-
"hasDynamicHelp": false,
|
|
5813
|
-
"multiple": false,
|
|
5814
|
-
"type": "option"
|
|
5815
|
-
},
|
|
5816
|
-
"limit": {
|
|
5835
|
+
"listviews": {
|
|
5817
5836
|
"char": "l",
|
|
5818
|
-
"description": "
|
|
5819
|
-
"name": "
|
|
5820
|
-
"default": 999,
|
|
5821
|
-
"hasDynamicHelp": false,
|
|
5822
|
-
"multiple": false,
|
|
5823
|
-
"type": "option"
|
|
5824
|
-
},
|
|
5825
|
-
"outputfile": {
|
|
5826
|
-
"char": "f",
|
|
5827
|
-
"description": "Force the path and name of output report file. Must end with .csv",
|
|
5828
|
-
"name": "outputfile",
|
|
5837
|
+
"description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
|
|
5838
|
+
"name": "listviews",
|
|
5829
5839
|
"hasDynamicHelp": false,
|
|
5830
5840
|
"multiple": false,
|
|
5831
5841
|
"type": "option"
|
|
@@ -5868,57 +5878,60 @@
|
|
|
5868
5878
|
},
|
|
5869
5879
|
"hasDynamicHelp": true,
|
|
5870
5880
|
"hiddenAliases": [],
|
|
5871
|
-
"id": "hardis:org:
|
|
5881
|
+
"id": "hardis:org:fix:listviewmine",
|
|
5872
5882
|
"pluginAlias": "sfdx-hardis",
|
|
5873
5883
|
"pluginName": "sfdx-hardis",
|
|
5874
5884
|
"pluginType": "core",
|
|
5875
5885
|
"strict": true,
|
|
5876
5886
|
"enableJsonFlag": true,
|
|
5877
|
-
"title": "
|
|
5878
|
-
"requiresProject":
|
|
5887
|
+
"title": "Fix listviews with ",
|
|
5888
|
+
"requiresProject": true,
|
|
5879
5889
|
"isESM": true,
|
|
5880
5890
|
"relativePath": [
|
|
5881
5891
|
"lib",
|
|
5882
5892
|
"commands",
|
|
5883
5893
|
"hardis",
|
|
5884
5894
|
"org",
|
|
5885
|
-
"
|
|
5886
|
-
"
|
|
5895
|
+
"fix",
|
|
5896
|
+
"listviewmine.js"
|
|
5887
5897
|
],
|
|
5888
5898
|
"aliasPermutations": [],
|
|
5889
5899
|
"permutations": [
|
|
5890
|
-
"hardis:org:
|
|
5891
|
-
"org:hardis:
|
|
5892
|
-
"org:
|
|
5893
|
-
"org:
|
|
5894
|
-
"hardis:
|
|
5895
|
-
"
|
|
5896
|
-
"
|
|
5897
|
-
"
|
|
5898
|
-
"hardis:
|
|
5899
|
-
"
|
|
5900
|
-
"
|
|
5901
|
-
"
|
|
5902
|
-
"hardis:org:
|
|
5903
|
-
"org:hardis:
|
|
5904
|
-
"org:
|
|
5905
|
-
"org:
|
|
5906
|
-
"hardis:
|
|
5907
|
-
"
|
|
5908
|
-
"
|
|
5909
|
-
"
|
|
5910
|
-
"hardis:
|
|
5911
|
-
"
|
|
5912
|
-
"
|
|
5913
|
-
"
|
|
5914
|
-
]
|
|
5915
|
-
},
|
|
5916
|
-
"hardis:org:diagnose:
|
|
5917
|
-
"aliases": [],
|
|
5918
|
-
"args": {},
|
|
5919
|
-
"description": "
|
|
5900
|
+
"hardis:org:fix:listviewmine",
|
|
5901
|
+
"org:hardis:fix:listviewmine",
|
|
5902
|
+
"org:fix:hardis:listviewmine",
|
|
5903
|
+
"org:fix:listviewmine:hardis",
|
|
5904
|
+
"hardis:fix:org:listviewmine",
|
|
5905
|
+
"fix:hardis:org:listviewmine",
|
|
5906
|
+
"fix:org:hardis:listviewmine",
|
|
5907
|
+
"fix:org:listviewmine:hardis",
|
|
5908
|
+
"hardis:fix:listviewmine:org",
|
|
5909
|
+
"fix:hardis:listviewmine:org",
|
|
5910
|
+
"fix:listviewmine:hardis:org",
|
|
5911
|
+
"fix:listviewmine:org:hardis",
|
|
5912
|
+
"hardis:org:listviewmine:fix",
|
|
5913
|
+
"org:hardis:listviewmine:fix",
|
|
5914
|
+
"org:listviewmine:hardis:fix",
|
|
5915
|
+
"org:listviewmine:fix:hardis",
|
|
5916
|
+
"hardis:listviewmine:org:fix",
|
|
5917
|
+
"listviewmine:hardis:org:fix",
|
|
5918
|
+
"listviewmine:org:hardis:fix",
|
|
5919
|
+
"listviewmine:org:fix:hardis",
|
|
5920
|
+
"hardis:listviewmine:fix:org",
|
|
5921
|
+
"listviewmine:hardis:fix:org",
|
|
5922
|
+
"listviewmine:fix:hardis:org",
|
|
5923
|
+
"listviewmine:fix:org:hardis"
|
|
5924
|
+
]
|
|
5925
|
+
},
|
|
5926
|
+
"hardis:org:diagnose:audittrail": {
|
|
5927
|
+
"aliases": [],
|
|
5928
|
+
"args": {},
|
|
5929
|
+
"description": "Export Audit trail into a CSV file with selected criteria, and highlight suspect actions\n\nAlso detects updates of Custom Settings values (disable by defining `SKIP_AUDIT_TRAIL_CUSTOM_SETTINGS=true`)\n\nRegular setup actions performed in major orgs are filtered.\n\n- \"\"\n - createScratchOrg\n - changedsenderemail\n - deleteScratchOrg\n - loginasgrantedtopartnerbt\n- Certificate and Key Management\n - insertCertificate\n- Custom App Licenses\n - addeduserpackagelicense\n - granteduserpackagelicense\n - revokeduserpackagelicense\n- Customer Portal\n - createdcustomersuccessuser\n - CSPUserDisabled\n- Currency\n - updateddatedexchrate\n- Data Management\n - queueMembership\n- Email Administration\n - dkimRotationPreparationSuccessful\n - dkimRotationSuccessful\n- External Objects\n - xdsEncryptedFieldChange\n- Groups\n - groupMembership\n- Holidays\n - holiday_insert\n- Inbox mobile and legacy desktop apps\n - enableSIQUserNonEAC\n - siqUserAcceptedTOS\n- Manage Users\n - activateduser\n - createduser\n - changedcommunitynickname\n - changedemail\n - changedfederationid\n - changedpassword\n - changedinteractionuseroffon\n - changedinteractionuseronoff\n - changedmarketinguseroffon\n - changedmarketinguseronoff\n - changedofflineuseroffon\n - changedprofileforuserstdtostd\n - changedprofileforuser\n - changedprofileforusercusttostd\n - changedprofileforuserstdtocust\n - changedroleforusertonone\n - changedroleforuser\n - changedroleforuserfromnone\n - changedUserAdminVerifiedStatusVerified\n - changedUserEmailVerifiedStatusUnverified\n - changedUserEmailVerifiedStatusVerified\n - changedknowledgeuseroffon\n - changedsfcontentuseroffon\n - changedsupportuseroffon\n - changedusername\n - changedUserPhoneNumber\n - changedUserPhoneVerifiedStatusUnverified\n - changedUserPhoneVerifiedStatusVerified\n - deactivateduser\n - deleteAuthenticatorPairing\n - deleteTwoFactorInfo2\n - deleteTwoFactorTempCode\n - frozeuser\n - insertAuthenticatorPairing\n - insertTwoFactorInfo2\n - insertTwoFactorTempCode\n - lightningloginenroll\n - PermSetAssign\n - PermSetGroupAssign\n - PermSetGroupUnassign\n - PermSetLicenseAssign\n - PermSetUnassign\n - PermSetLicenseUnassign\n - registeredUserPhoneNumber\n - resetpassword\n - suNetworkAdminLogin\n - suNetworkAdminLogout\n - suOrgAdminLogin\n - suOrgAdminLogout\n - unfrozeuser\n - useremailchangesent\n- Mobile Administration\n - assigneduserstomobileconfig\n- Reporting Snapshots\n - createdReportJob\n - deletedReportJob\n- Sandboxes\n - DeleteSandbox\n\nBy default, deployment user defined in .sfdx-hardis.yml targetUsername property will be excluded.\n\nYou can define additional users to exclude in .sfdx-hardis.yml **monitoringExcludeUsernames** property.\n\nYou can also add more sections / actions considered as not suspect using property **monitoringAllowedSectionsActions**\n\nExample:\n\n```yaml\nmonitoringExcludeUsernames:\n - deploymentuser@cloudity.com\n - marketingcloud@cloudity.com\n - integration-user@cloudity.com\n\nmonitoringAllowedSectionsActions:\n \"Some section\": [] // Will ignore all actions from such section\n \"Some other section\": [\"actionType1\",\"actionType2\",\"actionType3\"] // Will ignore only those 3 actions from section \"Some other section\". Other actions in the same section will be considered as suspect.\n```\n\n## Excel output example\n\n\n\n## Local output example\n\n\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-suspect-audit-trail/) and can output Grafana, Slack and MsTeams Notifications.\n",
|
|
5920
5930
|
"examples": [
|
|
5921
|
-
"$ sf hardis:org:diagnose:
|
|
5931
|
+
"$ sf hardis:org:diagnose:audittrail",
|
|
5932
|
+
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
|
|
5933
|
+
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
|
|
5934
|
+
"$ sf hardis:org:diagnose:audittrail --lastndays 5"
|
|
5922
5935
|
],
|
|
5923
5936
|
"flags": {
|
|
5924
5937
|
"json": {
|
|
@@ -5936,6 +5949,22 @@
|
|
|
5936
5949
|
"multiple": false,
|
|
5937
5950
|
"type": "option"
|
|
5938
5951
|
},
|
|
5952
|
+
"excludeusers": {
|
|
5953
|
+
"char": "e",
|
|
5954
|
+
"description": "Comma-separated list of usernames to exclude",
|
|
5955
|
+
"name": "excludeusers",
|
|
5956
|
+
"hasDynamicHelp": false,
|
|
5957
|
+
"multiple": false,
|
|
5958
|
+
"type": "option"
|
|
5959
|
+
},
|
|
5960
|
+
"lastndays": {
|
|
5961
|
+
"char": "t",
|
|
5962
|
+
"description": "Number of days to extract from today (included)",
|
|
5963
|
+
"name": "lastndays",
|
|
5964
|
+
"hasDynamicHelp": false,
|
|
5965
|
+
"multiple": false,
|
|
5966
|
+
"type": "option"
|
|
5967
|
+
},
|
|
5939
5968
|
"outputfile": {
|
|
5940
5969
|
"char": "f",
|
|
5941
5970
|
"description": "Force the path and name of output report file. Must end with .csv",
|
|
@@ -5944,13 +5973,6 @@
|
|
|
5944
5973
|
"multiple": false,
|
|
5945
5974
|
"type": "option"
|
|
5946
5975
|
},
|
|
5947
|
-
"usedonly": {
|
|
5948
|
-
"char": "u",
|
|
5949
|
-
"description": "Filter to have only used licenses",
|
|
5950
|
-
"name": "usedonly",
|
|
5951
|
-
"allowNo": false,
|
|
5952
|
-
"type": "boolean"
|
|
5953
|
-
},
|
|
5954
5976
|
"debug": {
|
|
5955
5977
|
"char": "d",
|
|
5956
5978
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5989,13 +6011,13 @@
|
|
|
5989
6011
|
},
|
|
5990
6012
|
"hasDynamicHelp": true,
|
|
5991
6013
|
"hiddenAliases": [],
|
|
5992
|
-
"id": "hardis:org:diagnose:
|
|
6014
|
+
"id": "hardis:org:diagnose:audittrail",
|
|
5993
6015
|
"pluginAlias": "sfdx-hardis",
|
|
5994
6016
|
"pluginName": "sfdx-hardis",
|
|
5995
6017
|
"pluginType": "core",
|
|
5996
6018
|
"strict": true,
|
|
5997
6019
|
"enableJsonFlag": true,
|
|
5998
|
-
"title": "
|
|
6020
|
+
"title": "Diagnose content of Setup Audit Trail",
|
|
5999
6021
|
"requiresProject": false,
|
|
6000
6022
|
"isESM": true,
|
|
6001
6023
|
"relativePath": [
|
|
@@ -6004,42 +6026,42 @@
|
|
|
6004
6026
|
"hardis",
|
|
6005
6027
|
"org",
|
|
6006
6028
|
"diagnose",
|
|
6007
|
-
"
|
|
6029
|
+
"audittrail.js"
|
|
6008
6030
|
],
|
|
6009
6031
|
"aliasPermutations": [],
|
|
6010
6032
|
"permutations": [
|
|
6011
|
-
"hardis:org:diagnose:
|
|
6012
|
-
"org:hardis:diagnose:
|
|
6013
|
-
"org:diagnose:hardis:
|
|
6014
|
-
"org:diagnose:
|
|
6015
|
-
"hardis:diagnose:org:
|
|
6016
|
-
"diagnose:hardis:org:
|
|
6017
|
-
"diagnose:org:hardis:
|
|
6018
|
-
"diagnose:org:
|
|
6019
|
-
"hardis:diagnose:
|
|
6020
|
-
"diagnose:hardis:
|
|
6021
|
-
"diagnose:
|
|
6022
|
-
"diagnose:
|
|
6023
|
-
"hardis:org:
|
|
6024
|
-
"org:hardis:
|
|
6025
|
-
"org:
|
|
6026
|
-
"org:
|
|
6027
|
-
"hardis:
|
|
6028
|
-
"
|
|
6029
|
-
"
|
|
6030
|
-
"
|
|
6031
|
-
"hardis:
|
|
6032
|
-
"
|
|
6033
|
-
"
|
|
6034
|
-
"
|
|
6033
|
+
"hardis:org:diagnose:audittrail",
|
|
6034
|
+
"org:hardis:diagnose:audittrail",
|
|
6035
|
+
"org:diagnose:hardis:audittrail",
|
|
6036
|
+
"org:diagnose:audittrail:hardis",
|
|
6037
|
+
"hardis:diagnose:org:audittrail",
|
|
6038
|
+
"diagnose:hardis:org:audittrail",
|
|
6039
|
+
"diagnose:org:hardis:audittrail",
|
|
6040
|
+
"diagnose:org:audittrail:hardis",
|
|
6041
|
+
"hardis:diagnose:audittrail:org",
|
|
6042
|
+
"diagnose:hardis:audittrail:org",
|
|
6043
|
+
"diagnose:audittrail:hardis:org",
|
|
6044
|
+
"diagnose:audittrail:org:hardis",
|
|
6045
|
+
"hardis:org:audittrail:diagnose",
|
|
6046
|
+
"org:hardis:audittrail:diagnose",
|
|
6047
|
+
"org:audittrail:hardis:diagnose",
|
|
6048
|
+
"org:audittrail:diagnose:hardis",
|
|
6049
|
+
"hardis:audittrail:org:diagnose",
|
|
6050
|
+
"audittrail:hardis:org:diagnose",
|
|
6051
|
+
"audittrail:org:hardis:diagnose",
|
|
6052
|
+
"audittrail:org:diagnose:hardis",
|
|
6053
|
+
"hardis:audittrail:diagnose:org",
|
|
6054
|
+
"audittrail:hardis:diagnose:org",
|
|
6055
|
+
"audittrail:diagnose:hardis:org",
|
|
6056
|
+
"audittrail:diagnose:org:hardis"
|
|
6035
6057
|
]
|
|
6036
6058
|
},
|
|
6037
|
-
"hardis:org:diagnose:
|
|
6059
|
+
"hardis:org:diagnose:instanceupgrade": {
|
|
6038
6060
|
"aliases": [],
|
|
6039
6061
|
"args": {},
|
|
6040
|
-
"description": "
|
|
6062
|
+
"description": "\n## Command Behavior\n\n**Retrieves and displays the scheduled upgrade date for a Salesforce org's instance.**\n\nThis command provides crucial information about when your Salesforce instance will be upgraded to the next major release (Spring, Summer, or Winter). This is vital for release planning, testing, and ensuring compatibility with upcoming Salesforce features.\n\nKey functionalities:\n\n- **Instance Identification:** Determines the Salesforce instance name of your target org.\n- **Upgrade Date Retrieval:** Fetches the planned start time of the next major core service upgrade for that instance from the Salesforce Status API.\n- **Days Until Upgrade:** Calculates and displays the number of days remaining until the next major upgrade.\n- **Severity-Based Logging:** Adjusts the log severity (info, warning) based on the proximity of the upgrade date, providing a visual cue for urgency.\n- **Notifications:** Sends notifications to configured channels (e.g., Slack, MS Teams, Grafana) with the upgrade information, making it suitable for automated monitoring.\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 `Organization` object in Salesforce to get the `InstanceName` of the target org.\n- **Salesforce Status API Integration:** It makes an HTTP GET request to the Salesforce Status API (`https://api.status.salesforce.com/v1/instances/{instanceName}/status`) to retrieve detailed information about the instance, including scheduled maintenances.\n- **Data Parsing:** It parses the JSON response from the Status API to extract the relevant major release upgrade information.\n- **Date Calculation:** Uses the `moment` library to calculate the difference in days between the current date and the planned upgrade date.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including the instance name, upgrade date, and days remaining, along with relevant metrics for monitoring dashboards.\n- **User Feedback:** Provides clear messages to the user about the upgrade status and proximity.\n</details>\n",
|
|
6041
6063
|
"examples": [
|
|
6042
|
-
"$ sf hardis:org:diagnose:
|
|
6064
|
+
"$ sf hardis:org:diagnose:instanceupgrade"
|
|
6043
6065
|
],
|
|
6044
6066
|
"flags": {
|
|
6045
6067
|
"json": {
|
|
@@ -6057,14 +6079,6 @@
|
|
|
6057
6079
|
"multiple": false,
|
|
6058
6080
|
"type": "option"
|
|
6059
6081
|
},
|
|
6060
|
-
"outputfile": {
|
|
6061
|
-
"char": "f",
|
|
6062
|
-
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6063
|
-
"name": "outputfile",
|
|
6064
|
-
"hasDynamicHelp": false,
|
|
6065
|
-
"multiple": false,
|
|
6066
|
-
"type": "option"
|
|
6067
|
-
},
|
|
6068
6082
|
"debug": {
|
|
6069
6083
|
"char": "d",
|
|
6070
6084
|
"description": "Activate debug mode (more logs)",
|
|
@@ -6103,13 +6117,13 @@
|
|
|
6103
6117
|
},
|
|
6104
6118
|
"hasDynamicHelp": true,
|
|
6105
6119
|
"hiddenAliases": [],
|
|
6106
|
-
"id": "hardis:org:diagnose:
|
|
6120
|
+
"id": "hardis:org:diagnose:instanceupgrade",
|
|
6107
6121
|
"pluginAlias": "sfdx-hardis",
|
|
6108
6122
|
"pluginName": "sfdx-hardis",
|
|
6109
6123
|
"pluginType": "core",
|
|
6110
6124
|
"strict": true,
|
|
6111
6125
|
"enableJsonFlag": true,
|
|
6112
|
-
"title": "
|
|
6126
|
+
"title": "Get Instance Upgrade date",
|
|
6113
6127
|
"requiresProject": false,
|
|
6114
6128
|
"isESM": true,
|
|
6115
6129
|
"relativePath": [
|
|
@@ -6118,42 +6132,45 @@
|
|
|
6118
6132
|
"hardis",
|
|
6119
6133
|
"org",
|
|
6120
6134
|
"diagnose",
|
|
6121
|
-
"
|
|
6135
|
+
"instanceupgrade.js"
|
|
6122
6136
|
],
|
|
6123
6137
|
"aliasPermutations": [],
|
|
6124
6138
|
"permutations": [
|
|
6125
|
-
"hardis:org:diagnose:
|
|
6126
|
-
"org:hardis:diagnose:
|
|
6127
|
-
"org:diagnose:hardis:
|
|
6128
|
-
"org:diagnose:
|
|
6129
|
-
"hardis:diagnose:org:
|
|
6130
|
-
"diagnose:hardis:org:
|
|
6131
|
-
"diagnose:org:hardis:
|
|
6132
|
-
"diagnose:org:
|
|
6133
|
-
"hardis:diagnose:
|
|
6134
|
-
"diagnose:hardis:
|
|
6135
|
-
"diagnose:
|
|
6136
|
-
"diagnose:
|
|
6137
|
-
"hardis:org:
|
|
6138
|
-
"org:hardis:
|
|
6139
|
-
"org:
|
|
6140
|
-
"org:
|
|
6141
|
-
"hardis:
|
|
6142
|
-
"
|
|
6143
|
-
"
|
|
6144
|
-
"
|
|
6145
|
-
"hardis:
|
|
6146
|
-
"
|
|
6147
|
-
"
|
|
6148
|
-
"
|
|
6139
|
+
"hardis:org:diagnose:instanceupgrade",
|
|
6140
|
+
"org:hardis:diagnose:instanceupgrade",
|
|
6141
|
+
"org:diagnose:hardis:instanceupgrade",
|
|
6142
|
+
"org:diagnose:instanceupgrade:hardis",
|
|
6143
|
+
"hardis:diagnose:org:instanceupgrade",
|
|
6144
|
+
"diagnose:hardis:org:instanceupgrade",
|
|
6145
|
+
"diagnose:org:hardis:instanceupgrade",
|
|
6146
|
+
"diagnose:org:instanceupgrade:hardis",
|
|
6147
|
+
"hardis:diagnose:instanceupgrade:org",
|
|
6148
|
+
"diagnose:hardis:instanceupgrade:org",
|
|
6149
|
+
"diagnose:instanceupgrade:hardis:org",
|
|
6150
|
+
"diagnose:instanceupgrade:org:hardis",
|
|
6151
|
+
"hardis:org:instanceupgrade:diagnose",
|
|
6152
|
+
"org:hardis:instanceupgrade:diagnose",
|
|
6153
|
+
"org:instanceupgrade:hardis:diagnose",
|
|
6154
|
+
"org:instanceupgrade:diagnose:hardis",
|
|
6155
|
+
"hardis:instanceupgrade:org:diagnose",
|
|
6156
|
+
"instanceupgrade:hardis:org:diagnose",
|
|
6157
|
+
"instanceupgrade:org:hardis:diagnose",
|
|
6158
|
+
"instanceupgrade:org:diagnose:hardis",
|
|
6159
|
+
"hardis:instanceupgrade:diagnose:org",
|
|
6160
|
+
"instanceupgrade:hardis:diagnose:org",
|
|
6161
|
+
"instanceupgrade:diagnose:hardis:org",
|
|
6162
|
+
"instanceupgrade:diagnose:org:hardis"
|
|
6149
6163
|
]
|
|
6150
6164
|
},
|
|
6151
|
-
"hardis:org:diagnose:
|
|
6165
|
+
"hardis:org:diagnose:legacyapi": {
|
|
6152
6166
|
"aliases": [],
|
|
6153
6167
|
"args": {},
|
|
6154
|
-
"description": "
|
|
6168
|
+
"description": "Checks if an org uses retired or someday retired API version\n\n\nSee article below\n\n[](https://nicolas.vuillamy.fr/handle-salesforce-api-versions-deprecation-like-a-pro-335065f52238)\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-deprecated-api-calls/) and can output Grafana, Slack and MsTeams Notifications.\n",
|
|
6155
6169
|
"examples": [
|
|
6156
|
-
"$ sf hardis:org:diagnose:
|
|
6170
|
+
"$ sf hardis:org:diagnose:legacyapi",
|
|
6171
|
+
"$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com",
|
|
6172
|
+
"$ sf hardis:org:diagnose:legacyapi --outputfile 'c:/path/to/folder/legacyapi.csv'",
|
|
6173
|
+
"$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com --outputfile ./tmp/legacyapi.csv"
|
|
6157
6174
|
],
|
|
6158
6175
|
"flags": {
|
|
6159
6176
|
"json": {
|
|
@@ -6171,6 +6188,24 @@
|
|
|
6171
6188
|
"multiple": false,
|
|
6172
6189
|
"type": "option"
|
|
6173
6190
|
},
|
|
6191
|
+
"eventtype": {
|
|
6192
|
+
"char": "e",
|
|
6193
|
+
"description": "Type of EventLogFile event to analyze",
|
|
6194
|
+
"name": "eventtype",
|
|
6195
|
+
"default": "ApiTotalUsage",
|
|
6196
|
+
"hasDynamicHelp": false,
|
|
6197
|
+
"multiple": false,
|
|
6198
|
+
"type": "option"
|
|
6199
|
+
},
|
|
6200
|
+
"limit": {
|
|
6201
|
+
"char": "l",
|
|
6202
|
+
"description": "Number of latest EventLogFile events to analyze",
|
|
6203
|
+
"name": "limit",
|
|
6204
|
+
"default": 999,
|
|
6205
|
+
"hasDynamicHelp": false,
|
|
6206
|
+
"multiple": false,
|
|
6207
|
+
"type": "option"
|
|
6208
|
+
},
|
|
6174
6209
|
"outputfile": {
|
|
6175
6210
|
"char": "f",
|
|
6176
6211
|
"description": "Force the path and name of output report file. Must end with .csv",
|
|
@@ -6217,13 +6252,13 @@
|
|
|
6217
6252
|
},
|
|
6218
6253
|
"hasDynamicHelp": true,
|
|
6219
6254
|
"hiddenAliases": [],
|
|
6220
|
-
"id": "hardis:org:diagnose:
|
|
6255
|
+
"id": "hardis:org:diagnose:legacyapi",
|
|
6221
6256
|
"pluginAlias": "sfdx-hardis",
|
|
6222
6257
|
"pluginName": "sfdx-hardis",
|
|
6223
6258
|
"pluginType": "core",
|
|
6224
6259
|
"strict": true,
|
|
6225
6260
|
"enableJsonFlag": true,
|
|
6226
|
-
"title": "
|
|
6261
|
+
"title": "Check for legacy API use",
|
|
6227
6262
|
"requiresProject": false,
|
|
6228
6263
|
"isESM": true,
|
|
6229
6264
|
"relativePath": [
|
|
@@ -6232,53 +6267,52 @@
|
|
|
6232
6267
|
"hardis",
|
|
6233
6268
|
"org",
|
|
6234
6269
|
"diagnose",
|
|
6235
|
-
"
|
|
6270
|
+
"legacyapi.js"
|
|
6236
6271
|
],
|
|
6237
6272
|
"aliasPermutations": [],
|
|
6238
6273
|
"permutations": [
|
|
6239
|
-
"hardis:org:diagnose:
|
|
6240
|
-
"org:hardis:diagnose:
|
|
6241
|
-
"org:diagnose:hardis:
|
|
6242
|
-
"org:diagnose:
|
|
6243
|
-
"hardis:diagnose:org:
|
|
6244
|
-
"diagnose:hardis:org:
|
|
6245
|
-
"diagnose:org:hardis:
|
|
6246
|
-
"diagnose:org:
|
|
6247
|
-
"hardis:diagnose:
|
|
6248
|
-
"diagnose:hardis:
|
|
6249
|
-
"diagnose:
|
|
6250
|
-
"diagnose:
|
|
6251
|
-
"hardis:org:
|
|
6252
|
-
"org:hardis:
|
|
6253
|
-
"org:
|
|
6254
|
-
"org:
|
|
6255
|
-
"hardis:
|
|
6256
|
-
"
|
|
6257
|
-
"
|
|
6258
|
-
"
|
|
6259
|
-
"hardis:
|
|
6260
|
-
"
|
|
6261
|
-
"
|
|
6262
|
-
"
|
|
6263
|
-
]
|
|
6264
|
-
},
|
|
6265
|
-
"hardis:org:diagnose:
|
|
6266
|
-
"aliases": [],
|
|
6267
|
-
"args": {},
|
|
6268
|
-
"description": "
|
|
6269
|
-
"examples": [
|
|
6270
|
-
"$ sf hardis:org:diagnose:
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
"
|
|
6276
|
-
"
|
|
6277
|
-
"
|
|
6278
|
-
"
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
"flags-dir": {
|
|
6274
|
+
"hardis:org:diagnose:legacyapi",
|
|
6275
|
+
"org:hardis:diagnose:legacyapi",
|
|
6276
|
+
"org:diagnose:hardis:legacyapi",
|
|
6277
|
+
"org:diagnose:legacyapi:hardis",
|
|
6278
|
+
"hardis:diagnose:org:legacyapi",
|
|
6279
|
+
"diagnose:hardis:org:legacyapi",
|
|
6280
|
+
"diagnose:org:hardis:legacyapi",
|
|
6281
|
+
"diagnose:org:legacyapi:hardis",
|
|
6282
|
+
"hardis:diagnose:legacyapi:org",
|
|
6283
|
+
"diagnose:hardis:legacyapi:org",
|
|
6284
|
+
"diagnose:legacyapi:hardis:org",
|
|
6285
|
+
"diagnose:legacyapi:org:hardis",
|
|
6286
|
+
"hardis:org:legacyapi:diagnose",
|
|
6287
|
+
"org:hardis:legacyapi:diagnose",
|
|
6288
|
+
"org:legacyapi:hardis:diagnose",
|
|
6289
|
+
"org:legacyapi:diagnose:hardis",
|
|
6290
|
+
"hardis:legacyapi:org:diagnose",
|
|
6291
|
+
"legacyapi:hardis:org:diagnose",
|
|
6292
|
+
"legacyapi:org:hardis:diagnose",
|
|
6293
|
+
"legacyapi:org:diagnose:hardis",
|
|
6294
|
+
"hardis:legacyapi:diagnose:org",
|
|
6295
|
+
"legacyapi:hardis:diagnose:org",
|
|
6296
|
+
"legacyapi:diagnose:hardis:org",
|
|
6297
|
+
"legacyapi:diagnose:org:hardis"
|
|
6298
|
+
]
|
|
6299
|
+
},
|
|
6300
|
+
"hardis:org:diagnose:licenses": {
|
|
6301
|
+
"aliases": [],
|
|
6302
|
+
"args": {},
|
|
6303
|
+
"description": "\n**Lists and analyzes User Licenses and Permission Set Licenses subscribed and used in a Salesforce org.**\n\nThis command provides a comprehensive overview of your Salesforce license consumption. It's particularly useful for:\n\n- **License Management:** Understanding which licenses are active, how many are available, and how many are being used.\n- **Cost Optimization:** Identifying unused or underutilized licenses that could be reallocated or decommissioned.\n- **Compliance:** Ensuring that your organization is compliant with Salesforce licensing agreements.\n- **Monitoring:** Tracking license usage trends over time.\n\nKey functionalities:\n\n- **User License Details:** Retrieves information about standard and custom User Licenses, including `MasterLabel`, `Name`, `TotalLicenses`, and `UsedLicenses`.\n- **Permission Set License Details:** Retrieves information about Permission Set Licenses, including `MasterLabel`, `PermissionSetLicenseKey`, `TotalLicenses`, and `UsedLicenses`.\n- **Used Licenses Filter:** The `--usedonly` flag allows you to filter the report to show only licenses that have at least one `UsedLicenses` count greater than zero.\n- **CSV Report Generation:** Generates a CSV file containing all the retrieved license information, suitable for detailed analysis.\n- **Notifications:** Sends notifications to configured channels (e.g., Grafana, Slack, MS Teams) with a summary of license usage, including lists of active and used licenses.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce SOQL Queries:** It executes SOQL queries against the `UserLicense` and `PermissionSetLicense` objects in Salesforce to retrieve license data.\n- **Data Transformation:** It processes the query results, reformatting the data to be more readable and consistent for reporting purposes (e.g., removing `Id` and `attributes`, renaming `PermissionSetLicenseKey` to `Name`).\n- **Data Aggregation:** It aggregates license information, creating a `licensesByKey` object for quick lookups and a `usedLicenses` array for a concise list of actively used licenses.\n- **Report Generation:** It uses `generateCsvFile` to create the CSV report of license data.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including attachments of the generated CSV report and metrics for monitoring dashboards.\n- **User Feedback:** Provides clear messages to the user about the license extraction process and the used licenses.\n</details>\n",
|
|
6304
|
+
"examples": [
|
|
6305
|
+
"$ sf hardis:org:diagnose:licenses"
|
|
6306
|
+
],
|
|
6307
|
+
"flags": {
|
|
6308
|
+
"json": {
|
|
6309
|
+
"description": "Format output as json.",
|
|
6310
|
+
"helpGroup": "GLOBAL",
|
|
6311
|
+
"name": "json",
|
|
6312
|
+
"allowNo": false,
|
|
6313
|
+
"type": "boolean"
|
|
6314
|
+
},
|
|
6315
|
+
"flags-dir": {
|
|
6282
6316
|
"helpGroup": "GLOBAL",
|
|
6283
6317
|
"name": "flags-dir",
|
|
6284
6318
|
"summary": "Import flag values from a directory.",
|
|
@@ -6294,13 +6328,12 @@
|
|
|
6294
6328
|
"multiple": false,
|
|
6295
6329
|
"type": "option"
|
|
6296
6330
|
},
|
|
6297
|
-
"
|
|
6298
|
-
"char": "
|
|
6299
|
-
"description": "
|
|
6300
|
-
"name": "
|
|
6301
|
-
"
|
|
6302
|
-
"
|
|
6303
|
-
"type": "option"
|
|
6331
|
+
"usedonly": {
|
|
6332
|
+
"char": "u",
|
|
6333
|
+
"description": "Filter to have only used licenses",
|
|
6334
|
+
"name": "usedonly",
|
|
6335
|
+
"allowNo": false,
|
|
6336
|
+
"type": "boolean"
|
|
6304
6337
|
},
|
|
6305
6338
|
"debug": {
|
|
6306
6339
|
"char": "d",
|
|
@@ -6340,13 +6373,13 @@
|
|
|
6340
6373
|
},
|
|
6341
6374
|
"hasDynamicHelp": true,
|
|
6342
6375
|
"hiddenAliases": [],
|
|
6343
|
-
"id": "hardis:org:diagnose:
|
|
6376
|
+
"id": "hardis:org:diagnose:licenses",
|
|
6344
6377
|
"pluginAlias": "sfdx-hardis",
|
|
6345
6378
|
"pluginName": "sfdx-hardis",
|
|
6346
6379
|
"pluginType": "core",
|
|
6347
6380
|
"strict": true,
|
|
6348
6381
|
"enableJsonFlag": true,
|
|
6349
|
-
"title": "
|
|
6382
|
+
"title": "List licenses subscribed and used in a Salesforce org",
|
|
6350
6383
|
"requiresProject": false,
|
|
6351
6384
|
"isESM": true,
|
|
6352
6385
|
"relativePath": [
|
|
@@ -6355,42 +6388,42 @@
|
|
|
6355
6388
|
"hardis",
|
|
6356
6389
|
"org",
|
|
6357
6390
|
"diagnose",
|
|
6358
|
-
"
|
|
6391
|
+
"licenses.js"
|
|
6359
6392
|
],
|
|
6360
6393
|
"aliasPermutations": [],
|
|
6361
6394
|
"permutations": [
|
|
6362
|
-
"hardis:org:diagnose:
|
|
6363
|
-
"org:hardis:diagnose:
|
|
6364
|
-
"org:diagnose:hardis:
|
|
6365
|
-
"org:diagnose:
|
|
6366
|
-
"hardis:diagnose:org:
|
|
6367
|
-
"diagnose:hardis:org:
|
|
6368
|
-
"diagnose:org:hardis:
|
|
6369
|
-
"diagnose:org:
|
|
6370
|
-
"hardis:diagnose:
|
|
6371
|
-
"diagnose:hardis:
|
|
6372
|
-
"diagnose:
|
|
6373
|
-
"diagnose:
|
|
6374
|
-
"hardis:org:
|
|
6375
|
-
"org:hardis:
|
|
6376
|
-
"org:
|
|
6377
|
-
"org:
|
|
6378
|
-
"hardis:
|
|
6379
|
-
"
|
|
6380
|
-
"
|
|
6381
|
-
"
|
|
6382
|
-
"hardis:
|
|
6383
|
-
"
|
|
6384
|
-
"
|
|
6385
|
-
"
|
|
6395
|
+
"hardis:org:diagnose:licenses",
|
|
6396
|
+
"org:hardis:diagnose:licenses",
|
|
6397
|
+
"org:diagnose:hardis:licenses",
|
|
6398
|
+
"org:diagnose:licenses:hardis",
|
|
6399
|
+
"hardis:diagnose:org:licenses",
|
|
6400
|
+
"diagnose:hardis:org:licenses",
|
|
6401
|
+
"diagnose:org:hardis:licenses",
|
|
6402
|
+
"diagnose:org:licenses:hardis",
|
|
6403
|
+
"hardis:diagnose:licenses:org",
|
|
6404
|
+
"diagnose:hardis:licenses:org",
|
|
6405
|
+
"diagnose:licenses:hardis:org",
|
|
6406
|
+
"diagnose:licenses:org:hardis",
|
|
6407
|
+
"hardis:org:licenses:diagnose",
|
|
6408
|
+
"org:hardis:licenses:diagnose",
|
|
6409
|
+
"org:licenses:hardis:diagnose",
|
|
6410
|
+
"org:licenses:diagnose:hardis",
|
|
6411
|
+
"hardis:licenses:org:diagnose",
|
|
6412
|
+
"licenses:hardis:org:diagnose",
|
|
6413
|
+
"licenses:org:hardis:diagnose",
|
|
6414
|
+
"licenses:org:diagnose:hardis",
|
|
6415
|
+
"hardis:licenses:diagnose:org",
|
|
6416
|
+
"licenses:hardis:diagnose:org",
|
|
6417
|
+
"licenses:diagnose:hardis:org",
|
|
6418
|
+
"licenses:diagnose:org:hardis"
|
|
6386
6419
|
]
|
|
6387
6420
|
},
|
|
6388
|
-
"hardis:org:diagnose:
|
|
6421
|
+
"hardis:org:diagnose:releaseupdates": {
|
|
6389
6422
|
"aliases": [],
|
|
6390
6423
|
"args": {},
|
|
6391
|
-
"description": "
|
|
6424
|
+
"description": "Export Release Updates into a CSV file with selected criteria, and highlight Release Updates that should be checked.\n\nBefore publishing **Breaking Changes** ❌, Salesforce announce them in the setup menu [**Release Updates**](https://help.salesforce.com/s/articleView?id=sf.release_updates.htm&type=5)\n\n⚠️ Some of them are very important, because if you don't make the related upgrades in time (ex: before Winter 25) , your production org can crash !\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-release-updates/) and can output Grafana, Slack and MsTeams Notifications.\n",
|
|
6392
6425
|
"examples": [
|
|
6393
|
-
"$ sf hardis:org:diagnose:
|
|
6426
|
+
"$ sf hardis:org:diagnose:releaseupdates"
|
|
6394
6427
|
],
|
|
6395
6428
|
"flags": {
|
|
6396
6429
|
"json": {
|
|
@@ -6454,30 +6487,13 @@
|
|
|
6454
6487
|
},
|
|
6455
6488
|
"hasDynamicHelp": true,
|
|
6456
6489
|
"hiddenAliases": [],
|
|
6457
|
-
"id": "hardis:org:diagnose:
|
|
6490
|
+
"id": "hardis:org:diagnose:releaseupdates",
|
|
6458
6491
|
"pluginAlias": "sfdx-hardis",
|
|
6459
6492
|
"pluginName": "sfdx-hardis",
|
|
6460
6493
|
"pluginType": "core",
|
|
6461
6494
|
"strict": true,
|
|
6462
6495
|
"enableJsonFlag": true,
|
|
6463
|
-
"title": "
|
|
6464
|
-
"allowedInactiveConnectedApps": [
|
|
6465
|
-
"Ant Migration Tool",
|
|
6466
|
-
"Chatter Desktop",
|
|
6467
|
-
"Chatter Mobile for BlackBerry",
|
|
6468
|
-
"Force.com IDE",
|
|
6469
|
-
"OIQ_Integration",
|
|
6470
|
-
"Salesforce CLI",
|
|
6471
|
-
"Salesforce Files",
|
|
6472
|
-
"Salesforce Mobile Dashboards",
|
|
6473
|
-
"Salesforce Touch",
|
|
6474
|
-
"Salesforce for Outlook",
|
|
6475
|
-
"SalesforceA",
|
|
6476
|
-
"SalesforceA for Android",
|
|
6477
|
-
"SalesforceA for iOS",
|
|
6478
|
-
"SalesforceDX Namespace Registry",
|
|
6479
|
-
"SalesforceIQ"
|
|
6480
|
-
],
|
|
6496
|
+
"title": "Check Release Updates of an org",
|
|
6481
6497
|
"requiresProject": false,
|
|
6482
6498
|
"isESM": true,
|
|
6483
6499
|
"relativePath": [
|
|
@@ -6486,43 +6502,42 @@
|
|
|
6486
6502
|
"hardis",
|
|
6487
6503
|
"org",
|
|
6488
6504
|
"diagnose",
|
|
6489
|
-
"
|
|
6505
|
+
"releaseupdates.js"
|
|
6490
6506
|
],
|
|
6491
6507
|
"aliasPermutations": [],
|
|
6492
6508
|
"permutations": [
|
|
6493
|
-
"hardis:org:diagnose:
|
|
6494
|
-
"org:hardis:diagnose:
|
|
6495
|
-
"org:diagnose:hardis:
|
|
6496
|
-
"org:diagnose:
|
|
6497
|
-
"hardis:diagnose:org:
|
|
6498
|
-
"diagnose:hardis:org:
|
|
6499
|
-
"diagnose:org:hardis:
|
|
6500
|
-
"diagnose:org:
|
|
6501
|
-
"hardis:diagnose:
|
|
6502
|
-
"diagnose:hardis:
|
|
6503
|
-
"diagnose:
|
|
6504
|
-
"diagnose:
|
|
6505
|
-
"hardis:org:
|
|
6506
|
-
"org:hardis:
|
|
6507
|
-
"org:
|
|
6508
|
-
"org:
|
|
6509
|
-
"hardis:
|
|
6510
|
-
"
|
|
6511
|
-
"
|
|
6512
|
-
"
|
|
6513
|
-
"hardis:
|
|
6514
|
-
"
|
|
6515
|
-
"
|
|
6516
|
-
"
|
|
6509
|
+
"hardis:org:diagnose:releaseupdates",
|
|
6510
|
+
"org:hardis:diagnose:releaseupdates",
|
|
6511
|
+
"org:diagnose:hardis:releaseupdates",
|
|
6512
|
+
"org:diagnose:releaseupdates:hardis",
|
|
6513
|
+
"hardis:diagnose:org:releaseupdates",
|
|
6514
|
+
"diagnose:hardis:org:releaseupdates",
|
|
6515
|
+
"diagnose:org:hardis:releaseupdates",
|
|
6516
|
+
"diagnose:org:releaseupdates:hardis",
|
|
6517
|
+
"hardis:diagnose:releaseupdates:org",
|
|
6518
|
+
"diagnose:hardis:releaseupdates:org",
|
|
6519
|
+
"diagnose:releaseupdates:hardis:org",
|
|
6520
|
+
"diagnose:releaseupdates:org:hardis",
|
|
6521
|
+
"hardis:org:releaseupdates:diagnose",
|
|
6522
|
+
"org:hardis:releaseupdates:diagnose",
|
|
6523
|
+
"org:releaseupdates:hardis:diagnose",
|
|
6524
|
+
"org:releaseupdates:diagnose:hardis",
|
|
6525
|
+
"hardis:releaseupdates:org:diagnose",
|
|
6526
|
+
"releaseupdates:hardis:org:diagnose",
|
|
6527
|
+
"releaseupdates:org:hardis:diagnose",
|
|
6528
|
+
"releaseupdates:org:diagnose:hardis",
|
|
6529
|
+
"hardis:releaseupdates:diagnose:org",
|
|
6530
|
+
"releaseupdates:hardis:diagnose:org",
|
|
6531
|
+
"releaseupdates:diagnose:hardis:org",
|
|
6532
|
+
"releaseupdates:diagnose:org:hardis"
|
|
6517
6533
|
]
|
|
6518
6534
|
},
|
|
6519
|
-
"hardis:org:diagnose:
|
|
6535
|
+
"hardis:org:diagnose:unsecure-connected-apps": {
|
|
6520
6536
|
"aliases": [],
|
|
6521
6537
|
"args": {},
|
|
6522
|
-
"description": "\n## Command Behavior\n\n**Detects
|
|
6538
|
+
"description": "\n## Command Behavior\n\n**Detects unsecured Connected Apps in a Salesforce org and generates detailed reports for security analysis.**\n\nThis command is a critical security diagnostic tool that helps administrators identify Connected Apps that may pose security risks due to improper configuration. It provides comprehensive analysis of OAuth tokens and Connected App security settings to ensure proper access control.\n\nKey functionalities:\n\n- **OAuth Token Analysis:** Queries all OAuth tokens in the org using SOQL to retrieve comprehensive token information including app names, users, authorization status, and usage statistics.\n- **Security Status Assessment:** Evaluates each Connected App's security configuration by checking the `IsUsingAdminAuthorization` flag to determine if admin pre-approval is required.\n- **Unsecured App Detection:** Identifies Connected Apps that allow users to authorize themselves without admin approval, which can pose security risks.\n- **Detailed Reporting:** Generates two comprehensive CSV reports:\n - **OAuth Tokens Report:** Lists all OAuth tokens with security status, user information, and usage data\n - **Connected Apps Summary:** Aggregates unsecured Connected Apps with counts of associated OAuth tokens\n- **Visual Indicators:** Uses status icons (❌ for unsecured, ✅ for secured) to provide immediate visual feedback on security status.\n- **Security Recommendations:** Provides actionable guidance on how to secure Connected Apps through proper configuration.\n- **Notifications:** Sends alerts to configured channels (Grafana, Slack, MS Teams) with security findings and attached reports.\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-org-security/) and can output Grafana, Slack and MsTeams Notifications.\n\n<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/jHv8yrSK8Dg\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **SOQL Query Execution:** Executes a comprehensive SOQL query on the `OauthToken` object, joining with `AppMenuItem` and `User` objects to gather complete security context.\n- **Security Analysis Logic:** Analyzes the `AppMenuItem.IsUsingAdminAuthorization` field to determine if a Connected App requires admin pre-approval for user authorization.\n- **Data Transformation:** Processes raw SOQL results to add security status indicators and reorganize data for optimal reporting and analysis.\n- **Aggregation Processing:** Groups OAuth tokens by Connected App name to provide summary statistics and identify the most problematic applications.\n- **Report Generation:** Uses `generateCsvFile` to create structured CSV reports with proper formatting and metadata for easy analysis and sharing.\n- **Notification Integration:** Integrates with the `NotifProvider` to send security alerts with detailed metrics, including the number of unsecured Connected Apps and associated OAuth tokens.\n- **File Management:** Generates multiple output formats (CSV, XLSX) and manages file paths using `generateReportPath` for consistent report organization.\n- **Connection Management:** Uses `setConnectionVariables` to ensure proper authentication context for notification providers that require org connection details.\n</details>\n",
|
|
6523
6539
|
"examples": [
|
|
6524
|
-
"$ sf hardis:org:diagnose:
|
|
6525
|
-
"$ sf hardis:org:diagnose:unusedlicenses --fix"
|
|
6540
|
+
"$ sf hardis:org:diagnose:unsecure-connected-apps"
|
|
6526
6541
|
],
|
|
6527
6542
|
"flags": {
|
|
6528
6543
|
"json": {
|
|
@@ -6586,32 +6601,14 @@
|
|
|
6586
6601
|
},
|
|
6587
6602
|
"hasDynamicHelp": true,
|
|
6588
6603
|
"hiddenAliases": [],
|
|
6589
|
-
"id": "hardis:org:diagnose:
|
|
6604
|
+
"id": "hardis:org:diagnose:unsecure-connected-apps",
|
|
6590
6605
|
"pluginAlias": "sfdx-hardis",
|
|
6591
6606
|
"pluginName": "sfdx-hardis",
|
|
6592
6607
|
"pluginType": "core",
|
|
6593
6608
|
"strict": true,
|
|
6594
6609
|
"enableJsonFlag": true,
|
|
6595
|
-
"title": "Detect
|
|
6610
|
+
"title": "Detect Unsecured Connected Apps",
|
|
6596
6611
|
"requiresProject": false,
|
|
6597
|
-
"additionalPermissionSetsToAlwaysGet": [
|
|
6598
|
-
"Sales_User"
|
|
6599
|
-
],
|
|
6600
|
-
"permSetsPermSetLicenses": [
|
|
6601
|
-
{
|
|
6602
|
-
"permSet": "Sales_User",
|
|
6603
|
-
"permSetLicense": "SalesUserPsl"
|
|
6604
|
-
}
|
|
6605
|
-
],
|
|
6606
|
-
"profilesPermissionSetLicenses": [
|
|
6607
|
-
{
|
|
6608
|
-
"profile": "Salesforce API Only",
|
|
6609
|
-
"permSetLicense": "SalesforceAPIIntegrationPsl"
|
|
6610
|
-
}
|
|
6611
|
-
],
|
|
6612
|
-
"alwaysExcludeForActiveUsersPermissionSetLicenses": [
|
|
6613
|
-
"IdentityConnect"
|
|
6614
|
-
],
|
|
6615
6612
|
"isESM": true,
|
|
6616
6613
|
"relativePath": [
|
|
6617
6614
|
"lib",
|
|
@@ -6619,49 +6616,46 @@
|
|
|
6619
6616
|
"hardis",
|
|
6620
6617
|
"org",
|
|
6621
6618
|
"diagnose",
|
|
6622
|
-
"
|
|
6619
|
+
"unsecure-connected-apps.js"
|
|
6623
6620
|
],
|
|
6624
6621
|
"aliasPermutations": [],
|
|
6625
6622
|
"permutations": [
|
|
6626
|
-
"hardis:org:diagnose:
|
|
6627
|
-
"org:hardis:diagnose:
|
|
6628
|
-
"org:diagnose:hardis:
|
|
6629
|
-
"org:diagnose:
|
|
6630
|
-
"hardis:diagnose:org:
|
|
6631
|
-
"diagnose:hardis:org:
|
|
6632
|
-
"diagnose:org:hardis:
|
|
6633
|
-
"diagnose:org:
|
|
6634
|
-
"hardis:diagnose:
|
|
6635
|
-
"diagnose:hardis:
|
|
6636
|
-
"diagnose:
|
|
6637
|
-
"diagnose:
|
|
6638
|
-
"hardis:org:
|
|
6639
|
-
"org:hardis:
|
|
6640
|
-
"org:
|
|
6641
|
-
"org:
|
|
6642
|
-
"hardis:
|
|
6643
|
-
"
|
|
6644
|
-
"
|
|
6645
|
-
"
|
|
6646
|
-
"hardis:
|
|
6647
|
-
"
|
|
6648
|
-
"
|
|
6649
|
-
"
|
|
6650
|
-
]
|
|
6651
|
-
},
|
|
6652
|
-
"hardis:org:diagnose:
|
|
6653
|
-
"aliases": [],
|
|
6654
|
-
"args": {},
|
|
6655
|
-
"description": "
|
|
6656
|
-
"examples": [
|
|
6657
|
-
"$ sf hardis:org:diagnose:
|
|
6658
|
-
"$ sf hardis:org:diagnose:
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
"
|
|
6662
|
-
],
|
|
6663
|
-
"flags": {
|
|
6664
|
-
"json": {
|
|
6623
|
+
"hardis:org:diagnose:unsecure-connected-apps",
|
|
6624
|
+
"org:hardis:diagnose:unsecure-connected-apps",
|
|
6625
|
+
"org:diagnose:hardis:unsecure-connected-apps",
|
|
6626
|
+
"org:diagnose:unsecure-connected-apps:hardis",
|
|
6627
|
+
"hardis:diagnose:org:unsecure-connected-apps",
|
|
6628
|
+
"diagnose:hardis:org:unsecure-connected-apps",
|
|
6629
|
+
"diagnose:org:hardis:unsecure-connected-apps",
|
|
6630
|
+
"diagnose:org:unsecure-connected-apps:hardis",
|
|
6631
|
+
"hardis:diagnose:unsecure-connected-apps:org",
|
|
6632
|
+
"diagnose:hardis:unsecure-connected-apps:org",
|
|
6633
|
+
"diagnose:unsecure-connected-apps:hardis:org",
|
|
6634
|
+
"diagnose:unsecure-connected-apps:org:hardis",
|
|
6635
|
+
"hardis:org:unsecure-connected-apps:diagnose",
|
|
6636
|
+
"org:hardis:unsecure-connected-apps:diagnose",
|
|
6637
|
+
"org:unsecure-connected-apps:hardis:diagnose",
|
|
6638
|
+
"org:unsecure-connected-apps:diagnose:hardis",
|
|
6639
|
+
"hardis:unsecure-connected-apps:org:diagnose",
|
|
6640
|
+
"unsecure-connected-apps:hardis:org:diagnose",
|
|
6641
|
+
"unsecure-connected-apps:org:hardis:diagnose",
|
|
6642
|
+
"unsecure-connected-apps:org:diagnose:hardis",
|
|
6643
|
+
"hardis:unsecure-connected-apps:diagnose:org",
|
|
6644
|
+
"unsecure-connected-apps:hardis:diagnose:org",
|
|
6645
|
+
"unsecure-connected-apps:diagnose:hardis:org",
|
|
6646
|
+
"unsecure-connected-apps:diagnose:org:hardis"
|
|
6647
|
+
]
|
|
6648
|
+
},
|
|
6649
|
+
"hardis:org:diagnose:unused-apex-classes": {
|
|
6650
|
+
"aliases": [],
|
|
6651
|
+
"args": {},
|
|
6652
|
+
"description": "List all async Apex classes (Batch,Queueable,Schedulable) that has not been called for more than 365 days.\n \nThe result class list probably can be removed from the project, and that will improve your test classes performances 😊\n\nThe number of unused day is overridable using --days option. \n\nThe command uses queries on AsyncApexJob and CronTrigger technical tables to build the result.\n\nApex Classes CreatedBy and CreatedOn fields are calculated from MIN(date from git, date from org)\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-unused-apex-classes/) and can output Grafana, Slack and MsTeams Notifications.\n\n\n",
|
|
6653
|
+
"examples": [
|
|
6654
|
+
"$ sf hardis:org:diagnose:unused-apex-classes",
|
|
6655
|
+
"$ sf hardis:org:diagnose:unused-apex-classes --days 700"
|
|
6656
|
+
],
|
|
6657
|
+
"flags": {
|
|
6658
|
+
"json": {
|
|
6665
6659
|
"description": "Format output as json.",
|
|
6666
6660
|
"helpGroup": "GLOBAL",
|
|
6667
6661
|
"name": "json",
|
|
@@ -6692,33 +6686,6 @@
|
|
|
6692
6686
|
"multiple": false,
|
|
6693
6687
|
"type": "option"
|
|
6694
6688
|
},
|
|
6695
|
-
"licensetypes": {
|
|
6696
|
-
"char": "l",
|
|
6697
|
-
"description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
|
|
6698
|
-
"name": "licensetypes",
|
|
6699
|
-
"hasDynamicHelp": false,
|
|
6700
|
-
"multiple": false,
|
|
6701
|
-
"options": [
|
|
6702
|
-
"all",
|
|
6703
|
-
"all-crm",
|
|
6704
|
-
"all-paying"
|
|
6705
|
-
],
|
|
6706
|
-
"type": "option"
|
|
6707
|
-
},
|
|
6708
|
-
"licenseidentifiers": {
|
|
6709
|
-
"char": "i",
|
|
6710
|
-
"description": "Comma-separated list of license identifiers, in case licensetypes is not used.. Identifiers available at https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userlicense.htm",
|
|
6711
|
-
"name": "licenseidentifiers",
|
|
6712
|
-
"hasDynamicHelp": false,
|
|
6713
|
-
"multiple": false,
|
|
6714
|
-
"type": "option"
|
|
6715
|
-
},
|
|
6716
|
-
"returnactiveusers": {
|
|
6717
|
-
"description": "Inverts the command by returning the active users",
|
|
6718
|
-
"name": "returnactiveusers",
|
|
6719
|
-
"allowNo": false,
|
|
6720
|
-
"type": "boolean"
|
|
6721
|
-
},
|
|
6722
6689
|
"debug": {
|
|
6723
6690
|
"char": "d",
|
|
6724
6691
|
"description": "Activate debug mode (more logs)",
|
|
@@ -6757,13 +6724,13 @@
|
|
|
6757
6724
|
},
|
|
6758
6725
|
"hasDynamicHelp": true,
|
|
6759
6726
|
"hiddenAliases": [],
|
|
6760
|
-
"id": "hardis:org:diagnose:
|
|
6727
|
+
"id": "hardis:org:diagnose:unused-apex-classes",
|
|
6761
6728
|
"pluginAlias": "sfdx-hardis",
|
|
6762
6729
|
"pluginName": "sfdx-hardis",
|
|
6763
6730
|
"pluginType": "core",
|
|
6764
6731
|
"strict": true,
|
|
6765
6732
|
"enableJsonFlag": true,
|
|
6766
|
-
"title": "Detect unused
|
|
6733
|
+
"title": "Detect unused Apex classes in an org",
|
|
6767
6734
|
"requiresProject": false,
|
|
6768
6735
|
"isESM": true,
|
|
6769
6736
|
"relativePath": [
|
|
@@ -6772,43 +6739,42 @@
|
|
|
6772
6739
|
"hardis",
|
|
6773
6740
|
"org",
|
|
6774
6741
|
"diagnose",
|
|
6775
|
-
"
|
|
6742
|
+
"unused-apex-classes.js"
|
|
6776
6743
|
],
|
|
6777
6744
|
"aliasPermutations": [],
|
|
6778
6745
|
"permutations": [
|
|
6779
|
-
"hardis:org:diagnose:
|
|
6780
|
-
"org:hardis:diagnose:
|
|
6781
|
-
"org:diagnose:hardis:
|
|
6782
|
-
"org:diagnose:
|
|
6783
|
-
"hardis:diagnose:org:
|
|
6784
|
-
"diagnose:hardis:org:
|
|
6785
|
-
"diagnose:org:hardis:
|
|
6786
|
-
"diagnose:org:
|
|
6787
|
-
"hardis:diagnose:
|
|
6788
|
-
"diagnose:hardis:
|
|
6789
|
-
"diagnose:
|
|
6790
|
-
"diagnose:
|
|
6791
|
-
"hardis:org:
|
|
6792
|
-
"org:hardis:
|
|
6793
|
-
"org:
|
|
6794
|
-
"org:
|
|
6795
|
-
"hardis:
|
|
6796
|
-
"
|
|
6797
|
-
"
|
|
6798
|
-
"
|
|
6799
|
-
"hardis:
|
|
6800
|
-
"
|
|
6801
|
-
"
|
|
6802
|
-
"
|
|
6746
|
+
"hardis:org:diagnose:unused-apex-classes",
|
|
6747
|
+
"org:hardis:diagnose:unused-apex-classes",
|
|
6748
|
+
"org:diagnose:hardis:unused-apex-classes",
|
|
6749
|
+
"org:diagnose:unused-apex-classes:hardis",
|
|
6750
|
+
"hardis:diagnose:org:unused-apex-classes",
|
|
6751
|
+
"diagnose:hardis:org:unused-apex-classes",
|
|
6752
|
+
"diagnose:org:hardis:unused-apex-classes",
|
|
6753
|
+
"diagnose:org:unused-apex-classes:hardis",
|
|
6754
|
+
"hardis:diagnose:unused-apex-classes:org",
|
|
6755
|
+
"diagnose:hardis:unused-apex-classes:org",
|
|
6756
|
+
"diagnose:unused-apex-classes:hardis:org",
|
|
6757
|
+
"diagnose:unused-apex-classes:org:hardis",
|
|
6758
|
+
"hardis:org:unused-apex-classes:diagnose",
|
|
6759
|
+
"org:hardis:unused-apex-classes:diagnose",
|
|
6760
|
+
"org:unused-apex-classes:hardis:diagnose",
|
|
6761
|
+
"org:unused-apex-classes:diagnose:hardis",
|
|
6762
|
+
"hardis:unused-apex-classes:org:diagnose",
|
|
6763
|
+
"unused-apex-classes:hardis:org:diagnose",
|
|
6764
|
+
"unused-apex-classes:org:hardis:diagnose",
|
|
6765
|
+
"unused-apex-classes:org:diagnose:hardis",
|
|
6766
|
+
"hardis:unused-apex-classes:diagnose:org",
|
|
6767
|
+
"unused-apex-classes:hardis:diagnose:org",
|
|
6768
|
+
"unused-apex-classes:diagnose:hardis:org",
|
|
6769
|
+
"unused-apex-classes:diagnose:org:hardis"
|
|
6803
6770
|
]
|
|
6804
6771
|
},
|
|
6805
|
-
"hardis:org:
|
|
6772
|
+
"hardis:org:diagnose:unused-connected-apps": {
|
|
6806
6773
|
"aliases": [],
|
|
6807
6774
|
"args": {},
|
|
6808
|
-
"description": "
|
|
6775
|
+
"description": "\n## Command Behavior\n\n**Identifies and reports on potentially unused Connected Apps in a Salesforce org, suggesting candidates for deletion or deactivation.**\n\nThis command helps improve org security and reduce technical debt by pinpointing Connected Apps that are no longer actively used. Connected Apps can pose security risks if left unmonitored, and cleaning them up contributes to a healthier Salesforce environment.\n\nKey functionalities:\n\n- **Connected App Data Collection:** Gathers information about all Connected Apps in the org, including creation and last modified dates, and associated users.\n- **Usage Analysis:** Analyzes `LoginHistory` and `OAuthToken` records to determine the last usage date of each Connected App.\n- **Inactivity Detection:** Flags Connected Apps as potentially unused if they have no recent login history or OAuth token usage.\n- **Accessibility Check:** Examines Connected App metadata to identify if they are accessible (e.g., if they require admin approval and have no profiles or permission sets assigned).\n- **Ignored Apps:** Automatically ignores a predefined list of common Salesforce Connected Apps (e.g., `Salesforce CLI`, `Salesforce Mobile Dashboards`). You can extend this list by defining the `ALLOWED_INACTIVE_CONNECTED_APPS` environment variable.\n- **CSV Report Generation:** Generates a CSV file containing details of all analyzed Connected Apps, including their usage status, last usage date, and reasons for being flagged as potentially unused.\n- **Notifications:** Sends notifications to configured channels (Grafana, Slack, MS Teams) with a summary of potentially unused Connected Apps.\n\n**Default Ignored Connected Apps:**\n\n- Ant Migration Tool\n- Chatter Desktop\n- Chatter Mobile for BlackBerry\n- Force.com IDE\n- OIQ_Integration\n- Salesforce CLI\n- Salesforce Files\n- Salesforce Mobile Dashboards\n- Salesforce Touch\n- Salesforce for Outlook\n- SalesforceA\n- SalesforceA for Android\n- SalesforceA for iOS\n- SalesforceDX Namespace Registry\n- SalesforceIQ\n\nYou can add more ignored apps by defining a comma-separated list of names in the `ALLOWED_INACTIVE_CONNECTED_APPS` environment variable.\n\n_Example: \nALLOWED_INACTIVE_CONNECTED_APPS=My App 1,My App 2, My App 3_\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-unused-connected-apps/) and can output Grafana, Slack and MsTeams Notifications.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce SOQL Queries:** It performs SOQL queries against `ConnectedApplication`, `LoginHistory`, and `OAuthToken` objects to gather comprehensive data about Connected Apps and their usage.\n- **Temporary SFDX Project:** It creates a temporary SFDX project to retrieve Connected App metadata, allowing for local parsing and analysis of their XML files.\n- **Metadata Parsing:** It parses the `connectedApp-meta.xml` files to check for `isAdminApproved` and the presence of `profileName` or `permissionsetName` to determine accessibility.\n- **Data Correlation:** It correlates data from various Salesforce objects to build a complete picture of each Connected App's usage and status.\n- **Date Calculation:** Uses `moment` to calculate the time since the last OAuth token usage.\n- **Report Generation:** It uses `generateCsvFile` to create the CSV report of unused Connected Apps.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including attachments of the generated CSV report and metrics for monitoring dashboards.\n- **File System Operations:** Uses `fs-extra` for creating and removing temporary directories and files.\n- **Environment Variable Reading:** Reads the `ALLOWED_INACTIVE_CONNECTED_APPS` environment variable to customize the list of ignored Connected Apps.\n</details>\n",
|
|
6809
6776
|
"examples": [
|
|
6810
|
-
"$ sf hardis:org:
|
|
6811
|
-
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
6777
|
+
"$ sf hardis:org:diagnose:unused-connected-apps"
|
|
6812
6778
|
],
|
|
6813
6779
|
"flags": {
|
|
6814
6780
|
"json": {
|
|
@@ -6826,10 +6792,10 @@
|
|
|
6826
6792
|
"multiple": false,
|
|
6827
6793
|
"type": "option"
|
|
6828
6794
|
},
|
|
6829
|
-
"
|
|
6830
|
-
"char": "
|
|
6831
|
-
"description": "
|
|
6832
|
-
"name": "
|
|
6795
|
+
"outputfile": {
|
|
6796
|
+
"char": "f",
|
|
6797
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6798
|
+
"name": "outputfile",
|
|
6833
6799
|
"hasDynamicHelp": false,
|
|
6834
6800
|
"multiple": false,
|
|
6835
6801
|
"type": "option"
|
|
@@ -6872,59 +6838,75 @@
|
|
|
6872
6838
|
},
|
|
6873
6839
|
"hasDynamicHelp": true,
|
|
6874
6840
|
"hiddenAliases": [],
|
|
6875
|
-
"id": "hardis:org:
|
|
6841
|
+
"id": "hardis:org:diagnose:unused-connected-apps",
|
|
6876
6842
|
"pluginAlias": "sfdx-hardis",
|
|
6877
6843
|
"pluginName": "sfdx-hardis",
|
|
6878
6844
|
"pluginType": "core",
|
|
6879
6845
|
"strict": true,
|
|
6880
6846
|
"enableJsonFlag": true,
|
|
6881
|
-
"title": "
|
|
6882
|
-
"
|
|
6847
|
+
"title": "Unused Connected Apps in an org",
|
|
6848
|
+
"allowedInactiveConnectedApps": [
|
|
6849
|
+
"Ant Migration Tool",
|
|
6850
|
+
"Chatter Desktop",
|
|
6851
|
+
"Chatter Mobile for BlackBerry",
|
|
6852
|
+
"Force.com IDE",
|
|
6853
|
+
"OIQ_Integration",
|
|
6854
|
+
"Salesforce CLI",
|
|
6855
|
+
"Salesforce Files",
|
|
6856
|
+
"Salesforce Mobile Dashboards",
|
|
6857
|
+
"Salesforce Touch",
|
|
6858
|
+
"Salesforce for Outlook",
|
|
6859
|
+
"SalesforceA",
|
|
6860
|
+
"SalesforceA for Android",
|
|
6861
|
+
"SalesforceA for iOS",
|
|
6862
|
+
"SalesforceDX Namespace Registry",
|
|
6863
|
+
"SalesforceIQ"
|
|
6864
|
+
],
|
|
6865
|
+
"requiresProject": false,
|
|
6883
6866
|
"isESM": true,
|
|
6884
6867
|
"relativePath": [
|
|
6885
6868
|
"lib",
|
|
6886
6869
|
"commands",
|
|
6887
6870
|
"hardis",
|
|
6888
6871
|
"org",
|
|
6889
|
-
"
|
|
6890
|
-
"
|
|
6872
|
+
"diagnose",
|
|
6873
|
+
"unused-connected-apps.js"
|
|
6891
6874
|
],
|
|
6892
6875
|
"aliasPermutations": [],
|
|
6893
6876
|
"permutations": [
|
|
6894
|
-
"hardis:org:
|
|
6895
|
-
"org:hardis:
|
|
6896
|
-
"org:
|
|
6897
|
-
"org:
|
|
6898
|
-
"hardis:
|
|
6899
|
-
"
|
|
6900
|
-
"
|
|
6901
|
-
"
|
|
6902
|
-
"hardis:
|
|
6903
|
-
"
|
|
6904
|
-
"
|
|
6905
|
-
"
|
|
6906
|
-
"hardis:org:
|
|
6907
|
-
"org:hardis:
|
|
6908
|
-
"org:
|
|
6909
|
-
"org:
|
|
6910
|
-
"hardis:
|
|
6911
|
-
"
|
|
6912
|
-
"
|
|
6913
|
-
"
|
|
6914
|
-
"hardis:
|
|
6915
|
-
"
|
|
6916
|
-
"
|
|
6917
|
-
"
|
|
6877
|
+
"hardis:org:diagnose:unused-connected-apps",
|
|
6878
|
+
"org:hardis:diagnose:unused-connected-apps",
|
|
6879
|
+
"org:diagnose:hardis:unused-connected-apps",
|
|
6880
|
+
"org:diagnose:unused-connected-apps:hardis",
|
|
6881
|
+
"hardis:diagnose:org:unused-connected-apps",
|
|
6882
|
+
"diagnose:hardis:org:unused-connected-apps",
|
|
6883
|
+
"diagnose:org:hardis:unused-connected-apps",
|
|
6884
|
+
"diagnose:org:unused-connected-apps:hardis",
|
|
6885
|
+
"hardis:diagnose:unused-connected-apps:org",
|
|
6886
|
+
"diagnose:hardis:unused-connected-apps:org",
|
|
6887
|
+
"diagnose:unused-connected-apps:hardis:org",
|
|
6888
|
+
"diagnose:unused-connected-apps:org:hardis",
|
|
6889
|
+
"hardis:org:unused-connected-apps:diagnose",
|
|
6890
|
+
"org:hardis:unused-connected-apps:diagnose",
|
|
6891
|
+
"org:unused-connected-apps:hardis:diagnose",
|
|
6892
|
+
"org:unused-connected-apps:diagnose:hardis",
|
|
6893
|
+
"hardis:unused-connected-apps:org:diagnose",
|
|
6894
|
+
"unused-connected-apps:hardis:org:diagnose",
|
|
6895
|
+
"unused-connected-apps:org:hardis:diagnose",
|
|
6896
|
+
"unused-connected-apps:org:diagnose:hardis",
|
|
6897
|
+
"hardis:unused-connected-apps:diagnose:org",
|
|
6898
|
+
"unused-connected-apps:hardis:diagnose:org",
|
|
6899
|
+
"unused-connected-apps:diagnose:hardis:org",
|
|
6900
|
+
"unused-connected-apps:diagnose:org:hardis"
|
|
6918
6901
|
]
|
|
6919
6902
|
},
|
|
6920
|
-
"hardis:org:
|
|
6903
|
+
"hardis:org:diagnose:unusedlicenses": {
|
|
6921
6904
|
"aliases": [],
|
|
6922
6905
|
"args": {},
|
|
6923
|
-
"description": "\n## Command Behavior\n\n**
|
|
6906
|
+
"description": "\n## Command Behavior\n\n**Detects and suggests the deletion of unused Permission Set License Assignments in a Salesforce org.**\n\nWhen a Permission Set (PS) linked to a Permission Set License (PSL) is assigned to a user, a Permission Set License Assignment (PSLA) is automatically created. However, when that PS is unassigned from the user, the PSLA is *not* automatically deleted. This can lead to organizations being charged for unused PSLAs, representing a hidden cost and technical debt.\n\nThis command identifies such useless PSLAs and provides options to delete them, helping to optimize license usage and reduce unnecessary expenses.\n\nKey functionalities:\n\n- **PSLA Detection:** Queries the Salesforce org to find all active PSLAs.\n- **Usage Verification:** Correlates PSLAs with actual Permission Set Assignments and Permission Set Group Assignments to determine if the underlying Permission Sets are still assigned to the user.\n- **Special Case Handling:** Accounts for specific scenarios where profiles might implicitly assign PSLAs (e.g., `Salesforce API Only` profile assigning `SalesforceAPIIntegrationPsl`) and allows for always excluding certain PSLAs from the unused check.\n- **Reporting:** Generates a CSV report of all identified unused PSLAs, including the user and the associated Permission Set License.\n- **Notifications:** Sends notifications to configured channels (Grafana, Slack, MS Teams) with a summary of unused PSLAs.\n- **Interactive Deletion:** In non-CI environments, it offers an interactive prompt to bulk delete the identified unused PSLAs.\n\nMany thanks to [Vincent Finet](https://www.linkedin.com/in/vincentfinet/) for the inspiration during his great speaker session at [French Touch Dreamin '23](https://frenchtouchdreamin.com/), and his kind agreement for reusing such inspiration in this command 😊\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-unused-licenses/) and can output Grafana, Slack and MsTeams Notifications.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves extensive querying of Salesforce objects and data correlation:\n\n- **SOQL Queries (Bulk API):** It uses `bulkQuery` and `bulkQueryChunksIn` to efficiently retrieve large volumes of data from `PermissionSetLicenseAssign`, `PermissionSetLicense`, `PermissionSet`, `PermissionSetGroupComponent`, and `PermissionSetAssignment` objects.\n- **Data Correlation:** It meticulously correlates data across these objects to determine if a `PermissionSetLicenseAssign` record has a corresponding active assignment to a Permission Set or Permission Set Group for the same user.\n- **Filtering Logic:** It applies complex filtering logic to exclude PSLAs that are genuinely in use or are part of predefined exceptions (e.g., `alwaysExcludeForActiveUsersPermissionSetLicenses`).\n- **Bulk Deletion:** If the user opts to delete unused PSLAs, it uses `bulkUpdate` with the `delete` operation to efficiently remove multiple records.\n- **Report Generation:** It uses `generateCsvFile` to create the CSV report of unused PSLAs.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including attachments of the generated CSV report and metrics for monitoring dashboards.\n- **User Interaction:** Uses `prompts` for interactive confirmation before performing deletion operations.\n</details>\n",
|
|
6924
6907
|
"examples": [
|
|
6925
|
-
"$ sf hardis:org:
|
|
6926
|
-
"$ sf hardis:org:
|
|
6927
|
-
"$ sf hardis:org:generate:packagexmlfull --target-org nico@example.com"
|
|
6908
|
+
"$ sf hardis:org:diagnose:unusedlicenses",
|
|
6909
|
+
"$ sf hardis:org:diagnose:unusedlicenses --fix"
|
|
6928
6910
|
],
|
|
6929
6911
|
"flags": {
|
|
6930
6912
|
"json": {
|
|
@@ -6943,7 +6925,8 @@
|
|
|
6943
6925
|
"type": "option"
|
|
6944
6926
|
},
|
|
6945
6927
|
"outputfile": {
|
|
6946
|
-
"
|
|
6928
|
+
"char": "f",
|
|
6929
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6947
6930
|
"name": "outputfile",
|
|
6948
6931
|
"hasDynamicHelp": false,
|
|
6949
6932
|
"multiple": false,
|
|
@@ -6956,13 +6939,6 @@
|
|
|
6956
6939
|
"allowNo": false,
|
|
6957
6940
|
"type": "boolean"
|
|
6958
6941
|
},
|
|
6959
|
-
"no-prompt": {
|
|
6960
|
-
"char": "n",
|
|
6961
|
-
"description": "Do not prompt for org username, use the default one",
|
|
6962
|
-
"name": "no-prompt",
|
|
6963
|
-
"allowNo": false,
|
|
6964
|
-
"type": "boolean"
|
|
6965
|
-
},
|
|
6966
6942
|
"websocket": {
|
|
6967
6943
|
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
6968
6944
|
"name": "websocket",
|
|
@@ -6994,57 +6970,79 @@
|
|
|
6994
6970
|
},
|
|
6995
6971
|
"hasDynamicHelp": true,
|
|
6996
6972
|
"hiddenAliases": [],
|
|
6997
|
-
"id": "hardis:org:
|
|
6973
|
+
"id": "hardis:org:diagnose:unusedlicenses",
|
|
6998
6974
|
"pluginAlias": "sfdx-hardis",
|
|
6999
6975
|
"pluginName": "sfdx-hardis",
|
|
7000
6976
|
"pluginType": "core",
|
|
7001
6977
|
"strict": true,
|
|
7002
6978
|
"enableJsonFlag": true,
|
|
7003
|
-
"title": "
|
|
6979
|
+
"title": "Detect unused Permission Set Licenses (beta)",
|
|
7004
6980
|
"requiresProject": false,
|
|
6981
|
+
"additionalPermissionSetsToAlwaysGet": [
|
|
6982
|
+
"Sales_User"
|
|
6983
|
+
],
|
|
6984
|
+
"permSetsPermSetLicenses": [
|
|
6985
|
+
{
|
|
6986
|
+
"permSet": "Sales_User",
|
|
6987
|
+
"permSetLicense": "SalesUserPsl"
|
|
6988
|
+
}
|
|
6989
|
+
],
|
|
6990
|
+
"profilesPermissionSetLicenses": [
|
|
6991
|
+
{
|
|
6992
|
+
"profile": "Salesforce API Only",
|
|
6993
|
+
"permSetLicense": "SalesforceAPIIntegrationPsl"
|
|
6994
|
+
}
|
|
6995
|
+
],
|
|
6996
|
+
"alwaysExcludeForActiveUsersPermissionSetLicenses": [
|
|
6997
|
+
"IdentityConnect"
|
|
6998
|
+
],
|
|
7005
6999
|
"isESM": true,
|
|
7006
7000
|
"relativePath": [
|
|
7007
7001
|
"lib",
|
|
7008
7002
|
"commands",
|
|
7009
7003
|
"hardis",
|
|
7010
7004
|
"org",
|
|
7011
|
-
"
|
|
7012
|
-
"
|
|
7005
|
+
"diagnose",
|
|
7006
|
+
"unusedlicenses.js"
|
|
7013
7007
|
],
|
|
7014
7008
|
"aliasPermutations": [],
|
|
7015
7009
|
"permutations": [
|
|
7016
|
-
"hardis:org:
|
|
7017
|
-
"org:hardis:
|
|
7018
|
-
"org:
|
|
7019
|
-
"org:
|
|
7020
|
-
"hardis:
|
|
7021
|
-
"
|
|
7022
|
-
"
|
|
7023
|
-
"
|
|
7024
|
-
"hardis:
|
|
7025
|
-
"
|
|
7026
|
-
"
|
|
7027
|
-
"
|
|
7028
|
-
"hardis:org:
|
|
7029
|
-
"org:hardis:
|
|
7030
|
-
"org:
|
|
7031
|
-
"org:
|
|
7032
|
-
"hardis:
|
|
7033
|
-
"
|
|
7034
|
-
"
|
|
7035
|
-
"
|
|
7036
|
-
"hardis:
|
|
7037
|
-
"
|
|
7038
|
-
"
|
|
7039
|
-
"
|
|
7010
|
+
"hardis:org:diagnose:unusedlicenses",
|
|
7011
|
+
"org:hardis:diagnose:unusedlicenses",
|
|
7012
|
+
"org:diagnose:hardis:unusedlicenses",
|
|
7013
|
+
"org:diagnose:unusedlicenses:hardis",
|
|
7014
|
+
"hardis:diagnose:org:unusedlicenses",
|
|
7015
|
+
"diagnose:hardis:org:unusedlicenses",
|
|
7016
|
+
"diagnose:org:hardis:unusedlicenses",
|
|
7017
|
+
"diagnose:org:unusedlicenses:hardis",
|
|
7018
|
+
"hardis:diagnose:unusedlicenses:org",
|
|
7019
|
+
"diagnose:hardis:unusedlicenses:org",
|
|
7020
|
+
"diagnose:unusedlicenses:hardis:org",
|
|
7021
|
+
"diagnose:unusedlicenses:org:hardis",
|
|
7022
|
+
"hardis:org:unusedlicenses:diagnose",
|
|
7023
|
+
"org:hardis:unusedlicenses:diagnose",
|
|
7024
|
+
"org:unusedlicenses:hardis:diagnose",
|
|
7025
|
+
"org:unusedlicenses:diagnose:hardis",
|
|
7026
|
+
"hardis:unusedlicenses:org:diagnose",
|
|
7027
|
+
"unusedlicenses:hardis:org:diagnose",
|
|
7028
|
+
"unusedlicenses:org:hardis:diagnose",
|
|
7029
|
+
"unusedlicenses:org:diagnose:hardis",
|
|
7030
|
+
"hardis:unusedlicenses:diagnose:org",
|
|
7031
|
+
"unusedlicenses:hardis:diagnose:org",
|
|
7032
|
+
"unusedlicenses:diagnose:hardis:org",
|
|
7033
|
+
"unusedlicenses:diagnose:org:hardis"
|
|
7040
7034
|
]
|
|
7041
7035
|
},
|
|
7042
|
-
"hardis:org:
|
|
7036
|
+
"hardis:org:diagnose:unusedusers": {
|
|
7043
7037
|
"aliases": [],
|
|
7044
7038
|
"args": {},
|
|
7045
|
-
"description": "\n## Command Behavior\n\n**
|
|
7039
|
+
"description": "\n## Command Behavior\n\n**Detects and reports on inactive or unused Salesforce user accounts, helping to optimize license usage and enhance security.**\n\nEfficient user management is vital in Salesforce to ensure resources are optimized and costs are controlled. However, inactive or unused user accounts can often go unnoticed, leading to wasted licenses and potential security risks. This tool addresses this challenge by enabling administrators to identify users who haven't logged in within a specified period.\n\nBy analyzing user login activity and last login timestamps, this feature highlights inactive user accounts, allowing administrators to take appropriate action. Whether it's deactivating dormant accounts, freeing up licenses, or ensuring compliance with security policies, this functionality empowers administrators to maintain a lean and secure Salesforce environment.\n\nKey functionalities:\n\n- **Inactivity Detection:** Identifies users who have not logged in for a specified number of days (`--days` flag, default 180 days in CI, 365 days otherwise).\n- **License Type Filtering:** Allows filtering users by license type using `--licensetypes` (e.g., `all-crm`, `all-paying`) or specific license identifiers using `--licenseidentifiers`.\n - `all-crm`: Includes `SFDC`, `AUL`, `AUL1`, `AULL_IGHT` licenses.\n - `all-paying`: Includes `SFDC`, `AUL`, `AUL1`, `AULL_IGHT`, `PID_Customer_Community`, `PID_Customer_Community_Login`, `PID_Partner_Community`, `PID_Partner_Community_Login` licenses.\n - Note: You can see the full list of available license identifiers in [Salesforce Documentation](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/sfdx_cli_reference/sforce_api_objects_userlicense.htm).\n- **Active User Retrieval:** The `--returnactiveusers` flag inverts the command, allowing you to retrieve active users who *have* logged in during the specified period.\n- **CSV Report Generation:** Generates a CSV file containing details of all identified users (inactive or active), including their last login date, profile, and license information.\n- **Notifications:** Sends notifications to configured channels (Grafana, Slack, MS Teams) with a summary of inactive or active users.\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-inactive-users/) and can output Grafana, Slack and MsTeams Notifications.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **SOQL Query (Bulk API):** It uses `bulkQuery` to efficiently retrieve user records from the Salesforce `User` object. The SOQL query dynamically constructs its WHERE clause based on the `--days`, `--licensetypes`, `--licenseidentifiers`, and `--returnactiveusers` flags.\n- **Interactive Prompts:** Uses `prompts` to interactively ask the user for the number of inactive days and license types if not provided via flags.\n- **License Mapping:** Internally maps common license type aliases (e.g., `all-crm`) to their corresponding Salesforce `LicenseDefinitionKey` values.\n- **Report Generation:** It uses `generateCsvFile` to create the CSV report of users.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including attachments of the generated CSV report and metrics for monitoring dashboards.\n- **User Feedback:** Provides a summary of the findings in the console, indicating the number of inactive or active users found.\n</details>",
|
|
7046
7040
|
"examples": [
|
|
7047
|
-
"$ sf hardis:org:
|
|
7041
|
+
"$ sf hardis:org:diagnose:unusedusers",
|
|
7042
|
+
"$ sf hardis:org:diagnose:unusedusers --days 365",
|
|
7043
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm",
|
|
7044
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licenseidentifiers SFDC,AUL,AUL1",
|
|
7045
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm --returnactiveusers"
|
|
7048
7046
|
],
|
|
7049
7047
|
"flags": {
|
|
7050
7048
|
"json": {
|
|
@@ -7062,45 +7060,46 @@
|
|
|
7062
7060
|
"multiple": false,
|
|
7063
7061
|
"type": "option"
|
|
7064
7062
|
},
|
|
7065
|
-
"
|
|
7066
|
-
"char": "
|
|
7067
|
-
"description": "
|
|
7068
|
-
"name": "
|
|
7063
|
+
"outputfile": {
|
|
7064
|
+
"char": "f",
|
|
7065
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
7066
|
+
"name": "outputfile",
|
|
7069
7067
|
"hasDynamicHelp": false,
|
|
7070
7068
|
"multiple": false,
|
|
7071
7069
|
"type": "option"
|
|
7072
7070
|
},
|
|
7073
|
-
"
|
|
7074
|
-
"char": "
|
|
7075
|
-
"description": "
|
|
7076
|
-
"name": "
|
|
7077
|
-
"default": 1000,
|
|
7071
|
+
"days": {
|
|
7072
|
+
"char": "t",
|
|
7073
|
+
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
7074
|
+
"name": "days",
|
|
7078
7075
|
"hasDynamicHelp": false,
|
|
7079
7076
|
"multiple": false,
|
|
7080
7077
|
"type": "option"
|
|
7081
7078
|
},
|
|
7082
|
-
"
|
|
7083
|
-
"char": "
|
|
7084
|
-
"description": "
|
|
7085
|
-
"name": "
|
|
7086
|
-
"default": 300000,
|
|
7079
|
+
"licensetypes": {
|
|
7080
|
+
"char": "l",
|
|
7081
|
+
"description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
|
|
7082
|
+
"name": "licensetypes",
|
|
7087
7083
|
"hasDynamicHelp": false,
|
|
7088
7084
|
"multiple": false,
|
|
7085
|
+
"options": [
|
|
7086
|
+
"all",
|
|
7087
|
+
"all-crm",
|
|
7088
|
+
"all-paying"
|
|
7089
|
+
],
|
|
7089
7090
|
"type": "option"
|
|
7090
7091
|
},
|
|
7091
|
-
"
|
|
7092
|
-
"char": "
|
|
7093
|
-
"description": "
|
|
7094
|
-
"name": "
|
|
7095
|
-
"default": 0,
|
|
7092
|
+
"licenseidentifiers": {
|
|
7093
|
+
"char": "i",
|
|
7094
|
+
"description": "Comma-separated list of license identifiers, in case licensetypes is not used.. Identifiers available at https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userlicense.htm",
|
|
7095
|
+
"name": "licenseidentifiers",
|
|
7096
7096
|
"hasDynamicHelp": false,
|
|
7097
7097
|
"multiple": false,
|
|
7098
7098
|
"type": "option"
|
|
7099
7099
|
},
|
|
7100
|
-
"
|
|
7101
|
-
"
|
|
7102
|
-
"
|
|
7103
|
-
"name": "resume",
|
|
7100
|
+
"returnactiveusers": {
|
|
7101
|
+
"description": "Inverts the command by returning the active users",
|
|
7102
|
+
"name": "returnactiveusers",
|
|
7104
7103
|
"allowNo": false,
|
|
7105
7104
|
"type": "boolean"
|
|
7106
7105
|
},
|
|
@@ -7142,13 +7141,13 @@
|
|
|
7142
7141
|
},
|
|
7143
7142
|
"hasDynamicHelp": true,
|
|
7144
7143
|
"hiddenAliases": [],
|
|
7145
|
-
"id": "hardis:org:
|
|
7144
|
+
"id": "hardis:org:diagnose:unusedusers",
|
|
7146
7145
|
"pluginAlias": "sfdx-hardis",
|
|
7147
7146
|
"pluginName": "sfdx-hardis",
|
|
7148
7147
|
"pluginType": "core",
|
|
7149
7148
|
"strict": true,
|
|
7150
7149
|
"enableJsonFlag": true,
|
|
7151
|
-
"title": "
|
|
7150
|
+
"title": "Detect unused Users in Salesforce",
|
|
7152
7151
|
"requiresProject": false,
|
|
7153
7152
|
"isESM": true,
|
|
7154
7153
|
"relativePath": [
|
|
@@ -7156,43 +7155,45 @@
|
|
|
7156
7155
|
"commands",
|
|
7157
7156
|
"hardis",
|
|
7158
7157
|
"org",
|
|
7159
|
-
"
|
|
7160
|
-
"
|
|
7158
|
+
"diagnose",
|
|
7159
|
+
"unusedusers.js"
|
|
7161
7160
|
],
|
|
7162
7161
|
"aliasPermutations": [],
|
|
7163
7162
|
"permutations": [
|
|
7164
|
-
"hardis:org:
|
|
7165
|
-
"org:hardis:
|
|
7166
|
-
"org:
|
|
7167
|
-
"org:
|
|
7168
|
-
"hardis:
|
|
7169
|
-
"
|
|
7170
|
-
"
|
|
7171
|
-
"
|
|
7172
|
-
"hardis:
|
|
7173
|
-
"
|
|
7174
|
-
"
|
|
7175
|
-
"
|
|
7176
|
-
"hardis:org:
|
|
7177
|
-
"org:hardis:
|
|
7178
|
-
"org:
|
|
7179
|
-
"org:
|
|
7180
|
-
"hardis:
|
|
7181
|
-
"
|
|
7182
|
-
"
|
|
7183
|
-
"
|
|
7184
|
-
"hardis:
|
|
7185
|
-
"
|
|
7186
|
-
"
|
|
7187
|
-
"
|
|
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"
|
|
7188
7187
|
]
|
|
7189
7188
|
},
|
|
7190
|
-
"hardis:org:
|
|
7189
|
+
"hardis:org:generate:packagexmlfull": {
|
|
7191
7190
|
"aliases": [],
|
|
7192
7191
|
"args": {},
|
|
7193
|
-
"description": "\
|
|
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",
|
|
7194
7193
|
"examples": [
|
|
7195
|
-
"$ sf hardis:org:
|
|
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"
|
|
7196
7197
|
],
|
|
7197
7198
|
"flags": {
|
|
7198
7199
|
"json": {
|
|
@@ -7210,21 +7211,13 @@
|
|
|
7210
7211
|
"multiple": false,
|
|
7211
7212
|
"type": "option"
|
|
7212
7213
|
},
|
|
7213
|
-
"
|
|
7214
|
-
"
|
|
7215
|
-
"
|
|
7216
|
-
"name": "path",
|
|
7214
|
+
"outputfile": {
|
|
7215
|
+
"description": "Output package.xml file",
|
|
7216
|
+
"name": "outputfile",
|
|
7217
7217
|
"hasDynamicHelp": false,
|
|
7218
7218
|
"multiple": false,
|
|
7219
7219
|
"type": "option"
|
|
7220
7220
|
},
|
|
7221
|
-
"overwrite": {
|
|
7222
|
-
"char": "f",
|
|
7223
|
-
"description": "Override existing files (doubles the number of API calls)",
|
|
7224
|
-
"name": "overwrite",
|
|
7225
|
-
"allowNo": false,
|
|
7226
|
-
"type": "boolean"
|
|
7227
|
-
},
|
|
7228
7221
|
"debug": {
|
|
7229
7222
|
"char": "d",
|
|
7230
7223
|
"description": "Activate debug mode (more logs)",
|
|
@@ -7232,6 +7225,13 @@
|
|
|
7232
7225
|
"allowNo": false,
|
|
7233
7226
|
"type": "boolean"
|
|
7234
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
7235
|
"websocket": {
|
|
7236
7236
|
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7237
7237
|
"name": "websocket",
|
|
@@ -7263,13 +7263,13 @@
|
|
|
7263
7263
|
},
|
|
7264
7264
|
"hasDynamicHelp": true,
|
|
7265
7265
|
"hiddenAliases": [],
|
|
7266
|
-
"id": "hardis:org:
|
|
7266
|
+
"id": "hardis:org:generate:packagexmlfull",
|
|
7267
7267
|
"pluginAlias": "sfdx-hardis",
|
|
7268
7268
|
"pluginName": "sfdx-hardis",
|
|
7269
7269
|
"pluginType": "core",
|
|
7270
7270
|
"strict": true,
|
|
7271
7271
|
"enableJsonFlag": true,
|
|
7272
|
-
"title": "
|
|
7272
|
+
"title": "Generate Full Org package.xml",
|
|
7273
7273
|
"requiresProject": false,
|
|
7274
7274
|
"isESM": true,
|
|
7275
7275
|
"relativePath": [
|
|
@@ -7277,35 +7277,35 @@
|
|
|
7277
7277
|
"commands",
|
|
7278
7278
|
"hardis",
|
|
7279
7279
|
"org",
|
|
7280
|
-
"
|
|
7281
|
-
"
|
|
7280
|
+
"generate",
|
|
7281
|
+
"packagexmlfull.js"
|
|
7282
7282
|
],
|
|
7283
7283
|
"aliasPermutations": [],
|
|
7284
7284
|
"permutations": [
|
|
7285
|
-
"hardis:org:
|
|
7286
|
-
"org:hardis:
|
|
7287
|
-
"org:
|
|
7288
|
-
"org:
|
|
7289
|
-
"hardis:
|
|
7290
|
-
"
|
|
7291
|
-
"
|
|
7292
|
-
"
|
|
7293
|
-
"hardis:
|
|
7294
|
-
"
|
|
7295
|
-
"
|
|
7296
|
-
"
|
|
7297
|
-
"hardis:org:
|
|
7298
|
-
"org:hardis:
|
|
7299
|
-
"org:
|
|
7300
|
-
"org:
|
|
7301
|
-
"hardis:
|
|
7302
|
-
"
|
|
7303
|
-
"
|
|
7304
|
-
"
|
|
7305
|
-
"hardis:
|
|
7306
|
-
"
|
|
7307
|
-
"
|
|
7308
|
-
"
|
|
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": {
|
|
@@ -9164,13 +9164,125 @@
|
|
|
9164
9164
|
"list:version:package:hardis"
|
|
9165
9165
|
]
|
|
9166
9166
|
},
|
|
9167
|
-
"hardis:package:version:promote": {
|
|
9167
|
+
"hardis:package:version:promote": {
|
|
9168
|
+
"aliases": [],
|
|
9169
|
+
"args": {},
|
|
9170
|
+
"description": "\n## Command Behavior\n\n**Promotes a Salesforce package version from beta to released status in your Dev Hub.**\n\nThis command is a critical step in the package development lifecycle, marking a package version as stable and ready for production use. Once promoted, a package version can be installed in production organizations.\n\nKey functionalities:\n\n- **Package Version Selection:** Allows you to select a specific package version to promote. If the `--auto` flag is used, it automatically identifies package versions that are not yet released and promotes them.\n- **Automated Promotion:** When `--auto` is enabled, it queries for all unreleased package versions and promotes them without further user interaction.\n- **Dev Hub Integration:** Interacts with your connected Dev Hub to change the status of the package version.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Package Alias Retrieval:** It retrieves package aliases from your `sfdx-project.json` to identify available packages.\n- **Automated Promotion Logic:** If `--auto` is used, it executes `sf package version list --released` to get a list of already released packages and then filters the available package aliases to find those that are not yet released.\n- **Interactive Prompts:** If not in auto mode, it uses the `prompts` library to allow the user to select a package version to promote.\n- **Salesforce CLI Integration:** It constructs and executes the `sf package version promote` command, passing the package version ID.\n- **`execSfdxJson`:** This utility is used to execute the Salesforce CLI command and capture its JSON output.\n- **Error Handling:** It handles cases where a package version might already be promoted or if other errors occur during the promotion process.\n</details>\n",
|
|
9171
|
+
"examples": [
|
|
9172
|
+
"$ sf hardis:package:version:promote",
|
|
9173
|
+
"$ sf hardis:package:version:promote --auto"
|
|
9174
|
+
],
|
|
9175
|
+
"flags": {
|
|
9176
|
+
"json": {
|
|
9177
|
+
"description": "Format output as json.",
|
|
9178
|
+
"helpGroup": "GLOBAL",
|
|
9179
|
+
"name": "json",
|
|
9180
|
+
"allowNo": false,
|
|
9181
|
+
"type": "boolean"
|
|
9182
|
+
},
|
|
9183
|
+
"flags-dir": {
|
|
9184
|
+
"helpGroup": "GLOBAL",
|
|
9185
|
+
"name": "flags-dir",
|
|
9186
|
+
"summary": "Import flag values from a directory.",
|
|
9187
|
+
"hasDynamicHelp": false,
|
|
9188
|
+
"multiple": false,
|
|
9189
|
+
"type": "option"
|
|
9190
|
+
},
|
|
9191
|
+
"auto": {
|
|
9192
|
+
"char": "f",
|
|
9193
|
+
"description": "Auto-detect which versions of which packages need to be promoted",
|
|
9194
|
+
"name": "auto",
|
|
9195
|
+
"allowNo": false,
|
|
9196
|
+
"type": "boolean"
|
|
9197
|
+
},
|
|
9198
|
+
"debug": {
|
|
9199
|
+
"char": "d",
|
|
9200
|
+
"description": "Activate debug mode (more logs)",
|
|
9201
|
+
"name": "debug",
|
|
9202
|
+
"allowNo": false,
|
|
9203
|
+
"type": "boolean"
|
|
9204
|
+
},
|
|
9205
|
+
"websocket": {
|
|
9206
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
9207
|
+
"name": "websocket",
|
|
9208
|
+
"hasDynamicHelp": false,
|
|
9209
|
+
"multiple": false,
|
|
9210
|
+
"type": "option"
|
|
9211
|
+
},
|
|
9212
|
+
"skipauth": {
|
|
9213
|
+
"description": "Skip authentication check when a default username is required",
|
|
9214
|
+
"name": "skipauth",
|
|
9215
|
+
"allowNo": false,
|
|
9216
|
+
"type": "boolean"
|
|
9217
|
+
},
|
|
9218
|
+
"target-dev-hub": {
|
|
9219
|
+
"aliases": [
|
|
9220
|
+
"targetdevhubusername"
|
|
9221
|
+
],
|
|
9222
|
+
"char": "v",
|
|
9223
|
+
"deprecateAliases": true,
|
|
9224
|
+
"name": "target-dev-hub",
|
|
9225
|
+
"noCacheDefault": true,
|
|
9226
|
+
"required": true,
|
|
9227
|
+
"summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
|
|
9228
|
+
"hasDynamicHelp": true,
|
|
9229
|
+
"multiple": false,
|
|
9230
|
+
"type": "option"
|
|
9231
|
+
}
|
|
9232
|
+
},
|
|
9233
|
+
"hasDynamicHelp": true,
|
|
9234
|
+
"hiddenAliases": [],
|
|
9235
|
+
"id": "hardis:package:version:promote",
|
|
9236
|
+
"pluginAlias": "sfdx-hardis",
|
|
9237
|
+
"pluginName": "sfdx-hardis",
|
|
9238
|
+
"pluginType": "core",
|
|
9239
|
+
"strict": true,
|
|
9240
|
+
"enableJsonFlag": true,
|
|
9241
|
+
"title": "Promote new versions of package(s)",
|
|
9242
|
+
"requiresProject": true,
|
|
9243
|
+
"isESM": true,
|
|
9244
|
+
"relativePath": [
|
|
9245
|
+
"lib",
|
|
9246
|
+
"commands",
|
|
9247
|
+
"hardis",
|
|
9248
|
+
"package",
|
|
9249
|
+
"version",
|
|
9250
|
+
"promote.js"
|
|
9251
|
+
],
|
|
9252
|
+
"aliasPermutations": [],
|
|
9253
|
+
"permutations": [
|
|
9254
|
+
"hardis:package:version:promote",
|
|
9255
|
+
"package:hardis:version:promote",
|
|
9256
|
+
"package:version:hardis:promote",
|
|
9257
|
+
"package:version:promote:hardis",
|
|
9258
|
+
"hardis:version:package:promote",
|
|
9259
|
+
"version:hardis:package:promote",
|
|
9260
|
+
"version:package:hardis:promote",
|
|
9261
|
+
"version:package:promote:hardis",
|
|
9262
|
+
"hardis:version:promote:package",
|
|
9263
|
+
"version:hardis:promote:package",
|
|
9264
|
+
"version:promote:hardis:package",
|
|
9265
|
+
"version:promote:package:hardis",
|
|
9266
|
+
"hardis:package:promote:version",
|
|
9267
|
+
"package:hardis:promote:version",
|
|
9268
|
+
"package:promote:hardis:version",
|
|
9269
|
+
"package:promote:version:hardis",
|
|
9270
|
+
"hardis:promote:package:version",
|
|
9271
|
+
"promote:hardis:package:version",
|
|
9272
|
+
"promote:package:hardis:version",
|
|
9273
|
+
"promote:package:version:hardis",
|
|
9274
|
+
"hardis:promote:version:package",
|
|
9275
|
+
"promote:hardis:version:package",
|
|
9276
|
+
"promote:version:hardis:package",
|
|
9277
|
+
"promote:version:package:hardis"
|
|
9278
|
+
]
|
|
9279
|
+
},
|
|
9280
|
+
"hardis:project:configure:auth": {
|
|
9168
9281
|
"aliases": [],
|
|
9169
9282
|
"args": {},
|
|
9170
|
-
"description": "\n## Command Behavior\n\n**
|
|
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",
|
|
9171
9284
|
"examples": [
|
|
9172
|
-
"$ sf hardis:
|
|
9173
|
-
"$ sf hardis:package:version:promote --auto"
|
|
9285
|
+
"$ sf hardis:project:configure:auth"
|
|
9174
9286
|
],
|
|
9175
9287
|
"flags": {
|
|
9176
9288
|
"json": {
|
|
@@ -9188,10 +9300,10 @@
|
|
|
9188
9300
|
"multiple": false,
|
|
9189
9301
|
"type": "option"
|
|
9190
9302
|
},
|
|
9191
|
-
"
|
|
9192
|
-
"char": "
|
|
9193
|
-
"description": "
|
|
9194
|
-
"name": "
|
|
9303
|
+
"devhub": {
|
|
9304
|
+
"char": "b",
|
|
9305
|
+
"description": "Configure project DevHub",
|
|
9306
|
+
"name": "devhub",
|
|
9195
9307
|
"allowNo": false,
|
|
9196
9308
|
"type": "boolean"
|
|
9197
9309
|
},
|
|
@@ -9215,6 +9327,20 @@
|
|
|
9215
9327
|
"allowNo": false,
|
|
9216
9328
|
"type": "boolean"
|
|
9217
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
|
+
},
|
|
9218
9344
|
"target-dev-hub": {
|
|
9219
9345
|
"aliases": [
|
|
9220
9346
|
"targetdevhubusername"
|
|
@@ -9223,8 +9349,8 @@
|
|
|
9223
9349
|
"deprecateAliases": true,
|
|
9224
9350
|
"name": "target-dev-hub",
|
|
9225
9351
|
"noCacheDefault": true,
|
|
9226
|
-
"required":
|
|
9227
|
-
"summary": "Username or alias of the Dev Hub org.
|
|
9352
|
+
"required": false,
|
|
9353
|
+
"summary": "Username or alias of the Dev Hub org.",
|
|
9228
9354
|
"hasDynamicHelp": true,
|
|
9229
9355
|
"multiple": false,
|
|
9230
9356
|
"type": "option"
|
|
@@ -9232,49 +9358,52 @@
|
|
|
9232
9358
|
},
|
|
9233
9359
|
"hasDynamicHelp": true,
|
|
9234
9360
|
"hiddenAliases": [],
|
|
9235
|
-
"id": "hardis:
|
|
9361
|
+
"id": "hardis:project:configure:auth",
|
|
9236
9362
|
"pluginAlias": "sfdx-hardis",
|
|
9237
9363
|
"pluginName": "sfdx-hardis",
|
|
9238
9364
|
"pluginType": "core",
|
|
9239
9365
|
"strict": true,
|
|
9240
9366
|
"enableJsonFlag": true,
|
|
9241
|
-
"title": "
|
|
9242
|
-
"requiresProject":
|
|
9367
|
+
"title": "Configure authentication",
|
|
9368
|
+
"requiresProject": false,
|
|
9369
|
+
"requiresDependencies": [
|
|
9370
|
+
"openssl"
|
|
9371
|
+
],
|
|
9243
9372
|
"isESM": true,
|
|
9244
9373
|
"relativePath": [
|
|
9245
9374
|
"lib",
|
|
9246
9375
|
"commands",
|
|
9247
9376
|
"hardis",
|
|
9248
|
-
"
|
|
9249
|
-
"
|
|
9250
|
-
"
|
|
9377
|
+
"project",
|
|
9378
|
+
"configure",
|
|
9379
|
+
"auth.js"
|
|
9251
9380
|
],
|
|
9252
9381
|
"aliasPermutations": [],
|
|
9253
9382
|
"permutations": [
|
|
9254
|
-
"hardis:
|
|
9255
|
-
"
|
|
9256
|
-
"
|
|
9257
|
-
"
|
|
9258
|
-
"hardis:
|
|
9259
|
-
"
|
|
9260
|
-
"
|
|
9261
|
-
"
|
|
9262
|
-
"hardis:
|
|
9263
|
-
"
|
|
9264
|
-
"
|
|
9265
|
-
"
|
|
9266
|
-
"hardis:
|
|
9267
|
-
"
|
|
9268
|
-
"
|
|
9269
|
-
"
|
|
9270
|
-
"hardis:
|
|
9271
|
-
"
|
|
9272
|
-
"
|
|
9273
|
-
"
|
|
9274
|
-
"hardis:
|
|
9275
|
-
"
|
|
9276
|
-
"
|
|
9277
|
-
"
|
|
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"
|
|
9278
9407
|
]
|
|
9279
9408
|
},
|
|
9280
9409
|
"hardis:project:audit:apiversion": {
|
|
@@ -9690,135 +9819,6 @@
|
|
|
9690
9819
|
"remotesites:audit:project:hardis"
|
|
9691
9820
|
]
|
|
9692
9821
|
},
|
|
9693
|
-
"hardis:project:configure:auth": {
|
|
9694
|
-
"aliases": [],
|
|
9695
|
-
"args": {},
|
|
9696
|
-
"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",
|
|
9697
|
-
"examples": [
|
|
9698
|
-
"$ sf hardis:project:configure:auth"
|
|
9699
|
-
],
|
|
9700
|
-
"flags": {
|
|
9701
|
-
"json": {
|
|
9702
|
-
"description": "Format output as json.",
|
|
9703
|
-
"helpGroup": "GLOBAL",
|
|
9704
|
-
"name": "json",
|
|
9705
|
-
"allowNo": false,
|
|
9706
|
-
"type": "boolean"
|
|
9707
|
-
},
|
|
9708
|
-
"flags-dir": {
|
|
9709
|
-
"helpGroup": "GLOBAL",
|
|
9710
|
-
"name": "flags-dir",
|
|
9711
|
-
"summary": "Import flag values from a directory.",
|
|
9712
|
-
"hasDynamicHelp": false,
|
|
9713
|
-
"multiple": false,
|
|
9714
|
-
"type": "option"
|
|
9715
|
-
},
|
|
9716
|
-
"devhub": {
|
|
9717
|
-
"char": "b",
|
|
9718
|
-
"description": "Configure project DevHub",
|
|
9719
|
-
"name": "devhub",
|
|
9720
|
-
"allowNo": false,
|
|
9721
|
-
"type": "boolean"
|
|
9722
|
-
},
|
|
9723
|
-
"debug": {
|
|
9724
|
-
"char": "d",
|
|
9725
|
-
"description": "Activate debug mode (more logs)",
|
|
9726
|
-
"name": "debug",
|
|
9727
|
-
"allowNo": false,
|
|
9728
|
-
"type": "boolean"
|
|
9729
|
-
},
|
|
9730
|
-
"websocket": {
|
|
9731
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
9732
|
-
"name": "websocket",
|
|
9733
|
-
"hasDynamicHelp": false,
|
|
9734
|
-
"multiple": false,
|
|
9735
|
-
"type": "option"
|
|
9736
|
-
},
|
|
9737
|
-
"skipauth": {
|
|
9738
|
-
"description": "Skip authentication check when a default username is required",
|
|
9739
|
-
"name": "skipauth",
|
|
9740
|
-
"allowNo": false,
|
|
9741
|
-
"type": "boolean"
|
|
9742
|
-
},
|
|
9743
|
-
"target-org": {
|
|
9744
|
-
"aliases": [
|
|
9745
|
-
"targetusername",
|
|
9746
|
-
"u"
|
|
9747
|
-
],
|
|
9748
|
-
"char": "o",
|
|
9749
|
-
"deprecateAliases": true,
|
|
9750
|
-
"name": "target-org",
|
|
9751
|
-
"noCacheDefault": true,
|
|
9752
|
-
"summary": "Username or alias of the target org.",
|
|
9753
|
-
"hasDynamicHelp": true,
|
|
9754
|
-
"multiple": false,
|
|
9755
|
-
"type": "option"
|
|
9756
|
-
},
|
|
9757
|
-
"target-dev-hub": {
|
|
9758
|
-
"aliases": [
|
|
9759
|
-
"targetdevhubusername"
|
|
9760
|
-
],
|
|
9761
|
-
"char": "v",
|
|
9762
|
-
"deprecateAliases": true,
|
|
9763
|
-
"name": "target-dev-hub",
|
|
9764
|
-
"noCacheDefault": true,
|
|
9765
|
-
"required": false,
|
|
9766
|
-
"summary": "Username or alias of the Dev Hub org.",
|
|
9767
|
-
"hasDynamicHelp": true,
|
|
9768
|
-
"multiple": false,
|
|
9769
|
-
"type": "option"
|
|
9770
|
-
}
|
|
9771
|
-
},
|
|
9772
|
-
"hasDynamicHelp": true,
|
|
9773
|
-
"hiddenAliases": [],
|
|
9774
|
-
"id": "hardis:project:configure:auth",
|
|
9775
|
-
"pluginAlias": "sfdx-hardis",
|
|
9776
|
-
"pluginName": "sfdx-hardis",
|
|
9777
|
-
"pluginType": "core",
|
|
9778
|
-
"strict": true,
|
|
9779
|
-
"enableJsonFlag": true,
|
|
9780
|
-
"title": "Configure authentication",
|
|
9781
|
-
"requiresProject": false,
|
|
9782
|
-
"requiresDependencies": [
|
|
9783
|
-
"openssl"
|
|
9784
|
-
],
|
|
9785
|
-
"isESM": true,
|
|
9786
|
-
"relativePath": [
|
|
9787
|
-
"lib",
|
|
9788
|
-
"commands",
|
|
9789
|
-
"hardis",
|
|
9790
|
-
"project",
|
|
9791
|
-
"configure",
|
|
9792
|
-
"auth.js"
|
|
9793
|
-
],
|
|
9794
|
-
"aliasPermutations": [],
|
|
9795
|
-
"permutations": [
|
|
9796
|
-
"hardis:project:configure:auth",
|
|
9797
|
-
"project:hardis:configure:auth",
|
|
9798
|
-
"project:configure:hardis:auth",
|
|
9799
|
-
"project:configure:auth:hardis",
|
|
9800
|
-
"hardis:configure:project:auth",
|
|
9801
|
-
"configure:hardis:project:auth",
|
|
9802
|
-
"configure:project:hardis:auth",
|
|
9803
|
-
"configure:project:auth:hardis",
|
|
9804
|
-
"hardis:configure:auth:project",
|
|
9805
|
-
"configure:hardis:auth:project",
|
|
9806
|
-
"configure:auth:hardis:project",
|
|
9807
|
-
"configure:auth:project:hardis",
|
|
9808
|
-
"hardis:project:auth:configure",
|
|
9809
|
-
"project:hardis:auth:configure",
|
|
9810
|
-
"project:auth:hardis:configure",
|
|
9811
|
-
"project:auth:configure:hardis",
|
|
9812
|
-
"hardis:auth:project:configure",
|
|
9813
|
-
"auth:hardis:project:configure",
|
|
9814
|
-
"auth:project:hardis:configure",
|
|
9815
|
-
"auth:project:configure:hardis",
|
|
9816
|
-
"hardis:auth:configure:project",
|
|
9817
|
-
"auth:hardis:configure:project",
|
|
9818
|
-
"auth:configure:hardis:project",
|
|
9819
|
-
"auth:configure:project:hardis"
|
|
9820
|
-
]
|
|
9821
|
-
},
|
|
9822
9822
|
"hardis:project:convert:profilestopermsets": {
|
|
9823
9823
|
"aliases": [],
|
|
9824
9824
|
"args": {},
|
|
@@ -15370,5 +15370,5 @@
|
|
|
15370
15370
|
]
|
|
15371
15371
|
}
|
|
15372
15372
|
},
|
|
15373
|
-
"version": "6.9.1-
|
|
15373
|
+
"version": "6.9.1-alpha202510261658.0"
|
|
15374
15374
|
}
|