sfdx-hardis 5.16.1 → 5.16.2-beta202501202143.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/lib/commands/hardis/doc/project2markdown.js +3 -16
- package/lib/commands/hardis/doc/project2markdown.js.map +1 -1
- package/lib/commands/hardis/org/monitor/backup.js +1 -0
- package/lib/commands/hardis/org/monitor/backup.js.map +1 -1
- package/lib/common/aiProvider/utils.d.ts +1 -0
- package/lib/common/aiProvider/utils.js +41 -1
- package/lib/common/aiProvider/utils.js.map +1 -1
- package/lib/common/utils/docUtils.js +4 -3
- package/lib/common/utils/docUtils.js.map +1 -1
- package/lib/common/utils/mermaidUtils.js +9 -6
- package/lib/common/utils/mermaidUtils.js.map +1 -1
- package/oclif.manifest.json +569 -569
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
"world:hello"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
-
"hardis:
|
|
60
|
+
"hardis:cache:clear": {
|
|
61
61
|
"aliases": [],
|
|
62
62
|
"args": {},
|
|
63
|
-
"description": "
|
|
63
|
+
"description": "Clear cache generated by sfdx-hardis",
|
|
64
64
|
"examples": [
|
|
65
|
-
"$ sf hardis:
|
|
65
|
+
"$ sf hardis:cache:clear"
|
|
66
66
|
],
|
|
67
67
|
"flags": {
|
|
68
68
|
"json": {
|
|
@@ -80,28 +80,6 @@
|
|
|
80
80
|
"multiple": false,
|
|
81
81
|
"type": "option"
|
|
82
82
|
},
|
|
83
|
-
"instanceurl": {
|
|
84
|
-
"char": "r",
|
|
85
|
-
"description": "URL of org instance",
|
|
86
|
-
"name": "instanceurl",
|
|
87
|
-
"hasDynamicHelp": false,
|
|
88
|
-
"multiple": false,
|
|
89
|
-
"type": "option"
|
|
90
|
-
},
|
|
91
|
-
"devhub": {
|
|
92
|
-
"char": "h",
|
|
93
|
-
"description": "Also connect associated DevHub",
|
|
94
|
-
"name": "devhub",
|
|
95
|
-
"allowNo": false,
|
|
96
|
-
"type": "boolean"
|
|
97
|
-
},
|
|
98
|
-
"scratchorg": {
|
|
99
|
-
"char": "s",
|
|
100
|
-
"description": "Scratch org",
|
|
101
|
-
"name": "scratchorg",
|
|
102
|
-
"allowNo": false,
|
|
103
|
-
"type": "boolean"
|
|
104
|
-
},
|
|
105
83
|
"debug": {
|
|
106
84
|
"char": "d",
|
|
107
85
|
"description": "Activate debug mode (more logs)",
|
|
@@ -125,38 +103,38 @@
|
|
|
125
103
|
},
|
|
126
104
|
"hasDynamicHelp": false,
|
|
127
105
|
"hiddenAliases": [],
|
|
128
|
-
"id": "hardis:
|
|
106
|
+
"id": "hardis:cache:clear",
|
|
129
107
|
"pluginAlias": "sfdx-hardis",
|
|
130
108
|
"pluginName": "sfdx-hardis",
|
|
131
109
|
"pluginType": "core",
|
|
132
110
|
"strict": true,
|
|
133
111
|
"enableJsonFlag": true,
|
|
134
|
-
"title": "
|
|
112
|
+
"title": "Clear sfdx-hardis cache",
|
|
135
113
|
"requiresProject": false,
|
|
136
114
|
"isESM": true,
|
|
137
115
|
"relativePath": [
|
|
138
116
|
"lib",
|
|
139
117
|
"commands",
|
|
140
118
|
"hardis",
|
|
141
|
-
"
|
|
142
|
-
"
|
|
119
|
+
"cache",
|
|
120
|
+
"clear.js"
|
|
143
121
|
],
|
|
144
122
|
"aliasPermutations": [],
|
|
145
123
|
"permutations": [
|
|
146
|
-
"hardis:
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"hardis:
|
|
150
|
-
"
|
|
151
|
-
"
|
|
124
|
+
"hardis:cache:clear",
|
|
125
|
+
"cache:hardis:clear",
|
|
126
|
+
"cache:clear:hardis",
|
|
127
|
+
"hardis:clear:cache",
|
|
128
|
+
"clear:hardis:cache",
|
|
129
|
+
"clear:cache:hardis"
|
|
152
130
|
]
|
|
153
131
|
},
|
|
154
|
-
"hardis:
|
|
132
|
+
"hardis:auth:login": {
|
|
155
133
|
"aliases": [],
|
|
156
134
|
"args": {},
|
|
157
|
-
"description": "
|
|
135
|
+
"description": "Login to salesforce org",
|
|
158
136
|
"examples": [
|
|
159
|
-
"$ sf hardis:
|
|
137
|
+
"$ sf hardis:auth:login"
|
|
160
138
|
],
|
|
161
139
|
"flags": {
|
|
162
140
|
"json": {
|
|
@@ -174,6 +152,28 @@
|
|
|
174
152
|
"multiple": false,
|
|
175
153
|
"type": "option"
|
|
176
154
|
},
|
|
155
|
+
"instanceurl": {
|
|
156
|
+
"char": "r",
|
|
157
|
+
"description": "URL of org instance",
|
|
158
|
+
"name": "instanceurl",
|
|
159
|
+
"hasDynamicHelp": false,
|
|
160
|
+
"multiple": false,
|
|
161
|
+
"type": "option"
|
|
162
|
+
},
|
|
163
|
+
"devhub": {
|
|
164
|
+
"char": "h",
|
|
165
|
+
"description": "Also connect associated DevHub",
|
|
166
|
+
"name": "devhub",
|
|
167
|
+
"allowNo": false,
|
|
168
|
+
"type": "boolean"
|
|
169
|
+
},
|
|
170
|
+
"scratchorg": {
|
|
171
|
+
"char": "s",
|
|
172
|
+
"description": "Scratch org",
|
|
173
|
+
"name": "scratchorg",
|
|
174
|
+
"allowNo": false,
|
|
175
|
+
"type": "boolean"
|
|
176
|
+
},
|
|
177
177
|
"debug": {
|
|
178
178
|
"char": "d",
|
|
179
179
|
"description": "Activate debug mode (more logs)",
|
|
@@ -197,30 +197,30 @@
|
|
|
197
197
|
},
|
|
198
198
|
"hasDynamicHelp": false,
|
|
199
199
|
"hiddenAliases": [],
|
|
200
|
-
"id": "hardis:
|
|
200
|
+
"id": "hardis:auth:login",
|
|
201
201
|
"pluginAlias": "sfdx-hardis",
|
|
202
202
|
"pluginName": "sfdx-hardis",
|
|
203
203
|
"pluginType": "core",
|
|
204
204
|
"strict": true,
|
|
205
205
|
"enableJsonFlag": true,
|
|
206
|
-
"title": "
|
|
206
|
+
"title": "Login",
|
|
207
207
|
"requiresProject": false,
|
|
208
208
|
"isESM": true,
|
|
209
209
|
"relativePath": [
|
|
210
210
|
"lib",
|
|
211
211
|
"commands",
|
|
212
212
|
"hardis",
|
|
213
|
-
"
|
|
214
|
-
"
|
|
213
|
+
"auth",
|
|
214
|
+
"login.js"
|
|
215
215
|
],
|
|
216
216
|
"aliasPermutations": [],
|
|
217
217
|
"permutations": [
|
|
218
|
-
"hardis:
|
|
219
|
-
"
|
|
220
|
-
"
|
|
221
|
-
"hardis:
|
|
222
|
-
"
|
|
223
|
-
"
|
|
218
|
+
"hardis:auth:login",
|
|
219
|
+
"auth:hardis:login",
|
|
220
|
+
"auth:login:hardis",
|
|
221
|
+
"hardis:login:auth",
|
|
222
|
+
"login:hardis:auth",
|
|
223
|
+
"login:auth:hardis"
|
|
224
224
|
]
|
|
225
225
|
},
|
|
226
226
|
"hardis:config:get": {
|
|
@@ -5018,15 +5018,12 @@
|
|
|
5018
5018
|
"import:data:org:hardis"
|
|
5019
5019
|
]
|
|
5020
5020
|
},
|
|
5021
|
-
"hardis:org:
|
|
5021
|
+
"hardis:org:files:export": {
|
|
5022
5022
|
"aliases": [],
|
|
5023
5023
|
"args": {},
|
|
5024
|
-
"description": "Export
|
|
5024
|
+
"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",
|
|
5025
5025
|
"examples": [
|
|
5026
|
-
"$ sf hardis:org:
|
|
5027
|
-
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
|
|
5028
|
-
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
|
|
5029
|
-
"$ sf hardis:org:diagnose:audittrail --lastndays 5"
|
|
5026
|
+
"$ sf hardis:org:files:export"
|
|
5030
5027
|
],
|
|
5031
5028
|
"flags": {
|
|
5032
5029
|
"json": {
|
|
@@ -5044,26 +5041,37 @@
|
|
|
5044
5041
|
"multiple": false,
|
|
5045
5042
|
"type": "option"
|
|
5046
5043
|
},
|
|
5047
|
-
"
|
|
5048
|
-
"char": "
|
|
5049
|
-
"description": "
|
|
5050
|
-
"name": "
|
|
5044
|
+
"path": {
|
|
5045
|
+
"char": "p",
|
|
5046
|
+
"description": "Path to the file export project",
|
|
5047
|
+
"name": "path",
|
|
5051
5048
|
"hasDynamicHelp": false,
|
|
5052
5049
|
"multiple": false,
|
|
5053
5050
|
"type": "option"
|
|
5054
5051
|
},
|
|
5055
|
-
"
|
|
5052
|
+
"chunksize": {
|
|
5053
|
+
"char": "c",
|
|
5054
|
+
"description": "Number of records to add in a chunk before it is processed",
|
|
5055
|
+
"name": "chunksize",
|
|
5056
|
+
"default": 1000,
|
|
5057
|
+
"hasDynamicHelp": false,
|
|
5058
|
+
"multiple": false,
|
|
5059
|
+
"type": "option"
|
|
5060
|
+
},
|
|
5061
|
+
"polltimeout": {
|
|
5056
5062
|
"char": "t",
|
|
5057
|
-
"description": "
|
|
5058
|
-
"name": "
|
|
5063
|
+
"description": "Timeout in MS for Bulk API calls",
|
|
5064
|
+
"name": "polltimeout",
|
|
5065
|
+
"default": 300000,
|
|
5059
5066
|
"hasDynamicHelp": false,
|
|
5060
5067
|
"multiple": false,
|
|
5061
5068
|
"type": "option"
|
|
5062
5069
|
},
|
|
5063
|
-
"
|
|
5064
|
-
"char": "
|
|
5065
|
-
"description": "
|
|
5066
|
-
"name": "
|
|
5070
|
+
"startchunknumber": {
|
|
5071
|
+
"char": "s",
|
|
5072
|
+
"description": "Chunk number to start from",
|
|
5073
|
+
"name": "startchunknumber",
|
|
5074
|
+
"default": 0,
|
|
5067
5075
|
"hasDynamicHelp": false,
|
|
5068
5076
|
"multiple": false,
|
|
5069
5077
|
"type": "option"
|
|
@@ -5106,13 +5114,13 @@
|
|
|
5106
5114
|
},
|
|
5107
5115
|
"hasDynamicHelp": true,
|
|
5108
5116
|
"hiddenAliases": [],
|
|
5109
|
-
"id": "hardis:org:
|
|
5117
|
+
"id": "hardis:org:files:export",
|
|
5110
5118
|
"pluginAlias": "sfdx-hardis",
|
|
5111
5119
|
"pluginName": "sfdx-hardis",
|
|
5112
5120
|
"pluginType": "core",
|
|
5113
5121
|
"strict": true,
|
|
5114
5122
|
"enableJsonFlag": true,
|
|
5115
|
-
"title": "
|
|
5123
|
+
"title": "Export files",
|
|
5116
5124
|
"requiresProject": false,
|
|
5117
5125
|
"isESM": true,
|
|
5118
5126
|
"relativePath": [
|
|
@@ -5120,43 +5128,43 @@
|
|
|
5120
5128
|
"commands",
|
|
5121
5129
|
"hardis",
|
|
5122
5130
|
"org",
|
|
5123
|
-
"
|
|
5124
|
-
"
|
|
5131
|
+
"files",
|
|
5132
|
+
"export.js"
|
|
5125
5133
|
],
|
|
5126
5134
|
"aliasPermutations": [],
|
|
5127
5135
|
"permutations": [
|
|
5128
|
-
"hardis:org:
|
|
5129
|
-
"org:hardis:
|
|
5130
|
-
"org:
|
|
5131
|
-
"org:
|
|
5132
|
-
"hardis:
|
|
5133
|
-
"
|
|
5134
|
-
"
|
|
5135
|
-
"
|
|
5136
|
-
"hardis:
|
|
5137
|
-
"
|
|
5138
|
-
"
|
|
5139
|
-
"
|
|
5140
|
-
"hardis:org:
|
|
5141
|
-
"org:hardis:
|
|
5142
|
-
"org:
|
|
5143
|
-
"org:
|
|
5144
|
-
"hardis:
|
|
5145
|
-
"
|
|
5146
|
-
"
|
|
5147
|
-
"
|
|
5148
|
-
"hardis:
|
|
5149
|
-
"
|
|
5150
|
-
"
|
|
5151
|
-
"
|
|
5136
|
+
"hardis:org:files:export",
|
|
5137
|
+
"org:hardis:files:export",
|
|
5138
|
+
"org:files:hardis:export",
|
|
5139
|
+
"org:files:export:hardis",
|
|
5140
|
+
"hardis:files:org:export",
|
|
5141
|
+
"files:hardis:org:export",
|
|
5142
|
+
"files:org:hardis:export",
|
|
5143
|
+
"files:org:export:hardis",
|
|
5144
|
+
"hardis:files:export:org",
|
|
5145
|
+
"files:hardis:export:org",
|
|
5146
|
+
"files:export:hardis:org",
|
|
5147
|
+
"files:export:org:hardis",
|
|
5148
|
+
"hardis:org:export:files",
|
|
5149
|
+
"org:hardis:export:files",
|
|
5150
|
+
"org:export:hardis:files",
|
|
5151
|
+
"org:export:files:hardis",
|
|
5152
|
+
"hardis:export:org:files",
|
|
5153
|
+
"export:hardis:org:files",
|
|
5154
|
+
"export:org:hardis:files",
|
|
5155
|
+
"export:org:files:hardis",
|
|
5156
|
+
"hardis:export:files:org",
|
|
5157
|
+
"export:hardis:files:org",
|
|
5158
|
+
"export:files:hardis:org",
|
|
5159
|
+
"export:files:org:hardis"
|
|
5152
5160
|
]
|
|
5153
5161
|
},
|
|
5154
|
-
"hardis:org:
|
|
5162
|
+
"hardis:org:files:import": {
|
|
5155
5163
|
"aliases": [],
|
|
5156
5164
|
"args": {},
|
|
5157
|
-
"description": "
|
|
5165
|
+
"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",
|
|
5158
5166
|
"examples": [
|
|
5159
|
-
"$ sf hardis:org:
|
|
5167
|
+
"$ sf hardis:org:files:import"
|
|
5160
5168
|
],
|
|
5161
5169
|
"flags": {
|
|
5162
5170
|
"json": {
|
|
@@ -5174,6 +5182,21 @@
|
|
|
5174
5182
|
"multiple": false,
|
|
5175
5183
|
"type": "option"
|
|
5176
5184
|
},
|
|
5185
|
+
"path": {
|
|
5186
|
+
"char": "p",
|
|
5187
|
+
"description": "Path to the file export project",
|
|
5188
|
+
"name": "path",
|
|
5189
|
+
"hasDynamicHelp": false,
|
|
5190
|
+
"multiple": false,
|
|
5191
|
+
"type": "option"
|
|
5192
|
+
},
|
|
5193
|
+
"overwrite": {
|
|
5194
|
+
"char": "f",
|
|
5195
|
+
"description": "Override existing files (doubles the number of API calls)",
|
|
5196
|
+
"name": "overwrite",
|
|
5197
|
+
"allowNo": false,
|
|
5198
|
+
"type": "boolean"
|
|
5199
|
+
},
|
|
5177
5200
|
"debug": {
|
|
5178
5201
|
"char": "d",
|
|
5179
5202
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5212,13 +5235,13 @@
|
|
|
5212
5235
|
},
|
|
5213
5236
|
"hasDynamicHelp": true,
|
|
5214
5237
|
"hiddenAliases": [],
|
|
5215
|
-
"id": "hardis:org:
|
|
5238
|
+
"id": "hardis:org:files:import",
|
|
5216
5239
|
"pluginAlias": "sfdx-hardis",
|
|
5217
5240
|
"pluginName": "sfdx-hardis",
|
|
5218
5241
|
"pluginType": "core",
|
|
5219
5242
|
"strict": true,
|
|
5220
5243
|
"enableJsonFlag": true,
|
|
5221
|
-
"title": "
|
|
5244
|
+
"title": "Import files",
|
|
5222
5245
|
"requiresProject": false,
|
|
5223
5246
|
"isESM": true,
|
|
5224
5247
|
"relativePath": [
|
|
@@ -5226,46 +5249,46 @@
|
|
|
5226
5249
|
"commands",
|
|
5227
5250
|
"hardis",
|
|
5228
5251
|
"org",
|
|
5229
|
-
"
|
|
5230
|
-
"
|
|
5252
|
+
"files",
|
|
5253
|
+
"import.js"
|
|
5231
5254
|
],
|
|
5232
5255
|
"aliasPermutations": [],
|
|
5233
5256
|
"permutations": [
|
|
5234
|
-
"hardis:org:
|
|
5235
|
-
"org:hardis:
|
|
5236
|
-
"org:
|
|
5237
|
-
"org:
|
|
5238
|
-
"hardis:
|
|
5239
|
-
"
|
|
5240
|
-
"
|
|
5241
|
-
"
|
|
5242
|
-
"hardis:
|
|
5243
|
-
"
|
|
5244
|
-
"
|
|
5245
|
-
"
|
|
5246
|
-
"hardis:org:
|
|
5247
|
-
"org:hardis:
|
|
5248
|
-
"org:
|
|
5249
|
-
"org:
|
|
5250
|
-
"hardis:
|
|
5251
|
-
"
|
|
5252
|
-
"
|
|
5253
|
-
"
|
|
5254
|
-
"hardis:
|
|
5255
|
-
"
|
|
5256
|
-
"
|
|
5257
|
-
"
|
|
5258
|
-
]
|
|
5259
|
-
},
|
|
5260
|
-
"hardis:org:diagnose:
|
|
5261
|
-
"aliases": [],
|
|
5262
|
-
"args": {},
|
|
5263
|
-
"description": "
|
|
5264
|
-
"examples": [
|
|
5265
|
-
"$ sf hardis:org:diagnose:
|
|
5266
|
-
"$ sf hardis:org:diagnose:
|
|
5267
|
-
"$ sf hardis:org:diagnose:
|
|
5268
|
-
"$ sf hardis:org:diagnose:
|
|
5257
|
+
"hardis:org:files:import",
|
|
5258
|
+
"org:hardis:files:import",
|
|
5259
|
+
"org:files:hardis:import",
|
|
5260
|
+
"org:files:import:hardis",
|
|
5261
|
+
"hardis:files:org:import",
|
|
5262
|
+
"files:hardis:org:import",
|
|
5263
|
+
"files:org:hardis:import",
|
|
5264
|
+
"files:org:import:hardis",
|
|
5265
|
+
"hardis:files:import:org",
|
|
5266
|
+
"files:hardis:import:org",
|
|
5267
|
+
"files:import:hardis:org",
|
|
5268
|
+
"files:import:org:hardis",
|
|
5269
|
+
"hardis:org:import:files",
|
|
5270
|
+
"org:hardis:import:files",
|
|
5271
|
+
"org:import:hardis:files",
|
|
5272
|
+
"org:import:files:hardis",
|
|
5273
|
+
"hardis:import:org:files",
|
|
5274
|
+
"import:hardis:org:files",
|
|
5275
|
+
"import:org:hardis:files",
|
|
5276
|
+
"import:org:files:hardis",
|
|
5277
|
+
"hardis:import:files:org",
|
|
5278
|
+
"import:hardis:files:org",
|
|
5279
|
+
"import:files:hardis:org",
|
|
5280
|
+
"import:files:org:hardis"
|
|
5281
|
+
]
|
|
5282
|
+
},
|
|
5283
|
+
"hardis:org:diagnose:audittrail": {
|
|
5284
|
+
"aliases": [],
|
|
5285
|
+
"args": {},
|
|
5286
|
+
"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",
|
|
5287
|
+
"examples": [
|
|
5288
|
+
"$ sf hardis:org:diagnose:audittrail",
|
|
5289
|
+
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
|
|
5290
|
+
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
|
|
5291
|
+
"$ sf hardis:org:diagnose:audittrail --lastndays 5"
|
|
5269
5292
|
],
|
|
5270
5293
|
"flags": {
|
|
5271
5294
|
"json": {
|
|
@@ -5283,20 +5306,18 @@
|
|
|
5283
5306
|
"multiple": false,
|
|
5284
5307
|
"type": "option"
|
|
5285
5308
|
},
|
|
5286
|
-
"
|
|
5309
|
+
"excludeusers": {
|
|
5287
5310
|
"char": "e",
|
|
5288
|
-
"description": "
|
|
5289
|
-
"name": "
|
|
5290
|
-
"default": "ApiTotalUsage",
|
|
5311
|
+
"description": "Comma-separated list of usernames to exclude",
|
|
5312
|
+
"name": "excludeusers",
|
|
5291
5313
|
"hasDynamicHelp": false,
|
|
5292
5314
|
"multiple": false,
|
|
5293
5315
|
"type": "option"
|
|
5294
5316
|
},
|
|
5295
|
-
"
|
|
5296
|
-
"char": "
|
|
5297
|
-
"description": "Number of
|
|
5298
|
-
"name": "
|
|
5299
|
-
"default": 999,
|
|
5317
|
+
"lastndays": {
|
|
5318
|
+
"char": "t",
|
|
5319
|
+
"description": "Number of days to extract from today (included)",
|
|
5320
|
+
"name": "lastndays",
|
|
5300
5321
|
"hasDynamicHelp": false,
|
|
5301
5322
|
"multiple": false,
|
|
5302
5323
|
"type": "option"
|
|
@@ -5347,13 +5368,13 @@
|
|
|
5347
5368
|
},
|
|
5348
5369
|
"hasDynamicHelp": true,
|
|
5349
5370
|
"hiddenAliases": [],
|
|
5350
|
-
"id": "hardis:org:diagnose:
|
|
5371
|
+
"id": "hardis:org:diagnose:audittrail",
|
|
5351
5372
|
"pluginAlias": "sfdx-hardis",
|
|
5352
5373
|
"pluginName": "sfdx-hardis",
|
|
5353
5374
|
"pluginType": "core",
|
|
5354
5375
|
"strict": true,
|
|
5355
5376
|
"enableJsonFlag": true,
|
|
5356
|
-
"title": "
|
|
5377
|
+
"title": "Diagnose content of Setup Audit Trail",
|
|
5357
5378
|
"requiresProject": false,
|
|
5358
5379
|
"isESM": true,
|
|
5359
5380
|
"relativePath": [
|
|
@@ -5362,42 +5383,42 @@
|
|
|
5362
5383
|
"hardis",
|
|
5363
5384
|
"org",
|
|
5364
5385
|
"diagnose",
|
|
5365
|
-
"
|
|
5386
|
+
"audittrail.js"
|
|
5366
5387
|
],
|
|
5367
5388
|
"aliasPermutations": [],
|
|
5368
5389
|
"permutations": [
|
|
5369
|
-
"hardis:org:diagnose:
|
|
5370
|
-
"org:hardis:diagnose:
|
|
5371
|
-
"org:diagnose:hardis:
|
|
5372
|
-
"org:diagnose:
|
|
5373
|
-
"hardis:diagnose:org:
|
|
5374
|
-
"diagnose:hardis:org:
|
|
5375
|
-
"diagnose:org:hardis:
|
|
5376
|
-
"diagnose:org:
|
|
5377
|
-
"hardis:diagnose:
|
|
5378
|
-
"diagnose:hardis:
|
|
5379
|
-
"diagnose:
|
|
5380
|
-
"diagnose:
|
|
5381
|
-
"hardis:org:
|
|
5382
|
-
"org:hardis:
|
|
5383
|
-
"org:
|
|
5384
|
-
"org:
|
|
5385
|
-
"hardis:
|
|
5386
|
-
"
|
|
5387
|
-
"
|
|
5388
|
-
"
|
|
5389
|
-
"hardis:
|
|
5390
|
-
"
|
|
5391
|
-
"
|
|
5392
|
-
"
|
|
5390
|
+
"hardis:org:diagnose:audittrail",
|
|
5391
|
+
"org:hardis:diagnose:audittrail",
|
|
5392
|
+
"org:diagnose:hardis:audittrail",
|
|
5393
|
+
"org:diagnose:audittrail:hardis",
|
|
5394
|
+
"hardis:diagnose:org:audittrail",
|
|
5395
|
+
"diagnose:hardis:org:audittrail",
|
|
5396
|
+
"diagnose:org:hardis:audittrail",
|
|
5397
|
+
"diagnose:org:audittrail:hardis",
|
|
5398
|
+
"hardis:diagnose:audittrail:org",
|
|
5399
|
+
"diagnose:hardis:audittrail:org",
|
|
5400
|
+
"diagnose:audittrail:hardis:org",
|
|
5401
|
+
"diagnose:audittrail:org:hardis",
|
|
5402
|
+
"hardis:org:audittrail:diagnose",
|
|
5403
|
+
"org:hardis:audittrail:diagnose",
|
|
5404
|
+
"org:audittrail:hardis:diagnose",
|
|
5405
|
+
"org:audittrail:diagnose:hardis",
|
|
5406
|
+
"hardis:audittrail:org:diagnose",
|
|
5407
|
+
"audittrail:hardis:org:diagnose",
|
|
5408
|
+
"audittrail:org:hardis:diagnose",
|
|
5409
|
+
"audittrail:org:diagnose:hardis",
|
|
5410
|
+
"hardis:audittrail:diagnose:org",
|
|
5411
|
+
"audittrail:hardis:diagnose:org",
|
|
5412
|
+
"audittrail:diagnose:hardis:org",
|
|
5413
|
+
"audittrail:diagnose:org:hardis"
|
|
5393
5414
|
]
|
|
5394
5415
|
},
|
|
5395
|
-
"hardis:org:diagnose:
|
|
5416
|
+
"hardis:org:diagnose:instanceupgrade": {
|
|
5396
5417
|
"aliases": [],
|
|
5397
5418
|
"args": {},
|
|
5398
|
-
"description": "
|
|
5419
|
+
"description": "Get the date when the org instance will be upgraded (to Spring, Summer or Winter)\n ",
|
|
5399
5420
|
"examples": [
|
|
5400
|
-
"$ sf hardis:org:diagnose:
|
|
5421
|
+
"$ sf hardis:org:diagnose:instanceupgrade"
|
|
5401
5422
|
],
|
|
5402
5423
|
"flags": {
|
|
5403
5424
|
"json": {
|
|
@@ -5415,21 +5436,6 @@
|
|
|
5415
5436
|
"multiple": false,
|
|
5416
5437
|
"type": "option"
|
|
5417
5438
|
},
|
|
5418
|
-
"outputfile": {
|
|
5419
|
-
"char": "f",
|
|
5420
|
-
"description": "Force the path and name of output report file. Must end with .csv",
|
|
5421
|
-
"name": "outputfile",
|
|
5422
|
-
"hasDynamicHelp": false,
|
|
5423
|
-
"multiple": false,
|
|
5424
|
-
"type": "option"
|
|
5425
|
-
},
|
|
5426
|
-
"usedonly": {
|
|
5427
|
-
"char": "u",
|
|
5428
|
-
"description": "Filter to have only used licenses",
|
|
5429
|
-
"name": "usedonly",
|
|
5430
|
-
"allowNo": false,
|
|
5431
|
-
"type": "boolean"
|
|
5432
|
-
},
|
|
5433
5439
|
"debug": {
|
|
5434
5440
|
"char": "d",
|
|
5435
5441
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5468,13 +5474,13 @@
|
|
|
5468
5474
|
},
|
|
5469
5475
|
"hasDynamicHelp": true,
|
|
5470
5476
|
"hiddenAliases": [],
|
|
5471
|
-
"id": "hardis:org:diagnose:
|
|
5477
|
+
"id": "hardis:org:diagnose:instanceupgrade",
|
|
5472
5478
|
"pluginAlias": "sfdx-hardis",
|
|
5473
5479
|
"pluginName": "sfdx-hardis",
|
|
5474
5480
|
"pluginType": "core",
|
|
5475
5481
|
"strict": true,
|
|
5476
5482
|
"enableJsonFlag": true,
|
|
5477
|
-
"title": "
|
|
5483
|
+
"title": "Get Instance Upgrade date",
|
|
5478
5484
|
"requiresProject": false,
|
|
5479
5485
|
"isESM": true,
|
|
5480
5486
|
"relativePath": [
|
|
@@ -5483,42 +5489,45 @@
|
|
|
5483
5489
|
"hardis",
|
|
5484
5490
|
"org",
|
|
5485
5491
|
"diagnose",
|
|
5486
|
-
"
|
|
5492
|
+
"instanceupgrade.js"
|
|
5487
5493
|
],
|
|
5488
5494
|
"aliasPermutations": [],
|
|
5489
5495
|
"permutations": [
|
|
5490
|
-
"hardis:org:diagnose:
|
|
5491
|
-
"org:hardis:diagnose:
|
|
5492
|
-
"org:diagnose:hardis:
|
|
5493
|
-
"org:diagnose:
|
|
5494
|
-
"hardis:diagnose:org:
|
|
5495
|
-
"diagnose:hardis:org:
|
|
5496
|
-
"diagnose:org:hardis:
|
|
5497
|
-
"diagnose:org:
|
|
5498
|
-
"hardis:diagnose:
|
|
5499
|
-
"diagnose:hardis:
|
|
5500
|
-
"diagnose:
|
|
5501
|
-
"diagnose:
|
|
5502
|
-
"hardis:org:
|
|
5503
|
-
"org:hardis:
|
|
5504
|
-
"org:
|
|
5505
|
-
"org:
|
|
5506
|
-
"hardis:
|
|
5507
|
-
"
|
|
5508
|
-
"
|
|
5509
|
-
"
|
|
5510
|
-
"hardis:
|
|
5511
|
-
"
|
|
5512
|
-
"
|
|
5513
|
-
"
|
|
5496
|
+
"hardis:org:diagnose:instanceupgrade",
|
|
5497
|
+
"org:hardis:diagnose:instanceupgrade",
|
|
5498
|
+
"org:diagnose:hardis:instanceupgrade",
|
|
5499
|
+
"org:diagnose:instanceupgrade:hardis",
|
|
5500
|
+
"hardis:diagnose:org:instanceupgrade",
|
|
5501
|
+
"diagnose:hardis:org:instanceupgrade",
|
|
5502
|
+
"diagnose:org:hardis:instanceupgrade",
|
|
5503
|
+
"diagnose:org:instanceupgrade:hardis",
|
|
5504
|
+
"hardis:diagnose:instanceupgrade:org",
|
|
5505
|
+
"diagnose:hardis:instanceupgrade:org",
|
|
5506
|
+
"diagnose:instanceupgrade:hardis:org",
|
|
5507
|
+
"diagnose:instanceupgrade:org:hardis",
|
|
5508
|
+
"hardis:org:instanceupgrade:diagnose",
|
|
5509
|
+
"org:hardis:instanceupgrade:diagnose",
|
|
5510
|
+
"org:instanceupgrade:hardis:diagnose",
|
|
5511
|
+
"org:instanceupgrade:diagnose:hardis",
|
|
5512
|
+
"hardis:instanceupgrade:org:diagnose",
|
|
5513
|
+
"instanceupgrade:hardis:org:diagnose",
|
|
5514
|
+
"instanceupgrade:org:hardis:diagnose",
|
|
5515
|
+
"instanceupgrade:org:diagnose:hardis",
|
|
5516
|
+
"hardis:instanceupgrade:diagnose:org",
|
|
5517
|
+
"instanceupgrade:hardis:diagnose:org",
|
|
5518
|
+
"instanceupgrade:diagnose:hardis:org",
|
|
5519
|
+
"instanceupgrade:diagnose:org:hardis"
|
|
5514
5520
|
]
|
|
5515
5521
|
},
|
|
5516
|
-
"hardis:org:diagnose:
|
|
5522
|
+
"hardis:org:diagnose:legacyapi": {
|
|
5517
5523
|
"aliases": [],
|
|
5518
5524
|
"args": {},
|
|
5519
|
-
"description": "
|
|
5525
|
+
"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",
|
|
5520
5526
|
"examples": [
|
|
5521
|
-
"$ sf hardis:org:diagnose:
|
|
5527
|
+
"$ sf hardis:org:diagnose:legacyapi",
|
|
5528
|
+
"$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com",
|
|
5529
|
+
"$ sf hardis:org:diagnose:legacyapi --outputfile 'c:/path/to/folder/legacyapi.csv'",
|
|
5530
|
+
"$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com --outputfile ./tmp/legacyapi.csv"
|
|
5522
5531
|
],
|
|
5523
5532
|
"flags": {
|
|
5524
5533
|
"json": {
|
|
@@ -5536,6 +5545,24 @@
|
|
|
5536
5545
|
"multiple": false,
|
|
5537
5546
|
"type": "option"
|
|
5538
5547
|
},
|
|
5548
|
+
"eventtype": {
|
|
5549
|
+
"char": "e",
|
|
5550
|
+
"description": "Type of EventLogFile event to analyze",
|
|
5551
|
+
"name": "eventtype",
|
|
5552
|
+
"default": "ApiTotalUsage",
|
|
5553
|
+
"hasDynamicHelp": false,
|
|
5554
|
+
"multiple": false,
|
|
5555
|
+
"type": "option"
|
|
5556
|
+
},
|
|
5557
|
+
"limit": {
|
|
5558
|
+
"char": "l",
|
|
5559
|
+
"description": "Number of latest EventLogFile events to analyze",
|
|
5560
|
+
"name": "limit",
|
|
5561
|
+
"default": 999,
|
|
5562
|
+
"hasDynamicHelp": false,
|
|
5563
|
+
"multiple": false,
|
|
5564
|
+
"type": "option"
|
|
5565
|
+
},
|
|
5539
5566
|
"outputfile": {
|
|
5540
5567
|
"char": "f",
|
|
5541
5568
|
"description": "Force the path and name of output report file. Must end with .csv",
|
|
@@ -5582,13 +5609,13 @@
|
|
|
5582
5609
|
},
|
|
5583
5610
|
"hasDynamicHelp": true,
|
|
5584
5611
|
"hiddenAliases": [],
|
|
5585
|
-
"id": "hardis:org:diagnose:
|
|
5612
|
+
"id": "hardis:org:diagnose:legacyapi",
|
|
5586
5613
|
"pluginAlias": "sfdx-hardis",
|
|
5587
5614
|
"pluginName": "sfdx-hardis",
|
|
5588
5615
|
"pluginType": "core",
|
|
5589
5616
|
"strict": true,
|
|
5590
5617
|
"enableJsonFlag": true,
|
|
5591
|
-
"title": "Check
|
|
5618
|
+
"title": "Check for legacy API use",
|
|
5592
5619
|
"requiresProject": false,
|
|
5593
5620
|
"isESM": true,
|
|
5594
5621
|
"relativePath": [
|
|
@@ -5597,51 +5624,50 @@
|
|
|
5597
5624
|
"hardis",
|
|
5598
5625
|
"org",
|
|
5599
5626
|
"diagnose",
|
|
5600
|
-
"
|
|
5627
|
+
"legacyapi.js"
|
|
5601
5628
|
],
|
|
5602
5629
|
"aliasPermutations": [],
|
|
5603
5630
|
"permutations": [
|
|
5604
|
-
"hardis:org:diagnose:
|
|
5605
|
-
"org:hardis:diagnose:
|
|
5606
|
-
"org:diagnose:hardis:
|
|
5607
|
-
"org:diagnose:
|
|
5608
|
-
"hardis:diagnose:org:
|
|
5609
|
-
"diagnose:hardis:org:
|
|
5610
|
-
"diagnose:org:hardis:
|
|
5611
|
-
"diagnose:org:
|
|
5612
|
-
"hardis:diagnose:
|
|
5613
|
-
"diagnose:hardis:
|
|
5614
|
-
"diagnose:
|
|
5615
|
-
"diagnose:
|
|
5616
|
-
"hardis:org:
|
|
5617
|
-
"org:hardis:
|
|
5618
|
-
"org:
|
|
5619
|
-
"org:
|
|
5620
|
-
"hardis:
|
|
5621
|
-
"
|
|
5622
|
-
"
|
|
5623
|
-
"
|
|
5624
|
-
"hardis:
|
|
5625
|
-
"
|
|
5626
|
-
"
|
|
5627
|
-
"
|
|
5628
|
-
]
|
|
5629
|
-
},
|
|
5630
|
-
"hardis:org:diagnose:
|
|
5631
|
-
"aliases": [],
|
|
5632
|
-
"args": {},
|
|
5633
|
-
"description": "
|
|
5634
|
-
"examples": [
|
|
5635
|
-
"$ sf hardis:org:diagnose:
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
"
|
|
5641
|
-
"
|
|
5642
|
-
"
|
|
5643
|
-
"
|
|
5644
|
-
"type": "boolean"
|
|
5631
|
+
"hardis:org:diagnose:legacyapi",
|
|
5632
|
+
"org:hardis:diagnose:legacyapi",
|
|
5633
|
+
"org:diagnose:hardis:legacyapi",
|
|
5634
|
+
"org:diagnose:legacyapi:hardis",
|
|
5635
|
+
"hardis:diagnose:org:legacyapi",
|
|
5636
|
+
"diagnose:hardis:org:legacyapi",
|
|
5637
|
+
"diagnose:org:hardis:legacyapi",
|
|
5638
|
+
"diagnose:org:legacyapi:hardis",
|
|
5639
|
+
"hardis:diagnose:legacyapi:org",
|
|
5640
|
+
"diagnose:hardis:legacyapi:org",
|
|
5641
|
+
"diagnose:legacyapi:hardis:org",
|
|
5642
|
+
"diagnose:legacyapi:org:hardis",
|
|
5643
|
+
"hardis:org:legacyapi:diagnose",
|
|
5644
|
+
"org:hardis:legacyapi:diagnose",
|
|
5645
|
+
"org:legacyapi:hardis:diagnose",
|
|
5646
|
+
"org:legacyapi:diagnose:hardis",
|
|
5647
|
+
"hardis:legacyapi:org:diagnose",
|
|
5648
|
+
"legacyapi:hardis:org:diagnose",
|
|
5649
|
+
"legacyapi:org:hardis:diagnose",
|
|
5650
|
+
"legacyapi:org:diagnose:hardis",
|
|
5651
|
+
"hardis:legacyapi:diagnose:org",
|
|
5652
|
+
"legacyapi:hardis:diagnose:org",
|
|
5653
|
+
"legacyapi:diagnose:hardis:org",
|
|
5654
|
+
"legacyapi:diagnose:org:hardis"
|
|
5655
|
+
]
|
|
5656
|
+
},
|
|
5657
|
+
"hardis:org:diagnose:licenses": {
|
|
5658
|
+
"aliases": [],
|
|
5659
|
+
"args": {},
|
|
5660
|
+
"description": "Mostly used for monitoring (Grafana) but you can also use it manually :)",
|
|
5661
|
+
"examples": [
|
|
5662
|
+
"$ sf hardis:org:diagnose:licenses"
|
|
5663
|
+
],
|
|
5664
|
+
"flags": {
|
|
5665
|
+
"json": {
|
|
5666
|
+
"description": "Format output as json.",
|
|
5667
|
+
"helpGroup": "GLOBAL",
|
|
5668
|
+
"name": "json",
|
|
5669
|
+
"allowNo": false,
|
|
5670
|
+
"type": "boolean"
|
|
5645
5671
|
},
|
|
5646
5672
|
"flags-dir": {
|
|
5647
5673
|
"helpGroup": "GLOBAL",
|
|
@@ -5659,13 +5685,12 @@
|
|
|
5659
5685
|
"multiple": false,
|
|
5660
5686
|
"type": "option"
|
|
5661
5687
|
},
|
|
5662
|
-
"
|
|
5663
|
-
"char": "
|
|
5664
|
-
"description": "
|
|
5665
|
-
"name": "
|
|
5666
|
-
"
|
|
5667
|
-
"
|
|
5668
|
-
"type": "option"
|
|
5688
|
+
"usedonly": {
|
|
5689
|
+
"char": "u",
|
|
5690
|
+
"description": "Filter to have only used licenses",
|
|
5691
|
+
"name": "usedonly",
|
|
5692
|
+
"allowNo": false,
|
|
5693
|
+
"type": "boolean"
|
|
5669
5694
|
},
|
|
5670
5695
|
"debug": {
|
|
5671
5696
|
"char": "d",
|
|
@@ -5705,13 +5730,13 @@
|
|
|
5705
5730
|
},
|
|
5706
5731
|
"hasDynamicHelp": true,
|
|
5707
5732
|
"hiddenAliases": [],
|
|
5708
|
-
"id": "hardis:org:diagnose:
|
|
5733
|
+
"id": "hardis:org:diagnose:licenses",
|
|
5709
5734
|
"pluginAlias": "sfdx-hardis",
|
|
5710
5735
|
"pluginName": "sfdx-hardis",
|
|
5711
5736
|
"pluginType": "core",
|
|
5712
5737
|
"strict": true,
|
|
5713
5738
|
"enableJsonFlag": true,
|
|
5714
|
-
"title": "
|
|
5739
|
+
"title": "List licenses subscribed and used in a Salesforce org",
|
|
5715
5740
|
"requiresProject": false,
|
|
5716
5741
|
"isESM": true,
|
|
5717
5742
|
"relativePath": [
|
|
@@ -5720,42 +5745,42 @@
|
|
|
5720
5745
|
"hardis",
|
|
5721
5746
|
"org",
|
|
5722
5747
|
"diagnose",
|
|
5723
|
-
"
|
|
5748
|
+
"licenses.js"
|
|
5724
5749
|
],
|
|
5725
5750
|
"aliasPermutations": [],
|
|
5726
5751
|
"permutations": [
|
|
5727
|
-
"hardis:org:diagnose:
|
|
5728
|
-
"org:hardis:diagnose:
|
|
5729
|
-
"org:diagnose:hardis:
|
|
5730
|
-
"org:diagnose:
|
|
5731
|
-
"hardis:diagnose:org:
|
|
5732
|
-
"diagnose:hardis:org:
|
|
5733
|
-
"diagnose:org:hardis:
|
|
5734
|
-
"diagnose:org:
|
|
5735
|
-
"hardis:diagnose:
|
|
5736
|
-
"diagnose:hardis:
|
|
5737
|
-
"diagnose:
|
|
5738
|
-
"diagnose:
|
|
5739
|
-
"hardis:org:
|
|
5740
|
-
"org:hardis:
|
|
5741
|
-
"org:
|
|
5742
|
-
"org:
|
|
5743
|
-
"hardis:
|
|
5744
|
-
"
|
|
5745
|
-
"
|
|
5746
|
-
"
|
|
5747
|
-
"hardis:
|
|
5748
|
-
"
|
|
5749
|
-
"
|
|
5750
|
-
"
|
|
5752
|
+
"hardis:org:diagnose:licenses",
|
|
5753
|
+
"org:hardis:diagnose:licenses",
|
|
5754
|
+
"org:diagnose:hardis:licenses",
|
|
5755
|
+
"org:diagnose:licenses:hardis",
|
|
5756
|
+
"hardis:diagnose:org:licenses",
|
|
5757
|
+
"diagnose:hardis:org:licenses",
|
|
5758
|
+
"diagnose:org:hardis:licenses",
|
|
5759
|
+
"diagnose:org:licenses:hardis",
|
|
5760
|
+
"hardis:diagnose:licenses:org",
|
|
5761
|
+
"diagnose:hardis:licenses:org",
|
|
5762
|
+
"diagnose:licenses:hardis:org",
|
|
5763
|
+
"diagnose:licenses:org:hardis",
|
|
5764
|
+
"hardis:org:licenses:diagnose",
|
|
5765
|
+
"org:hardis:licenses:diagnose",
|
|
5766
|
+
"org:licenses:hardis:diagnose",
|
|
5767
|
+
"org:licenses:diagnose:hardis",
|
|
5768
|
+
"hardis:licenses:org:diagnose",
|
|
5769
|
+
"licenses:hardis:org:diagnose",
|
|
5770
|
+
"licenses:org:hardis:diagnose",
|
|
5771
|
+
"licenses:org:diagnose:hardis",
|
|
5772
|
+
"hardis:licenses:diagnose:org",
|
|
5773
|
+
"licenses:hardis:diagnose:org",
|
|
5774
|
+
"licenses:diagnose:hardis:org",
|
|
5775
|
+
"licenses:diagnose:org:hardis"
|
|
5751
5776
|
]
|
|
5752
5777
|
},
|
|
5753
|
-
"hardis:org:diagnose:
|
|
5778
|
+
"hardis:org:diagnose:releaseupdates": {
|
|
5754
5779
|
"aliases": [],
|
|
5755
5780
|
"args": {},
|
|
5756
|
-
"description": "
|
|
5781
|
+
"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",
|
|
5757
5782
|
"examples": [
|
|
5758
|
-
"$ sf hardis:org:diagnose:
|
|
5783
|
+
"$ sf hardis:org:diagnose:releaseupdates"
|
|
5759
5784
|
],
|
|
5760
5785
|
"flags": {
|
|
5761
5786
|
"json": {
|
|
@@ -5819,30 +5844,13 @@
|
|
|
5819
5844
|
},
|
|
5820
5845
|
"hasDynamicHelp": true,
|
|
5821
5846
|
"hiddenAliases": [],
|
|
5822
|
-
"id": "hardis:org:diagnose:
|
|
5847
|
+
"id": "hardis:org:diagnose:releaseupdates",
|
|
5823
5848
|
"pluginAlias": "sfdx-hardis",
|
|
5824
5849
|
"pluginName": "sfdx-hardis",
|
|
5825
5850
|
"pluginType": "core",
|
|
5826
5851
|
"strict": true,
|
|
5827
5852
|
"enableJsonFlag": true,
|
|
5828
|
-
"title": "
|
|
5829
|
-
"allowedInactiveConnectedApps": [
|
|
5830
|
-
"Ant Migration Tool",
|
|
5831
|
-
"Chatter Desktop",
|
|
5832
|
-
"Chatter Mobile for BlackBerry",
|
|
5833
|
-
"Force.com IDE",
|
|
5834
|
-
"OIQ_Integration",
|
|
5835
|
-
"Salesforce CLI",
|
|
5836
|
-
"Salesforce Files",
|
|
5837
|
-
"Salesforce Mobile Dashboards",
|
|
5838
|
-
"Salesforce Touch",
|
|
5839
|
-
"Salesforce for Outlook",
|
|
5840
|
-
"SalesforceA",
|
|
5841
|
-
"SalesforceA for Android",
|
|
5842
|
-
"SalesforceA for iOS",
|
|
5843
|
-
"SalesforceDX Namespace Registry",
|
|
5844
|
-
"SalesforceIQ"
|
|
5845
|
-
],
|
|
5853
|
+
"title": "Check Release Updates of an org",
|
|
5846
5854
|
"requiresProject": false,
|
|
5847
5855
|
"isESM": true,
|
|
5848
5856
|
"relativePath": [
|
|
@@ -5851,43 +5859,43 @@
|
|
|
5851
5859
|
"hardis",
|
|
5852
5860
|
"org",
|
|
5853
5861
|
"diagnose",
|
|
5854
|
-
"
|
|
5862
|
+
"releaseupdates.js"
|
|
5855
5863
|
],
|
|
5856
5864
|
"aliasPermutations": [],
|
|
5857
5865
|
"permutations": [
|
|
5858
|
-
"hardis:org:diagnose:
|
|
5859
|
-
"org:hardis:diagnose:
|
|
5860
|
-
"org:diagnose:hardis:
|
|
5861
|
-
"org:diagnose:
|
|
5862
|
-
"hardis:diagnose:org:
|
|
5863
|
-
"diagnose:hardis:org:
|
|
5864
|
-
"diagnose:org:hardis:
|
|
5865
|
-
"diagnose:org:
|
|
5866
|
-
"hardis:diagnose:
|
|
5867
|
-
"diagnose:hardis:
|
|
5868
|
-
"diagnose:
|
|
5869
|
-
"diagnose:
|
|
5870
|
-
"hardis:org:
|
|
5871
|
-
"org:hardis:
|
|
5872
|
-
"org:
|
|
5873
|
-
"org:
|
|
5874
|
-
"hardis:
|
|
5875
|
-
"
|
|
5876
|
-
"
|
|
5877
|
-
"
|
|
5878
|
-
"hardis:
|
|
5879
|
-
"
|
|
5880
|
-
"
|
|
5881
|
-
"
|
|
5866
|
+
"hardis:org:diagnose:releaseupdates",
|
|
5867
|
+
"org:hardis:diagnose:releaseupdates",
|
|
5868
|
+
"org:diagnose:hardis:releaseupdates",
|
|
5869
|
+
"org:diagnose:releaseupdates:hardis",
|
|
5870
|
+
"hardis:diagnose:org:releaseupdates",
|
|
5871
|
+
"diagnose:hardis:org:releaseupdates",
|
|
5872
|
+
"diagnose:org:hardis:releaseupdates",
|
|
5873
|
+
"diagnose:org:releaseupdates:hardis",
|
|
5874
|
+
"hardis:diagnose:releaseupdates:org",
|
|
5875
|
+
"diagnose:hardis:releaseupdates:org",
|
|
5876
|
+
"diagnose:releaseupdates:hardis:org",
|
|
5877
|
+
"diagnose:releaseupdates:org:hardis",
|
|
5878
|
+
"hardis:org:releaseupdates:diagnose",
|
|
5879
|
+
"org:hardis:releaseupdates:diagnose",
|
|
5880
|
+
"org:releaseupdates:hardis:diagnose",
|
|
5881
|
+
"org:releaseupdates:diagnose:hardis",
|
|
5882
|
+
"hardis:releaseupdates:org:diagnose",
|
|
5883
|
+
"releaseupdates:hardis:org:diagnose",
|
|
5884
|
+
"releaseupdates:org:hardis:diagnose",
|
|
5885
|
+
"releaseupdates:org:diagnose:hardis",
|
|
5886
|
+
"hardis:releaseupdates:diagnose:org",
|
|
5887
|
+
"releaseupdates:hardis:diagnose:org",
|
|
5888
|
+
"releaseupdates:diagnose:hardis:org",
|
|
5889
|
+
"releaseupdates:diagnose:org:hardis"
|
|
5882
5890
|
]
|
|
5883
5891
|
},
|
|
5884
|
-
"hardis:org:diagnose:
|
|
5892
|
+
"hardis:org:diagnose:unused-apex-classes": {
|
|
5885
5893
|
"aliases": [],
|
|
5886
5894
|
"args": {},
|
|
5887
|
-
"description": "
|
|
5895
|
+
"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",
|
|
5888
5896
|
"examples": [
|
|
5889
|
-
"$ sf hardis:org:diagnose:
|
|
5890
|
-
"$ sf hardis:org:diagnose:
|
|
5897
|
+
"$ sf hardis:org:diagnose:unused-apex-classes",
|
|
5898
|
+
"$ sf hardis:org:diagnose:unused-apex-classes --days 700"
|
|
5891
5899
|
],
|
|
5892
5900
|
"flags": {
|
|
5893
5901
|
"json": {
|
|
@@ -5913,6 +5921,14 @@
|
|
|
5913
5921
|
"multiple": false,
|
|
5914
5922
|
"type": "option"
|
|
5915
5923
|
},
|
|
5924
|
+
"days": {
|
|
5925
|
+
"char": "t",
|
|
5926
|
+
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
5927
|
+
"name": "days",
|
|
5928
|
+
"hasDynamicHelp": false,
|
|
5929
|
+
"multiple": false,
|
|
5930
|
+
"type": "option"
|
|
5931
|
+
},
|
|
5916
5932
|
"debug": {
|
|
5917
5933
|
"char": "d",
|
|
5918
5934
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5951,32 +5967,14 @@
|
|
|
5951
5967
|
},
|
|
5952
5968
|
"hasDynamicHelp": true,
|
|
5953
5969
|
"hiddenAliases": [],
|
|
5954
|
-
"id": "hardis:org:diagnose:
|
|
5970
|
+
"id": "hardis:org:diagnose:unused-apex-classes",
|
|
5955
5971
|
"pluginAlias": "sfdx-hardis",
|
|
5956
5972
|
"pluginName": "sfdx-hardis",
|
|
5957
5973
|
"pluginType": "core",
|
|
5958
5974
|
"strict": true,
|
|
5959
5975
|
"enableJsonFlag": true,
|
|
5960
|
-
"title": "Detect unused
|
|
5976
|
+
"title": "Detect unused Apex classes in an org",
|
|
5961
5977
|
"requiresProject": false,
|
|
5962
|
-
"additionalPermissionSetsToAlwaysGet": [
|
|
5963
|
-
"Sales_User"
|
|
5964
|
-
],
|
|
5965
|
-
"permSetsPermSetLicenses": [
|
|
5966
|
-
{
|
|
5967
|
-
"permSet": "Sales_User",
|
|
5968
|
-
"permSetLicense": "SalesUserPsl"
|
|
5969
|
-
}
|
|
5970
|
-
],
|
|
5971
|
-
"profilesPermissionSetLicenses": [
|
|
5972
|
-
{
|
|
5973
|
-
"profile": "Salesforce API Only",
|
|
5974
|
-
"permSetLicense": "SalesforceAPIIntegrationPsl"
|
|
5975
|
-
}
|
|
5976
|
-
],
|
|
5977
|
-
"alwaysExcludeForActiveUsersPermissionSetLicenses": [
|
|
5978
|
-
"IdentityConnect"
|
|
5979
|
-
],
|
|
5980
5978
|
"isESM": true,
|
|
5981
5979
|
"relativePath": [
|
|
5982
5980
|
"lib",
|
|
@@ -5984,46 +5982,42 @@
|
|
|
5984
5982
|
"hardis",
|
|
5985
5983
|
"org",
|
|
5986
5984
|
"diagnose",
|
|
5987
|
-
"
|
|
5985
|
+
"unused-apex-classes.js"
|
|
5988
5986
|
],
|
|
5989
5987
|
"aliasPermutations": [],
|
|
5990
5988
|
"permutations": [
|
|
5991
|
-
"hardis:org:diagnose:
|
|
5992
|
-
"org:hardis:diagnose:
|
|
5993
|
-
"org:diagnose:hardis:
|
|
5994
|
-
"org:diagnose:
|
|
5995
|
-
"hardis:diagnose:org:
|
|
5996
|
-
"diagnose:hardis:org:
|
|
5997
|
-
"diagnose:org:hardis:
|
|
5998
|
-
"diagnose:org:
|
|
5999
|
-
"hardis:diagnose:
|
|
6000
|
-
"diagnose:hardis:
|
|
6001
|
-
"diagnose:
|
|
6002
|
-
"diagnose:
|
|
6003
|
-
"hardis:org:
|
|
6004
|
-
"org:hardis:
|
|
6005
|
-
"org:
|
|
6006
|
-
"org:
|
|
6007
|
-
"hardis:
|
|
6008
|
-
"
|
|
6009
|
-
"
|
|
6010
|
-
"
|
|
6011
|
-
"hardis:
|
|
6012
|
-
"
|
|
6013
|
-
"
|
|
6014
|
-
"
|
|
6015
|
-
]
|
|
6016
|
-
},
|
|
6017
|
-
"hardis:org:diagnose:
|
|
6018
|
-
"aliases": [],
|
|
6019
|
-
"args": {},
|
|
6020
|
-
"description": "
|
|
6021
|
-
"examples": [
|
|
6022
|
-
"$ sf hardis:org:diagnose:
|
|
6023
|
-
"$ sf hardis:org:diagnose:unusedusers --days 365",
|
|
6024
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm",
|
|
6025
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licenseidentifiers SFDC,AUL,AUL1",
|
|
6026
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm --returnactiveusers"
|
|
5989
|
+
"hardis:org:diagnose:unused-apex-classes",
|
|
5990
|
+
"org:hardis:diagnose:unused-apex-classes",
|
|
5991
|
+
"org:diagnose:hardis:unused-apex-classes",
|
|
5992
|
+
"org:diagnose:unused-apex-classes:hardis",
|
|
5993
|
+
"hardis:diagnose:org:unused-apex-classes",
|
|
5994
|
+
"diagnose:hardis:org:unused-apex-classes",
|
|
5995
|
+
"diagnose:org:hardis:unused-apex-classes",
|
|
5996
|
+
"diagnose:org:unused-apex-classes:hardis",
|
|
5997
|
+
"hardis:diagnose:unused-apex-classes:org",
|
|
5998
|
+
"diagnose:hardis:unused-apex-classes:org",
|
|
5999
|
+
"diagnose:unused-apex-classes:hardis:org",
|
|
6000
|
+
"diagnose:unused-apex-classes:org:hardis",
|
|
6001
|
+
"hardis:org:unused-apex-classes:diagnose",
|
|
6002
|
+
"org:hardis:unused-apex-classes:diagnose",
|
|
6003
|
+
"org:unused-apex-classes:hardis:diagnose",
|
|
6004
|
+
"org:unused-apex-classes:diagnose:hardis",
|
|
6005
|
+
"hardis:unused-apex-classes:org:diagnose",
|
|
6006
|
+
"unused-apex-classes:hardis:org:diagnose",
|
|
6007
|
+
"unused-apex-classes:org:hardis:diagnose",
|
|
6008
|
+
"unused-apex-classes:org:diagnose:hardis",
|
|
6009
|
+
"hardis:unused-apex-classes:diagnose:org",
|
|
6010
|
+
"unused-apex-classes:hardis:diagnose:org",
|
|
6011
|
+
"unused-apex-classes:diagnose:hardis:org",
|
|
6012
|
+
"unused-apex-classes:diagnose:org:hardis"
|
|
6013
|
+
]
|
|
6014
|
+
},
|
|
6015
|
+
"hardis:org:diagnose:unused-connected-apps": {
|
|
6016
|
+
"aliases": [],
|
|
6017
|
+
"args": {},
|
|
6018
|
+
"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",
|
|
6019
|
+
"examples": [
|
|
6020
|
+
"$ sf hardis:org:diagnose:unused-connected-apps"
|
|
6027
6021
|
],
|
|
6028
6022
|
"flags": {
|
|
6029
6023
|
"json": {
|
|
@@ -6049,41 +6043,6 @@
|
|
|
6049
6043
|
"multiple": false,
|
|
6050
6044
|
"type": "option"
|
|
6051
6045
|
},
|
|
6052
|
-
"days": {
|
|
6053
|
-
"char": "t",
|
|
6054
|
-
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
6055
|
-
"name": "days",
|
|
6056
|
-
"hasDynamicHelp": false,
|
|
6057
|
-
"multiple": false,
|
|
6058
|
-
"type": "option"
|
|
6059
|
-
},
|
|
6060
|
-
"licensetypes": {
|
|
6061
|
-
"char": "l",
|
|
6062
|
-
"description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
|
|
6063
|
-
"name": "licensetypes",
|
|
6064
|
-
"hasDynamicHelp": false,
|
|
6065
|
-
"multiple": false,
|
|
6066
|
-
"options": [
|
|
6067
|
-
"all",
|
|
6068
|
-
"all-crm",
|
|
6069
|
-
"all-paying"
|
|
6070
|
-
],
|
|
6071
|
-
"type": "option"
|
|
6072
|
-
},
|
|
6073
|
-
"licenseidentifiers": {
|
|
6074
|
-
"char": "i",
|
|
6075
|
-
"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",
|
|
6076
|
-
"name": "licenseidentifiers",
|
|
6077
|
-
"hasDynamicHelp": false,
|
|
6078
|
-
"multiple": false,
|
|
6079
|
-
"type": "option"
|
|
6080
|
-
},
|
|
6081
|
-
"returnactiveusers": {
|
|
6082
|
-
"description": "Inverts the command by returning the active users",
|
|
6083
|
-
"name": "returnactiveusers",
|
|
6084
|
-
"allowNo": false,
|
|
6085
|
-
"type": "boolean"
|
|
6086
|
-
},
|
|
6087
6046
|
"debug": {
|
|
6088
6047
|
"char": "d",
|
|
6089
6048
|
"description": "Activate debug mode (more logs)",
|
|
@@ -6122,13 +6081,30 @@
|
|
|
6122
6081
|
},
|
|
6123
6082
|
"hasDynamicHelp": true,
|
|
6124
6083
|
"hiddenAliases": [],
|
|
6125
|
-
"id": "hardis:org:diagnose:
|
|
6084
|
+
"id": "hardis:org:diagnose:unused-connected-apps",
|
|
6126
6085
|
"pluginAlias": "sfdx-hardis",
|
|
6127
6086
|
"pluginName": "sfdx-hardis",
|
|
6128
6087
|
"pluginType": "core",
|
|
6129
6088
|
"strict": true,
|
|
6130
6089
|
"enableJsonFlag": true,
|
|
6131
|
-
"title": "
|
|
6090
|
+
"title": "Unused Connected Apps in an org",
|
|
6091
|
+
"allowedInactiveConnectedApps": [
|
|
6092
|
+
"Ant Migration Tool",
|
|
6093
|
+
"Chatter Desktop",
|
|
6094
|
+
"Chatter Mobile for BlackBerry",
|
|
6095
|
+
"Force.com IDE",
|
|
6096
|
+
"OIQ_Integration",
|
|
6097
|
+
"Salesforce CLI",
|
|
6098
|
+
"Salesforce Files",
|
|
6099
|
+
"Salesforce Mobile Dashboards",
|
|
6100
|
+
"Salesforce Touch",
|
|
6101
|
+
"Salesforce for Outlook",
|
|
6102
|
+
"SalesforceA",
|
|
6103
|
+
"SalesforceA for Android",
|
|
6104
|
+
"SalesforceA for iOS",
|
|
6105
|
+
"SalesforceDX Namespace Registry",
|
|
6106
|
+
"SalesforceIQ"
|
|
6107
|
+
],
|
|
6132
6108
|
"requiresProject": false,
|
|
6133
6109
|
"isESM": true,
|
|
6134
6110
|
"relativePath": [
|
|
@@ -6137,42 +6113,43 @@
|
|
|
6137
6113
|
"hardis",
|
|
6138
6114
|
"org",
|
|
6139
6115
|
"diagnose",
|
|
6140
|
-
"
|
|
6116
|
+
"unused-connected-apps.js"
|
|
6141
6117
|
],
|
|
6142
6118
|
"aliasPermutations": [],
|
|
6143
6119
|
"permutations": [
|
|
6144
|
-
"hardis:org:diagnose:
|
|
6145
|
-
"org:hardis:diagnose:
|
|
6146
|
-
"org:diagnose:hardis:
|
|
6147
|
-
"org:diagnose:
|
|
6148
|
-
"hardis:diagnose:org:
|
|
6149
|
-
"diagnose:hardis:org:
|
|
6150
|
-
"diagnose:org:hardis:
|
|
6151
|
-
"diagnose:org:
|
|
6152
|
-
"hardis:diagnose:
|
|
6153
|
-
"diagnose:hardis:
|
|
6154
|
-
"diagnose:
|
|
6155
|
-
"diagnose:
|
|
6156
|
-
"hardis:org:
|
|
6157
|
-
"org:hardis:
|
|
6158
|
-
"org:
|
|
6159
|
-
"org:
|
|
6160
|
-
"hardis:
|
|
6161
|
-
"
|
|
6162
|
-
"
|
|
6163
|
-
"
|
|
6164
|
-
"hardis:
|
|
6165
|
-
"
|
|
6166
|
-
"
|
|
6167
|
-
"
|
|
6120
|
+
"hardis:org:diagnose:unused-connected-apps",
|
|
6121
|
+
"org:hardis:diagnose:unused-connected-apps",
|
|
6122
|
+
"org:diagnose:hardis:unused-connected-apps",
|
|
6123
|
+
"org:diagnose:unused-connected-apps:hardis",
|
|
6124
|
+
"hardis:diagnose:org:unused-connected-apps",
|
|
6125
|
+
"diagnose:hardis:org:unused-connected-apps",
|
|
6126
|
+
"diagnose:org:hardis:unused-connected-apps",
|
|
6127
|
+
"diagnose:org:unused-connected-apps:hardis",
|
|
6128
|
+
"hardis:diagnose:unused-connected-apps:org",
|
|
6129
|
+
"diagnose:hardis:unused-connected-apps:org",
|
|
6130
|
+
"diagnose:unused-connected-apps:hardis:org",
|
|
6131
|
+
"diagnose:unused-connected-apps:org:hardis",
|
|
6132
|
+
"hardis:org:unused-connected-apps:diagnose",
|
|
6133
|
+
"org:hardis:unused-connected-apps:diagnose",
|
|
6134
|
+
"org:unused-connected-apps:hardis:diagnose",
|
|
6135
|
+
"org:unused-connected-apps:diagnose:hardis",
|
|
6136
|
+
"hardis:unused-connected-apps:org:diagnose",
|
|
6137
|
+
"unused-connected-apps:hardis:org:diagnose",
|
|
6138
|
+
"unused-connected-apps:org:hardis:diagnose",
|
|
6139
|
+
"unused-connected-apps:org:diagnose:hardis",
|
|
6140
|
+
"hardis:unused-connected-apps:diagnose:org",
|
|
6141
|
+
"unused-connected-apps:hardis:diagnose:org",
|
|
6142
|
+
"unused-connected-apps:diagnose:hardis:org",
|
|
6143
|
+
"unused-connected-apps:diagnose:org:hardis"
|
|
6168
6144
|
]
|
|
6169
6145
|
},
|
|
6170
|
-
"hardis:org:
|
|
6146
|
+
"hardis:org:diagnose:unusedlicenses": {
|
|
6171
6147
|
"aliases": [],
|
|
6172
6148
|
"args": {},
|
|
6173
|
-
"description": "
|
|
6149
|
+
"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",
|
|
6174
6150
|
"examples": [
|
|
6175
|
-
"$ sf hardis:org:
|
|
6151
|
+
"$ sf hardis:org:diagnose:unusedlicenses",
|
|
6152
|
+
"$ sf hardis:org:diagnose:unusedlicenses --fix"
|
|
6176
6153
|
],
|
|
6177
6154
|
"flags": {
|
|
6178
6155
|
"json": {
|
|
@@ -6190,37 +6167,10 @@
|
|
|
6190
6167
|
"multiple": false,
|
|
6191
6168
|
"type": "option"
|
|
6192
6169
|
},
|
|
6193
|
-
"
|
|
6194
|
-
"char": "
|
|
6195
|
-
"description": "
|
|
6196
|
-
"name": "
|
|
6197
|
-
"hasDynamicHelp": false,
|
|
6198
|
-
"multiple": false,
|
|
6199
|
-
"type": "option"
|
|
6200
|
-
},
|
|
6201
|
-
"chunksize": {
|
|
6202
|
-
"char": "c",
|
|
6203
|
-
"description": "Number of records to add in a chunk before it is processed",
|
|
6204
|
-
"name": "chunksize",
|
|
6205
|
-
"default": 1000,
|
|
6206
|
-
"hasDynamicHelp": false,
|
|
6207
|
-
"multiple": false,
|
|
6208
|
-
"type": "option"
|
|
6209
|
-
},
|
|
6210
|
-
"polltimeout": {
|
|
6211
|
-
"char": "t",
|
|
6212
|
-
"description": "Timeout in MS for Bulk API calls",
|
|
6213
|
-
"name": "polltimeout",
|
|
6214
|
-
"default": 300000,
|
|
6215
|
-
"hasDynamicHelp": false,
|
|
6216
|
-
"multiple": false,
|
|
6217
|
-
"type": "option"
|
|
6218
|
-
},
|
|
6219
|
-
"startchunknumber": {
|
|
6220
|
-
"char": "s",
|
|
6221
|
-
"description": "Chunk number to start from",
|
|
6222
|
-
"name": "startchunknumber",
|
|
6223
|
-
"default": 0,
|
|
6170
|
+
"outputfile": {
|
|
6171
|
+
"char": "f",
|
|
6172
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6173
|
+
"name": "outputfile",
|
|
6224
6174
|
"hasDynamicHelp": false,
|
|
6225
6175
|
"multiple": false,
|
|
6226
6176
|
"type": "option"
|
|
@@ -6263,57 +6213,79 @@
|
|
|
6263
6213
|
},
|
|
6264
6214
|
"hasDynamicHelp": true,
|
|
6265
6215
|
"hiddenAliases": [],
|
|
6266
|
-
"id": "hardis:org:
|
|
6216
|
+
"id": "hardis:org:diagnose:unusedlicenses",
|
|
6267
6217
|
"pluginAlias": "sfdx-hardis",
|
|
6268
6218
|
"pluginName": "sfdx-hardis",
|
|
6269
6219
|
"pluginType": "core",
|
|
6270
6220
|
"strict": true,
|
|
6271
6221
|
"enableJsonFlag": true,
|
|
6272
|
-
"title": "
|
|
6222
|
+
"title": "Detect unused Permission Set Licenses (beta)",
|
|
6273
6223
|
"requiresProject": false,
|
|
6224
|
+
"additionalPermissionSetsToAlwaysGet": [
|
|
6225
|
+
"Sales_User"
|
|
6226
|
+
],
|
|
6227
|
+
"permSetsPermSetLicenses": [
|
|
6228
|
+
{
|
|
6229
|
+
"permSet": "Sales_User",
|
|
6230
|
+
"permSetLicense": "SalesUserPsl"
|
|
6231
|
+
}
|
|
6232
|
+
],
|
|
6233
|
+
"profilesPermissionSetLicenses": [
|
|
6234
|
+
{
|
|
6235
|
+
"profile": "Salesforce API Only",
|
|
6236
|
+
"permSetLicense": "SalesforceAPIIntegrationPsl"
|
|
6237
|
+
}
|
|
6238
|
+
],
|
|
6239
|
+
"alwaysExcludeForActiveUsersPermissionSetLicenses": [
|
|
6240
|
+
"IdentityConnect"
|
|
6241
|
+
],
|
|
6274
6242
|
"isESM": true,
|
|
6275
6243
|
"relativePath": [
|
|
6276
6244
|
"lib",
|
|
6277
6245
|
"commands",
|
|
6278
6246
|
"hardis",
|
|
6279
6247
|
"org",
|
|
6280
|
-
"
|
|
6281
|
-
"
|
|
6248
|
+
"diagnose",
|
|
6249
|
+
"unusedlicenses.js"
|
|
6282
6250
|
],
|
|
6283
6251
|
"aliasPermutations": [],
|
|
6284
6252
|
"permutations": [
|
|
6285
|
-
"hardis:org:
|
|
6286
|
-
"org:hardis:
|
|
6287
|
-
"org:
|
|
6288
|
-
"org:
|
|
6289
|
-
"hardis:
|
|
6290
|
-
"
|
|
6291
|
-
"
|
|
6292
|
-
"
|
|
6293
|
-
"hardis:
|
|
6294
|
-
"
|
|
6295
|
-
"
|
|
6296
|
-
"
|
|
6297
|
-
"hardis:org:
|
|
6298
|
-
"org:hardis:
|
|
6299
|
-
"org:
|
|
6300
|
-
"org:
|
|
6301
|
-
"hardis:
|
|
6302
|
-
"
|
|
6303
|
-
"
|
|
6304
|
-
"
|
|
6305
|
-
"hardis:
|
|
6306
|
-
"
|
|
6307
|
-
"
|
|
6308
|
-
"
|
|
6253
|
+
"hardis:org:diagnose:unusedlicenses",
|
|
6254
|
+
"org:hardis:diagnose:unusedlicenses",
|
|
6255
|
+
"org:diagnose:hardis:unusedlicenses",
|
|
6256
|
+
"org:diagnose:unusedlicenses:hardis",
|
|
6257
|
+
"hardis:diagnose:org:unusedlicenses",
|
|
6258
|
+
"diagnose:hardis:org:unusedlicenses",
|
|
6259
|
+
"diagnose:org:hardis:unusedlicenses",
|
|
6260
|
+
"diagnose:org:unusedlicenses:hardis",
|
|
6261
|
+
"hardis:diagnose:unusedlicenses:org",
|
|
6262
|
+
"diagnose:hardis:unusedlicenses:org",
|
|
6263
|
+
"diagnose:unusedlicenses:hardis:org",
|
|
6264
|
+
"diagnose:unusedlicenses:org:hardis",
|
|
6265
|
+
"hardis:org:unusedlicenses:diagnose",
|
|
6266
|
+
"org:hardis:unusedlicenses:diagnose",
|
|
6267
|
+
"org:unusedlicenses:hardis:diagnose",
|
|
6268
|
+
"org:unusedlicenses:diagnose:hardis",
|
|
6269
|
+
"hardis:unusedlicenses:org:diagnose",
|
|
6270
|
+
"unusedlicenses:hardis:org:diagnose",
|
|
6271
|
+
"unusedlicenses:org:hardis:diagnose",
|
|
6272
|
+
"unusedlicenses:org:diagnose:hardis",
|
|
6273
|
+
"hardis:unusedlicenses:diagnose:org",
|
|
6274
|
+
"unusedlicenses:hardis:diagnose:org",
|
|
6275
|
+
"unusedlicenses:diagnose:hardis:org",
|
|
6276
|
+
"unusedlicenses:diagnose:org:hardis"
|
|
6309
6277
|
]
|
|
6310
6278
|
},
|
|
6311
|
-
"hardis:org:
|
|
6279
|
+
"hardis:org:diagnose:unusedusers": {
|
|
6312
6280
|
"aliases": [],
|
|
6313
6281
|
"args": {},
|
|
6314
|
-
"description": "
|
|
6282
|
+
"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",
|
|
6315
6283
|
"examples": [
|
|
6316
|
-
"$ sf hardis:org:
|
|
6284
|
+
"$ sf hardis:org:diagnose:unusedusers",
|
|
6285
|
+
"$ sf hardis:org:diagnose:unusedusers --days 365",
|
|
6286
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm",
|
|
6287
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licenseidentifiers SFDC,AUL,AUL1",
|
|
6288
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm --returnactiveusers"
|
|
6317
6289
|
],
|
|
6318
6290
|
"flags": {
|
|
6319
6291
|
"json": {
|
|
@@ -6331,18 +6303,46 @@
|
|
|
6331
6303
|
"multiple": false,
|
|
6332
6304
|
"type": "option"
|
|
6333
6305
|
},
|
|
6334
|
-
"
|
|
6335
|
-
"char": "
|
|
6336
|
-
"description": "
|
|
6337
|
-
"name": "
|
|
6306
|
+
"outputfile": {
|
|
6307
|
+
"char": "f",
|
|
6308
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6309
|
+
"name": "outputfile",
|
|
6338
6310
|
"hasDynamicHelp": false,
|
|
6339
6311
|
"multiple": false,
|
|
6340
6312
|
"type": "option"
|
|
6341
6313
|
},
|
|
6342
|
-
"
|
|
6343
|
-
"char": "
|
|
6344
|
-
"description": "
|
|
6345
|
-
"name": "
|
|
6314
|
+
"days": {
|
|
6315
|
+
"char": "t",
|
|
6316
|
+
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
6317
|
+
"name": "days",
|
|
6318
|
+
"hasDynamicHelp": false,
|
|
6319
|
+
"multiple": false,
|
|
6320
|
+
"type": "option"
|
|
6321
|
+
},
|
|
6322
|
+
"licensetypes": {
|
|
6323
|
+
"char": "l",
|
|
6324
|
+
"description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
|
|
6325
|
+
"name": "licensetypes",
|
|
6326
|
+
"hasDynamicHelp": false,
|
|
6327
|
+
"multiple": false,
|
|
6328
|
+
"options": [
|
|
6329
|
+
"all",
|
|
6330
|
+
"all-crm",
|
|
6331
|
+
"all-paying"
|
|
6332
|
+
],
|
|
6333
|
+
"type": "option"
|
|
6334
|
+
},
|
|
6335
|
+
"licenseidentifiers": {
|
|
6336
|
+
"char": "i",
|
|
6337
|
+
"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",
|
|
6338
|
+
"name": "licenseidentifiers",
|
|
6339
|
+
"hasDynamicHelp": false,
|
|
6340
|
+
"multiple": false,
|
|
6341
|
+
"type": "option"
|
|
6342
|
+
},
|
|
6343
|
+
"returnactiveusers": {
|
|
6344
|
+
"description": "Inverts the command by returning the active users",
|
|
6345
|
+
"name": "returnactiveusers",
|
|
6346
6346
|
"allowNo": false,
|
|
6347
6347
|
"type": "boolean"
|
|
6348
6348
|
},
|
|
@@ -6384,13 +6384,13 @@
|
|
|
6384
6384
|
},
|
|
6385
6385
|
"hasDynamicHelp": true,
|
|
6386
6386
|
"hiddenAliases": [],
|
|
6387
|
-
"id": "hardis:org:
|
|
6387
|
+
"id": "hardis:org:diagnose:unusedusers",
|
|
6388
6388
|
"pluginAlias": "sfdx-hardis",
|
|
6389
6389
|
"pluginName": "sfdx-hardis",
|
|
6390
6390
|
"pluginType": "core",
|
|
6391
6391
|
"strict": true,
|
|
6392
6392
|
"enableJsonFlag": true,
|
|
6393
|
-
"title": "
|
|
6393
|
+
"title": "Detect unused Users in Salesforce",
|
|
6394
6394
|
"requiresProject": false,
|
|
6395
6395
|
"isESM": true,
|
|
6396
6396
|
"relativePath": [
|
|
@@ -6398,35 +6398,35 @@
|
|
|
6398
6398
|
"commands",
|
|
6399
6399
|
"hardis",
|
|
6400
6400
|
"org",
|
|
6401
|
-
"
|
|
6402
|
-
"
|
|
6401
|
+
"diagnose",
|
|
6402
|
+
"unusedusers.js"
|
|
6403
6403
|
],
|
|
6404
6404
|
"aliasPermutations": [],
|
|
6405
6405
|
"permutations": [
|
|
6406
|
-
"hardis:org:
|
|
6407
|
-
"org:hardis:
|
|
6408
|
-
"org:
|
|
6409
|
-
"org:
|
|
6410
|
-
"hardis:
|
|
6411
|
-
"
|
|
6412
|
-
"
|
|
6413
|
-
"
|
|
6414
|
-
"hardis:
|
|
6415
|
-
"
|
|
6416
|
-
"
|
|
6417
|
-
"
|
|
6418
|
-
"hardis:org:
|
|
6419
|
-
"org:hardis:
|
|
6420
|
-
"org:
|
|
6421
|
-
"org:
|
|
6422
|
-
"hardis:
|
|
6423
|
-
"
|
|
6424
|
-
"
|
|
6425
|
-
"
|
|
6426
|
-
"hardis:
|
|
6427
|
-
"
|
|
6428
|
-
"
|
|
6429
|
-
"
|
|
6406
|
+
"hardis:org:diagnose:unusedusers",
|
|
6407
|
+
"org:hardis:diagnose:unusedusers",
|
|
6408
|
+
"org:diagnose:hardis:unusedusers",
|
|
6409
|
+
"org:diagnose:unusedusers:hardis",
|
|
6410
|
+
"hardis:diagnose:org:unusedusers",
|
|
6411
|
+
"diagnose:hardis:org:unusedusers",
|
|
6412
|
+
"diagnose:org:hardis:unusedusers",
|
|
6413
|
+
"diagnose:org:unusedusers:hardis",
|
|
6414
|
+
"hardis:diagnose:unusedusers:org",
|
|
6415
|
+
"diagnose:hardis:unusedusers:org",
|
|
6416
|
+
"diagnose:unusedusers:hardis:org",
|
|
6417
|
+
"diagnose:unusedusers:org:hardis",
|
|
6418
|
+
"hardis:org:unusedusers:diagnose",
|
|
6419
|
+
"org:hardis:unusedusers:diagnose",
|
|
6420
|
+
"org:unusedusers:hardis:diagnose",
|
|
6421
|
+
"org:unusedusers:diagnose:hardis",
|
|
6422
|
+
"hardis:unusedusers:org:diagnose",
|
|
6423
|
+
"unusedusers:hardis:org:diagnose",
|
|
6424
|
+
"unusedusers:org:hardis:diagnose",
|
|
6425
|
+
"unusedusers:org:diagnose:hardis",
|
|
6426
|
+
"hardis:unusedusers:diagnose:org",
|
|
6427
|
+
"unusedusers:hardis:diagnose:org",
|
|
6428
|
+
"unusedusers:diagnose:hardis:org",
|
|
6429
|
+
"unusedusers:diagnose:org:hardis"
|
|
6430
6430
|
]
|
|
6431
6431
|
},
|
|
6432
6432
|
"hardis:org:fix:listviewmine": {
|
|
@@ -14200,5 +14200,5 @@
|
|
|
14200
14200
|
]
|
|
14201
14201
|
}
|
|
14202
14202
|
},
|
|
14203
|
-
"version": "5.16.
|
|
14203
|
+
"version": "5.16.2-beta202501202143.0"
|
|
14204
14204
|
}
|