sfdx-hardis 5.10.2-beta202412302032.0 → 5.10.2-beta202412302307.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/defaults/monitoring/.gitlab-ci.yml +1 -0
- package/lib/common/gitProvider/utilsMarkdown.js +1 -1
- package/lib/common/gitProvider/utilsMarkdown.js.map +1 -1
- package/lib/common/utils/deployUtils.js +2 -0
- package/lib/common/utils/deployUtils.js.map +1 -1
- package/lib/common/utils/flowVisualiser/nodeFormatUtils.js +11 -0
- package/lib/common/utils/flowVisualiser/nodeFormatUtils.js.map +1 -1
- package/lib/common/utils/gitUtils.js +10 -4
- package/lib/common/utils/gitUtils.js.map +1 -1
- package/oclif.manifest.json +536 -536
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -4889,15 +4889,12 @@
|
|
|
4889
4889
|
"import:data:org:hardis"
|
|
4890
4890
|
]
|
|
4891
4891
|
},
|
|
4892
|
-
"hardis:org:
|
|
4892
|
+
"hardis:org:files:export": {
|
|
4893
4893
|
"aliases": [],
|
|
4894
4894
|
"args": {},
|
|
4895
|
-
"description": "Export
|
|
4895
|
+
"description": "Export file attachments from a Salesforce org\n\nSee article below\n\n[](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n",
|
|
4896
4896
|
"examples": [
|
|
4897
|
-
"$ sf hardis:org:
|
|
4898
|
-
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
|
|
4899
|
-
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
|
|
4900
|
-
"$ sf hardis:org:diagnose:audittrail --lastndays 5"
|
|
4897
|
+
"$ sf hardis:org:files:export"
|
|
4901
4898
|
],
|
|
4902
4899
|
"flags": {
|
|
4903
4900
|
"json": {
|
|
@@ -4915,26 +4912,37 @@
|
|
|
4915
4912
|
"multiple": false,
|
|
4916
4913
|
"type": "option"
|
|
4917
4914
|
},
|
|
4918
|
-
"
|
|
4919
|
-
"char": "
|
|
4920
|
-
"description": "
|
|
4921
|
-
"name": "
|
|
4915
|
+
"path": {
|
|
4916
|
+
"char": "p",
|
|
4917
|
+
"description": "Path to the file export project",
|
|
4918
|
+
"name": "path",
|
|
4922
4919
|
"hasDynamicHelp": false,
|
|
4923
4920
|
"multiple": false,
|
|
4924
4921
|
"type": "option"
|
|
4925
4922
|
},
|
|
4926
|
-
"
|
|
4923
|
+
"chunksize": {
|
|
4924
|
+
"char": "c",
|
|
4925
|
+
"description": "Number of records to add in a chunk before it is processed",
|
|
4926
|
+
"name": "chunksize",
|
|
4927
|
+
"default": 1000,
|
|
4928
|
+
"hasDynamicHelp": false,
|
|
4929
|
+
"multiple": false,
|
|
4930
|
+
"type": "option"
|
|
4931
|
+
},
|
|
4932
|
+
"polltimeout": {
|
|
4927
4933
|
"char": "t",
|
|
4928
|
-
"description": "
|
|
4929
|
-
"name": "
|
|
4934
|
+
"description": "Timeout in MS for Bulk API calls",
|
|
4935
|
+
"name": "polltimeout",
|
|
4936
|
+
"default": 300000,
|
|
4930
4937
|
"hasDynamicHelp": false,
|
|
4931
4938
|
"multiple": false,
|
|
4932
4939
|
"type": "option"
|
|
4933
4940
|
},
|
|
4934
|
-
"
|
|
4935
|
-
"char": "
|
|
4936
|
-
"description": "
|
|
4937
|
-
"name": "
|
|
4941
|
+
"startchunknumber": {
|
|
4942
|
+
"char": "s",
|
|
4943
|
+
"description": "Chunk number to start from",
|
|
4944
|
+
"name": "startchunknumber",
|
|
4945
|
+
"default": 0,
|
|
4938
4946
|
"hasDynamicHelp": false,
|
|
4939
4947
|
"multiple": false,
|
|
4940
4948
|
"type": "option"
|
|
@@ -4977,13 +4985,13 @@
|
|
|
4977
4985
|
},
|
|
4978
4986
|
"hasDynamicHelp": true,
|
|
4979
4987
|
"hiddenAliases": [],
|
|
4980
|
-
"id": "hardis:org:
|
|
4988
|
+
"id": "hardis:org:files:export",
|
|
4981
4989
|
"pluginAlias": "sfdx-hardis",
|
|
4982
4990
|
"pluginName": "sfdx-hardis",
|
|
4983
4991
|
"pluginType": "core",
|
|
4984
4992
|
"strict": true,
|
|
4985
4993
|
"enableJsonFlag": true,
|
|
4986
|
-
"title": "
|
|
4994
|
+
"title": "Export files",
|
|
4987
4995
|
"requiresProject": false,
|
|
4988
4996
|
"isESM": true,
|
|
4989
4997
|
"relativePath": [
|
|
@@ -4991,43 +4999,43 @@
|
|
|
4991
4999
|
"commands",
|
|
4992
5000
|
"hardis",
|
|
4993
5001
|
"org",
|
|
4994
|
-
"
|
|
4995
|
-
"
|
|
5002
|
+
"files",
|
|
5003
|
+
"export.js"
|
|
4996
5004
|
],
|
|
4997
5005
|
"aliasPermutations": [],
|
|
4998
5006
|
"permutations": [
|
|
4999
|
-
"hardis:org:
|
|
5000
|
-
"org:hardis:
|
|
5001
|
-
"org:
|
|
5002
|
-
"org:
|
|
5003
|
-
"hardis:
|
|
5004
|
-
"
|
|
5005
|
-
"
|
|
5006
|
-
"
|
|
5007
|
-
"hardis:
|
|
5008
|
-
"
|
|
5009
|
-
"
|
|
5010
|
-
"
|
|
5011
|
-
"hardis:org:
|
|
5012
|
-
"org:hardis:
|
|
5013
|
-
"org:
|
|
5014
|
-
"org:
|
|
5015
|
-
"hardis:
|
|
5016
|
-
"
|
|
5017
|
-
"
|
|
5018
|
-
"
|
|
5019
|
-
"hardis:
|
|
5020
|
-
"
|
|
5021
|
-
"
|
|
5022
|
-
"
|
|
5007
|
+
"hardis:org:files:export",
|
|
5008
|
+
"org:hardis:files:export",
|
|
5009
|
+
"org:files:hardis:export",
|
|
5010
|
+
"org:files:export:hardis",
|
|
5011
|
+
"hardis:files:org:export",
|
|
5012
|
+
"files:hardis:org:export",
|
|
5013
|
+
"files:org:hardis:export",
|
|
5014
|
+
"files:org:export:hardis",
|
|
5015
|
+
"hardis:files:export:org",
|
|
5016
|
+
"files:hardis:export:org",
|
|
5017
|
+
"files:export:hardis:org",
|
|
5018
|
+
"files:export:org:hardis",
|
|
5019
|
+
"hardis:org:export:files",
|
|
5020
|
+
"org:hardis:export:files",
|
|
5021
|
+
"org:export:hardis:files",
|
|
5022
|
+
"org:export:files:hardis",
|
|
5023
|
+
"hardis:export:org:files",
|
|
5024
|
+
"export:hardis:org:files",
|
|
5025
|
+
"export:org:hardis:files",
|
|
5026
|
+
"export:org:files:hardis",
|
|
5027
|
+
"hardis:export:files:org",
|
|
5028
|
+
"export:hardis:files:org",
|
|
5029
|
+
"export:files:hardis:org",
|
|
5030
|
+
"export:files:org:hardis"
|
|
5023
5031
|
]
|
|
5024
5032
|
},
|
|
5025
|
-
"hardis:org:
|
|
5033
|
+
"hardis:org:files:import": {
|
|
5026
5034
|
"aliases": [],
|
|
5027
5035
|
"args": {},
|
|
5028
|
-
"description": "
|
|
5036
|
+
"description": "Import file attachments into a Salesforce org\n\nSee article below to see how to Export them.\n\n[](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n",
|
|
5029
5037
|
"examples": [
|
|
5030
|
-
"$ sf hardis:org:
|
|
5038
|
+
"$ sf hardis:org:files:import"
|
|
5031
5039
|
],
|
|
5032
5040
|
"flags": {
|
|
5033
5041
|
"json": {
|
|
@@ -5045,6 +5053,21 @@
|
|
|
5045
5053
|
"multiple": false,
|
|
5046
5054
|
"type": "option"
|
|
5047
5055
|
},
|
|
5056
|
+
"path": {
|
|
5057
|
+
"char": "p",
|
|
5058
|
+
"description": "Path to the file export project",
|
|
5059
|
+
"name": "path",
|
|
5060
|
+
"hasDynamicHelp": false,
|
|
5061
|
+
"multiple": false,
|
|
5062
|
+
"type": "option"
|
|
5063
|
+
},
|
|
5064
|
+
"overwrite": {
|
|
5065
|
+
"char": "f",
|
|
5066
|
+
"description": "Override existing files (doubles the number of API calls)",
|
|
5067
|
+
"name": "overwrite",
|
|
5068
|
+
"allowNo": false,
|
|
5069
|
+
"type": "boolean"
|
|
5070
|
+
},
|
|
5048
5071
|
"debug": {
|
|
5049
5072
|
"char": "d",
|
|
5050
5073
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5083,13 +5106,13 @@
|
|
|
5083
5106
|
},
|
|
5084
5107
|
"hasDynamicHelp": true,
|
|
5085
5108
|
"hiddenAliases": [],
|
|
5086
|
-
"id": "hardis:org:
|
|
5109
|
+
"id": "hardis:org:files:import",
|
|
5087
5110
|
"pluginAlias": "sfdx-hardis",
|
|
5088
5111
|
"pluginName": "sfdx-hardis",
|
|
5089
5112
|
"pluginType": "core",
|
|
5090
5113
|
"strict": true,
|
|
5091
5114
|
"enableJsonFlag": true,
|
|
5092
|
-
"title": "
|
|
5115
|
+
"title": "Import files",
|
|
5093
5116
|
"requiresProject": false,
|
|
5094
5117
|
"isESM": true,
|
|
5095
5118
|
"relativePath": [
|
|
@@ -5097,46 +5120,46 @@
|
|
|
5097
5120
|
"commands",
|
|
5098
5121
|
"hardis",
|
|
5099
5122
|
"org",
|
|
5100
|
-
"
|
|
5101
|
-
"
|
|
5123
|
+
"files",
|
|
5124
|
+
"import.js"
|
|
5102
5125
|
],
|
|
5103
5126
|
"aliasPermutations": [],
|
|
5104
5127
|
"permutations": [
|
|
5105
|
-
"hardis:org:
|
|
5106
|
-
"org:hardis:
|
|
5107
|
-
"org:
|
|
5108
|
-
"org:
|
|
5109
|
-
"hardis:
|
|
5110
|
-
"
|
|
5111
|
-
"
|
|
5112
|
-
"
|
|
5113
|
-
"hardis:
|
|
5114
|
-
"
|
|
5115
|
-
"
|
|
5116
|
-
"
|
|
5117
|
-
"hardis:org:
|
|
5118
|
-
"org:hardis:
|
|
5119
|
-
"org:
|
|
5120
|
-
"org:
|
|
5121
|
-
"hardis:
|
|
5122
|
-
"
|
|
5123
|
-
"
|
|
5124
|
-
"
|
|
5125
|
-
"hardis:
|
|
5126
|
-
"
|
|
5127
|
-
"
|
|
5128
|
-
"
|
|
5128
|
+
"hardis:org:files:import",
|
|
5129
|
+
"org:hardis:files:import",
|
|
5130
|
+
"org:files:hardis:import",
|
|
5131
|
+
"org:files:import:hardis",
|
|
5132
|
+
"hardis:files:org:import",
|
|
5133
|
+
"files:hardis:org:import",
|
|
5134
|
+
"files:org:hardis:import",
|
|
5135
|
+
"files:org:import:hardis",
|
|
5136
|
+
"hardis:files:import:org",
|
|
5137
|
+
"files:hardis:import:org",
|
|
5138
|
+
"files:import:hardis:org",
|
|
5139
|
+
"files:import:org:hardis",
|
|
5140
|
+
"hardis:org:import:files",
|
|
5141
|
+
"org:hardis:import:files",
|
|
5142
|
+
"org:import:hardis:files",
|
|
5143
|
+
"org:import:files:hardis",
|
|
5144
|
+
"hardis:import:org:files",
|
|
5145
|
+
"import:hardis:org:files",
|
|
5146
|
+
"import:org:hardis:files",
|
|
5147
|
+
"import:org:files:hardis",
|
|
5148
|
+
"hardis:import:files:org",
|
|
5149
|
+
"import:hardis:files:org",
|
|
5150
|
+
"import:files:hardis:org",
|
|
5151
|
+
"import:files:org:hardis"
|
|
5129
5152
|
]
|
|
5130
5153
|
},
|
|
5131
|
-
"hardis:org:diagnose:
|
|
5154
|
+
"hardis:org:diagnose:audittrail": {
|
|
5132
5155
|
"aliases": [],
|
|
5133
5156
|
"args": {},
|
|
5134
|
-
"description": "
|
|
5157
|
+
"description": "Export Audit trail into a CSV file with selected criteria, and highlight suspect actions\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- Customer Portal\n - createdcustomersuccessuser\n- Currency\n - updateddatedexchrate\n- Data Management\n - queueMembership\n- Email Administration\n - dkimRotationPreparationSuccessful\n - dkimRotationSuccessful\n- Groups\n - groupMembership\n- Holidays\n - holiday_insert\n- Inbox mobile and legacy desktop apps\n - enableSIQUserNonEAC\n- Manage Users\n - activateduser\n - createduser\n - changedcommunitynickname\n - changedemail\n - changedfederationid\n - changedpassword\n - changedinteractionuseroffon\n - changedinteractionuseronoff\n - changedmarketinguseroffon\n - changedmarketinguseronoff\n - changedprofileforuser\n - changedprofileforusercusttostd\n - changedprofileforuserstdtocust\n - changedroleforusertonone\n - changedroleforuser\n - changedroleforuserfromnone\n - changedUserEmailVerifiedStatusUnverified\n - changedUserEmailVerifiedStatusVerified\n - changedUserPhoneNumber\n - changedUserPhoneVerifiedStatusUnverified\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 - 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\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",
|
|
5135
5158
|
"examples": [
|
|
5136
|
-
"$ sf hardis:org:diagnose:
|
|
5137
|
-
"$ sf hardis:org:diagnose:
|
|
5138
|
-
"$ sf hardis:org:diagnose:
|
|
5139
|
-
"$ sf hardis:org:diagnose:
|
|
5159
|
+
"$ sf hardis:org:diagnose:audittrail",
|
|
5160
|
+
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
|
|
5161
|
+
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
|
|
5162
|
+
"$ sf hardis:org:diagnose:audittrail --lastndays 5"
|
|
5140
5163
|
],
|
|
5141
5164
|
"flags": {
|
|
5142
5165
|
"json": {
|
|
@@ -5154,20 +5177,18 @@
|
|
|
5154
5177
|
"multiple": false,
|
|
5155
5178
|
"type": "option"
|
|
5156
5179
|
},
|
|
5157
|
-
"
|
|
5180
|
+
"excludeusers": {
|
|
5158
5181
|
"char": "e",
|
|
5159
|
-
"description": "
|
|
5160
|
-
"name": "
|
|
5161
|
-
"default": "ApiTotalUsage",
|
|
5182
|
+
"description": "Comma-separated list of usernames to exclude",
|
|
5183
|
+
"name": "excludeusers",
|
|
5162
5184
|
"hasDynamicHelp": false,
|
|
5163
5185
|
"multiple": false,
|
|
5164
5186
|
"type": "option"
|
|
5165
5187
|
},
|
|
5166
|
-
"
|
|
5167
|
-
"char": "
|
|
5168
|
-
"description": "Number of
|
|
5169
|
-
"name": "
|
|
5170
|
-
"default": 999,
|
|
5188
|
+
"lastndays": {
|
|
5189
|
+
"char": "t",
|
|
5190
|
+
"description": "Number of days to extract from today (included)",
|
|
5191
|
+
"name": "lastndays",
|
|
5171
5192
|
"hasDynamicHelp": false,
|
|
5172
5193
|
"multiple": false,
|
|
5173
5194
|
"type": "option"
|
|
@@ -5218,13 +5239,13 @@
|
|
|
5218
5239
|
},
|
|
5219
5240
|
"hasDynamicHelp": true,
|
|
5220
5241
|
"hiddenAliases": [],
|
|
5221
|
-
"id": "hardis:org:diagnose:
|
|
5242
|
+
"id": "hardis:org:diagnose:audittrail",
|
|
5222
5243
|
"pluginAlias": "sfdx-hardis",
|
|
5223
5244
|
"pluginName": "sfdx-hardis",
|
|
5224
5245
|
"pluginType": "core",
|
|
5225
5246
|
"strict": true,
|
|
5226
5247
|
"enableJsonFlag": true,
|
|
5227
|
-
"title": "
|
|
5248
|
+
"title": "Diagnose content of Setup Audit Trail",
|
|
5228
5249
|
"requiresProject": false,
|
|
5229
5250
|
"isESM": true,
|
|
5230
5251
|
"relativePath": [
|
|
@@ -5233,74 +5254,59 @@
|
|
|
5233
5254
|
"hardis",
|
|
5234
5255
|
"org",
|
|
5235
5256
|
"diagnose",
|
|
5236
|
-
"
|
|
5257
|
+
"audittrail.js"
|
|
5237
5258
|
],
|
|
5238
5259
|
"aliasPermutations": [],
|
|
5239
5260
|
"permutations": [
|
|
5240
|
-
"hardis:org:diagnose:
|
|
5241
|
-
"org:hardis:diagnose:
|
|
5242
|
-
"org:diagnose:hardis:
|
|
5243
|
-
"org:diagnose:
|
|
5244
|
-
"hardis:diagnose:org:
|
|
5245
|
-
"diagnose:hardis:org:
|
|
5246
|
-
"diagnose:org:hardis:
|
|
5247
|
-
"diagnose:org:
|
|
5248
|
-
"hardis:diagnose:
|
|
5249
|
-
"diagnose:hardis:
|
|
5250
|
-
"diagnose:
|
|
5251
|
-
"diagnose:
|
|
5252
|
-
"hardis:org:
|
|
5253
|
-
"org:hardis:
|
|
5254
|
-
"org:
|
|
5255
|
-
"org:
|
|
5256
|
-
"hardis:
|
|
5257
|
-
"
|
|
5258
|
-
"
|
|
5259
|
-
"
|
|
5260
|
-
"hardis:
|
|
5261
|
-
"
|
|
5262
|
-
"
|
|
5263
|
-
"
|
|
5264
|
-
]
|
|
5265
|
-
},
|
|
5266
|
-
"hardis:org:diagnose:
|
|
5267
|
-
"aliases": [],
|
|
5268
|
-
"args": {},
|
|
5269
|
-
"description": "
|
|
5270
|
-
"examples": [
|
|
5271
|
-
"$ sf hardis:org:diagnose:
|
|
5272
|
-
],
|
|
5273
|
-
"flags": {
|
|
5274
|
-
"json": {
|
|
5275
|
-
"description": "Format output as json.",
|
|
5276
|
-
"helpGroup": "GLOBAL",
|
|
5277
|
-
"name": "json",
|
|
5278
|
-
"allowNo": false,
|
|
5279
|
-
"type": "boolean"
|
|
5280
|
-
},
|
|
5281
|
-
"flags-dir": {
|
|
5282
|
-
"helpGroup": "GLOBAL",
|
|
5283
|
-
"name": "flags-dir",
|
|
5284
|
-
"summary": "Import flag values from a directory.",
|
|
5285
|
-
"hasDynamicHelp": false,
|
|
5286
|
-
"multiple": false,
|
|
5287
|
-
"type": "option"
|
|
5261
|
+
"hardis:org:diagnose:audittrail",
|
|
5262
|
+
"org:hardis:diagnose:audittrail",
|
|
5263
|
+
"org:diagnose:hardis:audittrail",
|
|
5264
|
+
"org:diagnose:audittrail:hardis",
|
|
5265
|
+
"hardis:diagnose:org:audittrail",
|
|
5266
|
+
"diagnose:hardis:org:audittrail",
|
|
5267
|
+
"diagnose:org:hardis:audittrail",
|
|
5268
|
+
"diagnose:org:audittrail:hardis",
|
|
5269
|
+
"hardis:diagnose:audittrail:org",
|
|
5270
|
+
"diagnose:hardis:audittrail:org",
|
|
5271
|
+
"diagnose:audittrail:hardis:org",
|
|
5272
|
+
"diagnose:audittrail:org:hardis",
|
|
5273
|
+
"hardis:org:audittrail:diagnose",
|
|
5274
|
+
"org:hardis:audittrail:diagnose",
|
|
5275
|
+
"org:audittrail:hardis:diagnose",
|
|
5276
|
+
"org:audittrail:diagnose:hardis",
|
|
5277
|
+
"hardis:audittrail:org:diagnose",
|
|
5278
|
+
"audittrail:hardis:org:diagnose",
|
|
5279
|
+
"audittrail:org:hardis:diagnose",
|
|
5280
|
+
"audittrail:org:diagnose:hardis",
|
|
5281
|
+
"hardis:audittrail:diagnose:org",
|
|
5282
|
+
"audittrail:hardis:diagnose:org",
|
|
5283
|
+
"audittrail:diagnose:hardis:org",
|
|
5284
|
+
"audittrail:diagnose:org:hardis"
|
|
5285
|
+
]
|
|
5286
|
+
},
|
|
5287
|
+
"hardis:org:diagnose:instanceupgrade": {
|
|
5288
|
+
"aliases": [],
|
|
5289
|
+
"args": {},
|
|
5290
|
+
"description": "Get the date when the org instance will be upgraded (to Spring, Summer or Winter)\n ",
|
|
5291
|
+
"examples": [
|
|
5292
|
+
"$ sf hardis:org:diagnose:instanceupgrade"
|
|
5293
|
+
],
|
|
5294
|
+
"flags": {
|
|
5295
|
+
"json": {
|
|
5296
|
+
"description": "Format output as json.",
|
|
5297
|
+
"helpGroup": "GLOBAL",
|
|
5298
|
+
"name": "json",
|
|
5299
|
+
"allowNo": false,
|
|
5300
|
+
"type": "boolean"
|
|
5288
5301
|
},
|
|
5289
|
-
"
|
|
5290
|
-
"
|
|
5291
|
-
"
|
|
5292
|
-
"
|
|
5302
|
+
"flags-dir": {
|
|
5303
|
+
"helpGroup": "GLOBAL",
|
|
5304
|
+
"name": "flags-dir",
|
|
5305
|
+
"summary": "Import flag values from a directory.",
|
|
5293
5306
|
"hasDynamicHelp": false,
|
|
5294
5307
|
"multiple": false,
|
|
5295
5308
|
"type": "option"
|
|
5296
5309
|
},
|
|
5297
|
-
"usedonly": {
|
|
5298
|
-
"char": "u",
|
|
5299
|
-
"description": "Filter to have only used licenses",
|
|
5300
|
-
"name": "usedonly",
|
|
5301
|
-
"allowNo": false,
|
|
5302
|
-
"type": "boolean"
|
|
5303
|
-
},
|
|
5304
5310
|
"debug": {
|
|
5305
5311
|
"char": "d",
|
|
5306
5312
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5339,13 +5345,13 @@
|
|
|
5339
5345
|
},
|
|
5340
5346
|
"hasDynamicHelp": true,
|
|
5341
5347
|
"hiddenAliases": [],
|
|
5342
|
-
"id": "hardis:org:diagnose:
|
|
5348
|
+
"id": "hardis:org:diagnose:instanceupgrade",
|
|
5343
5349
|
"pluginAlias": "sfdx-hardis",
|
|
5344
5350
|
"pluginName": "sfdx-hardis",
|
|
5345
5351
|
"pluginType": "core",
|
|
5346
5352
|
"strict": true,
|
|
5347
5353
|
"enableJsonFlag": true,
|
|
5348
|
-
"title": "
|
|
5354
|
+
"title": "Get Instance Upgrade date",
|
|
5349
5355
|
"requiresProject": false,
|
|
5350
5356
|
"isESM": true,
|
|
5351
5357
|
"relativePath": [
|
|
@@ -5354,42 +5360,45 @@
|
|
|
5354
5360
|
"hardis",
|
|
5355
5361
|
"org",
|
|
5356
5362
|
"diagnose",
|
|
5357
|
-
"
|
|
5363
|
+
"instanceupgrade.js"
|
|
5358
5364
|
],
|
|
5359
5365
|
"aliasPermutations": [],
|
|
5360
5366
|
"permutations": [
|
|
5361
|
-
"hardis:org:diagnose:
|
|
5362
|
-
"org:hardis:diagnose:
|
|
5363
|
-
"org:diagnose:hardis:
|
|
5364
|
-
"org:diagnose:
|
|
5365
|
-
"hardis:diagnose:org:
|
|
5366
|
-
"diagnose:hardis:org:
|
|
5367
|
-
"diagnose:org:hardis:
|
|
5368
|
-
"diagnose:org:
|
|
5369
|
-
"hardis:diagnose:
|
|
5370
|
-
"diagnose:hardis:
|
|
5371
|
-
"diagnose:
|
|
5372
|
-
"diagnose:
|
|
5373
|
-
"hardis:org:
|
|
5374
|
-
"org:hardis:
|
|
5375
|
-
"org:
|
|
5376
|
-
"org:
|
|
5377
|
-
"hardis:
|
|
5378
|
-
"
|
|
5379
|
-
"
|
|
5380
|
-
"
|
|
5381
|
-
"hardis:
|
|
5382
|
-
"
|
|
5383
|
-
"
|
|
5384
|
-
"
|
|
5367
|
+
"hardis:org:diagnose:instanceupgrade",
|
|
5368
|
+
"org:hardis:diagnose:instanceupgrade",
|
|
5369
|
+
"org:diagnose:hardis:instanceupgrade",
|
|
5370
|
+
"org:diagnose:instanceupgrade:hardis",
|
|
5371
|
+
"hardis:diagnose:org:instanceupgrade",
|
|
5372
|
+
"diagnose:hardis:org:instanceupgrade",
|
|
5373
|
+
"diagnose:org:hardis:instanceupgrade",
|
|
5374
|
+
"diagnose:org:instanceupgrade:hardis",
|
|
5375
|
+
"hardis:diagnose:instanceupgrade:org",
|
|
5376
|
+
"diagnose:hardis:instanceupgrade:org",
|
|
5377
|
+
"diagnose:instanceupgrade:hardis:org",
|
|
5378
|
+
"diagnose:instanceupgrade:org:hardis",
|
|
5379
|
+
"hardis:org:instanceupgrade:diagnose",
|
|
5380
|
+
"org:hardis:instanceupgrade:diagnose",
|
|
5381
|
+
"org:instanceupgrade:hardis:diagnose",
|
|
5382
|
+
"org:instanceupgrade:diagnose:hardis",
|
|
5383
|
+
"hardis:instanceupgrade:org:diagnose",
|
|
5384
|
+
"instanceupgrade:hardis:org:diagnose",
|
|
5385
|
+
"instanceupgrade:org:hardis:diagnose",
|
|
5386
|
+
"instanceupgrade:org:diagnose:hardis",
|
|
5387
|
+
"hardis:instanceupgrade:diagnose:org",
|
|
5388
|
+
"instanceupgrade:hardis:diagnose:org",
|
|
5389
|
+
"instanceupgrade:diagnose:hardis:org",
|
|
5390
|
+
"instanceupgrade:diagnose:org:hardis"
|
|
5385
5391
|
]
|
|
5386
5392
|
},
|
|
5387
|
-
"hardis:org:diagnose:
|
|
5393
|
+
"hardis:org:diagnose:legacyapi": {
|
|
5388
5394
|
"aliases": [],
|
|
5389
5395
|
"args": {},
|
|
5390
|
-
"description": "
|
|
5396
|
+
"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",
|
|
5391
5397
|
"examples": [
|
|
5392
|
-
"$ sf hardis:org:diagnose:
|
|
5398
|
+
"$ sf hardis:org:diagnose:legacyapi",
|
|
5399
|
+
"$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com",
|
|
5400
|
+
"$ sf hardis:org:diagnose:legacyapi --outputfile 'c:/path/to/folder/legacyapi.csv'",
|
|
5401
|
+
"$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com --outputfile ./tmp/legacyapi.csv"
|
|
5393
5402
|
],
|
|
5394
5403
|
"flags": {
|
|
5395
5404
|
"json": {
|
|
@@ -5407,6 +5416,24 @@
|
|
|
5407
5416
|
"multiple": false,
|
|
5408
5417
|
"type": "option"
|
|
5409
5418
|
},
|
|
5419
|
+
"eventtype": {
|
|
5420
|
+
"char": "e",
|
|
5421
|
+
"description": "Type of EventLogFile event to analyze",
|
|
5422
|
+
"name": "eventtype",
|
|
5423
|
+
"default": "ApiTotalUsage",
|
|
5424
|
+
"hasDynamicHelp": false,
|
|
5425
|
+
"multiple": false,
|
|
5426
|
+
"type": "option"
|
|
5427
|
+
},
|
|
5428
|
+
"limit": {
|
|
5429
|
+
"char": "l",
|
|
5430
|
+
"description": "Number of latest EventLogFile events to analyze",
|
|
5431
|
+
"name": "limit",
|
|
5432
|
+
"default": 999,
|
|
5433
|
+
"hasDynamicHelp": false,
|
|
5434
|
+
"multiple": false,
|
|
5435
|
+
"type": "option"
|
|
5436
|
+
},
|
|
5410
5437
|
"outputfile": {
|
|
5411
5438
|
"char": "f",
|
|
5412
5439
|
"description": "Force the path and name of output report file. Must end with .csv",
|
|
@@ -5453,13 +5480,13 @@
|
|
|
5453
5480
|
},
|
|
5454
5481
|
"hasDynamicHelp": true,
|
|
5455
5482
|
"hiddenAliases": [],
|
|
5456
|
-
"id": "hardis:org:diagnose:
|
|
5483
|
+
"id": "hardis:org:diagnose:legacyapi",
|
|
5457
5484
|
"pluginAlias": "sfdx-hardis",
|
|
5458
5485
|
"pluginName": "sfdx-hardis",
|
|
5459
5486
|
"pluginType": "core",
|
|
5460
5487
|
"strict": true,
|
|
5461
5488
|
"enableJsonFlag": true,
|
|
5462
|
-
"title": "Check
|
|
5489
|
+
"title": "Check for legacy API use",
|
|
5463
5490
|
"requiresProject": false,
|
|
5464
5491
|
"isESM": true,
|
|
5465
5492
|
"relativePath": [
|
|
@@ -5468,43 +5495,42 @@
|
|
|
5468
5495
|
"hardis",
|
|
5469
5496
|
"org",
|
|
5470
5497
|
"diagnose",
|
|
5471
|
-
"
|
|
5498
|
+
"legacyapi.js"
|
|
5472
5499
|
],
|
|
5473
5500
|
"aliasPermutations": [],
|
|
5474
5501
|
"permutations": [
|
|
5475
|
-
"hardis:org:diagnose:
|
|
5476
|
-
"org:hardis:diagnose:
|
|
5477
|
-
"org:diagnose:hardis:
|
|
5478
|
-
"org:diagnose:
|
|
5479
|
-
"hardis:diagnose:org:
|
|
5480
|
-
"diagnose:hardis:org:
|
|
5481
|
-
"diagnose:org:hardis:
|
|
5482
|
-
"diagnose:org:
|
|
5483
|
-
"hardis:diagnose:
|
|
5484
|
-
"diagnose:hardis:
|
|
5485
|
-
"diagnose:
|
|
5486
|
-
"diagnose:
|
|
5487
|
-
"hardis:org:
|
|
5488
|
-
"org:hardis:
|
|
5489
|
-
"org:
|
|
5490
|
-
"org:
|
|
5491
|
-
"hardis:
|
|
5492
|
-
"
|
|
5493
|
-
"
|
|
5494
|
-
"
|
|
5495
|
-
"hardis:
|
|
5496
|
-
"
|
|
5497
|
-
"
|
|
5498
|
-
"
|
|
5502
|
+
"hardis:org:diagnose:legacyapi",
|
|
5503
|
+
"org:hardis:diagnose:legacyapi",
|
|
5504
|
+
"org:diagnose:hardis:legacyapi",
|
|
5505
|
+
"org:diagnose:legacyapi:hardis",
|
|
5506
|
+
"hardis:diagnose:org:legacyapi",
|
|
5507
|
+
"diagnose:hardis:org:legacyapi",
|
|
5508
|
+
"diagnose:org:hardis:legacyapi",
|
|
5509
|
+
"diagnose:org:legacyapi:hardis",
|
|
5510
|
+
"hardis:diagnose:legacyapi:org",
|
|
5511
|
+
"diagnose:hardis:legacyapi:org",
|
|
5512
|
+
"diagnose:legacyapi:hardis:org",
|
|
5513
|
+
"diagnose:legacyapi:org:hardis",
|
|
5514
|
+
"hardis:org:legacyapi:diagnose",
|
|
5515
|
+
"org:hardis:legacyapi:diagnose",
|
|
5516
|
+
"org:legacyapi:hardis:diagnose",
|
|
5517
|
+
"org:legacyapi:diagnose:hardis",
|
|
5518
|
+
"hardis:legacyapi:org:diagnose",
|
|
5519
|
+
"legacyapi:hardis:org:diagnose",
|
|
5520
|
+
"legacyapi:org:hardis:diagnose",
|
|
5521
|
+
"legacyapi:org:diagnose:hardis",
|
|
5522
|
+
"hardis:legacyapi:diagnose:org",
|
|
5523
|
+
"legacyapi:hardis:diagnose:org",
|
|
5524
|
+
"legacyapi:diagnose:hardis:org",
|
|
5525
|
+
"legacyapi:diagnose:org:hardis"
|
|
5499
5526
|
]
|
|
5500
5527
|
},
|
|
5501
|
-
"hardis:org:diagnose:
|
|
5528
|
+
"hardis:org:diagnose:licenses": {
|
|
5502
5529
|
"aliases": [],
|
|
5503
5530
|
"args": {},
|
|
5504
|
-
"description": "
|
|
5531
|
+
"description": "Mostly used for monitoring (Grafana) but you can also use it manually :)",
|
|
5505
5532
|
"examples": [
|
|
5506
|
-
"$ sf hardis:org:diagnose:
|
|
5507
|
-
"$ sf hardis:org:diagnose:unused-apex-classes --days 700"
|
|
5533
|
+
"$ sf hardis:org:diagnose:licenses"
|
|
5508
5534
|
],
|
|
5509
5535
|
"flags": {
|
|
5510
5536
|
"json": {
|
|
@@ -5530,13 +5556,12 @@
|
|
|
5530
5556
|
"multiple": false,
|
|
5531
5557
|
"type": "option"
|
|
5532
5558
|
},
|
|
5533
|
-
"
|
|
5534
|
-
"char": "
|
|
5535
|
-
"description": "
|
|
5536
|
-
"name": "
|
|
5537
|
-
"
|
|
5538
|
-
"
|
|
5539
|
-
"type": "option"
|
|
5559
|
+
"usedonly": {
|
|
5560
|
+
"char": "u",
|
|
5561
|
+
"description": "Filter to have only used licenses",
|
|
5562
|
+
"name": "usedonly",
|
|
5563
|
+
"allowNo": false,
|
|
5564
|
+
"type": "boolean"
|
|
5540
5565
|
},
|
|
5541
5566
|
"debug": {
|
|
5542
5567
|
"char": "d",
|
|
@@ -5576,13 +5601,13 @@
|
|
|
5576
5601
|
},
|
|
5577
5602
|
"hasDynamicHelp": true,
|
|
5578
5603
|
"hiddenAliases": [],
|
|
5579
|
-
"id": "hardis:org:diagnose:
|
|
5604
|
+
"id": "hardis:org:diagnose:licenses",
|
|
5580
5605
|
"pluginAlias": "sfdx-hardis",
|
|
5581
5606
|
"pluginName": "sfdx-hardis",
|
|
5582
5607
|
"pluginType": "core",
|
|
5583
5608
|
"strict": true,
|
|
5584
5609
|
"enableJsonFlag": true,
|
|
5585
|
-
"title": "
|
|
5610
|
+
"title": "List licenses subscribed and used in a Salesforce org",
|
|
5586
5611
|
"requiresProject": false,
|
|
5587
5612
|
"isESM": true,
|
|
5588
5613
|
"relativePath": [
|
|
@@ -5591,49 +5616,49 @@
|
|
|
5591
5616
|
"hardis",
|
|
5592
5617
|
"org",
|
|
5593
5618
|
"diagnose",
|
|
5594
|
-
"
|
|
5619
|
+
"licenses.js"
|
|
5595
5620
|
],
|
|
5596
5621
|
"aliasPermutations": [],
|
|
5597
5622
|
"permutations": [
|
|
5598
|
-
"hardis:org:diagnose:
|
|
5599
|
-
"org:hardis:diagnose:
|
|
5600
|
-
"org:diagnose:hardis:
|
|
5601
|
-
"org:diagnose:
|
|
5602
|
-
"hardis:diagnose:org:
|
|
5603
|
-
"diagnose:hardis:org:
|
|
5604
|
-
"diagnose:org:hardis:
|
|
5605
|
-
"diagnose:org:
|
|
5606
|
-
"hardis:diagnose:
|
|
5607
|
-
"diagnose:hardis:
|
|
5608
|
-
"diagnose:
|
|
5609
|
-
"diagnose:
|
|
5610
|
-
"hardis:org:
|
|
5611
|
-
"org:hardis:
|
|
5612
|
-
"org:
|
|
5613
|
-
"org:
|
|
5614
|
-
"hardis:
|
|
5615
|
-
"
|
|
5616
|
-
"
|
|
5617
|
-
"
|
|
5618
|
-
"hardis:
|
|
5619
|
-
"
|
|
5620
|
-
"
|
|
5621
|
-
"
|
|
5622
|
-
]
|
|
5623
|
-
},
|
|
5624
|
-
"hardis:org:diagnose:
|
|
5625
|
-
"aliases": [],
|
|
5626
|
-
"args": {},
|
|
5627
|
-
"description": "
|
|
5628
|
-
"examples": [
|
|
5629
|
-
"$ sf hardis:org:diagnose:
|
|
5630
|
-
],
|
|
5631
|
-
"flags": {
|
|
5632
|
-
"json": {
|
|
5633
|
-
"description": "Format output as json.",
|
|
5634
|
-
"helpGroup": "GLOBAL",
|
|
5635
|
-
"name": "json",
|
|
5636
|
-
"allowNo": false,
|
|
5623
|
+
"hardis:org:diagnose:licenses",
|
|
5624
|
+
"org:hardis:diagnose:licenses",
|
|
5625
|
+
"org:diagnose:hardis:licenses",
|
|
5626
|
+
"org:diagnose:licenses:hardis",
|
|
5627
|
+
"hardis:diagnose:org:licenses",
|
|
5628
|
+
"diagnose:hardis:org:licenses",
|
|
5629
|
+
"diagnose:org:hardis:licenses",
|
|
5630
|
+
"diagnose:org:licenses:hardis",
|
|
5631
|
+
"hardis:diagnose:licenses:org",
|
|
5632
|
+
"diagnose:hardis:licenses:org",
|
|
5633
|
+
"diagnose:licenses:hardis:org",
|
|
5634
|
+
"diagnose:licenses:org:hardis",
|
|
5635
|
+
"hardis:org:licenses:diagnose",
|
|
5636
|
+
"org:hardis:licenses:diagnose",
|
|
5637
|
+
"org:licenses:hardis:diagnose",
|
|
5638
|
+
"org:licenses:diagnose:hardis",
|
|
5639
|
+
"hardis:licenses:org:diagnose",
|
|
5640
|
+
"licenses:hardis:org:diagnose",
|
|
5641
|
+
"licenses:org:hardis:diagnose",
|
|
5642
|
+
"licenses:org:diagnose:hardis",
|
|
5643
|
+
"hardis:licenses:diagnose:org",
|
|
5644
|
+
"licenses:hardis:diagnose:org",
|
|
5645
|
+
"licenses:diagnose:hardis:org",
|
|
5646
|
+
"licenses:diagnose:org:hardis"
|
|
5647
|
+
]
|
|
5648
|
+
},
|
|
5649
|
+
"hardis:org:diagnose:releaseupdates": {
|
|
5650
|
+
"aliases": [],
|
|
5651
|
+
"args": {},
|
|
5652
|
+
"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",
|
|
5653
|
+
"examples": [
|
|
5654
|
+
"$ sf hardis:org:diagnose:releaseupdates"
|
|
5655
|
+
],
|
|
5656
|
+
"flags": {
|
|
5657
|
+
"json": {
|
|
5658
|
+
"description": "Format output as json.",
|
|
5659
|
+
"helpGroup": "GLOBAL",
|
|
5660
|
+
"name": "json",
|
|
5661
|
+
"allowNo": false,
|
|
5637
5662
|
"type": "boolean"
|
|
5638
5663
|
},
|
|
5639
5664
|
"flags-dir": {
|
|
@@ -5690,30 +5715,13 @@
|
|
|
5690
5715
|
},
|
|
5691
5716
|
"hasDynamicHelp": true,
|
|
5692
5717
|
"hiddenAliases": [],
|
|
5693
|
-
"id": "hardis:org:diagnose:
|
|
5718
|
+
"id": "hardis:org:diagnose:releaseupdates",
|
|
5694
5719
|
"pluginAlias": "sfdx-hardis",
|
|
5695
5720
|
"pluginName": "sfdx-hardis",
|
|
5696
5721
|
"pluginType": "core",
|
|
5697
5722
|
"strict": true,
|
|
5698
5723
|
"enableJsonFlag": true,
|
|
5699
|
-
"title": "
|
|
5700
|
-
"allowedInactiveConnectedApps": [
|
|
5701
|
-
"Ant Migration Tool",
|
|
5702
|
-
"Chatter Desktop",
|
|
5703
|
-
"Chatter Mobile for BlackBerry",
|
|
5704
|
-
"Force.com IDE",
|
|
5705
|
-
"OIQ_Integration",
|
|
5706
|
-
"Salesforce CLI",
|
|
5707
|
-
"Salesforce Files",
|
|
5708
|
-
"Salesforce Mobile Dashboards",
|
|
5709
|
-
"Salesforce Touch",
|
|
5710
|
-
"Salesforce for Outlook",
|
|
5711
|
-
"SalesforceA",
|
|
5712
|
-
"SalesforceA for Android",
|
|
5713
|
-
"SalesforceA for iOS",
|
|
5714
|
-
"SalesforceDX Namespace Registry",
|
|
5715
|
-
"SalesforceIQ"
|
|
5716
|
-
],
|
|
5724
|
+
"title": "Check Release Updates of an org",
|
|
5717
5725
|
"requiresProject": false,
|
|
5718
5726
|
"isESM": true,
|
|
5719
5727
|
"relativePath": [
|
|
@@ -5722,43 +5730,43 @@
|
|
|
5722
5730
|
"hardis",
|
|
5723
5731
|
"org",
|
|
5724
5732
|
"diagnose",
|
|
5725
|
-
"
|
|
5733
|
+
"releaseupdates.js"
|
|
5726
5734
|
],
|
|
5727
5735
|
"aliasPermutations": [],
|
|
5728
5736
|
"permutations": [
|
|
5729
|
-
"hardis:org:diagnose:
|
|
5730
|
-
"org:hardis:diagnose:
|
|
5731
|
-
"org:diagnose:hardis:
|
|
5732
|
-
"org:diagnose:
|
|
5733
|
-
"hardis:diagnose:org:
|
|
5734
|
-
"diagnose:hardis:org:
|
|
5735
|
-
"diagnose:org:hardis:
|
|
5736
|
-
"diagnose:org:
|
|
5737
|
-
"hardis:diagnose:
|
|
5738
|
-
"diagnose:hardis:
|
|
5739
|
-
"diagnose:
|
|
5740
|
-
"diagnose:
|
|
5741
|
-
"hardis:org:
|
|
5742
|
-
"org:hardis:
|
|
5743
|
-
"org:
|
|
5744
|
-
"org:
|
|
5745
|
-
"hardis:
|
|
5746
|
-
"
|
|
5747
|
-
"
|
|
5748
|
-
"
|
|
5749
|
-
"hardis:
|
|
5750
|
-
"
|
|
5751
|
-
"
|
|
5752
|
-
"
|
|
5737
|
+
"hardis:org:diagnose:releaseupdates",
|
|
5738
|
+
"org:hardis:diagnose:releaseupdates",
|
|
5739
|
+
"org:diagnose:hardis:releaseupdates",
|
|
5740
|
+
"org:diagnose:releaseupdates:hardis",
|
|
5741
|
+
"hardis:diagnose:org:releaseupdates",
|
|
5742
|
+
"diagnose:hardis:org:releaseupdates",
|
|
5743
|
+
"diagnose:org:hardis:releaseupdates",
|
|
5744
|
+
"diagnose:org:releaseupdates:hardis",
|
|
5745
|
+
"hardis:diagnose:releaseupdates:org",
|
|
5746
|
+
"diagnose:hardis:releaseupdates:org",
|
|
5747
|
+
"diagnose:releaseupdates:hardis:org",
|
|
5748
|
+
"diagnose:releaseupdates:org:hardis",
|
|
5749
|
+
"hardis:org:releaseupdates:diagnose",
|
|
5750
|
+
"org:hardis:releaseupdates:diagnose",
|
|
5751
|
+
"org:releaseupdates:hardis:diagnose",
|
|
5752
|
+
"org:releaseupdates:diagnose:hardis",
|
|
5753
|
+
"hardis:releaseupdates:org:diagnose",
|
|
5754
|
+
"releaseupdates:hardis:org:diagnose",
|
|
5755
|
+
"releaseupdates:org:hardis:diagnose",
|
|
5756
|
+
"releaseupdates:org:diagnose:hardis",
|
|
5757
|
+
"hardis:releaseupdates:diagnose:org",
|
|
5758
|
+
"releaseupdates:hardis:diagnose:org",
|
|
5759
|
+
"releaseupdates:diagnose:hardis:org",
|
|
5760
|
+
"releaseupdates:diagnose:org:hardis"
|
|
5753
5761
|
]
|
|
5754
5762
|
},
|
|
5755
|
-
"hardis:org:diagnose:
|
|
5763
|
+
"hardis:org:diagnose:unused-apex-classes": {
|
|
5756
5764
|
"aliases": [],
|
|
5757
5765
|
"args": {},
|
|
5758
|
-
"description": "
|
|
5766
|
+
"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",
|
|
5759
5767
|
"examples": [
|
|
5760
|
-
"$ sf hardis:org:diagnose:
|
|
5761
|
-
"$ sf hardis:org:diagnose:
|
|
5768
|
+
"$ sf hardis:org:diagnose:unused-apex-classes",
|
|
5769
|
+
"$ sf hardis:org:diagnose:unused-apex-classes --days 700"
|
|
5762
5770
|
],
|
|
5763
5771
|
"flags": {
|
|
5764
5772
|
"json": {
|
|
@@ -5784,6 +5792,14 @@
|
|
|
5784
5792
|
"multiple": false,
|
|
5785
5793
|
"type": "option"
|
|
5786
5794
|
},
|
|
5795
|
+
"days": {
|
|
5796
|
+
"char": "t",
|
|
5797
|
+
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
5798
|
+
"name": "days",
|
|
5799
|
+
"hasDynamicHelp": false,
|
|
5800
|
+
"multiple": false,
|
|
5801
|
+
"type": "option"
|
|
5802
|
+
},
|
|
5787
5803
|
"debug": {
|
|
5788
5804
|
"char": "d",
|
|
5789
5805
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5822,32 +5838,14 @@
|
|
|
5822
5838
|
},
|
|
5823
5839
|
"hasDynamicHelp": true,
|
|
5824
5840
|
"hiddenAliases": [],
|
|
5825
|
-
"id": "hardis:org:diagnose:
|
|
5841
|
+
"id": "hardis:org:diagnose:unused-apex-classes",
|
|
5826
5842
|
"pluginAlias": "sfdx-hardis",
|
|
5827
5843
|
"pluginName": "sfdx-hardis",
|
|
5828
5844
|
"pluginType": "core",
|
|
5829
5845
|
"strict": true,
|
|
5830
5846
|
"enableJsonFlag": true,
|
|
5831
|
-
"title": "Detect unused
|
|
5847
|
+
"title": "Detect unused Apex classes in an org",
|
|
5832
5848
|
"requiresProject": false,
|
|
5833
|
-
"additionalPermissionSetsToAlwaysGet": [
|
|
5834
|
-
"Sales_User"
|
|
5835
|
-
],
|
|
5836
|
-
"permSetsPermSetLicenses": [
|
|
5837
|
-
{
|
|
5838
|
-
"permSet": "Sales_User",
|
|
5839
|
-
"permSetLicense": "SalesUserPsl"
|
|
5840
|
-
}
|
|
5841
|
-
],
|
|
5842
|
-
"profilesPermissionSetLicenses": [
|
|
5843
|
-
{
|
|
5844
|
-
"profile": "Salesforce API Only",
|
|
5845
|
-
"permSetLicense": "SalesforceAPIIntegrationPsl"
|
|
5846
|
-
}
|
|
5847
|
-
],
|
|
5848
|
-
"alwaysExcludeForActiveUsersPermissionSetLicenses": [
|
|
5849
|
-
"IdentityConnect"
|
|
5850
|
-
],
|
|
5851
5849
|
"isESM": true,
|
|
5852
5850
|
"relativePath": [
|
|
5853
5851
|
"lib",
|
|
@@ -5855,46 +5853,42 @@
|
|
|
5855
5853
|
"hardis",
|
|
5856
5854
|
"org",
|
|
5857
5855
|
"diagnose",
|
|
5858
|
-
"
|
|
5856
|
+
"unused-apex-classes.js"
|
|
5859
5857
|
],
|
|
5860
5858
|
"aliasPermutations": [],
|
|
5861
5859
|
"permutations": [
|
|
5862
|
-
"hardis:org:diagnose:
|
|
5863
|
-
"org:hardis:diagnose:
|
|
5864
|
-
"org:diagnose:hardis:
|
|
5865
|
-
"org:diagnose:
|
|
5866
|
-
"hardis:diagnose:org:
|
|
5867
|
-
"diagnose:hardis:org:
|
|
5868
|
-
"diagnose:org:hardis:
|
|
5869
|
-
"diagnose:org:
|
|
5870
|
-
"hardis:diagnose:
|
|
5871
|
-
"diagnose:hardis:
|
|
5872
|
-
"diagnose:
|
|
5873
|
-
"diagnose:
|
|
5874
|
-
"hardis:org:
|
|
5875
|
-
"org:hardis:
|
|
5876
|
-
"org:
|
|
5877
|
-
"org:
|
|
5878
|
-
"hardis:
|
|
5879
|
-
"
|
|
5880
|
-
"
|
|
5881
|
-
"
|
|
5882
|
-
"hardis:
|
|
5883
|
-
"
|
|
5884
|
-
"
|
|
5885
|
-
"
|
|
5860
|
+
"hardis:org:diagnose:unused-apex-classes",
|
|
5861
|
+
"org:hardis:diagnose:unused-apex-classes",
|
|
5862
|
+
"org:diagnose:hardis:unused-apex-classes",
|
|
5863
|
+
"org:diagnose:unused-apex-classes:hardis",
|
|
5864
|
+
"hardis:diagnose:org:unused-apex-classes",
|
|
5865
|
+
"diagnose:hardis:org:unused-apex-classes",
|
|
5866
|
+
"diagnose:org:hardis:unused-apex-classes",
|
|
5867
|
+
"diagnose:org:unused-apex-classes:hardis",
|
|
5868
|
+
"hardis:diagnose:unused-apex-classes:org",
|
|
5869
|
+
"diagnose:hardis:unused-apex-classes:org",
|
|
5870
|
+
"diagnose:unused-apex-classes:hardis:org",
|
|
5871
|
+
"diagnose:unused-apex-classes:org:hardis",
|
|
5872
|
+
"hardis:org:unused-apex-classes:diagnose",
|
|
5873
|
+
"org:hardis:unused-apex-classes:diagnose",
|
|
5874
|
+
"org:unused-apex-classes:hardis:diagnose",
|
|
5875
|
+
"org:unused-apex-classes:diagnose:hardis",
|
|
5876
|
+
"hardis:unused-apex-classes:org:diagnose",
|
|
5877
|
+
"unused-apex-classes:hardis:org:diagnose",
|
|
5878
|
+
"unused-apex-classes:org:hardis:diagnose",
|
|
5879
|
+
"unused-apex-classes:org:diagnose:hardis",
|
|
5880
|
+
"hardis:unused-apex-classes:diagnose:org",
|
|
5881
|
+
"unused-apex-classes:hardis:diagnose:org",
|
|
5882
|
+
"unused-apex-classes:diagnose:hardis:org",
|
|
5883
|
+
"unused-apex-classes:diagnose:org:hardis"
|
|
5886
5884
|
]
|
|
5887
5885
|
},
|
|
5888
|
-
"hardis:org:diagnose:
|
|
5886
|
+
"hardis:org:diagnose:unused-connected-apps": {
|
|
5889
5887
|
"aliases": [],
|
|
5890
5888
|
"args": {},
|
|
5891
|
-
"description": "
|
|
5889
|
+
"description": "Request objects ConnectedApp, LoginHistory and OAuthToken to find which connected apps might not be used anymore, and could be deleted for security / technical debt reasons.\n\nCheck with Connected Apps metadatas if the app is still active (inactive = \"Admin Users are pre-authorized + no Profile or Permission set assigned\")\n\nThe following default Salesforce Connected Apps are ignored:\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 variable ALLOWED_INACTIVE_CONNECTED_APPS\n\n_Example: ALLOWED_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-release-updates/) and can output Grafana, Slack and MsTeams Notifications.\n",
|
|
5892
5890
|
"examples": [
|
|
5893
|
-
"$ sf hardis:org:diagnose:
|
|
5894
|
-
"$ sf hardis:org:diagnose:unusedusers --days 365",
|
|
5895
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm",
|
|
5896
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licenseidentifiers SFDC,AUL,AUL1",
|
|
5897
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm --returnactiveusers"
|
|
5891
|
+
"$ sf hardis:org:diagnose:unused-connected-apps"
|
|
5898
5892
|
],
|
|
5899
5893
|
"flags": {
|
|
5900
5894
|
"json": {
|
|
@@ -5920,41 +5914,6 @@
|
|
|
5920
5914
|
"multiple": false,
|
|
5921
5915
|
"type": "option"
|
|
5922
5916
|
},
|
|
5923
|
-
"days": {
|
|
5924
|
-
"char": "t",
|
|
5925
|
-
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
5926
|
-
"name": "days",
|
|
5927
|
-
"hasDynamicHelp": false,
|
|
5928
|
-
"multiple": false,
|
|
5929
|
-
"type": "option"
|
|
5930
|
-
},
|
|
5931
|
-
"licensetypes": {
|
|
5932
|
-
"char": "l",
|
|
5933
|
-
"description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
|
|
5934
|
-
"name": "licensetypes",
|
|
5935
|
-
"hasDynamicHelp": false,
|
|
5936
|
-
"multiple": false,
|
|
5937
|
-
"options": [
|
|
5938
|
-
"all",
|
|
5939
|
-
"all-crm",
|
|
5940
|
-
"all-paying"
|
|
5941
|
-
],
|
|
5942
|
-
"type": "option"
|
|
5943
|
-
},
|
|
5944
|
-
"licenseidentifiers": {
|
|
5945
|
-
"char": "i",
|
|
5946
|
-
"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",
|
|
5947
|
-
"name": "licenseidentifiers",
|
|
5948
|
-
"hasDynamicHelp": false,
|
|
5949
|
-
"multiple": false,
|
|
5950
|
-
"type": "option"
|
|
5951
|
-
},
|
|
5952
|
-
"returnactiveusers": {
|
|
5953
|
-
"description": "Inverts the command by returning the active users",
|
|
5954
|
-
"name": "returnactiveusers",
|
|
5955
|
-
"allowNo": false,
|
|
5956
|
-
"type": "boolean"
|
|
5957
|
-
},
|
|
5958
5917
|
"debug": {
|
|
5959
5918
|
"char": "d",
|
|
5960
5919
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5993,57 +5952,75 @@
|
|
|
5993
5952
|
},
|
|
5994
5953
|
"hasDynamicHelp": true,
|
|
5995
5954
|
"hiddenAliases": [],
|
|
5996
|
-
"id": "hardis:org:diagnose:
|
|
5955
|
+
"id": "hardis:org:diagnose:unused-connected-apps",
|
|
5997
5956
|
"pluginAlias": "sfdx-hardis",
|
|
5998
5957
|
"pluginName": "sfdx-hardis",
|
|
5999
5958
|
"pluginType": "core",
|
|
6000
5959
|
"strict": true,
|
|
6001
5960
|
"enableJsonFlag": true,
|
|
6002
|
-
"title": "
|
|
6003
|
-
"
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
"
|
|
6007
|
-
"
|
|
6008
|
-
"
|
|
6009
|
-
"
|
|
6010
|
-
"
|
|
6011
|
-
"
|
|
6012
|
-
|
|
5961
|
+
"title": "Unused Connected Apps in an org",
|
|
5962
|
+
"allowedInactiveConnectedApps": [
|
|
5963
|
+
"Ant Migration Tool",
|
|
5964
|
+
"Chatter Desktop",
|
|
5965
|
+
"Chatter Mobile for BlackBerry",
|
|
5966
|
+
"Force.com IDE",
|
|
5967
|
+
"OIQ_Integration",
|
|
5968
|
+
"Salesforce CLI",
|
|
5969
|
+
"Salesforce Files",
|
|
5970
|
+
"Salesforce Mobile Dashboards",
|
|
5971
|
+
"Salesforce Touch",
|
|
5972
|
+
"Salesforce for Outlook",
|
|
5973
|
+
"SalesforceA",
|
|
5974
|
+
"SalesforceA for Android",
|
|
5975
|
+
"SalesforceA for iOS",
|
|
5976
|
+
"SalesforceDX Namespace Registry",
|
|
5977
|
+
"SalesforceIQ"
|
|
5978
|
+
],
|
|
5979
|
+
"requiresProject": false,
|
|
5980
|
+
"isESM": true,
|
|
5981
|
+
"relativePath": [
|
|
5982
|
+
"lib",
|
|
5983
|
+
"commands",
|
|
5984
|
+
"hardis",
|
|
5985
|
+
"org",
|
|
5986
|
+
"diagnose",
|
|
5987
|
+
"unused-connected-apps.js"
|
|
5988
|
+
],
|
|
6013
5989
|
"aliasPermutations": [],
|
|
6014
5990
|
"permutations": [
|
|
6015
|
-
"hardis:org:diagnose:
|
|
6016
|
-
"org:hardis:diagnose:
|
|
6017
|
-
"org:diagnose:hardis:
|
|
6018
|
-
"org:diagnose:
|
|
6019
|
-
"hardis:diagnose:org:
|
|
6020
|
-
"diagnose:hardis:org:
|
|
6021
|
-
"diagnose:org:hardis:
|
|
6022
|
-
"diagnose:org:
|
|
6023
|
-
"hardis:diagnose:
|
|
6024
|
-
"diagnose:hardis:
|
|
6025
|
-
"diagnose:
|
|
6026
|
-
"diagnose:
|
|
6027
|
-
"hardis:org:
|
|
6028
|
-
"org:hardis:
|
|
6029
|
-
"org:
|
|
6030
|
-
"org:
|
|
6031
|
-
"hardis:
|
|
6032
|
-
"
|
|
6033
|
-
"
|
|
6034
|
-
"
|
|
6035
|
-
"hardis:
|
|
6036
|
-
"
|
|
6037
|
-
"
|
|
6038
|
-
"
|
|
5991
|
+
"hardis:org:diagnose:unused-connected-apps",
|
|
5992
|
+
"org:hardis:diagnose:unused-connected-apps",
|
|
5993
|
+
"org:diagnose:hardis:unused-connected-apps",
|
|
5994
|
+
"org:diagnose:unused-connected-apps:hardis",
|
|
5995
|
+
"hardis:diagnose:org:unused-connected-apps",
|
|
5996
|
+
"diagnose:hardis:org:unused-connected-apps",
|
|
5997
|
+
"diagnose:org:hardis:unused-connected-apps",
|
|
5998
|
+
"diagnose:org:unused-connected-apps:hardis",
|
|
5999
|
+
"hardis:diagnose:unused-connected-apps:org",
|
|
6000
|
+
"diagnose:hardis:unused-connected-apps:org",
|
|
6001
|
+
"diagnose:unused-connected-apps:hardis:org",
|
|
6002
|
+
"diagnose:unused-connected-apps:org:hardis",
|
|
6003
|
+
"hardis:org:unused-connected-apps:diagnose",
|
|
6004
|
+
"org:hardis:unused-connected-apps:diagnose",
|
|
6005
|
+
"org:unused-connected-apps:hardis:diagnose",
|
|
6006
|
+
"org:unused-connected-apps:diagnose:hardis",
|
|
6007
|
+
"hardis:unused-connected-apps:org:diagnose",
|
|
6008
|
+
"unused-connected-apps:hardis:org:diagnose",
|
|
6009
|
+
"unused-connected-apps:org:hardis:diagnose",
|
|
6010
|
+
"unused-connected-apps:org:diagnose:hardis",
|
|
6011
|
+
"hardis:unused-connected-apps:diagnose:org",
|
|
6012
|
+
"unused-connected-apps:hardis:diagnose:org",
|
|
6013
|
+
"unused-connected-apps:diagnose:hardis:org",
|
|
6014
|
+
"unused-connected-apps:diagnose:org:hardis"
|
|
6039
6015
|
]
|
|
6040
6016
|
},
|
|
6041
|
-
"hardis:org:
|
|
6017
|
+
"hardis:org:diagnose:unusedlicenses": {
|
|
6042
6018
|
"aliases": [],
|
|
6043
6019
|
"args": {},
|
|
6044
|
-
"description": "
|
|
6020
|
+
"description": "When you assign a Permission Set to a user, and that this Permission Set is related to a Permission Set License, a Permission Set License Assignment is automatically created for the user.\n\nBut when you unassign this Permission Set from the user, **the Permission Set License Assignment is not deleted**.\n\nThis leads that you can be **charged for Permission Set Licenses that are not used** !\n\nThis command detects such useless Permission Set Licenses Assignments and suggests to delete them.\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",
|
|
6045
6021
|
"examples": [
|
|
6046
|
-
"$ sf hardis:org:
|
|
6022
|
+
"$ sf hardis:org:diagnose:unusedlicenses",
|
|
6023
|
+
"$ sf hardis:org:diagnose:unusedlicenses --fix"
|
|
6047
6024
|
],
|
|
6048
6025
|
"flags": {
|
|
6049
6026
|
"json": {
|
|
@@ -6061,37 +6038,10 @@
|
|
|
6061
6038
|
"multiple": false,
|
|
6062
6039
|
"type": "option"
|
|
6063
6040
|
},
|
|
6064
|
-
"
|
|
6065
|
-
"char": "
|
|
6066
|
-
"description": "
|
|
6067
|
-
"name": "
|
|
6068
|
-
"hasDynamicHelp": false,
|
|
6069
|
-
"multiple": false,
|
|
6070
|
-
"type": "option"
|
|
6071
|
-
},
|
|
6072
|
-
"chunksize": {
|
|
6073
|
-
"char": "c",
|
|
6074
|
-
"description": "Number of records to add in a chunk before it is processed",
|
|
6075
|
-
"name": "chunksize",
|
|
6076
|
-
"default": 1000,
|
|
6077
|
-
"hasDynamicHelp": false,
|
|
6078
|
-
"multiple": false,
|
|
6079
|
-
"type": "option"
|
|
6080
|
-
},
|
|
6081
|
-
"polltimeout": {
|
|
6082
|
-
"char": "t",
|
|
6083
|
-
"description": "Timeout in MS for Bulk API calls",
|
|
6084
|
-
"name": "polltimeout",
|
|
6085
|
-
"default": 300000,
|
|
6086
|
-
"hasDynamicHelp": false,
|
|
6087
|
-
"multiple": false,
|
|
6088
|
-
"type": "option"
|
|
6089
|
-
},
|
|
6090
|
-
"startchunknumber": {
|
|
6091
|
-
"char": "s",
|
|
6092
|
-
"description": "Chunk number to start from",
|
|
6093
|
-
"name": "startchunknumber",
|
|
6094
|
-
"default": 0,
|
|
6041
|
+
"outputfile": {
|
|
6042
|
+
"char": "f",
|
|
6043
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6044
|
+
"name": "outputfile",
|
|
6095
6045
|
"hasDynamicHelp": false,
|
|
6096
6046
|
"multiple": false,
|
|
6097
6047
|
"type": "option"
|
|
@@ -6134,57 +6084,79 @@
|
|
|
6134
6084
|
},
|
|
6135
6085
|
"hasDynamicHelp": true,
|
|
6136
6086
|
"hiddenAliases": [],
|
|
6137
|
-
"id": "hardis:org:
|
|
6087
|
+
"id": "hardis:org:diagnose:unusedlicenses",
|
|
6138
6088
|
"pluginAlias": "sfdx-hardis",
|
|
6139
6089
|
"pluginName": "sfdx-hardis",
|
|
6140
6090
|
"pluginType": "core",
|
|
6141
6091
|
"strict": true,
|
|
6142
6092
|
"enableJsonFlag": true,
|
|
6143
|
-
"title": "
|
|
6093
|
+
"title": "Detect unused Permission Set Licenses (beta)",
|
|
6144
6094
|
"requiresProject": false,
|
|
6095
|
+
"additionalPermissionSetsToAlwaysGet": [
|
|
6096
|
+
"Sales_User"
|
|
6097
|
+
],
|
|
6098
|
+
"permSetsPermSetLicenses": [
|
|
6099
|
+
{
|
|
6100
|
+
"permSet": "Sales_User",
|
|
6101
|
+
"permSetLicense": "SalesUserPsl"
|
|
6102
|
+
}
|
|
6103
|
+
],
|
|
6104
|
+
"profilesPermissionSetLicenses": [
|
|
6105
|
+
{
|
|
6106
|
+
"profile": "Salesforce API Only",
|
|
6107
|
+
"permSetLicense": "SalesforceAPIIntegrationPsl"
|
|
6108
|
+
}
|
|
6109
|
+
],
|
|
6110
|
+
"alwaysExcludeForActiveUsersPermissionSetLicenses": [
|
|
6111
|
+
"IdentityConnect"
|
|
6112
|
+
],
|
|
6145
6113
|
"isESM": true,
|
|
6146
6114
|
"relativePath": [
|
|
6147
6115
|
"lib",
|
|
6148
6116
|
"commands",
|
|
6149
6117
|
"hardis",
|
|
6150
6118
|
"org",
|
|
6151
|
-
"
|
|
6152
|
-
"
|
|
6119
|
+
"diagnose",
|
|
6120
|
+
"unusedlicenses.js"
|
|
6153
6121
|
],
|
|
6154
6122
|
"aliasPermutations": [],
|
|
6155
6123
|
"permutations": [
|
|
6156
|
-
"hardis:org:
|
|
6157
|
-
"org:hardis:
|
|
6158
|
-
"org:
|
|
6159
|
-
"org:
|
|
6160
|
-
"hardis:
|
|
6161
|
-
"
|
|
6162
|
-
"
|
|
6163
|
-
"
|
|
6164
|
-
"hardis:
|
|
6165
|
-
"
|
|
6166
|
-
"
|
|
6167
|
-
"
|
|
6168
|
-
"hardis:org:
|
|
6169
|
-
"org:hardis:
|
|
6170
|
-
"org:
|
|
6171
|
-
"org:
|
|
6172
|
-
"hardis:
|
|
6173
|
-
"
|
|
6174
|
-
"
|
|
6175
|
-
"
|
|
6176
|
-
"hardis:
|
|
6177
|
-
"
|
|
6178
|
-
"
|
|
6179
|
-
"
|
|
6124
|
+
"hardis:org:diagnose:unusedlicenses",
|
|
6125
|
+
"org:hardis:diagnose:unusedlicenses",
|
|
6126
|
+
"org:diagnose:hardis:unusedlicenses",
|
|
6127
|
+
"org:diagnose:unusedlicenses:hardis",
|
|
6128
|
+
"hardis:diagnose:org:unusedlicenses",
|
|
6129
|
+
"diagnose:hardis:org:unusedlicenses",
|
|
6130
|
+
"diagnose:org:hardis:unusedlicenses",
|
|
6131
|
+
"diagnose:org:unusedlicenses:hardis",
|
|
6132
|
+
"hardis:diagnose:unusedlicenses:org",
|
|
6133
|
+
"diagnose:hardis:unusedlicenses:org",
|
|
6134
|
+
"diagnose:unusedlicenses:hardis:org",
|
|
6135
|
+
"diagnose:unusedlicenses:org:hardis",
|
|
6136
|
+
"hardis:org:unusedlicenses:diagnose",
|
|
6137
|
+
"org:hardis:unusedlicenses:diagnose",
|
|
6138
|
+
"org:unusedlicenses:hardis:diagnose",
|
|
6139
|
+
"org:unusedlicenses:diagnose:hardis",
|
|
6140
|
+
"hardis:unusedlicenses:org:diagnose",
|
|
6141
|
+
"unusedlicenses:hardis:org:diagnose",
|
|
6142
|
+
"unusedlicenses:org:hardis:diagnose",
|
|
6143
|
+
"unusedlicenses:org:diagnose:hardis",
|
|
6144
|
+
"hardis:unusedlicenses:diagnose:org",
|
|
6145
|
+
"unusedlicenses:hardis:diagnose:org",
|
|
6146
|
+
"unusedlicenses:diagnose:hardis:org",
|
|
6147
|
+
"unusedlicenses:diagnose:org:hardis"
|
|
6180
6148
|
]
|
|
6181
6149
|
},
|
|
6182
|
-
"hardis:org:
|
|
6150
|
+
"hardis:org:diagnose:unusedusers": {
|
|
6183
6151
|
"aliases": [],
|
|
6184
6152
|
"args": {},
|
|
6185
|
-
"description": "
|
|
6153
|
+
"description": "Efficient 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\nlicensetypes values are the following:\n\n- all-crm: SFDC,AUL,AUL1,AULL_IGHT\n\n- all-paying: SFDC,AUL,AUL1,AULL_IGHT,PID_Customer_Community,PID_Customer_Community_Login,PID_Partner_Community,PID_Partner_Community_Login\n\nNote: You can see the full list of available license identifiers in [Salesforce Documentation](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userlicense.htm)\n\nUse --returnactiveusers to revert the command and retrieve active users that has logged in during the period.\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",
|
|
6186
6154
|
"examples": [
|
|
6187
|
-
"$ sf hardis:org:
|
|
6155
|
+
"$ sf hardis:org:diagnose:unusedusers",
|
|
6156
|
+
"$ sf hardis:org:diagnose:unusedusers --days 365",
|
|
6157
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm",
|
|
6158
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licenseidentifiers SFDC,AUL,AUL1",
|
|
6159
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm --returnactiveusers"
|
|
6188
6160
|
],
|
|
6189
6161
|
"flags": {
|
|
6190
6162
|
"json": {
|
|
@@ -6202,18 +6174,46 @@
|
|
|
6202
6174
|
"multiple": false,
|
|
6203
6175
|
"type": "option"
|
|
6204
6176
|
},
|
|
6205
|
-
"
|
|
6206
|
-
"char": "
|
|
6207
|
-
"description": "
|
|
6208
|
-
"name": "
|
|
6177
|
+
"outputfile": {
|
|
6178
|
+
"char": "f",
|
|
6179
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6180
|
+
"name": "outputfile",
|
|
6209
6181
|
"hasDynamicHelp": false,
|
|
6210
6182
|
"multiple": false,
|
|
6211
6183
|
"type": "option"
|
|
6212
6184
|
},
|
|
6213
|
-
"
|
|
6214
|
-
"char": "
|
|
6215
|
-
"description": "
|
|
6216
|
-
"name": "
|
|
6185
|
+
"days": {
|
|
6186
|
+
"char": "t",
|
|
6187
|
+
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
6188
|
+
"name": "days",
|
|
6189
|
+
"hasDynamicHelp": false,
|
|
6190
|
+
"multiple": false,
|
|
6191
|
+
"type": "option"
|
|
6192
|
+
},
|
|
6193
|
+
"licensetypes": {
|
|
6194
|
+
"char": "l",
|
|
6195
|
+
"description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
|
|
6196
|
+
"name": "licensetypes",
|
|
6197
|
+
"hasDynamicHelp": false,
|
|
6198
|
+
"multiple": false,
|
|
6199
|
+
"options": [
|
|
6200
|
+
"all",
|
|
6201
|
+
"all-crm",
|
|
6202
|
+
"all-paying"
|
|
6203
|
+
],
|
|
6204
|
+
"type": "option"
|
|
6205
|
+
},
|
|
6206
|
+
"licenseidentifiers": {
|
|
6207
|
+
"char": "i",
|
|
6208
|
+
"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",
|
|
6209
|
+
"name": "licenseidentifiers",
|
|
6210
|
+
"hasDynamicHelp": false,
|
|
6211
|
+
"multiple": false,
|
|
6212
|
+
"type": "option"
|
|
6213
|
+
},
|
|
6214
|
+
"returnactiveusers": {
|
|
6215
|
+
"description": "Inverts the command by returning the active users",
|
|
6216
|
+
"name": "returnactiveusers",
|
|
6217
6217
|
"allowNo": false,
|
|
6218
6218
|
"type": "boolean"
|
|
6219
6219
|
},
|
|
@@ -6255,13 +6255,13 @@
|
|
|
6255
6255
|
},
|
|
6256
6256
|
"hasDynamicHelp": true,
|
|
6257
6257
|
"hiddenAliases": [],
|
|
6258
|
-
"id": "hardis:org:
|
|
6258
|
+
"id": "hardis:org:diagnose:unusedusers",
|
|
6259
6259
|
"pluginAlias": "sfdx-hardis",
|
|
6260
6260
|
"pluginName": "sfdx-hardis",
|
|
6261
6261
|
"pluginType": "core",
|
|
6262
6262
|
"strict": true,
|
|
6263
6263
|
"enableJsonFlag": true,
|
|
6264
|
-
"title": "
|
|
6264
|
+
"title": "Detect unused Users in Salesforce",
|
|
6265
6265
|
"requiresProject": false,
|
|
6266
6266
|
"isESM": true,
|
|
6267
6267
|
"relativePath": [
|
|
@@ -6269,35 +6269,35 @@
|
|
|
6269
6269
|
"commands",
|
|
6270
6270
|
"hardis",
|
|
6271
6271
|
"org",
|
|
6272
|
-
"
|
|
6273
|
-
"
|
|
6272
|
+
"diagnose",
|
|
6273
|
+
"unusedusers.js"
|
|
6274
6274
|
],
|
|
6275
6275
|
"aliasPermutations": [],
|
|
6276
6276
|
"permutations": [
|
|
6277
|
-
"hardis:org:
|
|
6278
|
-
"org:hardis:
|
|
6279
|
-
"org:
|
|
6280
|
-
"org:
|
|
6281
|
-
"hardis:
|
|
6282
|
-
"
|
|
6283
|
-
"
|
|
6284
|
-
"
|
|
6285
|
-
"hardis:
|
|
6286
|
-
"
|
|
6287
|
-
"
|
|
6288
|
-
"
|
|
6289
|
-
"hardis:org:
|
|
6290
|
-
"org:hardis:
|
|
6291
|
-
"org:
|
|
6292
|
-
"org:
|
|
6293
|
-
"hardis:
|
|
6294
|
-
"
|
|
6295
|
-
"
|
|
6296
|
-
"
|
|
6297
|
-
"hardis:
|
|
6298
|
-
"
|
|
6299
|
-
"
|
|
6300
|
-
"
|
|
6277
|
+
"hardis:org:diagnose:unusedusers",
|
|
6278
|
+
"org:hardis:diagnose:unusedusers",
|
|
6279
|
+
"org:diagnose:hardis:unusedusers",
|
|
6280
|
+
"org:diagnose:unusedusers:hardis",
|
|
6281
|
+
"hardis:diagnose:org:unusedusers",
|
|
6282
|
+
"diagnose:hardis:org:unusedusers",
|
|
6283
|
+
"diagnose:org:hardis:unusedusers",
|
|
6284
|
+
"diagnose:org:unusedusers:hardis",
|
|
6285
|
+
"hardis:diagnose:unusedusers:org",
|
|
6286
|
+
"diagnose:hardis:unusedusers:org",
|
|
6287
|
+
"diagnose:unusedusers:hardis:org",
|
|
6288
|
+
"diagnose:unusedusers:org:hardis",
|
|
6289
|
+
"hardis:org:unusedusers:diagnose",
|
|
6290
|
+
"org:hardis:unusedusers:diagnose",
|
|
6291
|
+
"org:unusedusers:hardis:diagnose",
|
|
6292
|
+
"org:unusedusers:diagnose:hardis",
|
|
6293
|
+
"hardis:unusedusers:org:diagnose",
|
|
6294
|
+
"unusedusers:hardis:org:diagnose",
|
|
6295
|
+
"unusedusers:org:hardis:diagnose",
|
|
6296
|
+
"unusedusers:org:diagnose:hardis",
|
|
6297
|
+
"hardis:unusedusers:diagnose:org",
|
|
6298
|
+
"unusedusers:hardis:diagnose:org",
|
|
6299
|
+
"unusedusers:diagnose:hardis:org",
|
|
6300
|
+
"unusedusers:diagnose:org:hardis"
|
|
6301
6301
|
]
|
|
6302
6302
|
},
|
|
6303
6303
|
"hardis:org:fix:listviewmine": {
|
|
@@ -13883,5 +13883,5 @@
|
|
|
13883
13883
|
]
|
|
13884
13884
|
}
|
|
13885
13885
|
},
|
|
13886
|
-
"version": "5.10.2-
|
|
13886
|
+
"version": "5.10.2-beta202412302307.0"
|
|
13887
13887
|
}
|