sfdx-hardis 5.29.1 → 5.30.1-beta202505052040.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 +5 -0
- package/lib/commands/hardis/doc/project2markdown.d.ts +4 -0
- package/lib/commands/hardis/doc/project2markdown.js +128 -6
- package/lib/commands/hardis/doc/project2markdown.js.map +1 -1
- package/lib/common/aiProvider/promptTemplates.d.ts +13 -1
- package/lib/common/aiProvider/promptTemplates.js +77 -1
- package/lib/common/aiProvider/promptTemplates.js.map +1 -1
- package/lib/common/docBuilder/docBuilderAssignmentRules.d.ts +11 -0
- package/lib/common/docBuilder/docBuilderAssignmentRules.js +46 -0
- package/lib/common/docBuilder/docBuilderAssignmentRules.js.map +1 -0
- package/lib/common/docBuilder/docBuilderLwc.d.ts +14 -0
- package/lib/common/docBuilder/docBuilderLwc.js +103 -0
- package/lib/common/docBuilder/docBuilderLwc.js.map +1 -0
- package/lib/common/utils/rulesBuilderUtil.d.ts +6 -0
- package/lib/common/utils/rulesBuilderUtil.js +47 -0
- package/lib/common/utils/rulesBuilderUtil.js.map +1 -0
- package/oclif.lock +1094 -1024
- package/oclif.manifest.json +568 -568
- package/package.json +7 -6
package/oclif.manifest.json
CHANGED
|
@@ -57,13 +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:
|
|
66
|
-
"CI=true sf hardis:auth:login"
|
|
65
|
+
"$ sf hardis:cache:clear"
|
|
67
66
|
],
|
|
68
67
|
"flags": {
|
|
69
68
|
"json": {
|
|
@@ -81,28 +80,6 @@
|
|
|
81
80
|
"multiple": false,
|
|
82
81
|
"type": "option"
|
|
83
82
|
},
|
|
84
|
-
"instanceurl": {
|
|
85
|
-
"char": "r",
|
|
86
|
-
"description": "URL of org instance",
|
|
87
|
-
"name": "instanceurl",
|
|
88
|
-
"hasDynamicHelp": false,
|
|
89
|
-
"multiple": false,
|
|
90
|
-
"type": "option"
|
|
91
|
-
},
|
|
92
|
-
"devhub": {
|
|
93
|
-
"char": "h",
|
|
94
|
-
"description": "Also connect associated DevHub",
|
|
95
|
-
"name": "devhub",
|
|
96
|
-
"allowNo": false,
|
|
97
|
-
"type": "boolean"
|
|
98
|
-
},
|
|
99
|
-
"scratchorg": {
|
|
100
|
-
"char": "s",
|
|
101
|
-
"description": "Scratch org",
|
|
102
|
-
"name": "scratchorg",
|
|
103
|
-
"allowNo": false,
|
|
104
|
-
"type": "boolean"
|
|
105
|
-
},
|
|
106
83
|
"debug": {
|
|
107
84
|
"char": "d",
|
|
108
85
|
"description": "Activate debug mode (more logs)",
|
|
@@ -126,38 +103,39 @@
|
|
|
126
103
|
},
|
|
127
104
|
"hasDynamicHelp": false,
|
|
128
105
|
"hiddenAliases": [],
|
|
129
|
-
"id": "hardis:
|
|
106
|
+
"id": "hardis:cache:clear",
|
|
130
107
|
"pluginAlias": "sfdx-hardis",
|
|
131
108
|
"pluginName": "sfdx-hardis",
|
|
132
109
|
"pluginType": "core",
|
|
133
110
|
"strict": true,
|
|
134
111
|
"enableJsonFlag": true,
|
|
135
|
-
"title": "
|
|
112
|
+
"title": "Clear sfdx-hardis cache",
|
|
136
113
|
"requiresProject": false,
|
|
137
114
|
"isESM": true,
|
|
138
115
|
"relativePath": [
|
|
139
116
|
"lib",
|
|
140
117
|
"commands",
|
|
141
118
|
"hardis",
|
|
142
|
-
"
|
|
143
|
-
"
|
|
119
|
+
"cache",
|
|
120
|
+
"clear.js"
|
|
144
121
|
],
|
|
145
122
|
"aliasPermutations": [],
|
|
146
123
|
"permutations": [
|
|
147
|
-
"hardis:
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"hardis:
|
|
151
|
-
"
|
|
152
|
-
"
|
|
124
|
+
"hardis:cache:clear",
|
|
125
|
+
"cache:hardis:clear",
|
|
126
|
+
"cache:clear:hardis",
|
|
127
|
+
"hardis:clear:cache",
|
|
128
|
+
"clear:hardis:cache",
|
|
129
|
+
"clear:cache:hardis"
|
|
153
130
|
]
|
|
154
131
|
},
|
|
155
|
-
"hardis:
|
|
132
|
+
"hardis:auth:login": {
|
|
156
133
|
"aliases": [],
|
|
157
134
|
"args": {},
|
|
158
|
-
"description": "
|
|
135
|
+
"description": "Login to salesforce org",
|
|
159
136
|
"examples": [
|
|
160
|
-
"$ sf hardis:
|
|
137
|
+
"$ sf hardis:auth:login",
|
|
138
|
+
"CI=true sf hardis:auth:login"
|
|
161
139
|
],
|
|
162
140
|
"flags": {
|
|
163
141
|
"json": {
|
|
@@ -175,6 +153,28 @@
|
|
|
175
153
|
"multiple": false,
|
|
176
154
|
"type": "option"
|
|
177
155
|
},
|
|
156
|
+
"instanceurl": {
|
|
157
|
+
"char": "r",
|
|
158
|
+
"description": "URL of org instance",
|
|
159
|
+
"name": "instanceurl",
|
|
160
|
+
"hasDynamicHelp": false,
|
|
161
|
+
"multiple": false,
|
|
162
|
+
"type": "option"
|
|
163
|
+
},
|
|
164
|
+
"devhub": {
|
|
165
|
+
"char": "h",
|
|
166
|
+
"description": "Also connect associated DevHub",
|
|
167
|
+
"name": "devhub",
|
|
168
|
+
"allowNo": false,
|
|
169
|
+
"type": "boolean"
|
|
170
|
+
},
|
|
171
|
+
"scratchorg": {
|
|
172
|
+
"char": "s",
|
|
173
|
+
"description": "Scratch org",
|
|
174
|
+
"name": "scratchorg",
|
|
175
|
+
"allowNo": false,
|
|
176
|
+
"type": "boolean"
|
|
177
|
+
},
|
|
178
178
|
"debug": {
|
|
179
179
|
"char": "d",
|
|
180
180
|
"description": "Activate debug mode (more logs)",
|
|
@@ -198,30 +198,30 @@
|
|
|
198
198
|
},
|
|
199
199
|
"hasDynamicHelp": false,
|
|
200
200
|
"hiddenAliases": [],
|
|
201
|
-
"id": "hardis:
|
|
201
|
+
"id": "hardis:auth:login",
|
|
202
202
|
"pluginAlias": "sfdx-hardis",
|
|
203
203
|
"pluginName": "sfdx-hardis",
|
|
204
204
|
"pluginType": "core",
|
|
205
205
|
"strict": true,
|
|
206
206
|
"enableJsonFlag": true,
|
|
207
|
-
"title": "
|
|
207
|
+
"title": "Login",
|
|
208
208
|
"requiresProject": false,
|
|
209
209
|
"isESM": true,
|
|
210
210
|
"relativePath": [
|
|
211
211
|
"lib",
|
|
212
212
|
"commands",
|
|
213
213
|
"hardis",
|
|
214
|
-
"
|
|
215
|
-
"
|
|
214
|
+
"auth",
|
|
215
|
+
"login.js"
|
|
216
216
|
],
|
|
217
217
|
"aliasPermutations": [],
|
|
218
218
|
"permutations": [
|
|
219
|
-
"hardis:
|
|
220
|
-
"
|
|
221
|
-
"
|
|
222
|
-
"hardis:
|
|
223
|
-
"
|
|
224
|
-
"
|
|
219
|
+
"hardis:auth:login",
|
|
220
|
+
"auth:hardis:login",
|
|
221
|
+
"auth:login:hardis",
|
|
222
|
+
"hardis:login:auth",
|
|
223
|
+
"login:hardis:auth",
|
|
224
|
+
"login:auth:hardis"
|
|
225
225
|
]
|
|
226
226
|
},
|
|
227
227
|
"hardis:config:get": {
|
|
@@ -5196,15 +5196,12 @@
|
|
|
5196
5196
|
"import:data:org:hardis"
|
|
5197
5197
|
]
|
|
5198
5198
|
},
|
|
5199
|
-
"hardis:org:
|
|
5199
|
+
"hardis:org:files:export": {
|
|
5200
5200
|
"aliases": [],
|
|
5201
5201
|
"args": {},
|
|
5202
|
-
"description": "Export
|
|
5202
|
+
"description": "Export file attachments from a Salesforce org\n\nHandles:\n\n- ContentVersion\n- Attachment\n\nSee article below:\n\n[](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n",
|
|
5203
5203
|
"examples": [
|
|
5204
|
-
"$ sf hardis:org:
|
|
5205
|
-
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
|
|
5206
|
-
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
|
|
5207
|
-
"$ sf hardis:org:diagnose:audittrail --lastndays 5"
|
|
5204
|
+
"$ sf hardis:org:files:export"
|
|
5208
5205
|
],
|
|
5209
5206
|
"flags": {
|
|
5210
5207
|
"json": {
|
|
@@ -5222,26 +5219,37 @@
|
|
|
5222
5219
|
"multiple": false,
|
|
5223
5220
|
"type": "option"
|
|
5224
5221
|
},
|
|
5225
|
-
"
|
|
5226
|
-
"char": "
|
|
5227
|
-
"description": "
|
|
5228
|
-
"name": "
|
|
5222
|
+
"path": {
|
|
5223
|
+
"char": "p",
|
|
5224
|
+
"description": "Path to the file export project",
|
|
5225
|
+
"name": "path",
|
|
5229
5226
|
"hasDynamicHelp": false,
|
|
5230
5227
|
"multiple": false,
|
|
5231
5228
|
"type": "option"
|
|
5232
5229
|
},
|
|
5233
|
-
"
|
|
5230
|
+
"chunksize": {
|
|
5231
|
+
"char": "c",
|
|
5232
|
+
"description": "Number of records to add in a chunk before it is processed",
|
|
5233
|
+
"name": "chunksize",
|
|
5234
|
+
"default": 1000,
|
|
5235
|
+
"hasDynamicHelp": false,
|
|
5236
|
+
"multiple": false,
|
|
5237
|
+
"type": "option"
|
|
5238
|
+
},
|
|
5239
|
+
"polltimeout": {
|
|
5234
5240
|
"char": "t",
|
|
5235
|
-
"description": "
|
|
5236
|
-
"name": "
|
|
5241
|
+
"description": "Timeout in MS for Bulk API calls",
|
|
5242
|
+
"name": "polltimeout",
|
|
5243
|
+
"default": 300000,
|
|
5237
5244
|
"hasDynamicHelp": false,
|
|
5238
5245
|
"multiple": false,
|
|
5239
5246
|
"type": "option"
|
|
5240
5247
|
},
|
|
5241
|
-
"
|
|
5242
|
-
"char": "
|
|
5243
|
-
"description": "
|
|
5244
|
-
"name": "
|
|
5248
|
+
"startchunknumber": {
|
|
5249
|
+
"char": "s",
|
|
5250
|
+
"description": "Chunk number to start from",
|
|
5251
|
+
"name": "startchunknumber",
|
|
5252
|
+
"default": 0,
|
|
5245
5253
|
"hasDynamicHelp": false,
|
|
5246
5254
|
"multiple": false,
|
|
5247
5255
|
"type": "option"
|
|
@@ -5284,13 +5292,13 @@
|
|
|
5284
5292
|
},
|
|
5285
5293
|
"hasDynamicHelp": true,
|
|
5286
5294
|
"hiddenAliases": [],
|
|
5287
|
-
"id": "hardis:org:
|
|
5295
|
+
"id": "hardis:org:files:export",
|
|
5288
5296
|
"pluginAlias": "sfdx-hardis",
|
|
5289
5297
|
"pluginName": "sfdx-hardis",
|
|
5290
5298
|
"pluginType": "core",
|
|
5291
5299
|
"strict": true,
|
|
5292
5300
|
"enableJsonFlag": true,
|
|
5293
|
-
"title": "
|
|
5301
|
+
"title": "Export files",
|
|
5294
5302
|
"requiresProject": false,
|
|
5295
5303
|
"isESM": true,
|
|
5296
5304
|
"relativePath": [
|
|
@@ -5298,43 +5306,43 @@
|
|
|
5298
5306
|
"commands",
|
|
5299
5307
|
"hardis",
|
|
5300
5308
|
"org",
|
|
5301
|
-
"
|
|
5302
|
-
"
|
|
5309
|
+
"files",
|
|
5310
|
+
"export.js"
|
|
5303
5311
|
],
|
|
5304
5312
|
"aliasPermutations": [],
|
|
5305
5313
|
"permutations": [
|
|
5306
|
-
"hardis:org:
|
|
5307
|
-
"org:hardis:
|
|
5308
|
-
"org:
|
|
5309
|
-
"org:
|
|
5310
|
-
"hardis:
|
|
5311
|
-
"
|
|
5312
|
-
"
|
|
5313
|
-
"
|
|
5314
|
-
"hardis:
|
|
5315
|
-
"
|
|
5316
|
-
"
|
|
5317
|
-
"
|
|
5318
|
-
"hardis:org:
|
|
5319
|
-
"org:hardis:
|
|
5320
|
-
"org:
|
|
5321
|
-
"org:
|
|
5322
|
-
"hardis:
|
|
5323
|
-
"
|
|
5324
|
-
"
|
|
5325
|
-
"
|
|
5326
|
-
"hardis:
|
|
5327
|
-
"
|
|
5328
|
-
"
|
|
5329
|
-
"
|
|
5314
|
+
"hardis:org:files:export",
|
|
5315
|
+
"org:hardis:files:export",
|
|
5316
|
+
"org:files:hardis:export",
|
|
5317
|
+
"org:files:export:hardis",
|
|
5318
|
+
"hardis:files:org:export",
|
|
5319
|
+
"files:hardis:org:export",
|
|
5320
|
+
"files:org:hardis:export",
|
|
5321
|
+
"files:org:export:hardis",
|
|
5322
|
+
"hardis:files:export:org",
|
|
5323
|
+
"files:hardis:export:org",
|
|
5324
|
+
"files:export:hardis:org",
|
|
5325
|
+
"files:export:org:hardis",
|
|
5326
|
+
"hardis:org:export:files",
|
|
5327
|
+
"org:hardis:export:files",
|
|
5328
|
+
"org:export:hardis:files",
|
|
5329
|
+
"org:export:files:hardis",
|
|
5330
|
+
"hardis:export:org:files",
|
|
5331
|
+
"export:hardis:org:files",
|
|
5332
|
+
"export:org:hardis:files",
|
|
5333
|
+
"export:org:files:hardis",
|
|
5334
|
+
"hardis:export:files:org",
|
|
5335
|
+
"export:hardis:files:org",
|
|
5336
|
+
"export:files:hardis:org",
|
|
5337
|
+
"export:files:org:hardis"
|
|
5330
5338
|
]
|
|
5331
5339
|
},
|
|
5332
|
-
"hardis:org:
|
|
5340
|
+
"hardis:org:files:import": {
|
|
5333
5341
|
"aliases": [],
|
|
5334
5342
|
"args": {},
|
|
5335
|
-
"description": "
|
|
5343
|
+
"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",
|
|
5336
5344
|
"examples": [
|
|
5337
|
-
"$ sf hardis:org:
|
|
5345
|
+
"$ sf hardis:org:files:import"
|
|
5338
5346
|
],
|
|
5339
5347
|
"flags": {
|
|
5340
5348
|
"json": {
|
|
@@ -5352,6 +5360,21 @@
|
|
|
5352
5360
|
"multiple": false,
|
|
5353
5361
|
"type": "option"
|
|
5354
5362
|
},
|
|
5363
|
+
"path": {
|
|
5364
|
+
"char": "p",
|
|
5365
|
+
"description": "Path to the file export project",
|
|
5366
|
+
"name": "path",
|
|
5367
|
+
"hasDynamicHelp": false,
|
|
5368
|
+
"multiple": false,
|
|
5369
|
+
"type": "option"
|
|
5370
|
+
},
|
|
5371
|
+
"overwrite": {
|
|
5372
|
+
"char": "f",
|
|
5373
|
+
"description": "Override existing files (doubles the number of API calls)",
|
|
5374
|
+
"name": "overwrite",
|
|
5375
|
+
"allowNo": false,
|
|
5376
|
+
"type": "boolean"
|
|
5377
|
+
},
|
|
5355
5378
|
"debug": {
|
|
5356
5379
|
"char": "d",
|
|
5357
5380
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5390,13 +5413,13 @@
|
|
|
5390
5413
|
},
|
|
5391
5414
|
"hasDynamicHelp": true,
|
|
5392
5415
|
"hiddenAliases": [],
|
|
5393
|
-
"id": "hardis:org:
|
|
5416
|
+
"id": "hardis:org:files:import",
|
|
5394
5417
|
"pluginAlias": "sfdx-hardis",
|
|
5395
5418
|
"pluginName": "sfdx-hardis",
|
|
5396
5419
|
"pluginType": "core",
|
|
5397
5420
|
"strict": true,
|
|
5398
5421
|
"enableJsonFlag": true,
|
|
5399
|
-
"title": "
|
|
5422
|
+
"title": "Import files",
|
|
5400
5423
|
"requiresProject": false,
|
|
5401
5424
|
"isESM": true,
|
|
5402
5425
|
"relativePath": [
|
|
@@ -5404,46 +5427,46 @@
|
|
|
5404
5427
|
"commands",
|
|
5405
5428
|
"hardis",
|
|
5406
5429
|
"org",
|
|
5407
|
-
"
|
|
5408
|
-
"
|
|
5430
|
+
"files",
|
|
5431
|
+
"import.js"
|
|
5409
5432
|
],
|
|
5410
5433
|
"aliasPermutations": [],
|
|
5411
5434
|
"permutations": [
|
|
5412
|
-
"hardis:org:
|
|
5413
|
-
"org:hardis:
|
|
5414
|
-
"org:
|
|
5415
|
-
"org:
|
|
5416
|
-
"hardis:
|
|
5417
|
-
"
|
|
5418
|
-
"
|
|
5419
|
-
"
|
|
5420
|
-
"hardis:
|
|
5421
|
-
"
|
|
5422
|
-
"
|
|
5423
|
-
"
|
|
5424
|
-
"hardis:org:
|
|
5425
|
-
"org:hardis:
|
|
5426
|
-
"org:
|
|
5427
|
-
"org:
|
|
5428
|
-
"hardis:
|
|
5429
|
-
"
|
|
5430
|
-
"
|
|
5431
|
-
"
|
|
5432
|
-
"hardis:
|
|
5433
|
-
"
|
|
5434
|
-
"
|
|
5435
|
-
"
|
|
5436
|
-
]
|
|
5437
|
-
},
|
|
5438
|
-
"hardis:org:diagnose:
|
|
5439
|
-
"aliases": [],
|
|
5440
|
-
"args": {},
|
|
5441
|
-
"description": "
|
|
5442
|
-
"examples": [
|
|
5443
|
-
"$ sf hardis:org:diagnose:
|
|
5444
|
-
"$ sf hardis:org:diagnose:
|
|
5445
|
-
"$ sf hardis:org:diagnose:
|
|
5446
|
-
"$ sf hardis:org:diagnose:
|
|
5435
|
+
"hardis:org:files:import",
|
|
5436
|
+
"org:hardis:files:import",
|
|
5437
|
+
"org:files:hardis:import",
|
|
5438
|
+
"org:files:import:hardis",
|
|
5439
|
+
"hardis:files:org:import",
|
|
5440
|
+
"files:hardis:org:import",
|
|
5441
|
+
"files:org:hardis:import",
|
|
5442
|
+
"files:org:import:hardis",
|
|
5443
|
+
"hardis:files:import:org",
|
|
5444
|
+
"files:hardis:import:org",
|
|
5445
|
+
"files:import:hardis:org",
|
|
5446
|
+
"files:import:org:hardis",
|
|
5447
|
+
"hardis:org:import:files",
|
|
5448
|
+
"org:hardis:import:files",
|
|
5449
|
+
"org:import:hardis:files",
|
|
5450
|
+
"org:import:files:hardis",
|
|
5451
|
+
"hardis:import:org:files",
|
|
5452
|
+
"import:hardis:org:files",
|
|
5453
|
+
"import:org:hardis:files",
|
|
5454
|
+
"import:org:files:hardis",
|
|
5455
|
+
"hardis:import:files:org",
|
|
5456
|
+
"import:hardis:files:org",
|
|
5457
|
+
"import:files:hardis:org",
|
|
5458
|
+
"import:files:org:hardis"
|
|
5459
|
+
]
|
|
5460
|
+
},
|
|
5461
|
+
"hardis:org:diagnose:audittrail": {
|
|
5462
|
+
"aliases": [],
|
|
5463
|
+
"args": {},
|
|
5464
|
+
"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 - revokeduserpackagelicense\n- Customer Portal\n - createdcustomersuccessuser\n - CSPUserDisabled\n- Currency\n - updateddatedexchrate\n- Data Management\n - queueMembership\n- Email Administration\n - dkimRotationPreparationSuccessful\n - dkimRotationSuccessful\n- 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 - changedknowledgeuseroffon\n - changedsfcontentuseroffon\n - changedsupportuseroffon\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 - suNetworkAdminLogin\n - suNetworkAdminLogout\n - suOrgAdminLogin\n - suOrgAdminLogout\n - unfrozeuser\n - useremailchangesent\n- Mobile Administration\n - assigneduserstomobileconfig\n- Reporting Snapshots\n - createdReportJob\n - deletedReportJob\n- Sandboxes\n - DeleteSandbox\n\nBy default, deployment user defined in .sfdx-hardis.yml targetUsername property will be excluded.\n\nYou can define additional users to exclude in .sfdx-hardis.yml **monitoringExcludeUsernames** property.\n\nYou can also add more sections / actions considered as not suspect using property **monitoringAllowedSectionsActions**\n\nExample:\n\n```yaml\nmonitoringExcludeUsernames:\n - deploymentuser@cloudity.com\n - marketingcloud@cloudity.com\n - integration-user@cloudity.com\n\nmonitoringAllowedSectionsActions:\n \"Some section\": [] // Will ignore all actions from such section\n \"Some other section\": [\"actionType1\",\"actionType2\",\"actionType3\"] // Will ignore only those 3 actions from section \"Some other section\". Other actions in the same section will be considered as suspect.\n```\n\n## Excel output example\n\n\n\n## Local output example\n\n\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-suspect-audit-trail/) and can output Grafana, Slack and MsTeams Notifications.\n",
|
|
5465
|
+
"examples": [
|
|
5466
|
+
"$ sf hardis:org:diagnose:audittrail",
|
|
5467
|
+
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
|
|
5468
|
+
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
|
|
5469
|
+
"$ sf hardis:org:diagnose:audittrail --lastndays 5"
|
|
5447
5470
|
],
|
|
5448
5471
|
"flags": {
|
|
5449
5472
|
"json": {
|
|
@@ -5461,20 +5484,18 @@
|
|
|
5461
5484
|
"multiple": false,
|
|
5462
5485
|
"type": "option"
|
|
5463
5486
|
},
|
|
5464
|
-
"
|
|
5487
|
+
"excludeusers": {
|
|
5465
5488
|
"char": "e",
|
|
5466
|
-
"description": "
|
|
5467
|
-
"name": "
|
|
5468
|
-
"default": "ApiTotalUsage",
|
|
5489
|
+
"description": "Comma-separated list of usernames to exclude",
|
|
5490
|
+
"name": "excludeusers",
|
|
5469
5491
|
"hasDynamicHelp": false,
|
|
5470
5492
|
"multiple": false,
|
|
5471
5493
|
"type": "option"
|
|
5472
5494
|
},
|
|
5473
|
-
"
|
|
5474
|
-
"char": "
|
|
5475
|
-
"description": "Number of
|
|
5476
|
-
"name": "
|
|
5477
|
-
"default": 999,
|
|
5495
|
+
"lastndays": {
|
|
5496
|
+
"char": "t",
|
|
5497
|
+
"description": "Number of days to extract from today (included)",
|
|
5498
|
+
"name": "lastndays",
|
|
5478
5499
|
"hasDynamicHelp": false,
|
|
5479
5500
|
"multiple": false,
|
|
5480
5501
|
"type": "option"
|
|
@@ -5525,13 +5546,13 @@
|
|
|
5525
5546
|
},
|
|
5526
5547
|
"hasDynamicHelp": true,
|
|
5527
5548
|
"hiddenAliases": [],
|
|
5528
|
-
"id": "hardis:org:diagnose:
|
|
5549
|
+
"id": "hardis:org:diagnose:audittrail",
|
|
5529
5550
|
"pluginAlias": "sfdx-hardis",
|
|
5530
5551
|
"pluginName": "sfdx-hardis",
|
|
5531
5552
|
"pluginType": "core",
|
|
5532
5553
|
"strict": true,
|
|
5533
5554
|
"enableJsonFlag": true,
|
|
5534
|
-
"title": "
|
|
5555
|
+
"title": "Diagnose content of Setup Audit Trail",
|
|
5535
5556
|
"requiresProject": false,
|
|
5536
5557
|
"isESM": true,
|
|
5537
5558
|
"relativePath": [
|
|
@@ -5540,42 +5561,42 @@
|
|
|
5540
5561
|
"hardis",
|
|
5541
5562
|
"org",
|
|
5542
5563
|
"diagnose",
|
|
5543
|
-
"
|
|
5564
|
+
"audittrail.js"
|
|
5544
5565
|
],
|
|
5545
5566
|
"aliasPermutations": [],
|
|
5546
5567
|
"permutations": [
|
|
5547
|
-
"hardis:org:diagnose:
|
|
5548
|
-
"org:hardis:diagnose:
|
|
5549
|
-
"org:diagnose:hardis:
|
|
5550
|
-
"org:diagnose:
|
|
5551
|
-
"hardis:diagnose:org:
|
|
5552
|
-
"diagnose:hardis:org:
|
|
5553
|
-
"diagnose:org:hardis:
|
|
5554
|
-
"diagnose:org:
|
|
5555
|
-
"hardis:diagnose:
|
|
5556
|
-
"diagnose:hardis:
|
|
5557
|
-
"diagnose:
|
|
5558
|
-
"diagnose:
|
|
5559
|
-
"hardis:org:
|
|
5560
|
-
"org:hardis:
|
|
5561
|
-
"org:
|
|
5562
|
-
"org:
|
|
5563
|
-
"hardis:
|
|
5564
|
-
"
|
|
5565
|
-
"
|
|
5566
|
-
"
|
|
5567
|
-
"hardis:
|
|
5568
|
-
"
|
|
5569
|
-
"
|
|
5570
|
-
"
|
|
5568
|
+
"hardis:org:diagnose:audittrail",
|
|
5569
|
+
"org:hardis:diagnose:audittrail",
|
|
5570
|
+
"org:diagnose:hardis:audittrail",
|
|
5571
|
+
"org:diagnose:audittrail:hardis",
|
|
5572
|
+
"hardis:diagnose:org:audittrail",
|
|
5573
|
+
"diagnose:hardis:org:audittrail",
|
|
5574
|
+
"diagnose:org:hardis:audittrail",
|
|
5575
|
+
"diagnose:org:audittrail:hardis",
|
|
5576
|
+
"hardis:diagnose:audittrail:org",
|
|
5577
|
+
"diagnose:hardis:audittrail:org",
|
|
5578
|
+
"diagnose:audittrail:hardis:org",
|
|
5579
|
+
"diagnose:audittrail:org:hardis",
|
|
5580
|
+
"hardis:org:audittrail:diagnose",
|
|
5581
|
+
"org:hardis:audittrail:diagnose",
|
|
5582
|
+
"org:audittrail:hardis:diagnose",
|
|
5583
|
+
"org:audittrail:diagnose:hardis",
|
|
5584
|
+
"hardis:audittrail:org:diagnose",
|
|
5585
|
+
"audittrail:hardis:org:diagnose",
|
|
5586
|
+
"audittrail:org:hardis:diagnose",
|
|
5587
|
+
"audittrail:org:diagnose:hardis",
|
|
5588
|
+
"hardis:audittrail:diagnose:org",
|
|
5589
|
+
"audittrail:hardis:diagnose:org",
|
|
5590
|
+
"audittrail:diagnose:hardis:org",
|
|
5591
|
+
"audittrail:diagnose:org:hardis"
|
|
5571
5592
|
]
|
|
5572
5593
|
},
|
|
5573
|
-
"hardis:org:diagnose:
|
|
5594
|
+
"hardis:org:diagnose:instanceupgrade": {
|
|
5574
5595
|
"aliases": [],
|
|
5575
5596
|
"args": {},
|
|
5576
|
-
"description": "
|
|
5597
|
+
"description": "Get the date when the org instance will be upgraded (to Spring, Summer or Winter)\n ",
|
|
5577
5598
|
"examples": [
|
|
5578
|
-
"$ sf hardis:org:diagnose:
|
|
5599
|
+
"$ sf hardis:org:diagnose:instanceupgrade"
|
|
5579
5600
|
],
|
|
5580
5601
|
"flags": {
|
|
5581
5602
|
"json": {
|
|
@@ -5593,21 +5614,6 @@
|
|
|
5593
5614
|
"multiple": false,
|
|
5594
5615
|
"type": "option"
|
|
5595
5616
|
},
|
|
5596
|
-
"outputfile": {
|
|
5597
|
-
"char": "f",
|
|
5598
|
-
"description": "Force the path and name of output report file. Must end with .csv",
|
|
5599
|
-
"name": "outputfile",
|
|
5600
|
-
"hasDynamicHelp": false,
|
|
5601
|
-
"multiple": false,
|
|
5602
|
-
"type": "option"
|
|
5603
|
-
},
|
|
5604
|
-
"usedonly": {
|
|
5605
|
-
"char": "u",
|
|
5606
|
-
"description": "Filter to have only used licenses",
|
|
5607
|
-
"name": "usedonly",
|
|
5608
|
-
"allowNo": false,
|
|
5609
|
-
"type": "boolean"
|
|
5610
|
-
},
|
|
5611
5617
|
"debug": {
|
|
5612
5618
|
"char": "d",
|
|
5613
5619
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5646,13 +5652,13 @@
|
|
|
5646
5652
|
},
|
|
5647
5653
|
"hasDynamicHelp": true,
|
|
5648
5654
|
"hiddenAliases": [],
|
|
5649
|
-
"id": "hardis:org:diagnose:
|
|
5655
|
+
"id": "hardis:org:diagnose:instanceupgrade",
|
|
5650
5656
|
"pluginAlias": "sfdx-hardis",
|
|
5651
5657
|
"pluginName": "sfdx-hardis",
|
|
5652
5658
|
"pluginType": "core",
|
|
5653
5659
|
"strict": true,
|
|
5654
5660
|
"enableJsonFlag": true,
|
|
5655
|
-
"title": "
|
|
5661
|
+
"title": "Get Instance Upgrade date",
|
|
5656
5662
|
"requiresProject": false,
|
|
5657
5663
|
"isESM": true,
|
|
5658
5664
|
"relativePath": [
|
|
@@ -5661,42 +5667,45 @@
|
|
|
5661
5667
|
"hardis",
|
|
5662
5668
|
"org",
|
|
5663
5669
|
"diagnose",
|
|
5664
|
-
"
|
|
5670
|
+
"instanceupgrade.js"
|
|
5665
5671
|
],
|
|
5666
5672
|
"aliasPermutations": [],
|
|
5667
5673
|
"permutations": [
|
|
5668
|
-
"hardis:org:diagnose:
|
|
5669
|
-
"org:hardis:diagnose:
|
|
5670
|
-
"org:diagnose:hardis:
|
|
5671
|
-
"org:diagnose:
|
|
5672
|
-
"hardis:diagnose:org:
|
|
5673
|
-
"diagnose:hardis:org:
|
|
5674
|
-
"diagnose:org:hardis:
|
|
5675
|
-
"diagnose:org:
|
|
5676
|
-
"hardis:diagnose:
|
|
5677
|
-
"diagnose:hardis:
|
|
5678
|
-
"diagnose:
|
|
5679
|
-
"diagnose:
|
|
5680
|
-
"hardis:org:
|
|
5681
|
-
"org:hardis:
|
|
5682
|
-
"org:
|
|
5683
|
-
"org:
|
|
5684
|
-
"hardis:
|
|
5685
|
-
"
|
|
5686
|
-
"
|
|
5687
|
-
"
|
|
5688
|
-
"hardis:
|
|
5689
|
-
"
|
|
5690
|
-
"
|
|
5691
|
-
"
|
|
5674
|
+
"hardis:org:diagnose:instanceupgrade",
|
|
5675
|
+
"org:hardis:diagnose:instanceupgrade",
|
|
5676
|
+
"org:diagnose:hardis:instanceupgrade",
|
|
5677
|
+
"org:diagnose:instanceupgrade:hardis",
|
|
5678
|
+
"hardis:diagnose:org:instanceupgrade",
|
|
5679
|
+
"diagnose:hardis:org:instanceupgrade",
|
|
5680
|
+
"diagnose:org:hardis:instanceupgrade",
|
|
5681
|
+
"diagnose:org:instanceupgrade:hardis",
|
|
5682
|
+
"hardis:diagnose:instanceupgrade:org",
|
|
5683
|
+
"diagnose:hardis:instanceupgrade:org",
|
|
5684
|
+
"diagnose:instanceupgrade:hardis:org",
|
|
5685
|
+
"diagnose:instanceupgrade:org:hardis",
|
|
5686
|
+
"hardis:org:instanceupgrade:diagnose",
|
|
5687
|
+
"org:hardis:instanceupgrade:diagnose",
|
|
5688
|
+
"org:instanceupgrade:hardis:diagnose",
|
|
5689
|
+
"org:instanceupgrade:diagnose:hardis",
|
|
5690
|
+
"hardis:instanceupgrade:org:diagnose",
|
|
5691
|
+
"instanceupgrade:hardis:org:diagnose",
|
|
5692
|
+
"instanceupgrade:org:hardis:diagnose",
|
|
5693
|
+
"instanceupgrade:org:diagnose:hardis",
|
|
5694
|
+
"hardis:instanceupgrade:diagnose:org",
|
|
5695
|
+
"instanceupgrade:hardis:diagnose:org",
|
|
5696
|
+
"instanceupgrade:diagnose:hardis:org",
|
|
5697
|
+
"instanceupgrade:diagnose:org:hardis"
|
|
5692
5698
|
]
|
|
5693
5699
|
},
|
|
5694
|
-
"hardis:org:diagnose:
|
|
5700
|
+
"hardis:org:diagnose:legacyapi": {
|
|
5695
5701
|
"aliases": [],
|
|
5696
5702
|
"args": {},
|
|
5697
|
-
"description": "
|
|
5703
|
+
"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",
|
|
5698
5704
|
"examples": [
|
|
5699
|
-
"$ sf hardis:org:diagnose:
|
|
5705
|
+
"$ sf hardis:org:diagnose:legacyapi",
|
|
5706
|
+
"$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com",
|
|
5707
|
+
"$ sf hardis:org:diagnose:legacyapi --outputfile 'c:/path/to/folder/legacyapi.csv'",
|
|
5708
|
+
"$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com --outputfile ./tmp/legacyapi.csv"
|
|
5700
5709
|
],
|
|
5701
5710
|
"flags": {
|
|
5702
5711
|
"json": {
|
|
@@ -5714,6 +5723,24 @@
|
|
|
5714
5723
|
"multiple": false,
|
|
5715
5724
|
"type": "option"
|
|
5716
5725
|
},
|
|
5726
|
+
"eventtype": {
|
|
5727
|
+
"char": "e",
|
|
5728
|
+
"description": "Type of EventLogFile event to analyze",
|
|
5729
|
+
"name": "eventtype",
|
|
5730
|
+
"default": "ApiTotalUsage",
|
|
5731
|
+
"hasDynamicHelp": false,
|
|
5732
|
+
"multiple": false,
|
|
5733
|
+
"type": "option"
|
|
5734
|
+
},
|
|
5735
|
+
"limit": {
|
|
5736
|
+
"char": "l",
|
|
5737
|
+
"description": "Number of latest EventLogFile events to analyze",
|
|
5738
|
+
"name": "limit",
|
|
5739
|
+
"default": 999,
|
|
5740
|
+
"hasDynamicHelp": false,
|
|
5741
|
+
"multiple": false,
|
|
5742
|
+
"type": "option"
|
|
5743
|
+
},
|
|
5717
5744
|
"outputfile": {
|
|
5718
5745
|
"char": "f",
|
|
5719
5746
|
"description": "Force the path and name of output report file. Must end with .csv",
|
|
@@ -5760,13 +5787,13 @@
|
|
|
5760
5787
|
},
|
|
5761
5788
|
"hasDynamicHelp": true,
|
|
5762
5789
|
"hiddenAliases": [],
|
|
5763
|
-
"id": "hardis:org:diagnose:
|
|
5790
|
+
"id": "hardis:org:diagnose:legacyapi",
|
|
5764
5791
|
"pluginAlias": "sfdx-hardis",
|
|
5765
5792
|
"pluginName": "sfdx-hardis",
|
|
5766
5793
|
"pluginType": "core",
|
|
5767
5794
|
"strict": true,
|
|
5768
5795
|
"enableJsonFlag": true,
|
|
5769
|
-
"title": "Check
|
|
5796
|
+
"title": "Check for legacy API use",
|
|
5770
5797
|
"requiresProject": false,
|
|
5771
5798
|
"isESM": true,
|
|
5772
5799
|
"relativePath": [
|
|
@@ -5775,49 +5802,48 @@
|
|
|
5775
5802
|
"hardis",
|
|
5776
5803
|
"org",
|
|
5777
5804
|
"diagnose",
|
|
5778
|
-
"
|
|
5805
|
+
"legacyapi.js"
|
|
5779
5806
|
],
|
|
5780
5807
|
"aliasPermutations": [],
|
|
5781
5808
|
"permutations": [
|
|
5782
|
-
"hardis:org:diagnose:
|
|
5783
|
-
"org:hardis:diagnose:
|
|
5784
|
-
"org:diagnose:hardis:
|
|
5785
|
-
"org:diagnose:
|
|
5786
|
-
"hardis:diagnose:org:
|
|
5787
|
-
"diagnose:hardis:org:
|
|
5788
|
-
"diagnose:org:hardis:
|
|
5789
|
-
"diagnose:org:
|
|
5790
|
-
"hardis:diagnose:
|
|
5791
|
-
"diagnose:hardis:
|
|
5792
|
-
"diagnose:
|
|
5793
|
-
"diagnose:
|
|
5794
|
-
"hardis:org:
|
|
5795
|
-
"org:hardis:
|
|
5796
|
-
"org:
|
|
5797
|
-
"org:
|
|
5798
|
-
"hardis:
|
|
5799
|
-
"
|
|
5800
|
-
"
|
|
5801
|
-
"
|
|
5802
|
-
"hardis:
|
|
5803
|
-
"
|
|
5804
|
-
"
|
|
5805
|
-
"
|
|
5806
|
-
]
|
|
5807
|
-
},
|
|
5808
|
-
"hardis:org:diagnose:
|
|
5809
|
-
"aliases": [],
|
|
5810
|
-
"args": {},
|
|
5811
|
-
"description": "
|
|
5812
|
-
"examples": [
|
|
5813
|
-
"$ sf hardis:org:diagnose:
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
"
|
|
5819
|
-
"
|
|
5820
|
-
"name": "json",
|
|
5809
|
+
"hardis:org:diagnose:legacyapi",
|
|
5810
|
+
"org:hardis:diagnose:legacyapi",
|
|
5811
|
+
"org:diagnose:hardis:legacyapi",
|
|
5812
|
+
"org:diagnose:legacyapi:hardis",
|
|
5813
|
+
"hardis:diagnose:org:legacyapi",
|
|
5814
|
+
"diagnose:hardis:org:legacyapi",
|
|
5815
|
+
"diagnose:org:hardis:legacyapi",
|
|
5816
|
+
"diagnose:org:legacyapi:hardis",
|
|
5817
|
+
"hardis:diagnose:legacyapi:org",
|
|
5818
|
+
"diagnose:hardis:legacyapi:org",
|
|
5819
|
+
"diagnose:legacyapi:hardis:org",
|
|
5820
|
+
"diagnose:legacyapi:org:hardis",
|
|
5821
|
+
"hardis:org:legacyapi:diagnose",
|
|
5822
|
+
"org:hardis:legacyapi:diagnose",
|
|
5823
|
+
"org:legacyapi:hardis:diagnose",
|
|
5824
|
+
"org:legacyapi:diagnose:hardis",
|
|
5825
|
+
"hardis:legacyapi:org:diagnose",
|
|
5826
|
+
"legacyapi:hardis:org:diagnose",
|
|
5827
|
+
"legacyapi:org:hardis:diagnose",
|
|
5828
|
+
"legacyapi:org:diagnose:hardis",
|
|
5829
|
+
"hardis:legacyapi:diagnose:org",
|
|
5830
|
+
"legacyapi:hardis:diagnose:org",
|
|
5831
|
+
"legacyapi:diagnose:hardis:org",
|
|
5832
|
+
"legacyapi:diagnose:org:hardis"
|
|
5833
|
+
]
|
|
5834
|
+
},
|
|
5835
|
+
"hardis:org:diagnose:licenses": {
|
|
5836
|
+
"aliases": [],
|
|
5837
|
+
"args": {},
|
|
5838
|
+
"description": "Mostly used for monitoring (Grafana) but you can also use it manually :)",
|
|
5839
|
+
"examples": [
|
|
5840
|
+
"$ sf hardis:org:diagnose:licenses"
|
|
5841
|
+
],
|
|
5842
|
+
"flags": {
|
|
5843
|
+
"json": {
|
|
5844
|
+
"description": "Format output as json.",
|
|
5845
|
+
"helpGroup": "GLOBAL",
|
|
5846
|
+
"name": "json",
|
|
5821
5847
|
"allowNo": false,
|
|
5822
5848
|
"type": "boolean"
|
|
5823
5849
|
},
|
|
@@ -5837,13 +5863,12 @@
|
|
|
5837
5863
|
"multiple": false,
|
|
5838
5864
|
"type": "option"
|
|
5839
5865
|
},
|
|
5840
|
-
"
|
|
5841
|
-
"char": "
|
|
5842
|
-
"description": "
|
|
5843
|
-
"name": "
|
|
5844
|
-
"
|
|
5845
|
-
"
|
|
5846
|
-
"type": "option"
|
|
5866
|
+
"usedonly": {
|
|
5867
|
+
"char": "u",
|
|
5868
|
+
"description": "Filter to have only used licenses",
|
|
5869
|
+
"name": "usedonly",
|
|
5870
|
+
"allowNo": false,
|
|
5871
|
+
"type": "boolean"
|
|
5847
5872
|
},
|
|
5848
5873
|
"debug": {
|
|
5849
5874
|
"char": "d",
|
|
@@ -5883,13 +5908,13 @@
|
|
|
5883
5908
|
},
|
|
5884
5909
|
"hasDynamicHelp": true,
|
|
5885
5910
|
"hiddenAliases": [],
|
|
5886
|
-
"id": "hardis:org:diagnose:
|
|
5911
|
+
"id": "hardis:org:diagnose:licenses",
|
|
5887
5912
|
"pluginAlias": "sfdx-hardis",
|
|
5888
5913
|
"pluginName": "sfdx-hardis",
|
|
5889
5914
|
"pluginType": "core",
|
|
5890
5915
|
"strict": true,
|
|
5891
5916
|
"enableJsonFlag": true,
|
|
5892
|
-
"title": "
|
|
5917
|
+
"title": "List licenses subscribed and used in a Salesforce org",
|
|
5893
5918
|
"requiresProject": false,
|
|
5894
5919
|
"isESM": true,
|
|
5895
5920
|
"relativePath": [
|
|
@@ -5898,42 +5923,42 @@
|
|
|
5898
5923
|
"hardis",
|
|
5899
5924
|
"org",
|
|
5900
5925
|
"diagnose",
|
|
5901
|
-
"
|
|
5926
|
+
"licenses.js"
|
|
5902
5927
|
],
|
|
5903
5928
|
"aliasPermutations": [],
|
|
5904
5929
|
"permutations": [
|
|
5905
|
-
"hardis:org:diagnose:
|
|
5906
|
-
"org:hardis:diagnose:
|
|
5907
|
-
"org:diagnose:hardis:
|
|
5908
|
-
"org:diagnose:
|
|
5909
|
-
"hardis:diagnose:org:
|
|
5910
|
-
"diagnose:hardis:org:
|
|
5911
|
-
"diagnose:org:hardis:
|
|
5912
|
-
"diagnose:org:
|
|
5913
|
-
"hardis:diagnose:
|
|
5914
|
-
"diagnose:hardis:
|
|
5915
|
-
"diagnose:
|
|
5916
|
-
"diagnose:
|
|
5917
|
-
"hardis:org:
|
|
5918
|
-
"org:hardis:
|
|
5919
|
-
"org:
|
|
5920
|
-
"org:
|
|
5921
|
-
"hardis:
|
|
5922
|
-
"
|
|
5923
|
-
"
|
|
5924
|
-
"
|
|
5925
|
-
"hardis:
|
|
5926
|
-
"
|
|
5927
|
-
"
|
|
5928
|
-
"
|
|
5930
|
+
"hardis:org:diagnose:licenses",
|
|
5931
|
+
"org:hardis:diagnose:licenses",
|
|
5932
|
+
"org:diagnose:hardis:licenses",
|
|
5933
|
+
"org:diagnose:licenses:hardis",
|
|
5934
|
+
"hardis:diagnose:org:licenses",
|
|
5935
|
+
"diagnose:hardis:org:licenses",
|
|
5936
|
+
"diagnose:org:hardis:licenses",
|
|
5937
|
+
"diagnose:org:licenses:hardis",
|
|
5938
|
+
"hardis:diagnose:licenses:org",
|
|
5939
|
+
"diagnose:hardis:licenses:org",
|
|
5940
|
+
"diagnose:licenses:hardis:org",
|
|
5941
|
+
"diagnose:licenses:org:hardis",
|
|
5942
|
+
"hardis:org:licenses:diagnose",
|
|
5943
|
+
"org:hardis:licenses:diagnose",
|
|
5944
|
+
"org:licenses:hardis:diagnose",
|
|
5945
|
+
"org:licenses:diagnose:hardis",
|
|
5946
|
+
"hardis:licenses:org:diagnose",
|
|
5947
|
+
"licenses:hardis:org:diagnose",
|
|
5948
|
+
"licenses:org:hardis:diagnose",
|
|
5949
|
+
"licenses:org:diagnose:hardis",
|
|
5950
|
+
"hardis:licenses:diagnose:org",
|
|
5951
|
+
"licenses:hardis:diagnose:org",
|
|
5952
|
+
"licenses:diagnose:hardis:org",
|
|
5953
|
+
"licenses:diagnose:org:hardis"
|
|
5929
5954
|
]
|
|
5930
5955
|
},
|
|
5931
|
-
"hardis:org:diagnose:
|
|
5956
|
+
"hardis:org:diagnose:releaseupdates": {
|
|
5932
5957
|
"aliases": [],
|
|
5933
5958
|
"args": {},
|
|
5934
|
-
"description": "
|
|
5959
|
+
"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",
|
|
5935
5960
|
"examples": [
|
|
5936
|
-
"$ sf hardis:org:diagnose:
|
|
5961
|
+
"$ sf hardis:org:diagnose:releaseupdates"
|
|
5937
5962
|
],
|
|
5938
5963
|
"flags": {
|
|
5939
5964
|
"json": {
|
|
@@ -5997,30 +6022,13 @@
|
|
|
5997
6022
|
},
|
|
5998
6023
|
"hasDynamicHelp": true,
|
|
5999
6024
|
"hiddenAliases": [],
|
|
6000
|
-
"id": "hardis:org:diagnose:
|
|
6025
|
+
"id": "hardis:org:diagnose:releaseupdates",
|
|
6001
6026
|
"pluginAlias": "sfdx-hardis",
|
|
6002
6027
|
"pluginName": "sfdx-hardis",
|
|
6003
6028
|
"pluginType": "core",
|
|
6004
6029
|
"strict": true,
|
|
6005
6030
|
"enableJsonFlag": true,
|
|
6006
|
-
"title": "
|
|
6007
|
-
"allowedInactiveConnectedApps": [
|
|
6008
|
-
"Ant Migration Tool",
|
|
6009
|
-
"Chatter Desktop",
|
|
6010
|
-
"Chatter Mobile for BlackBerry",
|
|
6011
|
-
"Force.com IDE",
|
|
6012
|
-
"OIQ_Integration",
|
|
6013
|
-
"Salesforce CLI",
|
|
6014
|
-
"Salesforce Files",
|
|
6015
|
-
"Salesforce Mobile Dashboards",
|
|
6016
|
-
"Salesforce Touch",
|
|
6017
|
-
"Salesforce for Outlook",
|
|
6018
|
-
"SalesforceA",
|
|
6019
|
-
"SalesforceA for Android",
|
|
6020
|
-
"SalesforceA for iOS",
|
|
6021
|
-
"SalesforceDX Namespace Registry",
|
|
6022
|
-
"SalesforceIQ"
|
|
6023
|
-
],
|
|
6031
|
+
"title": "Check Release Updates of an org",
|
|
6024
6032
|
"requiresProject": false,
|
|
6025
6033
|
"isESM": true,
|
|
6026
6034
|
"relativePath": [
|
|
@@ -6029,43 +6037,43 @@
|
|
|
6029
6037
|
"hardis",
|
|
6030
6038
|
"org",
|
|
6031
6039
|
"diagnose",
|
|
6032
|
-
"
|
|
6040
|
+
"releaseupdates.js"
|
|
6033
6041
|
],
|
|
6034
6042
|
"aliasPermutations": [],
|
|
6035
6043
|
"permutations": [
|
|
6036
|
-
"hardis:org:diagnose:
|
|
6037
|
-
"org:hardis:diagnose:
|
|
6038
|
-
"org:diagnose:hardis:
|
|
6039
|
-
"org:diagnose:
|
|
6040
|
-
"hardis:diagnose:org:
|
|
6041
|
-
"diagnose:hardis:org:
|
|
6042
|
-
"diagnose:org:hardis:
|
|
6043
|
-
"diagnose:org:
|
|
6044
|
-
"hardis:diagnose:
|
|
6045
|
-
"diagnose:hardis:
|
|
6046
|
-
"diagnose:
|
|
6047
|
-
"diagnose:
|
|
6048
|
-
"hardis:org:
|
|
6049
|
-
"org:hardis:
|
|
6050
|
-
"org:
|
|
6051
|
-
"org:
|
|
6052
|
-
"hardis:
|
|
6053
|
-
"
|
|
6054
|
-
"
|
|
6055
|
-
"
|
|
6056
|
-
"hardis:
|
|
6057
|
-
"
|
|
6058
|
-
"
|
|
6059
|
-
"
|
|
6044
|
+
"hardis:org:diagnose:releaseupdates",
|
|
6045
|
+
"org:hardis:diagnose:releaseupdates",
|
|
6046
|
+
"org:diagnose:hardis:releaseupdates",
|
|
6047
|
+
"org:diagnose:releaseupdates:hardis",
|
|
6048
|
+
"hardis:diagnose:org:releaseupdates",
|
|
6049
|
+
"diagnose:hardis:org:releaseupdates",
|
|
6050
|
+
"diagnose:org:hardis:releaseupdates",
|
|
6051
|
+
"diagnose:org:releaseupdates:hardis",
|
|
6052
|
+
"hardis:diagnose:releaseupdates:org",
|
|
6053
|
+
"diagnose:hardis:releaseupdates:org",
|
|
6054
|
+
"diagnose:releaseupdates:hardis:org",
|
|
6055
|
+
"diagnose:releaseupdates:org:hardis",
|
|
6056
|
+
"hardis:org:releaseupdates:diagnose",
|
|
6057
|
+
"org:hardis:releaseupdates:diagnose",
|
|
6058
|
+
"org:releaseupdates:hardis:diagnose",
|
|
6059
|
+
"org:releaseupdates:diagnose:hardis",
|
|
6060
|
+
"hardis:releaseupdates:org:diagnose",
|
|
6061
|
+
"releaseupdates:hardis:org:diagnose",
|
|
6062
|
+
"releaseupdates:org:hardis:diagnose",
|
|
6063
|
+
"releaseupdates:org:diagnose:hardis",
|
|
6064
|
+
"hardis:releaseupdates:diagnose:org",
|
|
6065
|
+
"releaseupdates:hardis:diagnose:org",
|
|
6066
|
+
"releaseupdates:diagnose:hardis:org",
|
|
6067
|
+
"releaseupdates:diagnose:org:hardis"
|
|
6060
6068
|
]
|
|
6061
6069
|
},
|
|
6062
|
-
"hardis:org:diagnose:
|
|
6070
|
+
"hardis:org:diagnose:unused-apex-classes": {
|
|
6063
6071
|
"aliases": [],
|
|
6064
6072
|
"args": {},
|
|
6065
|
-
"description": "
|
|
6073
|
+
"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",
|
|
6066
6074
|
"examples": [
|
|
6067
|
-
"$ sf hardis:org:diagnose:
|
|
6068
|
-
"$ sf hardis:org:diagnose:
|
|
6075
|
+
"$ sf hardis:org:diagnose:unused-apex-classes",
|
|
6076
|
+
"$ sf hardis:org:diagnose:unused-apex-classes --days 700"
|
|
6069
6077
|
],
|
|
6070
6078
|
"flags": {
|
|
6071
6079
|
"json": {
|
|
@@ -6091,6 +6099,14 @@
|
|
|
6091
6099
|
"multiple": false,
|
|
6092
6100
|
"type": "option"
|
|
6093
6101
|
},
|
|
6102
|
+
"days": {
|
|
6103
|
+
"char": "t",
|
|
6104
|
+
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
6105
|
+
"name": "days",
|
|
6106
|
+
"hasDynamicHelp": false,
|
|
6107
|
+
"multiple": false,
|
|
6108
|
+
"type": "option"
|
|
6109
|
+
},
|
|
6094
6110
|
"debug": {
|
|
6095
6111
|
"char": "d",
|
|
6096
6112
|
"description": "Activate debug mode (more logs)",
|
|
@@ -6129,32 +6145,14 @@
|
|
|
6129
6145
|
},
|
|
6130
6146
|
"hasDynamicHelp": true,
|
|
6131
6147
|
"hiddenAliases": [],
|
|
6132
|
-
"id": "hardis:org:diagnose:
|
|
6148
|
+
"id": "hardis:org:diagnose:unused-apex-classes",
|
|
6133
6149
|
"pluginAlias": "sfdx-hardis",
|
|
6134
6150
|
"pluginName": "sfdx-hardis",
|
|
6135
6151
|
"pluginType": "core",
|
|
6136
6152
|
"strict": true,
|
|
6137
6153
|
"enableJsonFlag": true,
|
|
6138
|
-
"title": "Detect unused
|
|
6154
|
+
"title": "Detect unused Apex classes in an org",
|
|
6139
6155
|
"requiresProject": false,
|
|
6140
|
-
"additionalPermissionSetsToAlwaysGet": [
|
|
6141
|
-
"Sales_User"
|
|
6142
|
-
],
|
|
6143
|
-
"permSetsPermSetLicenses": [
|
|
6144
|
-
{
|
|
6145
|
-
"permSet": "Sales_User",
|
|
6146
|
-
"permSetLicense": "SalesUserPsl"
|
|
6147
|
-
}
|
|
6148
|
-
],
|
|
6149
|
-
"profilesPermissionSetLicenses": [
|
|
6150
|
-
{
|
|
6151
|
-
"profile": "Salesforce API Only",
|
|
6152
|
-
"permSetLicense": "SalesforceAPIIntegrationPsl"
|
|
6153
|
-
}
|
|
6154
|
-
],
|
|
6155
|
-
"alwaysExcludeForActiveUsersPermissionSetLicenses": [
|
|
6156
|
-
"IdentityConnect"
|
|
6157
|
-
],
|
|
6158
6156
|
"isESM": true,
|
|
6159
6157
|
"relativePath": [
|
|
6160
6158
|
"lib",
|
|
@@ -6162,46 +6160,42 @@
|
|
|
6162
6160
|
"hardis",
|
|
6163
6161
|
"org",
|
|
6164
6162
|
"diagnose",
|
|
6165
|
-
"
|
|
6163
|
+
"unused-apex-classes.js"
|
|
6166
6164
|
],
|
|
6167
6165
|
"aliasPermutations": [],
|
|
6168
6166
|
"permutations": [
|
|
6169
|
-
"hardis:org:diagnose:
|
|
6170
|
-
"org:hardis:diagnose:
|
|
6171
|
-
"org:diagnose:hardis:
|
|
6172
|
-
"org:diagnose:
|
|
6173
|
-
"hardis:diagnose:org:
|
|
6174
|
-
"diagnose:hardis:org:
|
|
6175
|
-
"diagnose:org:hardis:
|
|
6176
|
-
"diagnose:org:
|
|
6177
|
-
"hardis:diagnose:
|
|
6178
|
-
"diagnose:hardis:
|
|
6179
|
-
"diagnose:
|
|
6180
|
-
"diagnose:
|
|
6181
|
-
"hardis:org:
|
|
6182
|
-
"org:hardis:
|
|
6183
|
-
"org:
|
|
6184
|
-
"org:
|
|
6185
|
-
"hardis:
|
|
6186
|
-
"
|
|
6187
|
-
"
|
|
6188
|
-
"
|
|
6189
|
-
"hardis:
|
|
6190
|
-
"
|
|
6191
|
-
"
|
|
6192
|
-
"
|
|
6193
|
-
]
|
|
6194
|
-
},
|
|
6195
|
-
"hardis:org:diagnose:
|
|
6196
|
-
"aliases": [],
|
|
6197
|
-
"args": {},
|
|
6198
|
-
"description": "
|
|
6199
|
-
"examples": [
|
|
6200
|
-
"$ sf hardis:org:diagnose:
|
|
6201
|
-
"$ sf hardis:org:diagnose:unusedusers --days 365",
|
|
6202
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm",
|
|
6203
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licenseidentifiers SFDC,AUL,AUL1",
|
|
6204
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm --returnactiveusers"
|
|
6167
|
+
"hardis:org:diagnose:unused-apex-classes",
|
|
6168
|
+
"org:hardis:diagnose:unused-apex-classes",
|
|
6169
|
+
"org:diagnose:hardis:unused-apex-classes",
|
|
6170
|
+
"org:diagnose:unused-apex-classes:hardis",
|
|
6171
|
+
"hardis:diagnose:org:unused-apex-classes",
|
|
6172
|
+
"diagnose:hardis:org:unused-apex-classes",
|
|
6173
|
+
"diagnose:org:hardis:unused-apex-classes",
|
|
6174
|
+
"diagnose:org:unused-apex-classes:hardis",
|
|
6175
|
+
"hardis:diagnose:unused-apex-classes:org",
|
|
6176
|
+
"diagnose:hardis:unused-apex-classes:org",
|
|
6177
|
+
"diagnose:unused-apex-classes:hardis:org",
|
|
6178
|
+
"diagnose:unused-apex-classes:org:hardis",
|
|
6179
|
+
"hardis:org:unused-apex-classes:diagnose",
|
|
6180
|
+
"org:hardis:unused-apex-classes:diagnose",
|
|
6181
|
+
"org:unused-apex-classes:hardis:diagnose",
|
|
6182
|
+
"org:unused-apex-classes:diagnose:hardis",
|
|
6183
|
+
"hardis:unused-apex-classes:org:diagnose",
|
|
6184
|
+
"unused-apex-classes:hardis:org:diagnose",
|
|
6185
|
+
"unused-apex-classes:org:hardis:diagnose",
|
|
6186
|
+
"unused-apex-classes:org:diagnose:hardis",
|
|
6187
|
+
"hardis:unused-apex-classes:diagnose:org",
|
|
6188
|
+
"unused-apex-classes:hardis:diagnose:org",
|
|
6189
|
+
"unused-apex-classes:diagnose:hardis:org",
|
|
6190
|
+
"unused-apex-classes:diagnose:org:hardis"
|
|
6191
|
+
]
|
|
6192
|
+
},
|
|
6193
|
+
"hardis:org:diagnose:unused-connected-apps": {
|
|
6194
|
+
"aliases": [],
|
|
6195
|
+
"args": {},
|
|
6196
|
+
"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",
|
|
6197
|
+
"examples": [
|
|
6198
|
+
"$ sf hardis:org:diagnose:unused-connected-apps"
|
|
6205
6199
|
],
|
|
6206
6200
|
"flags": {
|
|
6207
6201
|
"json": {
|
|
@@ -6227,41 +6221,6 @@
|
|
|
6227
6221
|
"multiple": false,
|
|
6228
6222
|
"type": "option"
|
|
6229
6223
|
},
|
|
6230
|
-
"days": {
|
|
6231
|
-
"char": "t",
|
|
6232
|
-
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
6233
|
-
"name": "days",
|
|
6234
|
-
"hasDynamicHelp": false,
|
|
6235
|
-
"multiple": false,
|
|
6236
|
-
"type": "option"
|
|
6237
|
-
},
|
|
6238
|
-
"licensetypes": {
|
|
6239
|
-
"char": "l",
|
|
6240
|
-
"description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
|
|
6241
|
-
"name": "licensetypes",
|
|
6242
|
-
"hasDynamicHelp": false,
|
|
6243
|
-
"multiple": false,
|
|
6244
|
-
"options": [
|
|
6245
|
-
"all",
|
|
6246
|
-
"all-crm",
|
|
6247
|
-
"all-paying"
|
|
6248
|
-
],
|
|
6249
|
-
"type": "option"
|
|
6250
|
-
},
|
|
6251
|
-
"licenseidentifiers": {
|
|
6252
|
-
"char": "i",
|
|
6253
|
-
"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",
|
|
6254
|
-
"name": "licenseidentifiers",
|
|
6255
|
-
"hasDynamicHelp": false,
|
|
6256
|
-
"multiple": false,
|
|
6257
|
-
"type": "option"
|
|
6258
|
-
},
|
|
6259
|
-
"returnactiveusers": {
|
|
6260
|
-
"description": "Inverts the command by returning the active users",
|
|
6261
|
-
"name": "returnactiveusers",
|
|
6262
|
-
"allowNo": false,
|
|
6263
|
-
"type": "boolean"
|
|
6264
|
-
},
|
|
6265
6224
|
"debug": {
|
|
6266
6225
|
"char": "d",
|
|
6267
6226
|
"description": "Activate debug mode (more logs)",
|
|
@@ -6300,13 +6259,30 @@
|
|
|
6300
6259
|
},
|
|
6301
6260
|
"hasDynamicHelp": true,
|
|
6302
6261
|
"hiddenAliases": [],
|
|
6303
|
-
"id": "hardis:org:diagnose:
|
|
6262
|
+
"id": "hardis:org:diagnose:unused-connected-apps",
|
|
6304
6263
|
"pluginAlias": "sfdx-hardis",
|
|
6305
6264
|
"pluginName": "sfdx-hardis",
|
|
6306
6265
|
"pluginType": "core",
|
|
6307
6266
|
"strict": true,
|
|
6308
6267
|
"enableJsonFlag": true,
|
|
6309
|
-
"title": "
|
|
6268
|
+
"title": "Unused Connected Apps in an org",
|
|
6269
|
+
"allowedInactiveConnectedApps": [
|
|
6270
|
+
"Ant Migration Tool",
|
|
6271
|
+
"Chatter Desktop",
|
|
6272
|
+
"Chatter Mobile for BlackBerry",
|
|
6273
|
+
"Force.com IDE",
|
|
6274
|
+
"OIQ_Integration",
|
|
6275
|
+
"Salesforce CLI",
|
|
6276
|
+
"Salesforce Files",
|
|
6277
|
+
"Salesforce Mobile Dashboards",
|
|
6278
|
+
"Salesforce Touch",
|
|
6279
|
+
"Salesforce for Outlook",
|
|
6280
|
+
"SalesforceA",
|
|
6281
|
+
"SalesforceA for Android",
|
|
6282
|
+
"SalesforceA for iOS",
|
|
6283
|
+
"SalesforceDX Namespace Registry",
|
|
6284
|
+
"SalesforceIQ"
|
|
6285
|
+
],
|
|
6310
6286
|
"requiresProject": false,
|
|
6311
6287
|
"isESM": true,
|
|
6312
6288
|
"relativePath": [
|
|
@@ -6315,42 +6291,43 @@
|
|
|
6315
6291
|
"hardis",
|
|
6316
6292
|
"org",
|
|
6317
6293
|
"diagnose",
|
|
6318
|
-
"
|
|
6294
|
+
"unused-connected-apps.js"
|
|
6319
6295
|
],
|
|
6320
6296
|
"aliasPermutations": [],
|
|
6321
6297
|
"permutations": [
|
|
6322
|
-
"hardis:org:diagnose:
|
|
6323
|
-
"org:hardis:diagnose:
|
|
6324
|
-
"org:diagnose:hardis:
|
|
6325
|
-
"org:diagnose:
|
|
6326
|
-
"hardis:diagnose:org:
|
|
6327
|
-
"diagnose:hardis:org:
|
|
6328
|
-
"diagnose:org:hardis:
|
|
6329
|
-
"diagnose:org:
|
|
6330
|
-
"hardis:diagnose:
|
|
6331
|
-
"diagnose:hardis:
|
|
6332
|
-
"diagnose:
|
|
6333
|
-
"diagnose:
|
|
6334
|
-
"hardis:org:
|
|
6335
|
-
"org:hardis:
|
|
6336
|
-
"org:
|
|
6337
|
-
"org:
|
|
6338
|
-
"hardis:
|
|
6339
|
-
"
|
|
6340
|
-
"
|
|
6341
|
-
"
|
|
6342
|
-
"hardis:
|
|
6343
|
-
"
|
|
6344
|
-
"
|
|
6345
|
-
"
|
|
6298
|
+
"hardis:org:diagnose:unused-connected-apps",
|
|
6299
|
+
"org:hardis:diagnose:unused-connected-apps",
|
|
6300
|
+
"org:diagnose:hardis:unused-connected-apps",
|
|
6301
|
+
"org:diagnose:unused-connected-apps:hardis",
|
|
6302
|
+
"hardis:diagnose:org:unused-connected-apps",
|
|
6303
|
+
"diagnose:hardis:org:unused-connected-apps",
|
|
6304
|
+
"diagnose:org:hardis:unused-connected-apps",
|
|
6305
|
+
"diagnose:org:unused-connected-apps:hardis",
|
|
6306
|
+
"hardis:diagnose:unused-connected-apps:org",
|
|
6307
|
+
"diagnose:hardis:unused-connected-apps:org",
|
|
6308
|
+
"diagnose:unused-connected-apps:hardis:org",
|
|
6309
|
+
"diagnose:unused-connected-apps:org:hardis",
|
|
6310
|
+
"hardis:org:unused-connected-apps:diagnose",
|
|
6311
|
+
"org:hardis:unused-connected-apps:diagnose",
|
|
6312
|
+
"org:unused-connected-apps:hardis:diagnose",
|
|
6313
|
+
"org:unused-connected-apps:diagnose:hardis",
|
|
6314
|
+
"hardis:unused-connected-apps:org:diagnose",
|
|
6315
|
+
"unused-connected-apps:hardis:org:diagnose",
|
|
6316
|
+
"unused-connected-apps:org:hardis:diagnose",
|
|
6317
|
+
"unused-connected-apps:org:diagnose:hardis",
|
|
6318
|
+
"hardis:unused-connected-apps:diagnose:org",
|
|
6319
|
+
"unused-connected-apps:hardis:diagnose:org",
|
|
6320
|
+
"unused-connected-apps:diagnose:hardis:org",
|
|
6321
|
+
"unused-connected-apps:diagnose:org:hardis"
|
|
6346
6322
|
]
|
|
6347
6323
|
},
|
|
6348
|
-
"hardis:org:
|
|
6324
|
+
"hardis:org:diagnose:unusedlicenses": {
|
|
6349
6325
|
"aliases": [],
|
|
6350
6326
|
"args": {},
|
|
6351
|
-
"description": "
|
|
6327
|
+
"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",
|
|
6352
6328
|
"examples": [
|
|
6353
|
-
"$ sf hardis:org:
|
|
6329
|
+
"$ sf hardis:org:diagnose:unusedlicenses",
|
|
6330
|
+
"$ sf hardis:org:diagnose:unusedlicenses --fix"
|
|
6354
6331
|
],
|
|
6355
6332
|
"flags": {
|
|
6356
6333
|
"json": {
|
|
@@ -6368,37 +6345,10 @@
|
|
|
6368
6345
|
"multiple": false,
|
|
6369
6346
|
"type": "option"
|
|
6370
6347
|
},
|
|
6371
|
-
"
|
|
6372
|
-
"char": "
|
|
6373
|
-
"description": "
|
|
6374
|
-
"name": "
|
|
6375
|
-
"hasDynamicHelp": false,
|
|
6376
|
-
"multiple": false,
|
|
6377
|
-
"type": "option"
|
|
6378
|
-
},
|
|
6379
|
-
"chunksize": {
|
|
6380
|
-
"char": "c",
|
|
6381
|
-
"description": "Number of records to add in a chunk before it is processed",
|
|
6382
|
-
"name": "chunksize",
|
|
6383
|
-
"default": 1000,
|
|
6384
|
-
"hasDynamicHelp": false,
|
|
6385
|
-
"multiple": false,
|
|
6386
|
-
"type": "option"
|
|
6387
|
-
},
|
|
6388
|
-
"polltimeout": {
|
|
6389
|
-
"char": "t",
|
|
6390
|
-
"description": "Timeout in MS for Bulk API calls",
|
|
6391
|
-
"name": "polltimeout",
|
|
6392
|
-
"default": 300000,
|
|
6393
|
-
"hasDynamicHelp": false,
|
|
6394
|
-
"multiple": false,
|
|
6395
|
-
"type": "option"
|
|
6396
|
-
},
|
|
6397
|
-
"startchunknumber": {
|
|
6398
|
-
"char": "s",
|
|
6399
|
-
"description": "Chunk number to start from",
|
|
6400
|
-
"name": "startchunknumber",
|
|
6401
|
-
"default": 0,
|
|
6348
|
+
"outputfile": {
|
|
6349
|
+
"char": "f",
|
|
6350
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6351
|
+
"name": "outputfile",
|
|
6402
6352
|
"hasDynamicHelp": false,
|
|
6403
6353
|
"multiple": false,
|
|
6404
6354
|
"type": "option"
|
|
@@ -6441,57 +6391,79 @@
|
|
|
6441
6391
|
},
|
|
6442
6392
|
"hasDynamicHelp": true,
|
|
6443
6393
|
"hiddenAliases": [],
|
|
6444
|
-
"id": "hardis:org:
|
|
6394
|
+
"id": "hardis:org:diagnose:unusedlicenses",
|
|
6445
6395
|
"pluginAlias": "sfdx-hardis",
|
|
6446
6396
|
"pluginName": "sfdx-hardis",
|
|
6447
6397
|
"pluginType": "core",
|
|
6448
6398
|
"strict": true,
|
|
6449
6399
|
"enableJsonFlag": true,
|
|
6450
|
-
"title": "
|
|
6400
|
+
"title": "Detect unused Permission Set Licenses (beta)",
|
|
6451
6401
|
"requiresProject": false,
|
|
6402
|
+
"additionalPermissionSetsToAlwaysGet": [
|
|
6403
|
+
"Sales_User"
|
|
6404
|
+
],
|
|
6405
|
+
"permSetsPermSetLicenses": [
|
|
6406
|
+
{
|
|
6407
|
+
"permSet": "Sales_User",
|
|
6408
|
+
"permSetLicense": "SalesUserPsl"
|
|
6409
|
+
}
|
|
6410
|
+
],
|
|
6411
|
+
"profilesPermissionSetLicenses": [
|
|
6412
|
+
{
|
|
6413
|
+
"profile": "Salesforce API Only",
|
|
6414
|
+
"permSetLicense": "SalesforceAPIIntegrationPsl"
|
|
6415
|
+
}
|
|
6416
|
+
],
|
|
6417
|
+
"alwaysExcludeForActiveUsersPermissionSetLicenses": [
|
|
6418
|
+
"IdentityConnect"
|
|
6419
|
+
],
|
|
6452
6420
|
"isESM": true,
|
|
6453
6421
|
"relativePath": [
|
|
6454
6422
|
"lib",
|
|
6455
6423
|
"commands",
|
|
6456
6424
|
"hardis",
|
|
6457
6425
|
"org",
|
|
6458
|
-
"
|
|
6459
|
-
"
|
|
6426
|
+
"diagnose",
|
|
6427
|
+
"unusedlicenses.js"
|
|
6460
6428
|
],
|
|
6461
6429
|
"aliasPermutations": [],
|
|
6462
6430
|
"permutations": [
|
|
6463
|
-
"hardis:org:
|
|
6464
|
-
"org:hardis:
|
|
6465
|
-
"org:
|
|
6466
|
-
"org:
|
|
6467
|
-
"hardis:
|
|
6468
|
-
"
|
|
6469
|
-
"
|
|
6470
|
-
"
|
|
6471
|
-
"hardis:
|
|
6472
|
-
"
|
|
6473
|
-
"
|
|
6474
|
-
"
|
|
6475
|
-
"hardis:org:
|
|
6476
|
-
"org:hardis:
|
|
6477
|
-
"org:
|
|
6478
|
-
"org:
|
|
6479
|
-
"hardis:
|
|
6480
|
-
"
|
|
6481
|
-
"
|
|
6482
|
-
"
|
|
6483
|
-
"hardis:
|
|
6484
|
-
"
|
|
6485
|
-
"
|
|
6486
|
-
"
|
|
6431
|
+
"hardis:org:diagnose:unusedlicenses",
|
|
6432
|
+
"org:hardis:diagnose:unusedlicenses",
|
|
6433
|
+
"org:diagnose:hardis:unusedlicenses",
|
|
6434
|
+
"org:diagnose:unusedlicenses:hardis",
|
|
6435
|
+
"hardis:diagnose:org:unusedlicenses",
|
|
6436
|
+
"diagnose:hardis:org:unusedlicenses",
|
|
6437
|
+
"diagnose:org:hardis:unusedlicenses",
|
|
6438
|
+
"diagnose:org:unusedlicenses:hardis",
|
|
6439
|
+
"hardis:diagnose:unusedlicenses:org",
|
|
6440
|
+
"diagnose:hardis:unusedlicenses:org",
|
|
6441
|
+
"diagnose:unusedlicenses:hardis:org",
|
|
6442
|
+
"diagnose:unusedlicenses:org:hardis",
|
|
6443
|
+
"hardis:org:unusedlicenses:diagnose",
|
|
6444
|
+
"org:hardis:unusedlicenses:diagnose",
|
|
6445
|
+
"org:unusedlicenses:hardis:diagnose",
|
|
6446
|
+
"org:unusedlicenses:diagnose:hardis",
|
|
6447
|
+
"hardis:unusedlicenses:org:diagnose",
|
|
6448
|
+
"unusedlicenses:hardis:org:diagnose",
|
|
6449
|
+
"unusedlicenses:org:hardis:diagnose",
|
|
6450
|
+
"unusedlicenses:org:diagnose:hardis",
|
|
6451
|
+
"hardis:unusedlicenses:diagnose:org",
|
|
6452
|
+
"unusedlicenses:hardis:diagnose:org",
|
|
6453
|
+
"unusedlicenses:diagnose:hardis:org",
|
|
6454
|
+
"unusedlicenses:diagnose:org:hardis"
|
|
6487
6455
|
]
|
|
6488
6456
|
},
|
|
6489
|
-
"hardis:org:
|
|
6457
|
+
"hardis:org:diagnose:unusedusers": {
|
|
6490
6458
|
"aliases": [],
|
|
6491
6459
|
"args": {},
|
|
6492
|
-
"description": "
|
|
6460
|
+
"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",
|
|
6493
6461
|
"examples": [
|
|
6494
|
-
"$ sf hardis:org:
|
|
6462
|
+
"$ sf hardis:org:diagnose:unusedusers",
|
|
6463
|
+
"$ sf hardis:org:diagnose:unusedusers --days 365",
|
|
6464
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm",
|
|
6465
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licenseidentifiers SFDC,AUL,AUL1",
|
|
6466
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm --returnactiveusers"
|
|
6495
6467
|
],
|
|
6496
6468
|
"flags": {
|
|
6497
6469
|
"json": {
|
|
@@ -6509,18 +6481,46 @@
|
|
|
6509
6481
|
"multiple": false,
|
|
6510
6482
|
"type": "option"
|
|
6511
6483
|
},
|
|
6512
|
-
"
|
|
6513
|
-
"char": "
|
|
6514
|
-
"description": "
|
|
6515
|
-
"name": "
|
|
6484
|
+
"outputfile": {
|
|
6485
|
+
"char": "f",
|
|
6486
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6487
|
+
"name": "outputfile",
|
|
6516
6488
|
"hasDynamicHelp": false,
|
|
6517
6489
|
"multiple": false,
|
|
6518
6490
|
"type": "option"
|
|
6519
6491
|
},
|
|
6520
|
-
"
|
|
6521
|
-
"char": "
|
|
6522
|
-
"description": "
|
|
6523
|
-
"name": "
|
|
6492
|
+
"days": {
|
|
6493
|
+
"char": "t",
|
|
6494
|
+
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
6495
|
+
"name": "days",
|
|
6496
|
+
"hasDynamicHelp": false,
|
|
6497
|
+
"multiple": false,
|
|
6498
|
+
"type": "option"
|
|
6499
|
+
},
|
|
6500
|
+
"licensetypes": {
|
|
6501
|
+
"char": "l",
|
|
6502
|
+
"description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
|
|
6503
|
+
"name": "licensetypes",
|
|
6504
|
+
"hasDynamicHelp": false,
|
|
6505
|
+
"multiple": false,
|
|
6506
|
+
"options": [
|
|
6507
|
+
"all",
|
|
6508
|
+
"all-crm",
|
|
6509
|
+
"all-paying"
|
|
6510
|
+
],
|
|
6511
|
+
"type": "option"
|
|
6512
|
+
},
|
|
6513
|
+
"licenseidentifiers": {
|
|
6514
|
+
"char": "i",
|
|
6515
|
+
"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",
|
|
6516
|
+
"name": "licenseidentifiers",
|
|
6517
|
+
"hasDynamicHelp": false,
|
|
6518
|
+
"multiple": false,
|
|
6519
|
+
"type": "option"
|
|
6520
|
+
},
|
|
6521
|
+
"returnactiveusers": {
|
|
6522
|
+
"description": "Inverts the command by returning the active users",
|
|
6523
|
+
"name": "returnactiveusers",
|
|
6524
6524
|
"allowNo": false,
|
|
6525
6525
|
"type": "boolean"
|
|
6526
6526
|
},
|
|
@@ -6562,13 +6562,13 @@
|
|
|
6562
6562
|
},
|
|
6563
6563
|
"hasDynamicHelp": true,
|
|
6564
6564
|
"hiddenAliases": [],
|
|
6565
|
-
"id": "hardis:org:
|
|
6565
|
+
"id": "hardis:org:diagnose:unusedusers",
|
|
6566
6566
|
"pluginAlias": "sfdx-hardis",
|
|
6567
6567
|
"pluginName": "sfdx-hardis",
|
|
6568
6568
|
"pluginType": "core",
|
|
6569
6569
|
"strict": true,
|
|
6570
6570
|
"enableJsonFlag": true,
|
|
6571
|
-
"title": "
|
|
6571
|
+
"title": "Detect unused Users in Salesforce",
|
|
6572
6572
|
"requiresProject": false,
|
|
6573
6573
|
"isESM": true,
|
|
6574
6574
|
"relativePath": [
|
|
@@ -6576,35 +6576,35 @@
|
|
|
6576
6576
|
"commands",
|
|
6577
6577
|
"hardis",
|
|
6578
6578
|
"org",
|
|
6579
|
-
"
|
|
6580
|
-
"
|
|
6579
|
+
"diagnose",
|
|
6580
|
+
"unusedusers.js"
|
|
6581
6581
|
],
|
|
6582
6582
|
"aliasPermutations": [],
|
|
6583
6583
|
"permutations": [
|
|
6584
|
-
"hardis:org:
|
|
6585
|
-
"org:hardis:
|
|
6586
|
-
"org:
|
|
6587
|
-
"org:
|
|
6588
|
-
"hardis:
|
|
6589
|
-
"
|
|
6590
|
-
"
|
|
6591
|
-
"
|
|
6592
|
-
"hardis:
|
|
6593
|
-
"
|
|
6594
|
-
"
|
|
6595
|
-
"
|
|
6596
|
-
"hardis:org:
|
|
6597
|
-
"org:hardis:
|
|
6598
|
-
"org:
|
|
6599
|
-
"org:
|
|
6600
|
-
"hardis:
|
|
6601
|
-
"
|
|
6602
|
-
"
|
|
6603
|
-
"
|
|
6604
|
-
"hardis:
|
|
6605
|
-
"
|
|
6606
|
-
"
|
|
6607
|
-
"
|
|
6584
|
+
"hardis:org:diagnose:unusedusers",
|
|
6585
|
+
"org:hardis:diagnose:unusedusers",
|
|
6586
|
+
"org:diagnose:hardis:unusedusers",
|
|
6587
|
+
"org:diagnose:unusedusers:hardis",
|
|
6588
|
+
"hardis:diagnose:org:unusedusers",
|
|
6589
|
+
"diagnose:hardis:org:unusedusers",
|
|
6590
|
+
"diagnose:org:hardis:unusedusers",
|
|
6591
|
+
"diagnose:org:unusedusers:hardis",
|
|
6592
|
+
"hardis:diagnose:unusedusers:org",
|
|
6593
|
+
"diagnose:hardis:unusedusers:org",
|
|
6594
|
+
"diagnose:unusedusers:hardis:org",
|
|
6595
|
+
"diagnose:unusedusers:org:hardis",
|
|
6596
|
+
"hardis:org:unusedusers:diagnose",
|
|
6597
|
+
"org:hardis:unusedusers:diagnose",
|
|
6598
|
+
"org:unusedusers:hardis:diagnose",
|
|
6599
|
+
"org:unusedusers:diagnose:hardis",
|
|
6600
|
+
"hardis:unusedusers:org:diagnose",
|
|
6601
|
+
"unusedusers:hardis:org:diagnose",
|
|
6602
|
+
"unusedusers:org:hardis:diagnose",
|
|
6603
|
+
"unusedusers:org:diagnose:hardis",
|
|
6604
|
+
"hardis:unusedusers:diagnose:org",
|
|
6605
|
+
"unusedusers:hardis:diagnose:org",
|
|
6606
|
+
"unusedusers:diagnose:hardis:org",
|
|
6607
|
+
"unusedusers:diagnose:org:hardis"
|
|
6608
6608
|
]
|
|
6609
6609
|
},
|
|
6610
6610
|
"hardis:org:fix:listviewmine": {
|
|
@@ -14525,5 +14525,5 @@
|
|
|
14525
14525
|
]
|
|
14526
14526
|
}
|
|
14527
14527
|
},
|
|
14528
|
-
"version": "5.
|
|
14528
|
+
"version": "5.30.1-beta202505052040.0"
|
|
14529
14529
|
}
|