sfdx-hardis 5.10.2-beta202412280136.0 → 5.10.2-beta202412301125.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/mkdocs/mkdocs.yml +6 -0
- package/defaults/mkdocs-project-doc/mkdocs.yml +3 -0
- package/lib/commands/hardis/doc/flow2markdown.d.ts +1 -0
- package/lib/commands/hardis/doc/flow2markdown.js +13 -4
- package/lib/commands/hardis/doc/flow2markdown.js.map +1 -1
- package/lib/commands/hardis/doc/project2markdown.d.ts +1 -0
- package/lib/commands/hardis/doc/project2markdown.js +36 -6
- package/lib/commands/hardis/doc/project2markdown.js.map +1 -1
- package/lib/commands/hardis/org/monitor/backup.js +1 -1
- package/lib/commands/hardis/org/monitor/backup.js.map +1 -1
- package/lib/commands/hardis/project/generate/flow-git-diff.js +28 -16
- package/lib/commands/hardis/project/generate/flow-git-diff.js.map +1 -1
- package/lib/common/gitProvider/utilsMarkdown.js +5 -5
- package/lib/common/gitProvider/utilsMarkdown.js.map +1 -1
- package/lib/common/metadata-utils/index.d.ts +1 -0
- package/lib/common/metadata-utils/index.js +18 -0
- package/lib/common/metadata-utils/index.js.map +1 -1
- package/lib/common/utils/flowVisualiser/nodeFormatUtils.js +4 -2
- package/lib/common/utils/flowVisualiser/nodeFormatUtils.js.map +1 -1
- package/lib/common/utils/index.d.ts +1 -0
- package/lib/common/utils/index.js +10 -0
- package/lib/common/utils/index.js.map +1 -1
- package/lib/common/utils/mermaidUtils.d.ts +2 -1
- package/lib/common/utils/mermaidUtils.js +157 -27
- package/lib/common/utils/mermaidUtils.js.map +1 -1
- package/lib/common/utils/projectUtils.js +1 -1
- package/lib/common/utils/projectUtils.js.map +1 -1
- package/oclif.lock +843 -1260
- package/oclif.manifest.json +539 -534
- package/package.json +5 -5
package/oclif.manifest.json
CHANGED
|
@@ -350,8 +350,7 @@
|
|
|
350
350
|
"type": "option"
|
|
351
351
|
},
|
|
352
352
|
"with-history": {
|
|
353
|
-
"
|
|
354
|
-
"description": "Activate debug mode (more logs)",
|
|
353
|
+
"description": "Generate a markdown file with the history diff of the Flow",
|
|
355
354
|
"name": "with-history",
|
|
356
355
|
"allowNo": false,
|
|
357
356
|
"type": "boolean"
|
|
@@ -523,6 +522,12 @@
|
|
|
523
522
|
"allowNo": false,
|
|
524
523
|
"type": "boolean"
|
|
525
524
|
},
|
|
525
|
+
"with-history": {
|
|
526
|
+
"description": "Generate a markdown file with the history diff of the Flow",
|
|
527
|
+
"name": "with-history",
|
|
528
|
+
"allowNo": false,
|
|
529
|
+
"type": "boolean"
|
|
530
|
+
},
|
|
526
531
|
"debug": {
|
|
527
532
|
"char": "d",
|
|
528
533
|
"description": "Activate debug mode (more logs)",
|
|
@@ -4884,15 +4889,12 @@
|
|
|
4884
4889
|
"import:data:org:hardis"
|
|
4885
4890
|
]
|
|
4886
4891
|
},
|
|
4887
|
-
"hardis:org:
|
|
4892
|
+
"hardis:org:files:export": {
|
|
4888
4893
|
"aliases": [],
|
|
4889
4894
|
"args": {},
|
|
4890
|
-
"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",
|
|
4891
4896
|
"examples": [
|
|
4892
|
-
"$ sf hardis:org:
|
|
4893
|
-
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
|
|
4894
|
-
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
|
|
4895
|
-
"$ sf hardis:org:diagnose:audittrail --lastndays 5"
|
|
4897
|
+
"$ sf hardis:org:files:export"
|
|
4896
4898
|
],
|
|
4897
4899
|
"flags": {
|
|
4898
4900
|
"json": {
|
|
@@ -4910,26 +4912,37 @@
|
|
|
4910
4912
|
"multiple": false,
|
|
4911
4913
|
"type": "option"
|
|
4912
4914
|
},
|
|
4913
|
-
"
|
|
4914
|
-
"char": "
|
|
4915
|
-
"description": "
|
|
4916
|
-
"name": "
|
|
4915
|
+
"path": {
|
|
4916
|
+
"char": "p",
|
|
4917
|
+
"description": "Path to the file export project",
|
|
4918
|
+
"name": "path",
|
|
4917
4919
|
"hasDynamicHelp": false,
|
|
4918
4920
|
"multiple": false,
|
|
4919
4921
|
"type": "option"
|
|
4920
4922
|
},
|
|
4921
|
-
"
|
|
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": {
|
|
4922
4933
|
"char": "t",
|
|
4923
|
-
"description": "
|
|
4924
|
-
"name": "
|
|
4934
|
+
"description": "Timeout in MS for Bulk API calls",
|
|
4935
|
+
"name": "polltimeout",
|
|
4936
|
+
"default": 300000,
|
|
4925
4937
|
"hasDynamicHelp": false,
|
|
4926
4938
|
"multiple": false,
|
|
4927
4939
|
"type": "option"
|
|
4928
4940
|
},
|
|
4929
|
-
"
|
|
4930
|
-
"char": "
|
|
4931
|
-
"description": "
|
|
4932
|
-
"name": "
|
|
4941
|
+
"startchunknumber": {
|
|
4942
|
+
"char": "s",
|
|
4943
|
+
"description": "Chunk number to start from",
|
|
4944
|
+
"name": "startchunknumber",
|
|
4945
|
+
"default": 0,
|
|
4933
4946
|
"hasDynamicHelp": false,
|
|
4934
4947
|
"multiple": false,
|
|
4935
4948
|
"type": "option"
|
|
@@ -4972,13 +4985,13 @@
|
|
|
4972
4985
|
},
|
|
4973
4986
|
"hasDynamicHelp": true,
|
|
4974
4987
|
"hiddenAliases": [],
|
|
4975
|
-
"id": "hardis:org:
|
|
4988
|
+
"id": "hardis:org:files:export",
|
|
4976
4989
|
"pluginAlias": "sfdx-hardis",
|
|
4977
4990
|
"pluginName": "sfdx-hardis",
|
|
4978
4991
|
"pluginType": "core",
|
|
4979
4992
|
"strict": true,
|
|
4980
4993
|
"enableJsonFlag": true,
|
|
4981
|
-
"title": "
|
|
4994
|
+
"title": "Export files",
|
|
4982
4995
|
"requiresProject": false,
|
|
4983
4996
|
"isESM": true,
|
|
4984
4997
|
"relativePath": [
|
|
@@ -4986,43 +4999,43 @@
|
|
|
4986
4999
|
"commands",
|
|
4987
5000
|
"hardis",
|
|
4988
5001
|
"org",
|
|
4989
|
-
"
|
|
4990
|
-
"
|
|
5002
|
+
"files",
|
|
5003
|
+
"export.js"
|
|
4991
5004
|
],
|
|
4992
5005
|
"aliasPermutations": [],
|
|
4993
5006
|
"permutations": [
|
|
4994
|
-
"hardis:org:
|
|
4995
|
-
"org:hardis:
|
|
4996
|
-
"org:
|
|
4997
|
-
"org:
|
|
4998
|
-
"hardis:
|
|
4999
|
-
"
|
|
5000
|
-
"
|
|
5001
|
-
"
|
|
5002
|
-
"hardis:
|
|
5003
|
-
"
|
|
5004
|
-
"
|
|
5005
|
-
"
|
|
5006
|
-
"hardis:org:
|
|
5007
|
-
"org:hardis:
|
|
5008
|
-
"org:
|
|
5009
|
-
"org:
|
|
5010
|
-
"hardis:
|
|
5011
|
-
"
|
|
5012
|
-
"
|
|
5013
|
-
"
|
|
5014
|
-
"hardis:
|
|
5015
|
-
"
|
|
5016
|
-
"
|
|
5017
|
-
"
|
|
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"
|
|
5018
5031
|
]
|
|
5019
5032
|
},
|
|
5020
|
-
"hardis:org:
|
|
5033
|
+
"hardis:org:files:import": {
|
|
5021
5034
|
"aliases": [],
|
|
5022
5035
|
"args": {},
|
|
5023
|
-
"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",
|
|
5024
5037
|
"examples": [
|
|
5025
|
-
"$ sf hardis:org:
|
|
5038
|
+
"$ sf hardis:org:files:import"
|
|
5026
5039
|
],
|
|
5027
5040
|
"flags": {
|
|
5028
5041
|
"json": {
|
|
@@ -5040,6 +5053,21 @@
|
|
|
5040
5053
|
"multiple": false,
|
|
5041
5054
|
"type": "option"
|
|
5042
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
|
+
},
|
|
5043
5071
|
"debug": {
|
|
5044
5072
|
"char": "d",
|
|
5045
5073
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5078,13 +5106,13 @@
|
|
|
5078
5106
|
},
|
|
5079
5107
|
"hasDynamicHelp": true,
|
|
5080
5108
|
"hiddenAliases": [],
|
|
5081
|
-
"id": "hardis:org:
|
|
5109
|
+
"id": "hardis:org:files:import",
|
|
5082
5110
|
"pluginAlias": "sfdx-hardis",
|
|
5083
5111
|
"pluginName": "sfdx-hardis",
|
|
5084
5112
|
"pluginType": "core",
|
|
5085
5113
|
"strict": true,
|
|
5086
5114
|
"enableJsonFlag": true,
|
|
5087
|
-
"title": "
|
|
5115
|
+
"title": "Import files",
|
|
5088
5116
|
"requiresProject": false,
|
|
5089
5117
|
"isESM": true,
|
|
5090
5118
|
"relativePath": [
|
|
@@ -5092,46 +5120,46 @@
|
|
|
5092
5120
|
"commands",
|
|
5093
5121
|
"hardis",
|
|
5094
5122
|
"org",
|
|
5095
|
-
"
|
|
5096
|
-
"
|
|
5123
|
+
"files",
|
|
5124
|
+
"import.js"
|
|
5097
5125
|
],
|
|
5098
5126
|
"aliasPermutations": [],
|
|
5099
5127
|
"permutations": [
|
|
5100
|
-
"hardis:org:
|
|
5101
|
-
"org:hardis:
|
|
5102
|
-
"org:
|
|
5103
|
-
"org:
|
|
5104
|
-
"hardis:
|
|
5105
|
-
"
|
|
5106
|
-
"
|
|
5107
|
-
"
|
|
5108
|
-
"hardis:
|
|
5109
|
-
"
|
|
5110
|
-
"
|
|
5111
|
-
"
|
|
5112
|
-
"hardis:org:
|
|
5113
|
-
"org:hardis:
|
|
5114
|
-
"org:
|
|
5115
|
-
"org:
|
|
5116
|
-
"hardis:
|
|
5117
|
-
"
|
|
5118
|
-
"
|
|
5119
|
-
"
|
|
5120
|
-
"hardis:
|
|
5121
|
-
"
|
|
5122
|
-
"
|
|
5123
|
-
"
|
|
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"
|
|
5124
5152
|
]
|
|
5125
5153
|
},
|
|
5126
|
-
"hardis:org:diagnose:
|
|
5154
|
+
"hardis:org:diagnose:audittrail": {
|
|
5127
5155
|
"aliases": [],
|
|
5128
5156
|
"args": {},
|
|
5129
|
-
"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",
|
|
5130
5158
|
"examples": [
|
|
5131
|
-
"$ sf hardis:org:diagnose:
|
|
5132
|
-
"$ sf hardis:org:diagnose:
|
|
5133
|
-
"$ sf hardis:org:diagnose:
|
|
5134
|
-
"$ 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"
|
|
5135
5163
|
],
|
|
5136
5164
|
"flags": {
|
|
5137
5165
|
"json": {
|
|
@@ -5149,20 +5177,18 @@
|
|
|
5149
5177
|
"multiple": false,
|
|
5150
5178
|
"type": "option"
|
|
5151
5179
|
},
|
|
5152
|
-
"
|
|
5180
|
+
"excludeusers": {
|
|
5153
5181
|
"char": "e",
|
|
5154
|
-
"description": "
|
|
5155
|
-
"name": "
|
|
5156
|
-
"default": "ApiTotalUsage",
|
|
5182
|
+
"description": "Comma-separated list of usernames to exclude",
|
|
5183
|
+
"name": "excludeusers",
|
|
5157
5184
|
"hasDynamicHelp": false,
|
|
5158
5185
|
"multiple": false,
|
|
5159
5186
|
"type": "option"
|
|
5160
5187
|
},
|
|
5161
|
-
"
|
|
5162
|
-
"char": "
|
|
5163
|
-
"description": "Number of
|
|
5164
|
-
"name": "
|
|
5165
|
-
"default": 999,
|
|
5188
|
+
"lastndays": {
|
|
5189
|
+
"char": "t",
|
|
5190
|
+
"description": "Number of days to extract from today (included)",
|
|
5191
|
+
"name": "lastndays",
|
|
5166
5192
|
"hasDynamicHelp": false,
|
|
5167
5193
|
"multiple": false,
|
|
5168
5194
|
"type": "option"
|
|
@@ -5213,13 +5239,13 @@
|
|
|
5213
5239
|
},
|
|
5214
5240
|
"hasDynamicHelp": true,
|
|
5215
5241
|
"hiddenAliases": [],
|
|
5216
|
-
"id": "hardis:org:diagnose:
|
|
5242
|
+
"id": "hardis:org:diagnose:audittrail",
|
|
5217
5243
|
"pluginAlias": "sfdx-hardis",
|
|
5218
5244
|
"pluginName": "sfdx-hardis",
|
|
5219
5245
|
"pluginType": "core",
|
|
5220
5246
|
"strict": true,
|
|
5221
5247
|
"enableJsonFlag": true,
|
|
5222
|
-
"title": "
|
|
5248
|
+
"title": "Diagnose content of Setup Audit Trail",
|
|
5223
5249
|
"requiresProject": false,
|
|
5224
5250
|
"isESM": true,
|
|
5225
5251
|
"relativePath": [
|
|
@@ -5228,50 +5254,50 @@
|
|
|
5228
5254
|
"hardis",
|
|
5229
5255
|
"org",
|
|
5230
5256
|
"diagnose",
|
|
5231
|
-
"
|
|
5257
|
+
"audittrail.js"
|
|
5232
5258
|
],
|
|
5233
5259
|
"aliasPermutations": [],
|
|
5234
5260
|
"permutations": [
|
|
5235
|
-
"hardis:org:diagnose:
|
|
5236
|
-
"org:hardis:diagnose:
|
|
5237
|
-
"org:diagnose:hardis:
|
|
5238
|
-
"org:diagnose:
|
|
5239
|
-
"hardis:diagnose:org:
|
|
5240
|
-
"diagnose:hardis:org:
|
|
5241
|
-
"diagnose:org:hardis:
|
|
5242
|
-
"diagnose:org:
|
|
5243
|
-
"hardis:diagnose:
|
|
5244
|
-
"diagnose:hardis:
|
|
5245
|
-
"diagnose:
|
|
5246
|
-
"diagnose:
|
|
5247
|
-
"hardis:org:
|
|
5248
|
-
"org:hardis:
|
|
5249
|
-
"org:
|
|
5250
|
-
"org:
|
|
5251
|
-
"hardis:
|
|
5252
|
-
"
|
|
5253
|
-
"
|
|
5254
|
-
"
|
|
5255
|
-
"hardis:
|
|
5256
|
-
"
|
|
5257
|
-
"
|
|
5258
|
-
"
|
|
5259
|
-
]
|
|
5260
|
-
},
|
|
5261
|
-
"hardis:org:diagnose:
|
|
5262
|
-
"aliases": [],
|
|
5263
|
-
"args": {},
|
|
5264
|
-
"description": "
|
|
5265
|
-
"examples": [
|
|
5266
|
-
"$ sf hardis:org:diagnose:
|
|
5267
|
-
],
|
|
5268
|
-
"flags": {
|
|
5269
|
-
"json": {
|
|
5270
|
-
"description": "Format output as json.",
|
|
5271
|
-
"helpGroup": "GLOBAL",
|
|
5272
|
-
"name": "json",
|
|
5273
|
-
"allowNo": false,
|
|
5274
|
-
"type": "boolean"
|
|
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"
|
|
5275
5301
|
},
|
|
5276
5302
|
"flags-dir": {
|
|
5277
5303
|
"helpGroup": "GLOBAL",
|
|
@@ -5281,21 +5307,6 @@
|
|
|
5281
5307
|
"multiple": false,
|
|
5282
5308
|
"type": "option"
|
|
5283
5309
|
},
|
|
5284
|
-
"outputfile": {
|
|
5285
|
-
"char": "f",
|
|
5286
|
-
"description": "Force the path and name of output report file. Must end with .csv",
|
|
5287
|
-
"name": "outputfile",
|
|
5288
|
-
"hasDynamicHelp": false,
|
|
5289
|
-
"multiple": false,
|
|
5290
|
-
"type": "option"
|
|
5291
|
-
},
|
|
5292
|
-
"usedonly": {
|
|
5293
|
-
"char": "u",
|
|
5294
|
-
"description": "Filter to have only used licenses",
|
|
5295
|
-
"name": "usedonly",
|
|
5296
|
-
"allowNo": false,
|
|
5297
|
-
"type": "boolean"
|
|
5298
|
-
},
|
|
5299
5310
|
"debug": {
|
|
5300
5311
|
"char": "d",
|
|
5301
5312
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5334,13 +5345,13 @@
|
|
|
5334
5345
|
},
|
|
5335
5346
|
"hasDynamicHelp": true,
|
|
5336
5347
|
"hiddenAliases": [],
|
|
5337
|
-
"id": "hardis:org:diagnose:
|
|
5348
|
+
"id": "hardis:org:diagnose:instanceupgrade",
|
|
5338
5349
|
"pluginAlias": "sfdx-hardis",
|
|
5339
5350
|
"pluginName": "sfdx-hardis",
|
|
5340
5351
|
"pluginType": "core",
|
|
5341
5352
|
"strict": true,
|
|
5342
5353
|
"enableJsonFlag": true,
|
|
5343
|
-
"title": "
|
|
5354
|
+
"title": "Get Instance Upgrade date",
|
|
5344
5355
|
"requiresProject": false,
|
|
5345
5356
|
"isESM": true,
|
|
5346
5357
|
"relativePath": [
|
|
@@ -5349,42 +5360,45 @@
|
|
|
5349
5360
|
"hardis",
|
|
5350
5361
|
"org",
|
|
5351
5362
|
"diagnose",
|
|
5352
|
-
"
|
|
5363
|
+
"instanceupgrade.js"
|
|
5353
5364
|
],
|
|
5354
5365
|
"aliasPermutations": [],
|
|
5355
5366
|
"permutations": [
|
|
5356
|
-
"hardis:org:diagnose:
|
|
5357
|
-
"org:hardis:diagnose:
|
|
5358
|
-
"org:diagnose:hardis:
|
|
5359
|
-
"org:diagnose:
|
|
5360
|
-
"hardis:diagnose:org:
|
|
5361
|
-
"diagnose:hardis:org:
|
|
5362
|
-
"diagnose:org:hardis:
|
|
5363
|
-
"diagnose:org:
|
|
5364
|
-
"hardis:diagnose:
|
|
5365
|
-
"diagnose:hardis:
|
|
5366
|
-
"diagnose:
|
|
5367
|
-
"diagnose:
|
|
5368
|
-
"hardis:org:
|
|
5369
|
-
"org:hardis:
|
|
5370
|
-
"org:
|
|
5371
|
-
"org:
|
|
5372
|
-
"hardis:
|
|
5373
|
-
"
|
|
5374
|
-
"
|
|
5375
|
-
"
|
|
5376
|
-
"hardis:
|
|
5377
|
-
"
|
|
5378
|
-
"
|
|
5379
|
-
"
|
|
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"
|
|
5380
5391
|
]
|
|
5381
5392
|
},
|
|
5382
|
-
"hardis:org:diagnose:
|
|
5393
|
+
"hardis:org:diagnose:legacyapi": {
|
|
5383
5394
|
"aliases": [],
|
|
5384
5395
|
"args": {},
|
|
5385
|
-
"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",
|
|
5386
5397
|
"examples": [
|
|
5387
|
-
"$ 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"
|
|
5388
5402
|
],
|
|
5389
5403
|
"flags": {
|
|
5390
5404
|
"json": {
|
|
@@ -5402,6 +5416,24 @@
|
|
|
5402
5416
|
"multiple": false,
|
|
5403
5417
|
"type": "option"
|
|
5404
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
|
+
},
|
|
5405
5437
|
"outputfile": {
|
|
5406
5438
|
"char": "f",
|
|
5407
5439
|
"description": "Force the path and name of output report file. Must end with .csv",
|
|
@@ -5448,13 +5480,13 @@
|
|
|
5448
5480
|
},
|
|
5449
5481
|
"hasDynamicHelp": true,
|
|
5450
5482
|
"hiddenAliases": [],
|
|
5451
|
-
"id": "hardis:org:diagnose:
|
|
5483
|
+
"id": "hardis:org:diagnose:legacyapi",
|
|
5452
5484
|
"pluginAlias": "sfdx-hardis",
|
|
5453
5485
|
"pluginName": "sfdx-hardis",
|
|
5454
5486
|
"pluginType": "core",
|
|
5455
5487
|
"strict": true,
|
|
5456
5488
|
"enableJsonFlag": true,
|
|
5457
|
-
"title": "Check
|
|
5489
|
+
"title": "Check for legacy API use",
|
|
5458
5490
|
"requiresProject": false,
|
|
5459
5491
|
"isESM": true,
|
|
5460
5492
|
"relativePath": [
|
|
@@ -5463,43 +5495,42 @@
|
|
|
5463
5495
|
"hardis",
|
|
5464
5496
|
"org",
|
|
5465
5497
|
"diagnose",
|
|
5466
|
-
"
|
|
5498
|
+
"legacyapi.js"
|
|
5467
5499
|
],
|
|
5468
5500
|
"aliasPermutations": [],
|
|
5469
5501
|
"permutations": [
|
|
5470
|
-
"hardis:org:diagnose:
|
|
5471
|
-
"org:hardis:diagnose:
|
|
5472
|
-
"org:diagnose:hardis:
|
|
5473
|
-
"org:diagnose:
|
|
5474
|
-
"hardis:diagnose:org:
|
|
5475
|
-
"diagnose:hardis:org:
|
|
5476
|
-
"diagnose:org:hardis:
|
|
5477
|
-
"diagnose:org:
|
|
5478
|
-
"hardis:diagnose:
|
|
5479
|
-
"diagnose:hardis:
|
|
5480
|
-
"diagnose:
|
|
5481
|
-
"diagnose:
|
|
5482
|
-
"hardis:org:
|
|
5483
|
-
"org:hardis:
|
|
5484
|
-
"org:
|
|
5485
|
-
"org:
|
|
5486
|
-
"hardis:
|
|
5487
|
-
"
|
|
5488
|
-
"
|
|
5489
|
-
"
|
|
5490
|
-
"hardis:
|
|
5491
|
-
"
|
|
5492
|
-
"
|
|
5493
|
-
"
|
|
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"
|
|
5494
5526
|
]
|
|
5495
5527
|
},
|
|
5496
|
-
"hardis:org:diagnose:
|
|
5528
|
+
"hardis:org:diagnose:licenses": {
|
|
5497
5529
|
"aliases": [],
|
|
5498
5530
|
"args": {},
|
|
5499
|
-
"description": "
|
|
5531
|
+
"description": "Mostly used for monitoring (Grafana) but you can also use it manually :)",
|
|
5500
5532
|
"examples": [
|
|
5501
|
-
"$ sf hardis:org:diagnose:
|
|
5502
|
-
"$ sf hardis:org:diagnose:unused-apex-classes --days 700"
|
|
5533
|
+
"$ sf hardis:org:diagnose:licenses"
|
|
5503
5534
|
],
|
|
5504
5535
|
"flags": {
|
|
5505
5536
|
"json": {
|
|
@@ -5525,13 +5556,12 @@
|
|
|
5525
5556
|
"multiple": false,
|
|
5526
5557
|
"type": "option"
|
|
5527
5558
|
},
|
|
5528
|
-
"
|
|
5529
|
-
"char": "
|
|
5530
|
-
"description": "
|
|
5531
|
-
"name": "
|
|
5532
|
-
"
|
|
5533
|
-
"
|
|
5534
|
-
"type": "option"
|
|
5559
|
+
"usedonly": {
|
|
5560
|
+
"char": "u",
|
|
5561
|
+
"description": "Filter to have only used licenses",
|
|
5562
|
+
"name": "usedonly",
|
|
5563
|
+
"allowNo": false,
|
|
5564
|
+
"type": "boolean"
|
|
5535
5565
|
},
|
|
5536
5566
|
"debug": {
|
|
5537
5567
|
"char": "d",
|
|
@@ -5571,13 +5601,13 @@
|
|
|
5571
5601
|
},
|
|
5572
5602
|
"hasDynamicHelp": true,
|
|
5573
5603
|
"hiddenAliases": [],
|
|
5574
|
-
"id": "hardis:org:diagnose:
|
|
5604
|
+
"id": "hardis:org:diagnose:licenses",
|
|
5575
5605
|
"pluginAlias": "sfdx-hardis",
|
|
5576
5606
|
"pluginName": "sfdx-hardis",
|
|
5577
5607
|
"pluginType": "core",
|
|
5578
5608
|
"strict": true,
|
|
5579
5609
|
"enableJsonFlag": true,
|
|
5580
|
-
"title": "
|
|
5610
|
+
"title": "List licenses subscribed and used in a Salesforce org",
|
|
5581
5611
|
"requiresProject": false,
|
|
5582
5612
|
"isESM": true,
|
|
5583
5613
|
"relativePath": [
|
|
@@ -5586,50 +5616,50 @@
|
|
|
5586
5616
|
"hardis",
|
|
5587
5617
|
"org",
|
|
5588
5618
|
"diagnose",
|
|
5589
|
-
"
|
|
5619
|
+
"licenses.js"
|
|
5590
5620
|
],
|
|
5591
5621
|
"aliasPermutations": [],
|
|
5592
5622
|
"permutations": [
|
|
5593
|
-
"hardis:org:diagnose:
|
|
5594
|
-
"org:hardis:diagnose:
|
|
5595
|
-
"org:diagnose:hardis:
|
|
5596
|
-
"org:diagnose:
|
|
5597
|
-
"hardis:diagnose:org:
|
|
5598
|
-
"diagnose:hardis:org:
|
|
5599
|
-
"diagnose:org:hardis:
|
|
5600
|
-
"diagnose:org:
|
|
5601
|
-
"hardis:diagnose:
|
|
5602
|
-
"diagnose:hardis:
|
|
5603
|
-
"diagnose:
|
|
5604
|
-
"diagnose:
|
|
5605
|
-
"hardis:org:
|
|
5606
|
-
"org:hardis:
|
|
5607
|
-
"org:
|
|
5608
|
-
"org:
|
|
5609
|
-
"hardis:
|
|
5610
|
-
"
|
|
5611
|
-
"
|
|
5612
|
-
"
|
|
5613
|
-
"hardis:
|
|
5614
|
-
"
|
|
5615
|
-
"
|
|
5616
|
-
"
|
|
5617
|
-
]
|
|
5618
|
-
},
|
|
5619
|
-
"hardis:org:diagnose:
|
|
5620
|
-
"aliases": [],
|
|
5621
|
-
"args": {},
|
|
5622
|
-
"description": "
|
|
5623
|
-
"examples": [
|
|
5624
|
-
"$ sf hardis:org:diagnose:
|
|
5625
|
-
],
|
|
5626
|
-
"flags": {
|
|
5627
|
-
"json": {
|
|
5628
|
-
"description": "Format output as json.",
|
|
5629
|
-
"helpGroup": "GLOBAL",
|
|
5630
|
-
"name": "json",
|
|
5631
|
-
"allowNo": false,
|
|
5632
|
-
"type": "boolean"
|
|
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,
|
|
5662
|
+
"type": "boolean"
|
|
5633
5663
|
},
|
|
5634
5664
|
"flags-dir": {
|
|
5635
5665
|
"helpGroup": "GLOBAL",
|
|
@@ -5685,30 +5715,13 @@
|
|
|
5685
5715
|
},
|
|
5686
5716
|
"hasDynamicHelp": true,
|
|
5687
5717
|
"hiddenAliases": [],
|
|
5688
|
-
"id": "hardis:org:diagnose:
|
|
5718
|
+
"id": "hardis:org:diagnose:releaseupdates",
|
|
5689
5719
|
"pluginAlias": "sfdx-hardis",
|
|
5690
5720
|
"pluginName": "sfdx-hardis",
|
|
5691
5721
|
"pluginType": "core",
|
|
5692
5722
|
"strict": true,
|
|
5693
5723
|
"enableJsonFlag": true,
|
|
5694
|
-
"title": "
|
|
5695
|
-
"allowedInactiveConnectedApps": [
|
|
5696
|
-
"Ant Migration Tool",
|
|
5697
|
-
"Chatter Desktop",
|
|
5698
|
-
"Chatter Mobile for BlackBerry",
|
|
5699
|
-
"Force.com IDE",
|
|
5700
|
-
"OIQ_Integration",
|
|
5701
|
-
"Salesforce CLI",
|
|
5702
|
-
"Salesforce Files",
|
|
5703
|
-
"Salesforce Mobile Dashboards",
|
|
5704
|
-
"Salesforce Touch",
|
|
5705
|
-
"Salesforce for Outlook",
|
|
5706
|
-
"SalesforceA",
|
|
5707
|
-
"SalesforceA for Android",
|
|
5708
|
-
"SalesforceA for iOS",
|
|
5709
|
-
"SalesforceDX Namespace Registry",
|
|
5710
|
-
"SalesforceIQ"
|
|
5711
|
-
],
|
|
5724
|
+
"title": "Check Release Updates of an org",
|
|
5712
5725
|
"requiresProject": false,
|
|
5713
5726
|
"isESM": true,
|
|
5714
5727
|
"relativePath": [
|
|
@@ -5717,43 +5730,43 @@
|
|
|
5717
5730
|
"hardis",
|
|
5718
5731
|
"org",
|
|
5719
5732
|
"diagnose",
|
|
5720
|
-
"
|
|
5733
|
+
"releaseupdates.js"
|
|
5721
5734
|
],
|
|
5722
5735
|
"aliasPermutations": [],
|
|
5723
5736
|
"permutations": [
|
|
5724
|
-
"hardis:org:diagnose:
|
|
5725
|
-
"org:hardis:diagnose:
|
|
5726
|
-
"org:diagnose:hardis:
|
|
5727
|
-
"org:diagnose:
|
|
5728
|
-
"hardis:diagnose:org:
|
|
5729
|
-
"diagnose:hardis:org:
|
|
5730
|
-
"diagnose:org:hardis:
|
|
5731
|
-
"diagnose:org:
|
|
5732
|
-
"hardis:diagnose:
|
|
5733
|
-
"diagnose:hardis:
|
|
5734
|
-
"diagnose:
|
|
5735
|
-
"diagnose:
|
|
5736
|
-
"hardis:org:
|
|
5737
|
-
"org:hardis:
|
|
5738
|
-
"org:
|
|
5739
|
-
"org:
|
|
5740
|
-
"hardis:
|
|
5741
|
-
"
|
|
5742
|
-
"
|
|
5743
|
-
"
|
|
5744
|
-
"hardis:
|
|
5745
|
-
"
|
|
5746
|
-
"
|
|
5747
|
-
"
|
|
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"
|
|
5748
5761
|
]
|
|
5749
5762
|
},
|
|
5750
|
-
"hardis:org:diagnose:
|
|
5763
|
+
"hardis:org:diagnose:unused-apex-classes": {
|
|
5751
5764
|
"aliases": [],
|
|
5752
5765
|
"args": {},
|
|
5753
|
-
"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",
|
|
5754
5767
|
"examples": [
|
|
5755
|
-
"$ sf hardis:org:diagnose:
|
|
5756
|
-
"$ sf hardis:org:diagnose:
|
|
5768
|
+
"$ sf hardis:org:diagnose:unused-apex-classes",
|
|
5769
|
+
"$ sf hardis:org:diagnose:unused-apex-classes --days 700"
|
|
5757
5770
|
],
|
|
5758
5771
|
"flags": {
|
|
5759
5772
|
"json": {
|
|
@@ -5779,6 +5792,14 @@
|
|
|
5779
5792
|
"multiple": false,
|
|
5780
5793
|
"type": "option"
|
|
5781
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
|
+
},
|
|
5782
5803
|
"debug": {
|
|
5783
5804
|
"char": "d",
|
|
5784
5805
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5817,32 +5838,14 @@
|
|
|
5817
5838
|
},
|
|
5818
5839
|
"hasDynamicHelp": true,
|
|
5819
5840
|
"hiddenAliases": [],
|
|
5820
|
-
"id": "hardis:org:diagnose:
|
|
5841
|
+
"id": "hardis:org:diagnose:unused-apex-classes",
|
|
5821
5842
|
"pluginAlias": "sfdx-hardis",
|
|
5822
5843
|
"pluginName": "sfdx-hardis",
|
|
5823
5844
|
"pluginType": "core",
|
|
5824
5845
|
"strict": true,
|
|
5825
5846
|
"enableJsonFlag": true,
|
|
5826
|
-
"title": "Detect unused
|
|
5847
|
+
"title": "Detect unused Apex classes in an org",
|
|
5827
5848
|
"requiresProject": false,
|
|
5828
|
-
"additionalPermissionSetsToAlwaysGet": [
|
|
5829
|
-
"Sales_User"
|
|
5830
|
-
],
|
|
5831
|
-
"permSetsPermSetLicenses": [
|
|
5832
|
-
{
|
|
5833
|
-
"permSet": "Sales_User",
|
|
5834
|
-
"permSetLicense": "SalesUserPsl"
|
|
5835
|
-
}
|
|
5836
|
-
],
|
|
5837
|
-
"profilesPermissionSetLicenses": [
|
|
5838
|
-
{
|
|
5839
|
-
"profile": "Salesforce API Only",
|
|
5840
|
-
"permSetLicense": "SalesforceAPIIntegrationPsl"
|
|
5841
|
-
}
|
|
5842
|
-
],
|
|
5843
|
-
"alwaysExcludeForActiveUsersPermissionSetLicenses": [
|
|
5844
|
-
"IdentityConnect"
|
|
5845
|
-
],
|
|
5846
5849
|
"isESM": true,
|
|
5847
5850
|
"relativePath": [
|
|
5848
5851
|
"lib",
|
|
@@ -5850,46 +5853,42 @@
|
|
|
5850
5853
|
"hardis",
|
|
5851
5854
|
"org",
|
|
5852
5855
|
"diagnose",
|
|
5853
|
-
"
|
|
5856
|
+
"unused-apex-classes.js"
|
|
5854
5857
|
],
|
|
5855
5858
|
"aliasPermutations": [],
|
|
5856
5859
|
"permutations": [
|
|
5857
|
-
"hardis:org:diagnose:
|
|
5858
|
-
"org:hardis:diagnose:
|
|
5859
|
-
"org:diagnose:hardis:
|
|
5860
|
-
"org:diagnose:
|
|
5861
|
-
"hardis:diagnose:org:
|
|
5862
|
-
"diagnose:hardis:org:
|
|
5863
|
-
"diagnose:org:hardis:
|
|
5864
|
-
"diagnose:org:
|
|
5865
|
-
"hardis:diagnose:
|
|
5866
|
-
"diagnose:hardis:
|
|
5867
|
-
"diagnose:
|
|
5868
|
-
"diagnose:
|
|
5869
|
-
"hardis:org:
|
|
5870
|
-
"org:hardis:
|
|
5871
|
-
"org:
|
|
5872
|
-
"org:
|
|
5873
|
-
"hardis:
|
|
5874
|
-
"
|
|
5875
|
-
"
|
|
5876
|
-
"
|
|
5877
|
-
"hardis:
|
|
5878
|
-
"
|
|
5879
|
-
"
|
|
5880
|
-
"
|
|
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"
|
|
5881
5884
|
]
|
|
5882
5885
|
},
|
|
5883
|
-
"hardis:org:diagnose:
|
|
5886
|
+
"hardis:org:diagnose:unused-connected-apps": {
|
|
5884
5887
|
"aliases": [],
|
|
5885
5888
|
"args": {},
|
|
5886
|
-
"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",
|
|
5887
5890
|
"examples": [
|
|
5888
|
-
"$ sf hardis:org:diagnose:
|
|
5889
|
-
"$ sf hardis:org:diagnose:unusedusers --days 365",
|
|
5890
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm",
|
|
5891
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licenseidentifiers SFDC,AUL,AUL1",
|
|
5892
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm --returnactiveusers"
|
|
5891
|
+
"$ sf hardis:org:diagnose:unused-connected-apps"
|
|
5893
5892
|
],
|
|
5894
5893
|
"flags": {
|
|
5895
5894
|
"json": {
|
|
@@ -5915,41 +5914,6 @@
|
|
|
5915
5914
|
"multiple": false,
|
|
5916
5915
|
"type": "option"
|
|
5917
5916
|
},
|
|
5918
|
-
"days": {
|
|
5919
|
-
"char": "t",
|
|
5920
|
-
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
5921
|
-
"name": "days",
|
|
5922
|
-
"hasDynamicHelp": false,
|
|
5923
|
-
"multiple": false,
|
|
5924
|
-
"type": "option"
|
|
5925
|
-
},
|
|
5926
|
-
"licensetypes": {
|
|
5927
|
-
"char": "l",
|
|
5928
|
-
"description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
|
|
5929
|
-
"name": "licensetypes",
|
|
5930
|
-
"hasDynamicHelp": false,
|
|
5931
|
-
"multiple": false,
|
|
5932
|
-
"options": [
|
|
5933
|
-
"all",
|
|
5934
|
-
"all-crm",
|
|
5935
|
-
"all-paying"
|
|
5936
|
-
],
|
|
5937
|
-
"type": "option"
|
|
5938
|
-
},
|
|
5939
|
-
"licenseidentifiers": {
|
|
5940
|
-
"char": "i",
|
|
5941
|
-
"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",
|
|
5942
|
-
"name": "licenseidentifiers",
|
|
5943
|
-
"hasDynamicHelp": false,
|
|
5944
|
-
"multiple": false,
|
|
5945
|
-
"type": "option"
|
|
5946
|
-
},
|
|
5947
|
-
"returnactiveusers": {
|
|
5948
|
-
"description": "Inverts the command by returning the active users",
|
|
5949
|
-
"name": "returnactiveusers",
|
|
5950
|
-
"allowNo": false,
|
|
5951
|
-
"type": "boolean"
|
|
5952
|
-
},
|
|
5953
5917
|
"debug": {
|
|
5954
5918
|
"char": "d",
|
|
5955
5919
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5988,57 +5952,75 @@
|
|
|
5988
5952
|
},
|
|
5989
5953
|
"hasDynamicHelp": true,
|
|
5990
5954
|
"hiddenAliases": [],
|
|
5991
|
-
"id": "hardis:org:diagnose:
|
|
5955
|
+
"id": "hardis:org:diagnose:unused-connected-apps",
|
|
5992
5956
|
"pluginAlias": "sfdx-hardis",
|
|
5993
5957
|
"pluginName": "sfdx-hardis",
|
|
5994
5958
|
"pluginType": "core",
|
|
5995
5959
|
"strict": true,
|
|
5996
5960
|
"enableJsonFlag": true,
|
|
5997
|
-
"title": "
|
|
5998
|
-
"
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
"
|
|
6002
|
-
"
|
|
6003
|
-
"
|
|
6004
|
-
"
|
|
6005
|
-
"
|
|
6006
|
-
"
|
|
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"
|
|
6007
5988
|
],
|
|
6008
5989
|
"aliasPermutations": [],
|
|
6009
5990
|
"permutations": [
|
|
6010
|
-
"hardis:org:diagnose:
|
|
6011
|
-
"org:hardis:diagnose:
|
|
6012
|
-
"org:diagnose:hardis:
|
|
6013
|
-
"org:diagnose:
|
|
6014
|
-
"hardis:diagnose:org:
|
|
6015
|
-
"diagnose:hardis:org:
|
|
6016
|
-
"diagnose:org:hardis:
|
|
6017
|
-
"diagnose:org:
|
|
6018
|
-
"hardis:diagnose:
|
|
6019
|
-
"diagnose:hardis:
|
|
6020
|
-
"diagnose:
|
|
6021
|
-
"diagnose:
|
|
6022
|
-
"hardis:org:
|
|
6023
|
-
"org:hardis:
|
|
6024
|
-
"org:
|
|
6025
|
-
"org:
|
|
6026
|
-
"hardis:
|
|
6027
|
-
"
|
|
6028
|
-
"
|
|
6029
|
-
"
|
|
6030
|
-
"hardis:
|
|
6031
|
-
"
|
|
6032
|
-
"
|
|
6033
|
-
"
|
|
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"
|
|
6034
6015
|
]
|
|
6035
6016
|
},
|
|
6036
|
-
"hardis:org:
|
|
6017
|
+
"hardis:org:diagnose:unusedlicenses": {
|
|
6037
6018
|
"aliases": [],
|
|
6038
6019
|
"args": {},
|
|
6039
|
-
"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",
|
|
6040
6021
|
"examples": [
|
|
6041
|
-
"$ sf hardis:org:
|
|
6022
|
+
"$ sf hardis:org:diagnose:unusedlicenses",
|
|
6023
|
+
"$ sf hardis:org:diagnose:unusedlicenses --fix"
|
|
6042
6024
|
],
|
|
6043
6025
|
"flags": {
|
|
6044
6026
|
"json": {
|
|
@@ -6056,37 +6038,10 @@
|
|
|
6056
6038
|
"multiple": false,
|
|
6057
6039
|
"type": "option"
|
|
6058
6040
|
},
|
|
6059
|
-
"
|
|
6060
|
-
"char": "
|
|
6061
|
-
"description": "
|
|
6062
|
-
"name": "
|
|
6063
|
-
"hasDynamicHelp": false,
|
|
6064
|
-
"multiple": false,
|
|
6065
|
-
"type": "option"
|
|
6066
|
-
},
|
|
6067
|
-
"chunksize": {
|
|
6068
|
-
"char": "c",
|
|
6069
|
-
"description": "Number of records to add in a chunk before it is processed",
|
|
6070
|
-
"name": "chunksize",
|
|
6071
|
-
"default": 1000,
|
|
6072
|
-
"hasDynamicHelp": false,
|
|
6073
|
-
"multiple": false,
|
|
6074
|
-
"type": "option"
|
|
6075
|
-
},
|
|
6076
|
-
"polltimeout": {
|
|
6077
|
-
"char": "t",
|
|
6078
|
-
"description": "Timeout in MS for Bulk API calls",
|
|
6079
|
-
"name": "polltimeout",
|
|
6080
|
-
"default": 300000,
|
|
6081
|
-
"hasDynamicHelp": false,
|
|
6082
|
-
"multiple": false,
|
|
6083
|
-
"type": "option"
|
|
6084
|
-
},
|
|
6085
|
-
"startchunknumber": {
|
|
6086
|
-
"char": "s",
|
|
6087
|
-
"description": "Chunk number to start from",
|
|
6088
|
-
"name": "startchunknumber",
|
|
6089
|
-
"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",
|
|
6090
6045
|
"hasDynamicHelp": false,
|
|
6091
6046
|
"multiple": false,
|
|
6092
6047
|
"type": "option"
|
|
@@ -6129,57 +6084,79 @@
|
|
|
6129
6084
|
},
|
|
6130
6085
|
"hasDynamicHelp": true,
|
|
6131
6086
|
"hiddenAliases": [],
|
|
6132
|
-
"id": "hardis:org:
|
|
6087
|
+
"id": "hardis:org:diagnose:unusedlicenses",
|
|
6133
6088
|
"pluginAlias": "sfdx-hardis",
|
|
6134
6089
|
"pluginName": "sfdx-hardis",
|
|
6135
6090
|
"pluginType": "core",
|
|
6136
6091
|
"strict": true,
|
|
6137
6092
|
"enableJsonFlag": true,
|
|
6138
|
-
"title": "
|
|
6093
|
+
"title": "Detect unused Permission Set Licenses (beta)",
|
|
6139
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
|
+
],
|
|
6140
6113
|
"isESM": true,
|
|
6141
6114
|
"relativePath": [
|
|
6142
6115
|
"lib",
|
|
6143
6116
|
"commands",
|
|
6144
6117
|
"hardis",
|
|
6145
6118
|
"org",
|
|
6146
|
-
"
|
|
6147
|
-
"
|
|
6119
|
+
"diagnose",
|
|
6120
|
+
"unusedlicenses.js"
|
|
6148
6121
|
],
|
|
6149
6122
|
"aliasPermutations": [],
|
|
6150
6123
|
"permutations": [
|
|
6151
|
-
"hardis:org:
|
|
6152
|
-
"org:hardis:
|
|
6153
|
-
"org:
|
|
6154
|
-
"org:
|
|
6155
|
-
"hardis:
|
|
6156
|
-
"
|
|
6157
|
-
"
|
|
6158
|
-
"
|
|
6159
|
-
"hardis:
|
|
6160
|
-
"
|
|
6161
|
-
"
|
|
6162
|
-
"
|
|
6163
|
-
"hardis:org:
|
|
6164
|
-
"org:hardis:
|
|
6165
|
-
"org:
|
|
6166
|
-
"org:
|
|
6167
|
-
"hardis:
|
|
6168
|
-
"
|
|
6169
|
-
"
|
|
6170
|
-
"
|
|
6171
|
-
"hardis:
|
|
6172
|
-
"
|
|
6173
|
-
"
|
|
6174
|
-
"
|
|
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"
|
|
6175
6148
|
]
|
|
6176
6149
|
},
|
|
6177
|
-
"hardis:org:
|
|
6150
|
+
"hardis:org:diagnose:unusedusers": {
|
|
6178
6151
|
"aliases": [],
|
|
6179
6152
|
"args": {},
|
|
6180
|
-
"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",
|
|
6181
6154
|
"examples": [
|
|
6182
|
-
"$ 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"
|
|
6183
6160
|
],
|
|
6184
6161
|
"flags": {
|
|
6185
6162
|
"json": {
|
|
@@ -6197,18 +6174,46 @@
|
|
|
6197
6174
|
"multiple": false,
|
|
6198
6175
|
"type": "option"
|
|
6199
6176
|
},
|
|
6200
|
-
"
|
|
6201
|
-
"char": "
|
|
6202
|
-
"description": "
|
|
6203
|
-
"name": "
|
|
6177
|
+
"outputfile": {
|
|
6178
|
+
"char": "f",
|
|
6179
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6180
|
+
"name": "outputfile",
|
|
6204
6181
|
"hasDynamicHelp": false,
|
|
6205
6182
|
"multiple": false,
|
|
6206
6183
|
"type": "option"
|
|
6207
6184
|
},
|
|
6208
|
-
"
|
|
6209
|
-
"char": "
|
|
6210
|
-
"description": "
|
|
6211
|
-
"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",
|
|
6212
6217
|
"allowNo": false,
|
|
6213
6218
|
"type": "boolean"
|
|
6214
6219
|
},
|
|
@@ -6250,13 +6255,13 @@
|
|
|
6250
6255
|
},
|
|
6251
6256
|
"hasDynamicHelp": true,
|
|
6252
6257
|
"hiddenAliases": [],
|
|
6253
|
-
"id": "hardis:org:
|
|
6258
|
+
"id": "hardis:org:diagnose:unusedusers",
|
|
6254
6259
|
"pluginAlias": "sfdx-hardis",
|
|
6255
6260
|
"pluginName": "sfdx-hardis",
|
|
6256
6261
|
"pluginType": "core",
|
|
6257
6262
|
"strict": true,
|
|
6258
6263
|
"enableJsonFlag": true,
|
|
6259
|
-
"title": "
|
|
6264
|
+
"title": "Detect unused Users in Salesforce",
|
|
6260
6265
|
"requiresProject": false,
|
|
6261
6266
|
"isESM": true,
|
|
6262
6267
|
"relativePath": [
|
|
@@ -6264,35 +6269,35 @@
|
|
|
6264
6269
|
"commands",
|
|
6265
6270
|
"hardis",
|
|
6266
6271
|
"org",
|
|
6267
|
-
"
|
|
6268
|
-
"
|
|
6272
|
+
"diagnose",
|
|
6273
|
+
"unusedusers.js"
|
|
6269
6274
|
],
|
|
6270
6275
|
"aliasPermutations": [],
|
|
6271
6276
|
"permutations": [
|
|
6272
|
-
"hardis:org:
|
|
6273
|
-
"org:hardis:
|
|
6274
|
-
"org:
|
|
6275
|
-
"org:
|
|
6276
|
-
"hardis:
|
|
6277
|
-
"
|
|
6278
|
-
"
|
|
6279
|
-
"
|
|
6280
|
-
"hardis:
|
|
6281
|
-
"
|
|
6282
|
-
"
|
|
6283
|
-
"
|
|
6284
|
-
"hardis:org:
|
|
6285
|
-
"org:hardis:
|
|
6286
|
-
"org:
|
|
6287
|
-
"org:
|
|
6288
|
-
"hardis:
|
|
6289
|
-
"
|
|
6290
|
-
"
|
|
6291
|
-
"
|
|
6292
|
-
"hardis:
|
|
6293
|
-
"
|
|
6294
|
-
"
|
|
6295
|
-
"
|
|
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"
|
|
6296
6301
|
]
|
|
6297
6302
|
},
|
|
6298
6303
|
"hardis:org:fix:listviewmine": {
|
|
@@ -13878,5 +13883,5 @@
|
|
|
13878
13883
|
]
|
|
13879
13884
|
}
|
|
13880
13885
|
},
|
|
13881
|
-
"version": "5.10.2-
|
|
13886
|
+
"version": "5.10.2-beta202412301125.0"
|
|
13882
13887
|
}
|