sfdx-hardis 6.12.4 → 6.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/lib/commands/hardis/project/deploy/notify.js +4 -4
- package/lib/commands/hardis/project/deploy/notify.js.map +1 -1
- package/lib/common/ticketProvider/jiraProvider.js +3 -1
- package/lib/common/ticketProvider/jiraProvider.js.map +1 -1
- package/lib/common/utils/prePostCommandUtils.js +39 -26
- package/lib/common/utils/prePostCommandUtils.js.map +1 -1
- package/oclif.manifest.json +495 -496
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -4741,117 +4741,6 @@
|
|
|
4741
4741
|
"extract:pull-requests:git:hardis"
|
|
4742
4742
|
]
|
|
4743
4743
|
},
|
|
4744
|
-
"hardis:org:community:update": {
|
|
4745
|
-
"aliases": [],
|
|
4746
|
-
"args": {},
|
|
4747
|
-
"description": "\n## Command Behavior\n\n**Updates the status of one or more Salesforce Experience Cloud (Community) networks.**\n\nThis command provides a way to programmatically change the status of your Salesforce Communities, allowing you to manage their availability. This is particularly useful for:\n\n- **Maintenance:** Taking communities offline for planned maintenance (`DownForMaintenance`).\n- **Activation/Deactivation:** Bringing communities online or offline (`Live`, `DownForMaintenance`).\n- **Automation:** Integrating community status changes into CI/CD pipelines or scheduled jobs.\n\nKey functionalities:\n\n- **Network Selection:** You can specify one or more community network names (separated by commas) using the `--name` flag.\n- **Status Update:** You can set the new status for the selected communities using the `--status` flag. Supported values are `Live` and `DownForMaintenance`.\n- **Confirmation Prompt:** In non-CI environments, it provides a confirmation prompt before executing the update, ensuring intentional changes.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce SOQL Query:** It first queries the Salesforce `Network` object using SOQL to retrieve the `Id`, `Name`, and `Status` of the specified communities. This ensures that only existing communities are targeted.\n- **SObject Update:** It then constructs an array of `Network` sObjects with their `Id` and the new `Status` and performs a DML update operation using `conn.sobject(\"Network\").update()`. The `allOrNone: false` option is used to allow partial success in case some updates fail.\n- **Error Handling and Reporting:** It iterates through the update results, logging success or failure for each community. It also provides a summary of successful and erroneous updates.\n- **User Interaction:** Uses `prompts` to confirm the update action with the user when not running in a CI environment.\n- **Salesforce Connection:** Establishes a connection to the target Salesforce org using the `target-org` flag.\n</details>\n",
|
|
4748
|
-
"examples": [
|
|
4749
|
-
"$ sf hardis:org:community:update --name 'MyNetworkName' --status DownForMaintenance",
|
|
4750
|
-
"$ sf hardis:org:community:update --name 'MyNetworkName,MySecondNetworkName' --status Live"
|
|
4751
|
-
],
|
|
4752
|
-
"flags": {
|
|
4753
|
-
"json": {
|
|
4754
|
-
"description": "Format output as json.",
|
|
4755
|
-
"helpGroup": "GLOBAL",
|
|
4756
|
-
"name": "json",
|
|
4757
|
-
"allowNo": false,
|
|
4758
|
-
"type": "boolean"
|
|
4759
|
-
},
|
|
4760
|
-
"flags-dir": {
|
|
4761
|
-
"helpGroup": "GLOBAL",
|
|
4762
|
-
"name": "flags-dir",
|
|
4763
|
-
"summary": "Import flag values from a directory.",
|
|
4764
|
-
"hasDynamicHelp": false,
|
|
4765
|
-
"multiple": false,
|
|
4766
|
-
"type": "option"
|
|
4767
|
-
},
|
|
4768
|
-
"name": {
|
|
4769
|
-
"char": "n",
|
|
4770
|
-
"description": "List of Networks Names that you want to update, separated by comma",
|
|
4771
|
-
"name": "name",
|
|
4772
|
-
"required": true,
|
|
4773
|
-
"hasDynamicHelp": false,
|
|
4774
|
-
"multiple": false,
|
|
4775
|
-
"type": "option"
|
|
4776
|
-
},
|
|
4777
|
-
"status": {
|
|
4778
|
-
"char": "s",
|
|
4779
|
-
"description": "New status for the community, available values are: Live, DownForMaintenance",
|
|
4780
|
-
"name": "status",
|
|
4781
|
-
"required": true,
|
|
4782
|
-
"hasDynamicHelp": false,
|
|
4783
|
-
"multiple": false,
|
|
4784
|
-
"type": "option"
|
|
4785
|
-
},
|
|
4786
|
-
"debug": {
|
|
4787
|
-
"char": "d",
|
|
4788
|
-
"description": "Activate debug mode (more logs)",
|
|
4789
|
-
"name": "debug",
|
|
4790
|
-
"allowNo": false,
|
|
4791
|
-
"type": "boolean"
|
|
4792
|
-
},
|
|
4793
|
-
"target-org": {
|
|
4794
|
-
"aliases": [
|
|
4795
|
-
"targetusername",
|
|
4796
|
-
"u"
|
|
4797
|
-
],
|
|
4798
|
-
"char": "o",
|
|
4799
|
-
"deprecateAliases": true,
|
|
4800
|
-
"name": "target-org",
|
|
4801
|
-
"noCacheDefault": true,
|
|
4802
|
-
"required": true,
|
|
4803
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
4804
|
-
"hasDynamicHelp": true,
|
|
4805
|
-
"multiple": false,
|
|
4806
|
-
"type": "option"
|
|
4807
|
-
}
|
|
4808
|
-
},
|
|
4809
|
-
"hasDynamicHelp": true,
|
|
4810
|
-
"hiddenAliases": [],
|
|
4811
|
-
"id": "hardis:org:community:update",
|
|
4812
|
-
"pluginAlias": "sfdx-hardis",
|
|
4813
|
-
"pluginName": "sfdx-hardis",
|
|
4814
|
-
"pluginType": "core",
|
|
4815
|
-
"strict": true,
|
|
4816
|
-
"summary": "Update a community status.",
|
|
4817
|
-
"enableJsonFlag": true,
|
|
4818
|
-
"isESM": true,
|
|
4819
|
-
"relativePath": [
|
|
4820
|
-
"lib",
|
|
4821
|
-
"commands",
|
|
4822
|
-
"hardis",
|
|
4823
|
-
"org",
|
|
4824
|
-
"community",
|
|
4825
|
-
"update.js"
|
|
4826
|
-
],
|
|
4827
|
-
"aliasPermutations": [],
|
|
4828
|
-
"permutations": [
|
|
4829
|
-
"hardis:org:community:update",
|
|
4830
|
-
"org:hardis:community:update",
|
|
4831
|
-
"org:community:hardis:update",
|
|
4832
|
-
"org:community:update:hardis",
|
|
4833
|
-
"hardis:community:org:update",
|
|
4834
|
-
"community:hardis:org:update",
|
|
4835
|
-
"community:org:hardis:update",
|
|
4836
|
-
"community:org:update:hardis",
|
|
4837
|
-
"hardis:community:update:org",
|
|
4838
|
-
"community:hardis:update:org",
|
|
4839
|
-
"community:update:hardis:org",
|
|
4840
|
-
"community:update:org:hardis",
|
|
4841
|
-
"hardis:org:update:community",
|
|
4842
|
-
"org:hardis:update:community",
|
|
4843
|
-
"org:update:hardis:community",
|
|
4844
|
-
"org:update:community:hardis",
|
|
4845
|
-
"hardis:update:org:community",
|
|
4846
|
-
"update:hardis:org:community",
|
|
4847
|
-
"update:org:hardis:community",
|
|
4848
|
-
"update:org:community:hardis",
|
|
4849
|
-
"hardis:update:community:org",
|
|
4850
|
-
"update:hardis:community:org",
|
|
4851
|
-
"update:community:hardis:org",
|
|
4852
|
-
"update:community:org:hardis"
|
|
4853
|
-
]
|
|
4854
|
-
},
|
|
4855
4744
|
"hardis:org:configure:data": {
|
|
4856
4745
|
"aliases": [],
|
|
4857
4746
|
"args": {},
|
|
@@ -5153,6 +5042,117 @@
|
|
|
5153
5042
|
"monitoring:configure:org:hardis"
|
|
5154
5043
|
]
|
|
5155
5044
|
},
|
|
5045
|
+
"hardis:org:community:update": {
|
|
5046
|
+
"aliases": [],
|
|
5047
|
+
"args": {},
|
|
5048
|
+
"description": "\n## Command Behavior\n\n**Updates the status of one or more Salesforce Experience Cloud (Community) networks.**\n\nThis command provides a way to programmatically change the status of your Salesforce Communities, allowing you to manage their availability. This is particularly useful for:\n\n- **Maintenance:** Taking communities offline for planned maintenance (`DownForMaintenance`).\n- **Activation/Deactivation:** Bringing communities online or offline (`Live`, `DownForMaintenance`).\n- **Automation:** Integrating community status changes into CI/CD pipelines or scheduled jobs.\n\nKey functionalities:\n\n- **Network Selection:** You can specify one or more community network names (separated by commas) using the `--name` flag.\n- **Status Update:** You can set the new status for the selected communities using the `--status` flag. Supported values are `Live` and `DownForMaintenance`.\n- **Confirmation Prompt:** In non-CI environments, it provides a confirmation prompt before executing the update, ensuring intentional changes.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce SOQL Query:** It first queries the Salesforce `Network` object using SOQL to retrieve the `Id`, `Name`, and `Status` of the specified communities. This ensures that only existing communities are targeted.\n- **SObject Update:** It then constructs an array of `Network` sObjects with their `Id` and the new `Status` and performs a DML update operation using `conn.sobject(\"Network\").update()`. The `allOrNone: false` option is used to allow partial success in case some updates fail.\n- **Error Handling and Reporting:** It iterates through the update results, logging success or failure for each community. It also provides a summary of successful and erroneous updates.\n- **User Interaction:** Uses `prompts` to confirm the update action with the user when not running in a CI environment.\n- **Salesforce Connection:** Establishes a connection to the target Salesforce org using the `target-org` flag.\n</details>\n",
|
|
5049
|
+
"examples": [
|
|
5050
|
+
"$ sf hardis:org:community:update --name 'MyNetworkName' --status DownForMaintenance",
|
|
5051
|
+
"$ sf hardis:org:community:update --name 'MyNetworkName,MySecondNetworkName' --status Live"
|
|
5052
|
+
],
|
|
5053
|
+
"flags": {
|
|
5054
|
+
"json": {
|
|
5055
|
+
"description": "Format output as json.",
|
|
5056
|
+
"helpGroup": "GLOBAL",
|
|
5057
|
+
"name": "json",
|
|
5058
|
+
"allowNo": false,
|
|
5059
|
+
"type": "boolean"
|
|
5060
|
+
},
|
|
5061
|
+
"flags-dir": {
|
|
5062
|
+
"helpGroup": "GLOBAL",
|
|
5063
|
+
"name": "flags-dir",
|
|
5064
|
+
"summary": "Import flag values from a directory.",
|
|
5065
|
+
"hasDynamicHelp": false,
|
|
5066
|
+
"multiple": false,
|
|
5067
|
+
"type": "option"
|
|
5068
|
+
},
|
|
5069
|
+
"name": {
|
|
5070
|
+
"char": "n",
|
|
5071
|
+
"description": "List of Networks Names that you want to update, separated by comma",
|
|
5072
|
+
"name": "name",
|
|
5073
|
+
"required": true,
|
|
5074
|
+
"hasDynamicHelp": false,
|
|
5075
|
+
"multiple": false,
|
|
5076
|
+
"type": "option"
|
|
5077
|
+
},
|
|
5078
|
+
"status": {
|
|
5079
|
+
"char": "s",
|
|
5080
|
+
"description": "New status for the community, available values are: Live, DownForMaintenance",
|
|
5081
|
+
"name": "status",
|
|
5082
|
+
"required": true,
|
|
5083
|
+
"hasDynamicHelp": false,
|
|
5084
|
+
"multiple": false,
|
|
5085
|
+
"type": "option"
|
|
5086
|
+
},
|
|
5087
|
+
"debug": {
|
|
5088
|
+
"char": "d",
|
|
5089
|
+
"description": "Activate debug mode (more logs)",
|
|
5090
|
+
"name": "debug",
|
|
5091
|
+
"allowNo": false,
|
|
5092
|
+
"type": "boolean"
|
|
5093
|
+
},
|
|
5094
|
+
"target-org": {
|
|
5095
|
+
"aliases": [
|
|
5096
|
+
"targetusername",
|
|
5097
|
+
"u"
|
|
5098
|
+
],
|
|
5099
|
+
"char": "o",
|
|
5100
|
+
"deprecateAliases": true,
|
|
5101
|
+
"name": "target-org",
|
|
5102
|
+
"noCacheDefault": true,
|
|
5103
|
+
"required": true,
|
|
5104
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5105
|
+
"hasDynamicHelp": true,
|
|
5106
|
+
"multiple": false,
|
|
5107
|
+
"type": "option"
|
|
5108
|
+
}
|
|
5109
|
+
},
|
|
5110
|
+
"hasDynamicHelp": true,
|
|
5111
|
+
"hiddenAliases": [],
|
|
5112
|
+
"id": "hardis:org:community:update",
|
|
5113
|
+
"pluginAlias": "sfdx-hardis",
|
|
5114
|
+
"pluginName": "sfdx-hardis",
|
|
5115
|
+
"pluginType": "core",
|
|
5116
|
+
"strict": true,
|
|
5117
|
+
"summary": "Update a community status.",
|
|
5118
|
+
"enableJsonFlag": true,
|
|
5119
|
+
"isESM": true,
|
|
5120
|
+
"relativePath": [
|
|
5121
|
+
"lib",
|
|
5122
|
+
"commands",
|
|
5123
|
+
"hardis",
|
|
5124
|
+
"org",
|
|
5125
|
+
"community",
|
|
5126
|
+
"update.js"
|
|
5127
|
+
],
|
|
5128
|
+
"aliasPermutations": [],
|
|
5129
|
+
"permutations": [
|
|
5130
|
+
"hardis:org:community:update",
|
|
5131
|
+
"org:hardis:community:update",
|
|
5132
|
+
"org:community:hardis:update",
|
|
5133
|
+
"org:community:update:hardis",
|
|
5134
|
+
"hardis:community:org:update",
|
|
5135
|
+
"community:hardis:org:update",
|
|
5136
|
+
"community:org:hardis:update",
|
|
5137
|
+
"community:org:update:hardis",
|
|
5138
|
+
"hardis:community:update:org",
|
|
5139
|
+
"community:hardis:update:org",
|
|
5140
|
+
"community:update:hardis:org",
|
|
5141
|
+
"community:update:org:hardis",
|
|
5142
|
+
"hardis:org:update:community",
|
|
5143
|
+
"org:hardis:update:community",
|
|
5144
|
+
"org:update:hardis:community",
|
|
5145
|
+
"org:update:community:hardis",
|
|
5146
|
+
"hardis:update:org:community",
|
|
5147
|
+
"update:hardis:org:community",
|
|
5148
|
+
"update:org:hardis:community",
|
|
5149
|
+
"update:org:community:hardis",
|
|
5150
|
+
"hardis:update:community:org",
|
|
5151
|
+
"update:hardis:community:org",
|
|
5152
|
+
"update:community:hardis:org",
|
|
5153
|
+
"update:community:org:hardis"
|
|
5154
|
+
]
|
|
5155
|
+
},
|
|
5156
5156
|
"hardis:org:data:delete": {
|
|
5157
5157
|
"aliases": [],
|
|
5158
5158
|
"args": {},
|
|
@@ -5808,6 +5808,121 @@
|
|
|
5808
5808
|
"import:files:org:hardis"
|
|
5809
5809
|
]
|
|
5810
5810
|
},
|
|
5811
|
+
"hardis:org:fix:listviewmine": {
|
|
5812
|
+
"aliases": [],
|
|
5813
|
+
"args": {},
|
|
5814
|
+
"description": "Fix listviews whose scope Mine has been replaced by Everything\n\n[](https://nicolas.vuillamy.fr/invalid-scope-mine-not-allowed-deploy-your-listviews-anyway-443aceca8ac7)\n\nList of ListViews can be:\n\n- read from .sfdx-hardis.yml file in property **listViewsToSetToMine**\n- sent in argument listviews\n\nNote: property **listViewsToSetToMine** can be auto-generated by command hardis:work:save if .sfdx-hardis.yml contains the following configuration\n\n```yaml\nautoCleanTypes:\n - listViewsMine\n```\n\n- Example of sfdx-hardis.yml property `listViewsToSetToMine`:\n\n```yaml\nlistViewsToSetToMine:\n - \"force-app/main/default/objects/Operation__c/listViews/MyCurrentOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Operation__c/listViews/MyFinalizedOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/Default_Opportunity_Pipeline.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MyCurrentSubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MySubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Account/listViews/MyActivePartners.listView-meta.xml\"\n```\n\n- If manually written, this could also be:\n\n```yaml\nlistViewsToSetToMine:\n - \"Operation__c:MyCurrentOperations\"\n - \"Operation__c:MyFinalizedOperations\"\n - \"Opportunity:Default_Opportunity_Pipeline\"\n - \"Opportunity:MyCurrentSubscriptions\"\n - \"Opportunity:MySubscriptions\"\n - \"Account:MyActivePartners\"\n```\n\nTroubleshooting: if you need to run this command from an alpine-linux based docker image, use this workaround in your dockerfile:\n\n```dockerfile\n# Do not use puppeteer embedded chromium\nRUN apk add --update --no-cache chromium\nENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=\"true\"\nENV CHROMIUM_PATH=\"/usr/bin/chromium-browser\"\nENV PUPPETEER_EXECUTABLE_PATH=\"$\\{CHROMIUM_PATH}\" // remove \\ before {\n```\n",
|
|
5815
|
+
"examples": [
|
|
5816
|
+
"$ sf hardis:org:fix:listviewmine",
|
|
5817
|
+
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
5818
|
+
],
|
|
5819
|
+
"flags": {
|
|
5820
|
+
"json": {
|
|
5821
|
+
"description": "Format output as json.",
|
|
5822
|
+
"helpGroup": "GLOBAL",
|
|
5823
|
+
"name": "json",
|
|
5824
|
+
"allowNo": false,
|
|
5825
|
+
"type": "boolean"
|
|
5826
|
+
},
|
|
5827
|
+
"flags-dir": {
|
|
5828
|
+
"helpGroup": "GLOBAL",
|
|
5829
|
+
"name": "flags-dir",
|
|
5830
|
+
"summary": "Import flag values from a directory.",
|
|
5831
|
+
"hasDynamicHelp": false,
|
|
5832
|
+
"multiple": false,
|
|
5833
|
+
"type": "option"
|
|
5834
|
+
},
|
|
5835
|
+
"listviews": {
|
|
5836
|
+
"char": "l",
|
|
5837
|
+
"description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
|
|
5838
|
+
"name": "listviews",
|
|
5839
|
+
"hasDynamicHelp": false,
|
|
5840
|
+
"multiple": false,
|
|
5841
|
+
"type": "option"
|
|
5842
|
+
},
|
|
5843
|
+
"debug": {
|
|
5844
|
+
"char": "d",
|
|
5845
|
+
"description": "Activate debug mode (more logs)",
|
|
5846
|
+
"name": "debug",
|
|
5847
|
+
"allowNo": false,
|
|
5848
|
+
"type": "boolean"
|
|
5849
|
+
},
|
|
5850
|
+
"websocket": {
|
|
5851
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
5852
|
+
"name": "websocket",
|
|
5853
|
+
"hasDynamicHelp": false,
|
|
5854
|
+
"multiple": false,
|
|
5855
|
+
"type": "option"
|
|
5856
|
+
},
|
|
5857
|
+
"skipauth": {
|
|
5858
|
+
"description": "Skip authentication check when a default username is required",
|
|
5859
|
+
"name": "skipauth",
|
|
5860
|
+
"allowNo": false,
|
|
5861
|
+
"type": "boolean"
|
|
5862
|
+
},
|
|
5863
|
+
"target-org": {
|
|
5864
|
+
"aliases": [
|
|
5865
|
+
"targetusername",
|
|
5866
|
+
"u"
|
|
5867
|
+
],
|
|
5868
|
+
"char": "o",
|
|
5869
|
+
"deprecateAliases": true,
|
|
5870
|
+
"name": "target-org",
|
|
5871
|
+
"noCacheDefault": true,
|
|
5872
|
+
"required": true,
|
|
5873
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5874
|
+
"hasDynamicHelp": true,
|
|
5875
|
+
"multiple": false,
|
|
5876
|
+
"type": "option"
|
|
5877
|
+
}
|
|
5878
|
+
},
|
|
5879
|
+
"hasDynamicHelp": true,
|
|
5880
|
+
"hiddenAliases": [],
|
|
5881
|
+
"id": "hardis:org:fix:listviewmine",
|
|
5882
|
+
"pluginAlias": "sfdx-hardis",
|
|
5883
|
+
"pluginName": "sfdx-hardis",
|
|
5884
|
+
"pluginType": "core",
|
|
5885
|
+
"strict": true,
|
|
5886
|
+
"enableJsonFlag": true,
|
|
5887
|
+
"title": "Fix listviews with ",
|
|
5888
|
+
"requiresProject": true,
|
|
5889
|
+
"isESM": true,
|
|
5890
|
+
"relativePath": [
|
|
5891
|
+
"lib",
|
|
5892
|
+
"commands",
|
|
5893
|
+
"hardis",
|
|
5894
|
+
"org",
|
|
5895
|
+
"fix",
|
|
5896
|
+
"listviewmine.js"
|
|
5897
|
+
],
|
|
5898
|
+
"aliasPermutations": [],
|
|
5899
|
+
"permutations": [
|
|
5900
|
+
"hardis:org:fix:listviewmine",
|
|
5901
|
+
"org:hardis:fix:listviewmine",
|
|
5902
|
+
"org:fix:hardis:listviewmine",
|
|
5903
|
+
"org:fix:listviewmine:hardis",
|
|
5904
|
+
"hardis:fix:org:listviewmine",
|
|
5905
|
+
"fix:hardis:org:listviewmine",
|
|
5906
|
+
"fix:org:hardis:listviewmine",
|
|
5907
|
+
"fix:org:listviewmine:hardis",
|
|
5908
|
+
"hardis:fix:listviewmine:org",
|
|
5909
|
+
"fix:hardis:listviewmine:org",
|
|
5910
|
+
"fix:listviewmine:hardis:org",
|
|
5911
|
+
"fix:listviewmine:org:hardis",
|
|
5912
|
+
"hardis:org:listviewmine:fix",
|
|
5913
|
+
"org:hardis:listviewmine:fix",
|
|
5914
|
+
"org:listviewmine:hardis:fix",
|
|
5915
|
+
"org:listviewmine:fix:hardis",
|
|
5916
|
+
"hardis:listviewmine:org:fix",
|
|
5917
|
+
"listviewmine:hardis:org:fix",
|
|
5918
|
+
"listviewmine:org:hardis:fix",
|
|
5919
|
+
"listviewmine:org:fix:hardis",
|
|
5920
|
+
"hardis:listviewmine:fix:org",
|
|
5921
|
+
"listviewmine:hardis:fix:org",
|
|
5922
|
+
"listviewmine:fix:hardis:org",
|
|
5923
|
+
"listviewmine:fix:org:hardis"
|
|
5924
|
+
]
|
|
5925
|
+
},
|
|
5811
5926
|
"hardis:org:diagnose:audittrail": {
|
|
5812
5927
|
"aliases": [],
|
|
5813
5928
|
"args": {},
|
|
@@ -7086,158 +7201,43 @@
|
|
|
7086
7201
|
"name": "outputfile",
|
|
7087
7202
|
"hasDynamicHelp": false,
|
|
7088
7203
|
"multiple": false,
|
|
7089
|
-
"type": "option"
|
|
7090
|
-
},
|
|
7091
|
-
"days": {
|
|
7092
|
-
"char": "t",
|
|
7093
|
-
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
7094
|
-
"name": "days",
|
|
7095
|
-
"hasDynamicHelp": false,
|
|
7096
|
-
"multiple": false,
|
|
7097
|
-
"type": "option"
|
|
7098
|
-
},
|
|
7099
|
-
"licensetypes": {
|
|
7100
|
-
"char": "l",
|
|
7101
|
-
"description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
|
|
7102
|
-
"name": "licensetypes",
|
|
7103
|
-
"hasDynamicHelp": false,
|
|
7104
|
-
"multiple": false,
|
|
7105
|
-
"options": [
|
|
7106
|
-
"all",
|
|
7107
|
-
"all-crm",
|
|
7108
|
-
"all-paying"
|
|
7109
|
-
],
|
|
7110
|
-
"type": "option"
|
|
7111
|
-
},
|
|
7112
|
-
"licenseidentifiers": {
|
|
7113
|
-
"char": "i",
|
|
7114
|
-
"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",
|
|
7115
|
-
"name": "licenseidentifiers",
|
|
7116
|
-
"hasDynamicHelp": false,
|
|
7117
|
-
"multiple": false,
|
|
7118
|
-
"type": "option"
|
|
7119
|
-
},
|
|
7120
|
-
"returnactiveusers": {
|
|
7121
|
-
"description": "Inverts the command by returning the active users",
|
|
7122
|
-
"name": "returnactiveusers",
|
|
7123
|
-
"allowNo": false,
|
|
7124
|
-
"type": "boolean"
|
|
7125
|
-
},
|
|
7126
|
-
"debug": {
|
|
7127
|
-
"char": "d",
|
|
7128
|
-
"description": "Activate debug mode (more logs)",
|
|
7129
|
-
"name": "debug",
|
|
7130
|
-
"allowNo": false,
|
|
7131
|
-
"type": "boolean"
|
|
7132
|
-
},
|
|
7133
|
-
"websocket": {
|
|
7134
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7135
|
-
"name": "websocket",
|
|
7136
|
-
"hasDynamicHelp": false,
|
|
7137
|
-
"multiple": false,
|
|
7138
|
-
"type": "option"
|
|
7139
|
-
},
|
|
7140
|
-
"skipauth": {
|
|
7141
|
-
"description": "Skip authentication check when a default username is required",
|
|
7142
|
-
"name": "skipauth",
|
|
7143
|
-
"allowNo": false,
|
|
7144
|
-
"type": "boolean"
|
|
7145
|
-
},
|
|
7146
|
-
"target-org": {
|
|
7147
|
-
"aliases": [
|
|
7148
|
-
"targetusername",
|
|
7149
|
-
"u"
|
|
7150
|
-
],
|
|
7151
|
-
"char": "o",
|
|
7152
|
-
"deprecateAliases": true,
|
|
7153
|
-
"name": "target-org",
|
|
7154
|
-
"noCacheDefault": true,
|
|
7155
|
-
"required": true,
|
|
7156
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7157
|
-
"hasDynamicHelp": true,
|
|
7158
|
-
"multiple": false,
|
|
7159
|
-
"type": "option"
|
|
7160
|
-
}
|
|
7161
|
-
},
|
|
7162
|
-
"hasDynamicHelp": true,
|
|
7163
|
-
"hiddenAliases": [],
|
|
7164
|
-
"id": "hardis:org:diagnose:unusedusers",
|
|
7165
|
-
"pluginAlias": "sfdx-hardis",
|
|
7166
|
-
"pluginName": "sfdx-hardis",
|
|
7167
|
-
"pluginType": "core",
|
|
7168
|
-
"strict": true,
|
|
7169
|
-
"enableJsonFlag": true,
|
|
7170
|
-
"title": "Detect unused Users in Salesforce",
|
|
7171
|
-
"requiresProject": false,
|
|
7172
|
-
"isESM": true,
|
|
7173
|
-
"relativePath": [
|
|
7174
|
-
"lib",
|
|
7175
|
-
"commands",
|
|
7176
|
-
"hardis",
|
|
7177
|
-
"org",
|
|
7178
|
-
"diagnose",
|
|
7179
|
-
"unusedusers.js"
|
|
7180
|
-
],
|
|
7181
|
-
"aliasPermutations": [],
|
|
7182
|
-
"permutations": [
|
|
7183
|
-
"hardis:org:diagnose:unusedusers",
|
|
7184
|
-
"org:hardis:diagnose:unusedusers",
|
|
7185
|
-
"org:diagnose:hardis:unusedusers",
|
|
7186
|
-
"org:diagnose:unusedusers:hardis",
|
|
7187
|
-
"hardis:diagnose:org:unusedusers",
|
|
7188
|
-
"diagnose:hardis:org:unusedusers",
|
|
7189
|
-
"diagnose:org:hardis:unusedusers",
|
|
7190
|
-
"diagnose:org:unusedusers:hardis",
|
|
7191
|
-
"hardis:diagnose:unusedusers:org",
|
|
7192
|
-
"diagnose:hardis:unusedusers:org",
|
|
7193
|
-
"diagnose:unusedusers:hardis:org",
|
|
7194
|
-
"diagnose:unusedusers:org:hardis",
|
|
7195
|
-
"hardis:org:unusedusers:diagnose",
|
|
7196
|
-
"org:hardis:unusedusers:diagnose",
|
|
7197
|
-
"org:unusedusers:hardis:diagnose",
|
|
7198
|
-
"org:unusedusers:diagnose:hardis",
|
|
7199
|
-
"hardis:unusedusers:org:diagnose",
|
|
7200
|
-
"unusedusers:hardis:org:diagnose",
|
|
7201
|
-
"unusedusers:org:hardis:diagnose",
|
|
7202
|
-
"unusedusers:org:diagnose:hardis",
|
|
7203
|
-
"hardis:unusedusers:diagnose:org",
|
|
7204
|
-
"unusedusers:hardis:diagnose:org",
|
|
7205
|
-
"unusedusers:diagnose:hardis:org",
|
|
7206
|
-
"unusedusers:diagnose:org:hardis"
|
|
7207
|
-
]
|
|
7208
|
-
},
|
|
7209
|
-
"hardis:org:fix:listviewmine": {
|
|
7210
|
-
"aliases": [],
|
|
7211
|
-
"args": {},
|
|
7212
|
-
"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",
|
|
7213
|
-
"examples": [
|
|
7214
|
-
"$ sf hardis:org:fix:listviewmine",
|
|
7215
|
-
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
7216
|
-
],
|
|
7217
|
-
"flags": {
|
|
7218
|
-
"json": {
|
|
7219
|
-
"description": "Format output as json.",
|
|
7220
|
-
"helpGroup": "GLOBAL",
|
|
7221
|
-
"name": "json",
|
|
7222
|
-
"allowNo": false,
|
|
7223
|
-
"type": "boolean"
|
|
7224
|
-
},
|
|
7225
|
-
"flags-dir": {
|
|
7226
|
-
"helpGroup": "GLOBAL",
|
|
7227
|
-
"name": "flags-dir",
|
|
7228
|
-
"summary": "Import flag values from a directory.",
|
|
7204
|
+
"type": "option"
|
|
7205
|
+
},
|
|
7206
|
+
"days": {
|
|
7207
|
+
"char": "t",
|
|
7208
|
+
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
7209
|
+
"name": "days",
|
|
7229
7210
|
"hasDynamicHelp": false,
|
|
7230
7211
|
"multiple": false,
|
|
7231
7212
|
"type": "option"
|
|
7232
7213
|
},
|
|
7233
|
-
"
|
|
7214
|
+
"licensetypes": {
|
|
7234
7215
|
"char": "l",
|
|
7235
|
-
"description": "
|
|
7236
|
-
"name": "
|
|
7216
|
+
"description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
|
|
7217
|
+
"name": "licensetypes",
|
|
7218
|
+
"hasDynamicHelp": false,
|
|
7219
|
+
"multiple": false,
|
|
7220
|
+
"options": [
|
|
7221
|
+
"all",
|
|
7222
|
+
"all-crm",
|
|
7223
|
+
"all-paying"
|
|
7224
|
+
],
|
|
7225
|
+
"type": "option"
|
|
7226
|
+
},
|
|
7227
|
+
"licenseidentifiers": {
|
|
7228
|
+
"char": "i",
|
|
7229
|
+
"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",
|
|
7230
|
+
"name": "licenseidentifiers",
|
|
7237
7231
|
"hasDynamicHelp": false,
|
|
7238
7232
|
"multiple": false,
|
|
7239
7233
|
"type": "option"
|
|
7240
7234
|
},
|
|
7235
|
+
"returnactiveusers": {
|
|
7236
|
+
"description": "Inverts the command by returning the active users",
|
|
7237
|
+
"name": "returnactiveusers",
|
|
7238
|
+
"allowNo": false,
|
|
7239
|
+
"type": "boolean"
|
|
7240
|
+
},
|
|
7241
7241
|
"debug": {
|
|
7242
7242
|
"char": "d",
|
|
7243
7243
|
"description": "Activate debug mode (more logs)",
|
|
@@ -7276,49 +7276,49 @@
|
|
|
7276
7276
|
},
|
|
7277
7277
|
"hasDynamicHelp": true,
|
|
7278
7278
|
"hiddenAliases": [],
|
|
7279
|
-
"id": "hardis:org:
|
|
7279
|
+
"id": "hardis:org:diagnose:unusedusers",
|
|
7280
7280
|
"pluginAlias": "sfdx-hardis",
|
|
7281
7281
|
"pluginName": "sfdx-hardis",
|
|
7282
7282
|
"pluginType": "core",
|
|
7283
7283
|
"strict": true,
|
|
7284
7284
|
"enableJsonFlag": true,
|
|
7285
|
-
"title": "
|
|
7286
|
-
"requiresProject":
|
|
7285
|
+
"title": "Detect unused Users in Salesforce",
|
|
7286
|
+
"requiresProject": false,
|
|
7287
7287
|
"isESM": true,
|
|
7288
7288
|
"relativePath": [
|
|
7289
7289
|
"lib",
|
|
7290
7290
|
"commands",
|
|
7291
7291
|
"hardis",
|
|
7292
7292
|
"org",
|
|
7293
|
-
"
|
|
7294
|
-
"
|
|
7293
|
+
"diagnose",
|
|
7294
|
+
"unusedusers.js"
|
|
7295
7295
|
],
|
|
7296
7296
|
"aliasPermutations": [],
|
|
7297
7297
|
"permutations": [
|
|
7298
|
-
"hardis:org:
|
|
7299
|
-
"org:hardis:
|
|
7300
|
-
"org:
|
|
7301
|
-
"org:
|
|
7302
|
-
"hardis:
|
|
7303
|
-
"
|
|
7304
|
-
"
|
|
7305
|
-
"
|
|
7306
|
-
"hardis:
|
|
7307
|
-
"
|
|
7308
|
-
"
|
|
7309
|
-
"
|
|
7310
|
-
"hardis:org:
|
|
7311
|
-
"org:hardis:
|
|
7312
|
-
"org:
|
|
7313
|
-
"org:
|
|
7314
|
-
"hardis:
|
|
7315
|
-
"
|
|
7316
|
-
"
|
|
7317
|
-
"
|
|
7318
|
-
"hardis:
|
|
7319
|
-
"
|
|
7320
|
-
"
|
|
7321
|
-
"
|
|
7298
|
+
"hardis:org:diagnose:unusedusers",
|
|
7299
|
+
"org:hardis:diagnose:unusedusers",
|
|
7300
|
+
"org:diagnose:hardis:unusedusers",
|
|
7301
|
+
"org:diagnose:unusedusers:hardis",
|
|
7302
|
+
"hardis:diagnose:org:unusedusers",
|
|
7303
|
+
"diagnose:hardis:org:unusedusers",
|
|
7304
|
+
"diagnose:org:hardis:unusedusers",
|
|
7305
|
+
"diagnose:org:unusedusers:hardis",
|
|
7306
|
+
"hardis:diagnose:unusedusers:org",
|
|
7307
|
+
"diagnose:hardis:unusedusers:org",
|
|
7308
|
+
"diagnose:unusedusers:hardis:org",
|
|
7309
|
+
"diagnose:unusedusers:org:hardis",
|
|
7310
|
+
"hardis:org:unusedusers:diagnose",
|
|
7311
|
+
"org:hardis:unusedusers:diagnose",
|
|
7312
|
+
"org:unusedusers:hardis:diagnose",
|
|
7313
|
+
"org:unusedusers:diagnose:hardis",
|
|
7314
|
+
"hardis:unusedusers:org:diagnose",
|
|
7315
|
+
"unusedusers:hardis:org:diagnose",
|
|
7316
|
+
"unusedusers:org:hardis:diagnose",
|
|
7317
|
+
"unusedusers:org:diagnose:hardis",
|
|
7318
|
+
"hardis:unusedusers:diagnose:org",
|
|
7319
|
+
"unusedusers:hardis:diagnose:org",
|
|
7320
|
+
"unusedusers:diagnose:hardis:org",
|
|
7321
|
+
"unusedusers:diagnose:org:hardis"
|
|
7322
7322
|
]
|
|
7323
7323
|
},
|
|
7324
7324
|
"hardis:org:generate:packagexmlfull": {
|
|
@@ -8192,113 +8192,6 @@
|
|
|
8192
8192
|
"flow:purge:org:hardis"
|
|
8193
8193
|
]
|
|
8194
8194
|
},
|
|
8195
|
-
"hardis:org:retrieve:packageconfig": {
|
|
8196
|
-
"aliases": [],
|
|
8197
|
-
"args": {},
|
|
8198
|
-
"description": "\n**Retrieves the installed package configuration from a Salesforce org and optionally updates the local project configuration.**\n\nThis command is useful for maintaining an accurate record of installed packages within your Salesforce project, which is crucial for managing dependencies and ensuring consistent deployments across environments.\n\nKey functionalities:\n\n- **Package Listing:** Connects to a specified Salesforce org (or prompts for one if not provided) and retrieves a list of all installed packages.\n- **Configuration Update:** Offers the option to update your local project's configuration with the retrieved list of installed packages. This can be beneficial for automating package installations during environment setup or CI/CD processes.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Org Connection:** It establishes a connection to the target Salesforce org using the provided or prompted username.\n- **Metadata Retrieval:** It utilizes `MetadataUtils.listInstalledPackages` to query the Salesforce org and obtain details about the installed packages.\n- **Interactive Prompt:** It uses the `prompts` library to ask the user whether they want to update their local project configuration with the retrieved package list.\n- **Configuration Management:** If the user confirms, it calls `managePackageConfig` to update the project's configuration file (likely `.sfdx-hardis.yml`) with the new package information.\n- **User Feedback:** Provides clear messages to the user about the success of the package retrieval and configuration update.\n</details>\n",
|
|
8199
|
-
"examples": [
|
|
8200
|
-
"$ sf hardis:org:retrieve:packageconfig",
|
|
8201
|
-
"sf hardis:org:retrieve:packageconfig -u myOrg"
|
|
8202
|
-
],
|
|
8203
|
-
"flags": {
|
|
8204
|
-
"json": {
|
|
8205
|
-
"description": "Format output as json.",
|
|
8206
|
-
"helpGroup": "GLOBAL",
|
|
8207
|
-
"name": "json",
|
|
8208
|
-
"allowNo": false,
|
|
8209
|
-
"type": "boolean"
|
|
8210
|
-
},
|
|
8211
|
-
"flags-dir": {
|
|
8212
|
-
"helpGroup": "GLOBAL",
|
|
8213
|
-
"name": "flags-dir",
|
|
8214
|
-
"summary": "Import flag values from a directory.",
|
|
8215
|
-
"hasDynamicHelp": false,
|
|
8216
|
-
"multiple": false,
|
|
8217
|
-
"type": "option"
|
|
8218
|
-
},
|
|
8219
|
-
"debug": {
|
|
8220
|
-
"char": "d",
|
|
8221
|
-
"description": "Activate debug mode (more logs)",
|
|
8222
|
-
"name": "debug",
|
|
8223
|
-
"allowNo": false,
|
|
8224
|
-
"type": "boolean"
|
|
8225
|
-
},
|
|
8226
|
-
"websocket": {
|
|
8227
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
8228
|
-
"name": "websocket",
|
|
8229
|
-
"hasDynamicHelp": false,
|
|
8230
|
-
"multiple": false,
|
|
8231
|
-
"type": "option"
|
|
8232
|
-
},
|
|
8233
|
-
"skipauth": {
|
|
8234
|
-
"description": "Skip authentication check when a default username is required",
|
|
8235
|
-
"name": "skipauth",
|
|
8236
|
-
"allowNo": false,
|
|
8237
|
-
"type": "boolean"
|
|
8238
|
-
},
|
|
8239
|
-
"target-org": {
|
|
8240
|
-
"aliases": [
|
|
8241
|
-
"targetusername",
|
|
8242
|
-
"u"
|
|
8243
|
-
],
|
|
8244
|
-
"char": "o",
|
|
8245
|
-
"deprecateAliases": true,
|
|
8246
|
-
"name": "target-org",
|
|
8247
|
-
"noCacheDefault": true,
|
|
8248
|
-
"required": true,
|
|
8249
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
8250
|
-
"hasDynamicHelp": true,
|
|
8251
|
-
"multiple": false,
|
|
8252
|
-
"type": "option"
|
|
8253
|
-
}
|
|
8254
|
-
},
|
|
8255
|
-
"hasDynamicHelp": true,
|
|
8256
|
-
"hiddenAliases": [],
|
|
8257
|
-
"id": "hardis:org:retrieve:packageconfig",
|
|
8258
|
-
"pluginAlias": "sfdx-hardis",
|
|
8259
|
-
"pluginName": "sfdx-hardis",
|
|
8260
|
-
"pluginType": "core",
|
|
8261
|
-
"strict": true,
|
|
8262
|
-
"enableJsonFlag": true,
|
|
8263
|
-
"title": "Retrieve package configuration from an org",
|
|
8264
|
-
"requiresProject": false,
|
|
8265
|
-
"isESM": true,
|
|
8266
|
-
"relativePath": [
|
|
8267
|
-
"lib",
|
|
8268
|
-
"commands",
|
|
8269
|
-
"hardis",
|
|
8270
|
-
"org",
|
|
8271
|
-
"retrieve",
|
|
8272
|
-
"packageconfig.js"
|
|
8273
|
-
],
|
|
8274
|
-
"aliasPermutations": [],
|
|
8275
|
-
"permutations": [
|
|
8276
|
-
"hardis:org:retrieve:packageconfig",
|
|
8277
|
-
"org:hardis:retrieve:packageconfig",
|
|
8278
|
-
"org:retrieve:hardis:packageconfig",
|
|
8279
|
-
"org:retrieve:packageconfig:hardis",
|
|
8280
|
-
"hardis:retrieve:org:packageconfig",
|
|
8281
|
-
"retrieve:hardis:org:packageconfig",
|
|
8282
|
-
"retrieve:org:hardis:packageconfig",
|
|
8283
|
-
"retrieve:org:packageconfig:hardis",
|
|
8284
|
-
"hardis:retrieve:packageconfig:org",
|
|
8285
|
-
"retrieve:hardis:packageconfig:org",
|
|
8286
|
-
"retrieve:packageconfig:hardis:org",
|
|
8287
|
-
"retrieve:packageconfig:org:hardis",
|
|
8288
|
-
"hardis:org:packageconfig:retrieve",
|
|
8289
|
-
"org:hardis:packageconfig:retrieve",
|
|
8290
|
-
"org:packageconfig:hardis:retrieve",
|
|
8291
|
-
"org:packageconfig:retrieve:hardis",
|
|
8292
|
-
"hardis:packageconfig:org:retrieve",
|
|
8293
|
-
"packageconfig:hardis:org:retrieve",
|
|
8294
|
-
"packageconfig:org:hardis:retrieve",
|
|
8295
|
-
"packageconfig:org:retrieve:hardis",
|
|
8296
|
-
"hardis:packageconfig:retrieve:org",
|
|
8297
|
-
"packageconfig:hardis:retrieve:org",
|
|
8298
|
-
"packageconfig:retrieve:hardis:org",
|
|
8299
|
-
"packageconfig:retrieve:org:hardis"
|
|
8300
|
-
]
|
|
8301
|
-
},
|
|
8302
8195
|
"hardis:org:refresh:after-refresh": {
|
|
8303
8196
|
"aliases": [],
|
|
8304
8197
|
"args": {},
|
|
@@ -8538,6 +8431,113 @@
|
|
|
8538
8431
|
"before-refresh:refresh:org:hardis"
|
|
8539
8432
|
]
|
|
8540
8433
|
},
|
|
8434
|
+
"hardis:org:retrieve:packageconfig": {
|
|
8435
|
+
"aliases": [],
|
|
8436
|
+
"args": {},
|
|
8437
|
+
"description": "\n**Retrieves the installed package configuration from a Salesforce org and optionally updates the local project configuration.**\n\nThis command is useful for maintaining an accurate record of installed packages within your Salesforce project, which is crucial for managing dependencies and ensuring consistent deployments across environments.\n\nKey functionalities:\n\n- **Package Listing:** Connects to a specified Salesforce org (or prompts for one if not provided) and retrieves a list of all installed packages.\n- **Configuration Update:** Offers the option to update your local project's configuration with the retrieved list of installed packages. This can be beneficial for automating package installations during environment setup or CI/CD processes.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Org Connection:** It establishes a connection to the target Salesforce org using the provided or prompted username.\n- **Metadata Retrieval:** It utilizes `MetadataUtils.listInstalledPackages` to query the Salesforce org and obtain details about the installed packages.\n- **Interactive Prompt:** It uses the `prompts` library to ask the user whether they want to update their local project configuration with the retrieved package list.\n- **Configuration Management:** If the user confirms, it calls `managePackageConfig` to update the project's configuration file (likely `.sfdx-hardis.yml`) with the new package information.\n- **User Feedback:** Provides clear messages to the user about the success of the package retrieval and configuration update.\n</details>\n",
|
|
8438
|
+
"examples": [
|
|
8439
|
+
"$ sf hardis:org:retrieve:packageconfig",
|
|
8440
|
+
"sf hardis:org:retrieve:packageconfig -u myOrg"
|
|
8441
|
+
],
|
|
8442
|
+
"flags": {
|
|
8443
|
+
"json": {
|
|
8444
|
+
"description": "Format output as json.",
|
|
8445
|
+
"helpGroup": "GLOBAL",
|
|
8446
|
+
"name": "json",
|
|
8447
|
+
"allowNo": false,
|
|
8448
|
+
"type": "boolean"
|
|
8449
|
+
},
|
|
8450
|
+
"flags-dir": {
|
|
8451
|
+
"helpGroup": "GLOBAL",
|
|
8452
|
+
"name": "flags-dir",
|
|
8453
|
+
"summary": "Import flag values from a directory.",
|
|
8454
|
+
"hasDynamicHelp": false,
|
|
8455
|
+
"multiple": false,
|
|
8456
|
+
"type": "option"
|
|
8457
|
+
},
|
|
8458
|
+
"debug": {
|
|
8459
|
+
"char": "d",
|
|
8460
|
+
"description": "Activate debug mode (more logs)",
|
|
8461
|
+
"name": "debug",
|
|
8462
|
+
"allowNo": false,
|
|
8463
|
+
"type": "boolean"
|
|
8464
|
+
},
|
|
8465
|
+
"websocket": {
|
|
8466
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
8467
|
+
"name": "websocket",
|
|
8468
|
+
"hasDynamicHelp": false,
|
|
8469
|
+
"multiple": false,
|
|
8470
|
+
"type": "option"
|
|
8471
|
+
},
|
|
8472
|
+
"skipauth": {
|
|
8473
|
+
"description": "Skip authentication check when a default username is required",
|
|
8474
|
+
"name": "skipauth",
|
|
8475
|
+
"allowNo": false,
|
|
8476
|
+
"type": "boolean"
|
|
8477
|
+
},
|
|
8478
|
+
"target-org": {
|
|
8479
|
+
"aliases": [
|
|
8480
|
+
"targetusername",
|
|
8481
|
+
"u"
|
|
8482
|
+
],
|
|
8483
|
+
"char": "o",
|
|
8484
|
+
"deprecateAliases": true,
|
|
8485
|
+
"name": "target-org",
|
|
8486
|
+
"noCacheDefault": true,
|
|
8487
|
+
"required": true,
|
|
8488
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
8489
|
+
"hasDynamicHelp": true,
|
|
8490
|
+
"multiple": false,
|
|
8491
|
+
"type": "option"
|
|
8492
|
+
}
|
|
8493
|
+
},
|
|
8494
|
+
"hasDynamicHelp": true,
|
|
8495
|
+
"hiddenAliases": [],
|
|
8496
|
+
"id": "hardis:org:retrieve:packageconfig",
|
|
8497
|
+
"pluginAlias": "sfdx-hardis",
|
|
8498
|
+
"pluginName": "sfdx-hardis",
|
|
8499
|
+
"pluginType": "core",
|
|
8500
|
+
"strict": true,
|
|
8501
|
+
"enableJsonFlag": true,
|
|
8502
|
+
"title": "Retrieve package configuration from an org",
|
|
8503
|
+
"requiresProject": false,
|
|
8504
|
+
"isESM": true,
|
|
8505
|
+
"relativePath": [
|
|
8506
|
+
"lib",
|
|
8507
|
+
"commands",
|
|
8508
|
+
"hardis",
|
|
8509
|
+
"org",
|
|
8510
|
+
"retrieve",
|
|
8511
|
+
"packageconfig.js"
|
|
8512
|
+
],
|
|
8513
|
+
"aliasPermutations": [],
|
|
8514
|
+
"permutations": [
|
|
8515
|
+
"hardis:org:retrieve:packageconfig",
|
|
8516
|
+
"org:hardis:retrieve:packageconfig",
|
|
8517
|
+
"org:retrieve:hardis:packageconfig",
|
|
8518
|
+
"org:retrieve:packageconfig:hardis",
|
|
8519
|
+
"hardis:retrieve:org:packageconfig",
|
|
8520
|
+
"retrieve:hardis:org:packageconfig",
|
|
8521
|
+
"retrieve:org:hardis:packageconfig",
|
|
8522
|
+
"retrieve:org:packageconfig:hardis",
|
|
8523
|
+
"hardis:retrieve:packageconfig:org",
|
|
8524
|
+
"retrieve:hardis:packageconfig:org",
|
|
8525
|
+
"retrieve:packageconfig:hardis:org",
|
|
8526
|
+
"retrieve:packageconfig:org:hardis",
|
|
8527
|
+
"hardis:org:packageconfig:retrieve",
|
|
8528
|
+
"org:hardis:packageconfig:retrieve",
|
|
8529
|
+
"org:packageconfig:hardis:retrieve",
|
|
8530
|
+
"org:packageconfig:retrieve:hardis",
|
|
8531
|
+
"hardis:packageconfig:org:retrieve",
|
|
8532
|
+
"packageconfig:hardis:org:retrieve",
|
|
8533
|
+
"packageconfig:org:hardis:retrieve",
|
|
8534
|
+
"packageconfig:org:retrieve:hardis",
|
|
8535
|
+
"hardis:packageconfig:retrieve:org",
|
|
8536
|
+
"packageconfig:hardis:retrieve:org",
|
|
8537
|
+
"packageconfig:retrieve:hardis:org",
|
|
8538
|
+
"packageconfig:retrieve:org:hardis"
|
|
8539
|
+
]
|
|
8540
|
+
},
|
|
8541
8541
|
"hardis:org:test:apex": {
|
|
8542
8542
|
"aliases": [],
|
|
8543
8543
|
"args": {},
|
|
@@ -9954,109 +9954,6 @@
|
|
|
9954
9954
|
"auth:configure:project:hardis"
|
|
9955
9955
|
]
|
|
9956
9956
|
},
|
|
9957
|
-
"hardis:project:convert:profilestopermsets": {
|
|
9958
|
-
"aliases": [],
|
|
9959
|
-
"args": {},
|
|
9960
|
-
"description": "\n## Command Behavior\n\n**Converts existing Salesforce Profiles into Permission Sets, facilitating a more granular and recommended security model.**\n\nThis command helps in migrating permissions from Profiles to Permission Sets, which is a best practice for managing user access in Salesforce. It creates a new Permission Set for each specified Profile, adopting a naming convention of `PS_PROFILENAME`.\n\nKey functionalities:\n\n- **Profile to Permission Set Conversion:** Automatically extracts permissions from a Profile and creates a corresponding Permission Set.\n- **Naming Convention:** New Permission Sets are named with a `PS_` prefix followed by the Profile name (e.g., `PS_Standard_User`).\n- **Exclusion Filter:** Allows you to exclude specific Profiles from the conversion process using the `--except` flag.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **External Plugin Integration:** It relies on the `shane-sfdx-plugins` (specifically the `sf shane:profile:convert` command) to perform the actual conversion.\n- **File System Scan:** It reads the contents of the `force-app/main/default/profiles` directory to identify all available Profile metadata files.\n- **Command Execution:** For each identified Profile (that is not excluded), it constructs and executes the `sf shane:profile:convert` command with the appropriate Profile name and desired Permission Set name.\n- **Error Handling:** Includes basic error handling for the external command execution.\n</details>\n",
|
|
9961
|
-
"examples": [
|
|
9962
|
-
"$ sf hardis:project:convert:profilestopermsets"
|
|
9963
|
-
],
|
|
9964
|
-
"flags": {
|
|
9965
|
-
"json": {
|
|
9966
|
-
"description": "Format output as json.",
|
|
9967
|
-
"helpGroup": "GLOBAL",
|
|
9968
|
-
"name": "json",
|
|
9969
|
-
"allowNo": false,
|
|
9970
|
-
"type": "boolean"
|
|
9971
|
-
},
|
|
9972
|
-
"flags-dir": {
|
|
9973
|
-
"helpGroup": "GLOBAL",
|
|
9974
|
-
"name": "flags-dir",
|
|
9975
|
-
"summary": "Import flag values from a directory.",
|
|
9976
|
-
"hasDynamicHelp": false,
|
|
9977
|
-
"multiple": false,
|
|
9978
|
-
"type": "option"
|
|
9979
|
-
},
|
|
9980
|
-
"except": {
|
|
9981
|
-
"char": "e",
|
|
9982
|
-
"description": "List of filters",
|
|
9983
|
-
"name": "except",
|
|
9984
|
-
"default": [],
|
|
9985
|
-
"hasDynamicHelp": false,
|
|
9986
|
-
"multiple": true,
|
|
9987
|
-
"type": "option"
|
|
9988
|
-
},
|
|
9989
|
-
"debug": {
|
|
9990
|
-
"char": "d",
|
|
9991
|
-
"description": "Activate debug mode (more logs)",
|
|
9992
|
-
"name": "debug",
|
|
9993
|
-
"allowNo": false,
|
|
9994
|
-
"type": "boolean"
|
|
9995
|
-
},
|
|
9996
|
-
"websocket": {
|
|
9997
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
9998
|
-
"name": "websocket",
|
|
9999
|
-
"hasDynamicHelp": false,
|
|
10000
|
-
"multiple": false,
|
|
10001
|
-
"type": "option"
|
|
10002
|
-
},
|
|
10003
|
-
"skipauth": {
|
|
10004
|
-
"description": "Skip authentication check when a default username is required",
|
|
10005
|
-
"name": "skipauth",
|
|
10006
|
-
"allowNo": false,
|
|
10007
|
-
"type": "boolean"
|
|
10008
|
-
}
|
|
10009
|
-
},
|
|
10010
|
-
"hasDynamicHelp": false,
|
|
10011
|
-
"hiddenAliases": [],
|
|
10012
|
-
"id": "hardis:project:convert:profilestopermsets",
|
|
10013
|
-
"pluginAlias": "sfdx-hardis",
|
|
10014
|
-
"pluginName": "sfdx-hardis",
|
|
10015
|
-
"pluginType": "core",
|
|
10016
|
-
"strict": true,
|
|
10017
|
-
"enableJsonFlag": true,
|
|
10018
|
-
"title": "Convert Profiles into Permission Sets",
|
|
10019
|
-
"requiresProject": true,
|
|
10020
|
-
"requiresSfdxPlugins": [
|
|
10021
|
-
"shane-sfdx-plugins"
|
|
10022
|
-
],
|
|
10023
|
-
"isESM": true,
|
|
10024
|
-
"relativePath": [
|
|
10025
|
-
"lib",
|
|
10026
|
-
"commands",
|
|
10027
|
-
"hardis",
|
|
10028
|
-
"project",
|
|
10029
|
-
"convert",
|
|
10030
|
-
"profilestopermsets.js"
|
|
10031
|
-
],
|
|
10032
|
-
"aliasPermutations": [],
|
|
10033
|
-
"permutations": [
|
|
10034
|
-
"hardis:project:convert:profilestopermsets",
|
|
10035
|
-
"project:hardis:convert:profilestopermsets",
|
|
10036
|
-
"project:convert:hardis:profilestopermsets",
|
|
10037
|
-
"project:convert:profilestopermsets:hardis",
|
|
10038
|
-
"hardis:convert:project:profilestopermsets",
|
|
10039
|
-
"convert:hardis:project:profilestopermsets",
|
|
10040
|
-
"convert:project:hardis:profilestopermsets",
|
|
10041
|
-
"convert:project:profilestopermsets:hardis",
|
|
10042
|
-
"hardis:convert:profilestopermsets:project",
|
|
10043
|
-
"convert:hardis:profilestopermsets:project",
|
|
10044
|
-
"convert:profilestopermsets:hardis:project",
|
|
10045
|
-
"convert:profilestopermsets:project:hardis",
|
|
10046
|
-
"hardis:project:profilestopermsets:convert",
|
|
10047
|
-
"project:hardis:profilestopermsets:convert",
|
|
10048
|
-
"project:profilestopermsets:hardis:convert",
|
|
10049
|
-
"project:profilestopermsets:convert:hardis",
|
|
10050
|
-
"hardis:profilestopermsets:project:convert",
|
|
10051
|
-
"profilestopermsets:hardis:project:convert",
|
|
10052
|
-
"profilestopermsets:project:hardis:convert",
|
|
10053
|
-
"profilestopermsets:project:convert:hardis",
|
|
10054
|
-
"hardis:profilestopermsets:convert:project",
|
|
10055
|
-
"profilestopermsets:hardis:convert:project",
|
|
10056
|
-
"profilestopermsets:convert:hardis:project",
|
|
10057
|
-
"profilestopermsets:convert:project:hardis"
|
|
10058
|
-
]
|
|
10059
|
-
},
|
|
10060
9957
|
"hardis:project:clean:emptyitems": {
|
|
10061
9958
|
"aliases": [],
|
|
10062
9959
|
"args": {},
|
|
@@ -11542,6 +11439,109 @@
|
|
|
11542
11439
|
"xml:clean:project:hardis"
|
|
11543
11440
|
]
|
|
11544
11441
|
},
|
|
11442
|
+
"hardis:project:convert:profilestopermsets": {
|
|
11443
|
+
"aliases": [],
|
|
11444
|
+
"args": {},
|
|
11445
|
+
"description": "\n## Command Behavior\n\n**Converts existing Salesforce Profiles into Permission Sets, facilitating a more granular and recommended security model.**\n\nThis command helps in migrating permissions from Profiles to Permission Sets, which is a best practice for managing user access in Salesforce. It creates a new Permission Set for each specified Profile, adopting a naming convention of `PS_PROFILENAME`.\n\nKey functionalities:\n\n- **Profile to Permission Set Conversion:** Automatically extracts permissions from a Profile and creates a corresponding Permission Set.\n- **Naming Convention:** New Permission Sets are named with a `PS_` prefix followed by the Profile name (e.g., `PS_Standard_User`).\n- **Exclusion Filter:** Allows you to exclude specific Profiles from the conversion process using the `--except` flag.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **External Plugin Integration:** It relies on the `shane-sfdx-plugins` (specifically the `sf shane:profile:convert` command) to perform the actual conversion.\n- **File System Scan:** It reads the contents of the `force-app/main/default/profiles` directory to identify all available Profile metadata files.\n- **Command Execution:** For each identified Profile (that is not excluded), it constructs and executes the `sf shane:profile:convert` command with the appropriate Profile name and desired Permission Set name.\n- **Error Handling:** Includes basic error handling for the external command execution.\n</details>\n",
|
|
11446
|
+
"examples": [
|
|
11447
|
+
"$ sf hardis:project:convert:profilestopermsets"
|
|
11448
|
+
],
|
|
11449
|
+
"flags": {
|
|
11450
|
+
"json": {
|
|
11451
|
+
"description": "Format output as json.",
|
|
11452
|
+
"helpGroup": "GLOBAL",
|
|
11453
|
+
"name": "json",
|
|
11454
|
+
"allowNo": false,
|
|
11455
|
+
"type": "boolean"
|
|
11456
|
+
},
|
|
11457
|
+
"flags-dir": {
|
|
11458
|
+
"helpGroup": "GLOBAL",
|
|
11459
|
+
"name": "flags-dir",
|
|
11460
|
+
"summary": "Import flag values from a directory.",
|
|
11461
|
+
"hasDynamicHelp": false,
|
|
11462
|
+
"multiple": false,
|
|
11463
|
+
"type": "option"
|
|
11464
|
+
},
|
|
11465
|
+
"except": {
|
|
11466
|
+
"char": "e",
|
|
11467
|
+
"description": "List of filters",
|
|
11468
|
+
"name": "except",
|
|
11469
|
+
"default": [],
|
|
11470
|
+
"hasDynamicHelp": false,
|
|
11471
|
+
"multiple": true,
|
|
11472
|
+
"type": "option"
|
|
11473
|
+
},
|
|
11474
|
+
"debug": {
|
|
11475
|
+
"char": "d",
|
|
11476
|
+
"description": "Activate debug mode (more logs)",
|
|
11477
|
+
"name": "debug",
|
|
11478
|
+
"allowNo": false,
|
|
11479
|
+
"type": "boolean"
|
|
11480
|
+
},
|
|
11481
|
+
"websocket": {
|
|
11482
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11483
|
+
"name": "websocket",
|
|
11484
|
+
"hasDynamicHelp": false,
|
|
11485
|
+
"multiple": false,
|
|
11486
|
+
"type": "option"
|
|
11487
|
+
},
|
|
11488
|
+
"skipauth": {
|
|
11489
|
+
"description": "Skip authentication check when a default username is required",
|
|
11490
|
+
"name": "skipauth",
|
|
11491
|
+
"allowNo": false,
|
|
11492
|
+
"type": "boolean"
|
|
11493
|
+
}
|
|
11494
|
+
},
|
|
11495
|
+
"hasDynamicHelp": false,
|
|
11496
|
+
"hiddenAliases": [],
|
|
11497
|
+
"id": "hardis:project:convert:profilestopermsets",
|
|
11498
|
+
"pluginAlias": "sfdx-hardis",
|
|
11499
|
+
"pluginName": "sfdx-hardis",
|
|
11500
|
+
"pluginType": "core",
|
|
11501
|
+
"strict": true,
|
|
11502
|
+
"enableJsonFlag": true,
|
|
11503
|
+
"title": "Convert Profiles into Permission Sets",
|
|
11504
|
+
"requiresProject": true,
|
|
11505
|
+
"requiresSfdxPlugins": [
|
|
11506
|
+
"shane-sfdx-plugins"
|
|
11507
|
+
],
|
|
11508
|
+
"isESM": true,
|
|
11509
|
+
"relativePath": [
|
|
11510
|
+
"lib",
|
|
11511
|
+
"commands",
|
|
11512
|
+
"hardis",
|
|
11513
|
+
"project",
|
|
11514
|
+
"convert",
|
|
11515
|
+
"profilestopermsets.js"
|
|
11516
|
+
],
|
|
11517
|
+
"aliasPermutations": [],
|
|
11518
|
+
"permutations": [
|
|
11519
|
+
"hardis:project:convert:profilestopermsets",
|
|
11520
|
+
"project:hardis:convert:profilestopermsets",
|
|
11521
|
+
"project:convert:hardis:profilestopermsets",
|
|
11522
|
+
"project:convert:profilestopermsets:hardis",
|
|
11523
|
+
"hardis:convert:project:profilestopermsets",
|
|
11524
|
+
"convert:hardis:project:profilestopermsets",
|
|
11525
|
+
"convert:project:hardis:profilestopermsets",
|
|
11526
|
+
"convert:project:profilestopermsets:hardis",
|
|
11527
|
+
"hardis:convert:profilestopermsets:project",
|
|
11528
|
+
"convert:hardis:profilestopermsets:project",
|
|
11529
|
+
"convert:profilestopermsets:hardis:project",
|
|
11530
|
+
"convert:profilestopermsets:project:hardis",
|
|
11531
|
+
"hardis:project:profilestopermsets:convert",
|
|
11532
|
+
"project:hardis:profilestopermsets:convert",
|
|
11533
|
+
"project:profilestopermsets:hardis:convert",
|
|
11534
|
+
"project:profilestopermsets:convert:hardis",
|
|
11535
|
+
"hardis:profilestopermsets:project:convert",
|
|
11536
|
+
"profilestopermsets:hardis:project:convert",
|
|
11537
|
+
"profilestopermsets:project:hardis:convert",
|
|
11538
|
+
"profilestopermsets:project:convert:hardis",
|
|
11539
|
+
"hardis:profilestopermsets:convert:project",
|
|
11540
|
+
"profilestopermsets:hardis:convert:project",
|
|
11541
|
+
"profilestopermsets:convert:hardis:project",
|
|
11542
|
+
"profilestopermsets:convert:project:hardis"
|
|
11543
|
+
]
|
|
11544
|
+
},
|
|
11545
11545
|
"hardis:project:deploy:notify": {
|
|
11546
11546
|
"aliases": [],
|
|
11547
11547
|
"args": {},
|
|
@@ -11626,8 +11626,7 @@
|
|
|
11626
11626
|
"deprecateAliases": true,
|
|
11627
11627
|
"name": "target-org",
|
|
11628
11628
|
"noCacheDefault": true,
|
|
11629
|
-
"
|
|
11630
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
11629
|
+
"summary": "Username or alias of the target org.",
|
|
11631
11630
|
"hasDynamicHelp": true,
|
|
11632
11631
|
"multiple": false,
|
|
11633
11632
|
"type": "option"
|
|
@@ -15505,5 +15504,5 @@
|
|
|
15505
15504
|
]
|
|
15506
15505
|
}
|
|
15507
15506
|
},
|
|
15508
|
-
"version": "6.12.
|
|
15507
|
+
"version": "6.12.5"
|
|
15509
15508
|
}
|