sfdx-hardis 5.10.2-beta202412222214.0 → 5.10.2-beta202412231619.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 +2 -0
- package/lib/commands/hardis/doc/project2markdown.js +28 -5
- package/lib/commands/hardis/doc/project2markdown.js.map +1 -1
- package/lib/commands/hardis/org/monitor/backup.js +1 -1
- package/lib/commands/hardis/org/monitor/backup.js.map +1 -1
- package/lib/common/gitProvider/azureDevops.d.ts +1 -0
- package/lib/common/gitProvider/azureDevops.js +4 -0
- package/lib/common/gitProvider/azureDevops.js.map +1 -1
- package/lib/common/gitProvider/bitbucket.d.ts +1 -0
- package/lib/common/gitProvider/bitbucket.js +4 -0
- package/lib/common/gitProvider/bitbucket.js.map +1 -1
- package/lib/common/gitProvider/gitProviderRoot.d.ts +1 -0
- package/lib/common/gitProvider/gitProviderRoot.js +4 -0
- package/lib/common/gitProvider/gitProviderRoot.js.map +1 -1
- package/lib/common/gitProvider/github.d.ts +1 -0
- package/lib/common/gitProvider/github.js +4 -0
- package/lib/common/gitProvider/github.js.map +1 -1
- package/lib/common/gitProvider/gitlab.d.ts +1 -0
- package/lib/common/gitProvider/gitlab.js +4 -0
- package/lib/common/gitProvider/gitlab.js.map +1 -1
- package/lib/common/gitProvider/index.d.ts +1 -0
- package/lib/common/gitProvider/index.js +7 -0
- package/lib/common/gitProvider/index.js.map +1 -1
- package/lib/common/gitProvider/utilsMarkdown.d.ts +1 -1
- package/lib/common/gitProvider/utilsMarkdown.js +19 -5
- package/lib/common/gitProvider/utilsMarkdown.js.map +1 -1
- package/lib/common/utils/flowVisualiser/flowParser.js +3 -1
- package/lib/common/utils/flowVisualiser/flowParser.js.map +1 -1
- package/lib/common/utils/gitUtils.js +2 -2
- package/lib/common/utils/gitUtils.js.map +1 -1
- package/lib/common/utils/mermaidUtils.js +1 -1
- package/lib/common/utils/mermaidUtils.js.map +1 -1
- package/oclif.manifest.json +573 -567
- 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": {
|
|
@@ -510,6 +510,12 @@
|
|
|
510
510
|
"multiple": false,
|
|
511
511
|
"type": "option"
|
|
512
512
|
},
|
|
513
|
+
"diff-only": {
|
|
514
|
+
"description": "Generate documentation only for changed files (used for monitoring)",
|
|
515
|
+
"name": "diff-only",
|
|
516
|
+
"allowNo": false,
|
|
517
|
+
"type": "boolean"
|
|
518
|
+
},
|
|
513
519
|
"debug": {
|
|
514
520
|
"char": "d",
|
|
515
521
|
"description": "Activate debug mode (more logs)",
|
|
@@ -4870,15 +4876,12 @@
|
|
|
4870
4876
|
"import:data:org:hardis"
|
|
4871
4877
|
]
|
|
4872
4878
|
},
|
|
4873
|
-
"hardis:org:
|
|
4879
|
+
"hardis:org:files:export": {
|
|
4874
4880
|
"aliases": [],
|
|
4875
4881
|
"args": {},
|
|
4876
|
-
"description": "Export
|
|
4882
|
+
"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",
|
|
4877
4883
|
"examples": [
|
|
4878
|
-
"$ sf hardis:org:
|
|
4879
|
-
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
|
|
4880
|
-
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
|
|
4881
|
-
"$ sf hardis:org:diagnose:audittrail --lastndays 5"
|
|
4884
|
+
"$ sf hardis:org:files:export"
|
|
4882
4885
|
],
|
|
4883
4886
|
"flags": {
|
|
4884
4887
|
"json": {
|
|
@@ -4896,26 +4899,37 @@
|
|
|
4896
4899
|
"multiple": false,
|
|
4897
4900
|
"type": "option"
|
|
4898
4901
|
},
|
|
4899
|
-
"
|
|
4900
|
-
"char": "
|
|
4901
|
-
"description": "
|
|
4902
|
-
"name": "
|
|
4902
|
+
"path": {
|
|
4903
|
+
"char": "p",
|
|
4904
|
+
"description": "Path to the file export project",
|
|
4905
|
+
"name": "path",
|
|
4903
4906
|
"hasDynamicHelp": false,
|
|
4904
4907
|
"multiple": false,
|
|
4905
4908
|
"type": "option"
|
|
4906
4909
|
},
|
|
4907
|
-
"
|
|
4910
|
+
"chunksize": {
|
|
4911
|
+
"char": "c",
|
|
4912
|
+
"description": "Number of records to add in a chunk before it is processed",
|
|
4913
|
+
"name": "chunksize",
|
|
4914
|
+
"default": 1000,
|
|
4915
|
+
"hasDynamicHelp": false,
|
|
4916
|
+
"multiple": false,
|
|
4917
|
+
"type": "option"
|
|
4918
|
+
},
|
|
4919
|
+
"polltimeout": {
|
|
4908
4920
|
"char": "t",
|
|
4909
|
-
"description": "
|
|
4910
|
-
"name": "
|
|
4921
|
+
"description": "Timeout in MS for Bulk API calls",
|
|
4922
|
+
"name": "polltimeout",
|
|
4923
|
+
"default": 300000,
|
|
4911
4924
|
"hasDynamicHelp": false,
|
|
4912
4925
|
"multiple": false,
|
|
4913
4926
|
"type": "option"
|
|
4914
4927
|
},
|
|
4915
|
-
"
|
|
4916
|
-
"char": "
|
|
4917
|
-
"description": "
|
|
4918
|
-
"name": "
|
|
4928
|
+
"startchunknumber": {
|
|
4929
|
+
"char": "s",
|
|
4930
|
+
"description": "Chunk number to start from",
|
|
4931
|
+
"name": "startchunknumber",
|
|
4932
|
+
"default": 0,
|
|
4919
4933
|
"hasDynamicHelp": false,
|
|
4920
4934
|
"multiple": false,
|
|
4921
4935
|
"type": "option"
|
|
@@ -4958,13 +4972,13 @@
|
|
|
4958
4972
|
},
|
|
4959
4973
|
"hasDynamicHelp": true,
|
|
4960
4974
|
"hiddenAliases": [],
|
|
4961
|
-
"id": "hardis:org:
|
|
4975
|
+
"id": "hardis:org:files:export",
|
|
4962
4976
|
"pluginAlias": "sfdx-hardis",
|
|
4963
4977
|
"pluginName": "sfdx-hardis",
|
|
4964
4978
|
"pluginType": "core",
|
|
4965
4979
|
"strict": true,
|
|
4966
4980
|
"enableJsonFlag": true,
|
|
4967
|
-
"title": "
|
|
4981
|
+
"title": "Export files",
|
|
4968
4982
|
"requiresProject": false,
|
|
4969
4983
|
"isESM": true,
|
|
4970
4984
|
"relativePath": [
|
|
@@ -4972,43 +4986,43 @@
|
|
|
4972
4986
|
"commands",
|
|
4973
4987
|
"hardis",
|
|
4974
4988
|
"org",
|
|
4975
|
-
"
|
|
4976
|
-
"
|
|
4989
|
+
"files",
|
|
4990
|
+
"export.js"
|
|
4977
4991
|
],
|
|
4978
4992
|
"aliasPermutations": [],
|
|
4979
4993
|
"permutations": [
|
|
4980
|
-
"hardis:org:
|
|
4981
|
-
"org:hardis:
|
|
4982
|
-
"org:
|
|
4983
|
-
"org:
|
|
4984
|
-
"hardis:
|
|
4985
|
-
"
|
|
4986
|
-
"
|
|
4987
|
-
"
|
|
4988
|
-
"hardis:
|
|
4989
|
-
"
|
|
4990
|
-
"
|
|
4991
|
-
"
|
|
4992
|
-
"hardis:org:
|
|
4993
|
-
"org:hardis:
|
|
4994
|
-
"org:
|
|
4995
|
-
"org:
|
|
4996
|
-
"hardis:
|
|
4997
|
-
"
|
|
4998
|
-
"
|
|
4999
|
-
"
|
|
5000
|
-
"hardis:
|
|
5001
|
-
"
|
|
5002
|
-
"
|
|
5003
|
-
"
|
|
4994
|
+
"hardis:org:files:export",
|
|
4995
|
+
"org:hardis:files:export",
|
|
4996
|
+
"org:files:hardis:export",
|
|
4997
|
+
"org:files:export:hardis",
|
|
4998
|
+
"hardis:files:org:export",
|
|
4999
|
+
"files:hardis:org:export",
|
|
5000
|
+
"files:org:hardis:export",
|
|
5001
|
+
"files:org:export:hardis",
|
|
5002
|
+
"hardis:files:export:org",
|
|
5003
|
+
"files:hardis:export:org",
|
|
5004
|
+
"files:export:hardis:org",
|
|
5005
|
+
"files:export:org:hardis",
|
|
5006
|
+
"hardis:org:export:files",
|
|
5007
|
+
"org:hardis:export:files",
|
|
5008
|
+
"org:export:hardis:files",
|
|
5009
|
+
"org:export:files:hardis",
|
|
5010
|
+
"hardis:export:org:files",
|
|
5011
|
+
"export:hardis:org:files",
|
|
5012
|
+
"export:org:hardis:files",
|
|
5013
|
+
"export:org:files:hardis",
|
|
5014
|
+
"hardis:export:files:org",
|
|
5015
|
+
"export:hardis:files:org",
|
|
5016
|
+
"export:files:hardis:org",
|
|
5017
|
+
"export:files:org:hardis"
|
|
5004
5018
|
]
|
|
5005
5019
|
},
|
|
5006
|
-
"hardis:org:
|
|
5020
|
+
"hardis:org:files:import": {
|
|
5007
5021
|
"aliases": [],
|
|
5008
5022
|
"args": {},
|
|
5009
|
-
"description": "
|
|
5023
|
+
"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",
|
|
5010
5024
|
"examples": [
|
|
5011
|
-
"$ sf hardis:org:
|
|
5025
|
+
"$ sf hardis:org:files:import"
|
|
5012
5026
|
],
|
|
5013
5027
|
"flags": {
|
|
5014
5028
|
"json": {
|
|
@@ -5026,6 +5040,21 @@
|
|
|
5026
5040
|
"multiple": false,
|
|
5027
5041
|
"type": "option"
|
|
5028
5042
|
},
|
|
5043
|
+
"path": {
|
|
5044
|
+
"char": "p",
|
|
5045
|
+
"description": "Path to the file export project",
|
|
5046
|
+
"name": "path",
|
|
5047
|
+
"hasDynamicHelp": false,
|
|
5048
|
+
"multiple": false,
|
|
5049
|
+
"type": "option"
|
|
5050
|
+
},
|
|
5051
|
+
"overwrite": {
|
|
5052
|
+
"char": "f",
|
|
5053
|
+
"description": "Override existing files (doubles the number of API calls)",
|
|
5054
|
+
"name": "overwrite",
|
|
5055
|
+
"allowNo": false,
|
|
5056
|
+
"type": "boolean"
|
|
5057
|
+
},
|
|
5029
5058
|
"debug": {
|
|
5030
5059
|
"char": "d",
|
|
5031
5060
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5064,13 +5093,13 @@
|
|
|
5064
5093
|
},
|
|
5065
5094
|
"hasDynamicHelp": true,
|
|
5066
5095
|
"hiddenAliases": [],
|
|
5067
|
-
"id": "hardis:org:
|
|
5096
|
+
"id": "hardis:org:files:import",
|
|
5068
5097
|
"pluginAlias": "sfdx-hardis",
|
|
5069
5098
|
"pluginName": "sfdx-hardis",
|
|
5070
5099
|
"pluginType": "core",
|
|
5071
5100
|
"strict": true,
|
|
5072
5101
|
"enableJsonFlag": true,
|
|
5073
|
-
"title": "
|
|
5102
|
+
"title": "Import files",
|
|
5074
5103
|
"requiresProject": false,
|
|
5075
5104
|
"isESM": true,
|
|
5076
5105
|
"relativePath": [
|
|
@@ -5078,46 +5107,46 @@
|
|
|
5078
5107
|
"commands",
|
|
5079
5108
|
"hardis",
|
|
5080
5109
|
"org",
|
|
5081
|
-
"
|
|
5082
|
-
"
|
|
5110
|
+
"files",
|
|
5111
|
+
"import.js"
|
|
5083
5112
|
],
|
|
5084
5113
|
"aliasPermutations": [],
|
|
5085
5114
|
"permutations": [
|
|
5086
|
-
"hardis:org:
|
|
5087
|
-
"org:hardis:
|
|
5088
|
-
"org:
|
|
5089
|
-
"org:
|
|
5090
|
-
"hardis:
|
|
5091
|
-
"
|
|
5092
|
-
"
|
|
5093
|
-
"
|
|
5094
|
-
"hardis:
|
|
5095
|
-
"
|
|
5096
|
-
"
|
|
5097
|
-
"
|
|
5098
|
-
"hardis:org:
|
|
5099
|
-
"org:hardis:
|
|
5100
|
-
"org:
|
|
5101
|
-
"org:
|
|
5102
|
-
"hardis:
|
|
5103
|
-
"
|
|
5104
|
-
"
|
|
5105
|
-
"
|
|
5106
|
-
"hardis:
|
|
5107
|
-
"
|
|
5108
|
-
"
|
|
5109
|
-
"
|
|
5110
|
-
]
|
|
5111
|
-
},
|
|
5112
|
-
"hardis:org:diagnose:
|
|
5113
|
-
"aliases": [],
|
|
5114
|
-
"args": {},
|
|
5115
|
-
"description": "
|
|
5115
|
+
"hardis:org:files:import",
|
|
5116
|
+
"org:hardis:files:import",
|
|
5117
|
+
"org:files:hardis:import",
|
|
5118
|
+
"org:files:import:hardis",
|
|
5119
|
+
"hardis:files:org:import",
|
|
5120
|
+
"files:hardis:org:import",
|
|
5121
|
+
"files:org:hardis:import",
|
|
5122
|
+
"files:org:import:hardis",
|
|
5123
|
+
"hardis:files:import:org",
|
|
5124
|
+
"files:hardis:import:org",
|
|
5125
|
+
"files:import:hardis:org",
|
|
5126
|
+
"files:import:org:hardis",
|
|
5127
|
+
"hardis:org:import:files",
|
|
5128
|
+
"org:hardis:import:files",
|
|
5129
|
+
"org:import:hardis:files",
|
|
5130
|
+
"org:import:files:hardis",
|
|
5131
|
+
"hardis:import:org:files",
|
|
5132
|
+
"import:hardis:org:files",
|
|
5133
|
+
"import:org:hardis:files",
|
|
5134
|
+
"import:org:files:hardis",
|
|
5135
|
+
"hardis:import:files:org",
|
|
5136
|
+
"import:hardis:files:org",
|
|
5137
|
+
"import:files:hardis:org",
|
|
5138
|
+
"import:files:org:hardis"
|
|
5139
|
+
]
|
|
5140
|
+
},
|
|
5141
|
+
"hardis:org:diagnose:audittrail": {
|
|
5142
|
+
"aliases": [],
|
|
5143
|
+
"args": {},
|
|
5144
|
+
"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",
|
|
5116
5145
|
"examples": [
|
|
5117
|
-
"$ sf hardis:org:diagnose:
|
|
5118
|
-
"$ sf hardis:org:diagnose:
|
|
5119
|
-
"$ sf hardis:org:diagnose:
|
|
5120
|
-
"$ sf hardis:org:diagnose:
|
|
5146
|
+
"$ sf hardis:org:diagnose:audittrail",
|
|
5147
|
+
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
|
|
5148
|
+
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
|
|
5149
|
+
"$ sf hardis:org:diagnose:audittrail --lastndays 5"
|
|
5121
5150
|
],
|
|
5122
5151
|
"flags": {
|
|
5123
5152
|
"json": {
|
|
@@ -5135,20 +5164,18 @@
|
|
|
5135
5164
|
"multiple": false,
|
|
5136
5165
|
"type": "option"
|
|
5137
5166
|
},
|
|
5138
|
-
"
|
|
5167
|
+
"excludeusers": {
|
|
5139
5168
|
"char": "e",
|
|
5140
|
-
"description": "
|
|
5141
|
-
"name": "
|
|
5142
|
-
"default": "ApiTotalUsage",
|
|
5169
|
+
"description": "Comma-separated list of usernames to exclude",
|
|
5170
|
+
"name": "excludeusers",
|
|
5143
5171
|
"hasDynamicHelp": false,
|
|
5144
5172
|
"multiple": false,
|
|
5145
5173
|
"type": "option"
|
|
5146
5174
|
},
|
|
5147
|
-
"
|
|
5148
|
-
"char": "
|
|
5149
|
-
"description": "Number of
|
|
5150
|
-
"name": "
|
|
5151
|
-
"default": 999,
|
|
5175
|
+
"lastndays": {
|
|
5176
|
+
"char": "t",
|
|
5177
|
+
"description": "Number of days to extract from today (included)",
|
|
5178
|
+
"name": "lastndays",
|
|
5152
5179
|
"hasDynamicHelp": false,
|
|
5153
5180
|
"multiple": false,
|
|
5154
5181
|
"type": "option"
|
|
@@ -5199,13 +5226,13 @@
|
|
|
5199
5226
|
},
|
|
5200
5227
|
"hasDynamicHelp": true,
|
|
5201
5228
|
"hiddenAliases": [],
|
|
5202
|
-
"id": "hardis:org:diagnose:
|
|
5229
|
+
"id": "hardis:org:diagnose:audittrail",
|
|
5203
5230
|
"pluginAlias": "sfdx-hardis",
|
|
5204
5231
|
"pluginName": "sfdx-hardis",
|
|
5205
5232
|
"pluginType": "core",
|
|
5206
5233
|
"strict": true,
|
|
5207
5234
|
"enableJsonFlag": true,
|
|
5208
|
-
"title": "
|
|
5235
|
+
"title": "Diagnose content of Setup Audit Trail",
|
|
5209
5236
|
"requiresProject": false,
|
|
5210
5237
|
"isESM": true,
|
|
5211
5238
|
"relativePath": [
|
|
@@ -5214,42 +5241,42 @@
|
|
|
5214
5241
|
"hardis",
|
|
5215
5242
|
"org",
|
|
5216
5243
|
"diagnose",
|
|
5217
|
-
"
|
|
5244
|
+
"audittrail.js"
|
|
5218
5245
|
],
|
|
5219
5246
|
"aliasPermutations": [],
|
|
5220
5247
|
"permutations": [
|
|
5221
|
-
"hardis:org:diagnose:
|
|
5222
|
-
"org:hardis:diagnose:
|
|
5223
|
-
"org:diagnose:hardis:
|
|
5224
|
-
"org:diagnose:
|
|
5225
|
-
"hardis:diagnose:org:
|
|
5226
|
-
"diagnose:hardis:org:
|
|
5227
|
-
"diagnose:org:hardis:
|
|
5228
|
-
"diagnose:org:
|
|
5229
|
-
"hardis:diagnose:
|
|
5230
|
-
"diagnose:hardis:
|
|
5231
|
-
"diagnose:
|
|
5232
|
-
"diagnose:
|
|
5233
|
-
"hardis:org:
|
|
5234
|
-
"org:hardis:
|
|
5235
|
-
"org:
|
|
5236
|
-
"org:
|
|
5237
|
-
"hardis:
|
|
5238
|
-
"
|
|
5239
|
-
"
|
|
5240
|
-
"
|
|
5241
|
-
"hardis:
|
|
5242
|
-
"
|
|
5243
|
-
"
|
|
5244
|
-
"
|
|
5248
|
+
"hardis:org:diagnose:audittrail",
|
|
5249
|
+
"org:hardis:diagnose:audittrail",
|
|
5250
|
+
"org:diagnose:hardis:audittrail",
|
|
5251
|
+
"org:diagnose:audittrail:hardis",
|
|
5252
|
+
"hardis:diagnose:org:audittrail",
|
|
5253
|
+
"diagnose:hardis:org:audittrail",
|
|
5254
|
+
"diagnose:org:hardis:audittrail",
|
|
5255
|
+
"diagnose:org:audittrail:hardis",
|
|
5256
|
+
"hardis:diagnose:audittrail:org",
|
|
5257
|
+
"diagnose:hardis:audittrail:org",
|
|
5258
|
+
"diagnose:audittrail:hardis:org",
|
|
5259
|
+
"diagnose:audittrail:org:hardis",
|
|
5260
|
+
"hardis:org:audittrail:diagnose",
|
|
5261
|
+
"org:hardis:audittrail:diagnose",
|
|
5262
|
+
"org:audittrail:hardis:diagnose",
|
|
5263
|
+
"org:audittrail:diagnose:hardis",
|
|
5264
|
+
"hardis:audittrail:org:diagnose",
|
|
5265
|
+
"audittrail:hardis:org:diagnose",
|
|
5266
|
+
"audittrail:org:hardis:diagnose",
|
|
5267
|
+
"audittrail:org:diagnose:hardis",
|
|
5268
|
+
"hardis:audittrail:diagnose:org",
|
|
5269
|
+
"audittrail:hardis:diagnose:org",
|
|
5270
|
+
"audittrail:diagnose:hardis:org",
|
|
5271
|
+
"audittrail:diagnose:org:hardis"
|
|
5245
5272
|
]
|
|
5246
5273
|
},
|
|
5247
|
-
"hardis:org:diagnose:
|
|
5274
|
+
"hardis:org:diagnose:instanceupgrade": {
|
|
5248
5275
|
"aliases": [],
|
|
5249
5276
|
"args": {},
|
|
5250
|
-
"description": "
|
|
5277
|
+
"description": "Get the date when the org instance will be upgraded (to Spring, Summer or Winter)\n ",
|
|
5251
5278
|
"examples": [
|
|
5252
|
-
"$ sf hardis:org:diagnose:
|
|
5279
|
+
"$ sf hardis:org:diagnose:instanceupgrade"
|
|
5253
5280
|
],
|
|
5254
5281
|
"flags": {
|
|
5255
5282
|
"json": {
|
|
@@ -5267,21 +5294,6 @@
|
|
|
5267
5294
|
"multiple": false,
|
|
5268
5295
|
"type": "option"
|
|
5269
5296
|
},
|
|
5270
|
-
"outputfile": {
|
|
5271
|
-
"char": "f",
|
|
5272
|
-
"description": "Force the path and name of output report file. Must end with .csv",
|
|
5273
|
-
"name": "outputfile",
|
|
5274
|
-
"hasDynamicHelp": false,
|
|
5275
|
-
"multiple": false,
|
|
5276
|
-
"type": "option"
|
|
5277
|
-
},
|
|
5278
|
-
"usedonly": {
|
|
5279
|
-
"char": "u",
|
|
5280
|
-
"description": "Filter to have only used licenses",
|
|
5281
|
-
"name": "usedonly",
|
|
5282
|
-
"allowNo": false,
|
|
5283
|
-
"type": "boolean"
|
|
5284
|
-
},
|
|
5285
5297
|
"debug": {
|
|
5286
5298
|
"char": "d",
|
|
5287
5299
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5320,13 +5332,13 @@
|
|
|
5320
5332
|
},
|
|
5321
5333
|
"hasDynamicHelp": true,
|
|
5322
5334
|
"hiddenAliases": [],
|
|
5323
|
-
"id": "hardis:org:diagnose:
|
|
5335
|
+
"id": "hardis:org:diagnose:instanceupgrade",
|
|
5324
5336
|
"pluginAlias": "sfdx-hardis",
|
|
5325
5337
|
"pluginName": "sfdx-hardis",
|
|
5326
5338
|
"pluginType": "core",
|
|
5327
5339
|
"strict": true,
|
|
5328
5340
|
"enableJsonFlag": true,
|
|
5329
|
-
"title": "
|
|
5341
|
+
"title": "Get Instance Upgrade date",
|
|
5330
5342
|
"requiresProject": false,
|
|
5331
5343
|
"isESM": true,
|
|
5332
5344
|
"relativePath": [
|
|
@@ -5335,42 +5347,45 @@
|
|
|
5335
5347
|
"hardis",
|
|
5336
5348
|
"org",
|
|
5337
5349
|
"diagnose",
|
|
5338
|
-
"
|
|
5350
|
+
"instanceupgrade.js"
|
|
5339
5351
|
],
|
|
5340
5352
|
"aliasPermutations": [],
|
|
5341
5353
|
"permutations": [
|
|
5342
|
-
"hardis:org:diagnose:
|
|
5343
|
-
"org:hardis:diagnose:
|
|
5344
|
-
"org:diagnose:hardis:
|
|
5345
|
-
"org:diagnose:
|
|
5346
|
-
"hardis:diagnose:org:
|
|
5347
|
-
"diagnose:hardis:org:
|
|
5348
|
-
"diagnose:org:hardis:
|
|
5349
|
-
"diagnose:org:
|
|
5350
|
-
"hardis:diagnose:
|
|
5351
|
-
"diagnose:hardis:
|
|
5352
|
-
"diagnose:
|
|
5353
|
-
"diagnose:
|
|
5354
|
-
"hardis:org:
|
|
5355
|
-
"org:hardis:
|
|
5356
|
-
"org:
|
|
5357
|
-
"org:
|
|
5358
|
-
"hardis:
|
|
5359
|
-
"
|
|
5360
|
-
"
|
|
5361
|
-
"
|
|
5362
|
-
"hardis:
|
|
5363
|
-
"
|
|
5364
|
-
"
|
|
5365
|
-
"
|
|
5354
|
+
"hardis:org:diagnose:instanceupgrade",
|
|
5355
|
+
"org:hardis:diagnose:instanceupgrade",
|
|
5356
|
+
"org:diagnose:hardis:instanceupgrade",
|
|
5357
|
+
"org:diagnose:instanceupgrade:hardis",
|
|
5358
|
+
"hardis:diagnose:org:instanceupgrade",
|
|
5359
|
+
"diagnose:hardis:org:instanceupgrade",
|
|
5360
|
+
"diagnose:org:hardis:instanceupgrade",
|
|
5361
|
+
"diagnose:org:instanceupgrade:hardis",
|
|
5362
|
+
"hardis:diagnose:instanceupgrade:org",
|
|
5363
|
+
"diagnose:hardis:instanceupgrade:org",
|
|
5364
|
+
"diagnose:instanceupgrade:hardis:org",
|
|
5365
|
+
"diagnose:instanceupgrade:org:hardis",
|
|
5366
|
+
"hardis:org:instanceupgrade:diagnose",
|
|
5367
|
+
"org:hardis:instanceupgrade:diagnose",
|
|
5368
|
+
"org:instanceupgrade:hardis:diagnose",
|
|
5369
|
+
"org:instanceupgrade:diagnose:hardis",
|
|
5370
|
+
"hardis:instanceupgrade:org:diagnose",
|
|
5371
|
+
"instanceupgrade:hardis:org:diagnose",
|
|
5372
|
+
"instanceupgrade:org:hardis:diagnose",
|
|
5373
|
+
"instanceupgrade:org:diagnose:hardis",
|
|
5374
|
+
"hardis:instanceupgrade:diagnose:org",
|
|
5375
|
+
"instanceupgrade:hardis:diagnose:org",
|
|
5376
|
+
"instanceupgrade:diagnose:hardis:org",
|
|
5377
|
+
"instanceupgrade:diagnose:org:hardis"
|
|
5366
5378
|
]
|
|
5367
5379
|
},
|
|
5368
|
-
"hardis:org:diagnose:
|
|
5380
|
+
"hardis:org:diagnose:legacyapi": {
|
|
5369
5381
|
"aliases": [],
|
|
5370
5382
|
"args": {},
|
|
5371
|
-
"description": "
|
|
5383
|
+
"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",
|
|
5372
5384
|
"examples": [
|
|
5373
|
-
"$ sf hardis:org:diagnose:
|
|
5385
|
+
"$ sf hardis:org:diagnose:legacyapi",
|
|
5386
|
+
"$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com",
|
|
5387
|
+
"$ sf hardis:org:diagnose:legacyapi --outputfile 'c:/path/to/folder/legacyapi.csv'",
|
|
5388
|
+
"$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com --outputfile ./tmp/legacyapi.csv"
|
|
5374
5389
|
],
|
|
5375
5390
|
"flags": {
|
|
5376
5391
|
"json": {
|
|
@@ -5388,6 +5403,24 @@
|
|
|
5388
5403
|
"multiple": false,
|
|
5389
5404
|
"type": "option"
|
|
5390
5405
|
},
|
|
5406
|
+
"eventtype": {
|
|
5407
|
+
"char": "e",
|
|
5408
|
+
"description": "Type of EventLogFile event to analyze",
|
|
5409
|
+
"name": "eventtype",
|
|
5410
|
+
"default": "ApiTotalUsage",
|
|
5411
|
+
"hasDynamicHelp": false,
|
|
5412
|
+
"multiple": false,
|
|
5413
|
+
"type": "option"
|
|
5414
|
+
},
|
|
5415
|
+
"limit": {
|
|
5416
|
+
"char": "l",
|
|
5417
|
+
"description": "Number of latest EventLogFile events to analyze",
|
|
5418
|
+
"name": "limit",
|
|
5419
|
+
"default": 999,
|
|
5420
|
+
"hasDynamicHelp": false,
|
|
5421
|
+
"multiple": false,
|
|
5422
|
+
"type": "option"
|
|
5423
|
+
},
|
|
5391
5424
|
"outputfile": {
|
|
5392
5425
|
"char": "f",
|
|
5393
5426
|
"description": "Force the path and name of output report file. Must end with .csv",
|
|
@@ -5434,13 +5467,13 @@
|
|
|
5434
5467
|
},
|
|
5435
5468
|
"hasDynamicHelp": true,
|
|
5436
5469
|
"hiddenAliases": [],
|
|
5437
|
-
"id": "hardis:org:diagnose:
|
|
5470
|
+
"id": "hardis:org:diagnose:legacyapi",
|
|
5438
5471
|
"pluginAlias": "sfdx-hardis",
|
|
5439
5472
|
"pluginName": "sfdx-hardis",
|
|
5440
5473
|
"pluginType": "core",
|
|
5441
5474
|
"strict": true,
|
|
5442
5475
|
"enableJsonFlag": true,
|
|
5443
|
-
"title": "Check
|
|
5476
|
+
"title": "Check for legacy API use",
|
|
5444
5477
|
"requiresProject": false,
|
|
5445
5478
|
"isESM": true,
|
|
5446
5479
|
"relativePath": [
|
|
@@ -5449,50 +5482,49 @@
|
|
|
5449
5482
|
"hardis",
|
|
5450
5483
|
"org",
|
|
5451
5484
|
"diagnose",
|
|
5452
|
-
"
|
|
5485
|
+
"legacyapi.js"
|
|
5453
5486
|
],
|
|
5454
5487
|
"aliasPermutations": [],
|
|
5455
5488
|
"permutations": [
|
|
5456
|
-
"hardis:org:diagnose:
|
|
5457
|
-
"org:hardis:diagnose:
|
|
5458
|
-
"org:diagnose:hardis:
|
|
5459
|
-
"org:diagnose:
|
|
5460
|
-
"hardis:diagnose:org:
|
|
5461
|
-
"diagnose:hardis:org:
|
|
5462
|
-
"diagnose:org:hardis:
|
|
5463
|
-
"diagnose:org:
|
|
5464
|
-
"hardis:diagnose:
|
|
5465
|
-
"diagnose:hardis:
|
|
5466
|
-
"diagnose:
|
|
5467
|
-
"diagnose:
|
|
5468
|
-
"hardis:org:
|
|
5469
|
-
"org:hardis:
|
|
5470
|
-
"org:
|
|
5471
|
-
"org:
|
|
5472
|
-
"hardis:
|
|
5473
|
-
"
|
|
5474
|
-
"
|
|
5475
|
-
"
|
|
5476
|
-
"hardis:
|
|
5477
|
-
"
|
|
5478
|
-
"
|
|
5479
|
-
"
|
|
5480
|
-
]
|
|
5481
|
-
},
|
|
5482
|
-
"hardis:org:diagnose:
|
|
5483
|
-
"aliases": [],
|
|
5484
|
-
"args": {},
|
|
5485
|
-
"description": "
|
|
5486
|
-
"examples": [
|
|
5487
|
-
"$ sf hardis:org:diagnose:
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
"
|
|
5493
|
-
"
|
|
5494
|
-
"
|
|
5495
|
-
"allowNo": false,
|
|
5489
|
+
"hardis:org:diagnose:legacyapi",
|
|
5490
|
+
"org:hardis:diagnose:legacyapi",
|
|
5491
|
+
"org:diagnose:hardis:legacyapi",
|
|
5492
|
+
"org:diagnose:legacyapi:hardis",
|
|
5493
|
+
"hardis:diagnose:org:legacyapi",
|
|
5494
|
+
"diagnose:hardis:org:legacyapi",
|
|
5495
|
+
"diagnose:org:hardis:legacyapi",
|
|
5496
|
+
"diagnose:org:legacyapi:hardis",
|
|
5497
|
+
"hardis:diagnose:legacyapi:org",
|
|
5498
|
+
"diagnose:hardis:legacyapi:org",
|
|
5499
|
+
"diagnose:legacyapi:hardis:org",
|
|
5500
|
+
"diagnose:legacyapi:org:hardis",
|
|
5501
|
+
"hardis:org:legacyapi:diagnose",
|
|
5502
|
+
"org:hardis:legacyapi:diagnose",
|
|
5503
|
+
"org:legacyapi:hardis:diagnose",
|
|
5504
|
+
"org:legacyapi:diagnose:hardis",
|
|
5505
|
+
"hardis:legacyapi:org:diagnose",
|
|
5506
|
+
"legacyapi:hardis:org:diagnose",
|
|
5507
|
+
"legacyapi:org:hardis:diagnose",
|
|
5508
|
+
"legacyapi:org:diagnose:hardis",
|
|
5509
|
+
"hardis:legacyapi:diagnose:org",
|
|
5510
|
+
"legacyapi:hardis:diagnose:org",
|
|
5511
|
+
"legacyapi:diagnose:hardis:org",
|
|
5512
|
+
"legacyapi:diagnose:org:hardis"
|
|
5513
|
+
]
|
|
5514
|
+
},
|
|
5515
|
+
"hardis:org:diagnose:licenses": {
|
|
5516
|
+
"aliases": [],
|
|
5517
|
+
"args": {},
|
|
5518
|
+
"description": "Mostly used for monitoring (Grafana) but you can also use it manually :)",
|
|
5519
|
+
"examples": [
|
|
5520
|
+
"$ sf hardis:org:diagnose:licenses"
|
|
5521
|
+
],
|
|
5522
|
+
"flags": {
|
|
5523
|
+
"json": {
|
|
5524
|
+
"description": "Format output as json.",
|
|
5525
|
+
"helpGroup": "GLOBAL",
|
|
5526
|
+
"name": "json",
|
|
5527
|
+
"allowNo": false,
|
|
5496
5528
|
"type": "boolean"
|
|
5497
5529
|
},
|
|
5498
5530
|
"flags-dir": {
|
|
@@ -5511,13 +5543,12 @@
|
|
|
5511
5543
|
"multiple": false,
|
|
5512
5544
|
"type": "option"
|
|
5513
5545
|
},
|
|
5514
|
-
"
|
|
5515
|
-
"char": "
|
|
5516
|
-
"description": "
|
|
5517
|
-
"name": "
|
|
5518
|
-
"
|
|
5519
|
-
"
|
|
5520
|
-
"type": "option"
|
|
5546
|
+
"usedonly": {
|
|
5547
|
+
"char": "u",
|
|
5548
|
+
"description": "Filter to have only used licenses",
|
|
5549
|
+
"name": "usedonly",
|
|
5550
|
+
"allowNo": false,
|
|
5551
|
+
"type": "boolean"
|
|
5521
5552
|
},
|
|
5522
5553
|
"debug": {
|
|
5523
5554
|
"char": "d",
|
|
@@ -5557,13 +5588,13 @@
|
|
|
5557
5588
|
},
|
|
5558
5589
|
"hasDynamicHelp": true,
|
|
5559
5590
|
"hiddenAliases": [],
|
|
5560
|
-
"id": "hardis:org:diagnose:
|
|
5591
|
+
"id": "hardis:org:diagnose:licenses",
|
|
5561
5592
|
"pluginAlias": "sfdx-hardis",
|
|
5562
5593
|
"pluginName": "sfdx-hardis",
|
|
5563
5594
|
"pluginType": "core",
|
|
5564
5595
|
"strict": true,
|
|
5565
5596
|
"enableJsonFlag": true,
|
|
5566
|
-
"title": "
|
|
5597
|
+
"title": "List licenses subscribed and used in a Salesforce org",
|
|
5567
5598
|
"requiresProject": false,
|
|
5568
5599
|
"isESM": true,
|
|
5569
5600
|
"relativePath": [
|
|
@@ -5572,42 +5603,42 @@
|
|
|
5572
5603
|
"hardis",
|
|
5573
5604
|
"org",
|
|
5574
5605
|
"diagnose",
|
|
5575
|
-
"
|
|
5606
|
+
"licenses.js"
|
|
5576
5607
|
],
|
|
5577
5608
|
"aliasPermutations": [],
|
|
5578
5609
|
"permutations": [
|
|
5579
|
-
"hardis:org:diagnose:
|
|
5580
|
-
"org:hardis:diagnose:
|
|
5581
|
-
"org:diagnose:hardis:
|
|
5582
|
-
"org:diagnose:
|
|
5583
|
-
"hardis:diagnose:org:
|
|
5584
|
-
"diagnose:hardis:org:
|
|
5585
|
-
"diagnose:org:hardis:
|
|
5586
|
-
"diagnose:org:
|
|
5587
|
-
"hardis:diagnose:
|
|
5588
|
-
"diagnose:hardis:
|
|
5589
|
-
"diagnose:
|
|
5590
|
-
"diagnose:
|
|
5591
|
-
"hardis:org:
|
|
5592
|
-
"org:hardis:
|
|
5593
|
-
"org:
|
|
5594
|
-
"org:
|
|
5595
|
-
"hardis:
|
|
5596
|
-
"
|
|
5597
|
-
"
|
|
5598
|
-
"
|
|
5599
|
-
"hardis:
|
|
5600
|
-
"
|
|
5601
|
-
"
|
|
5602
|
-
"
|
|
5610
|
+
"hardis:org:diagnose:licenses",
|
|
5611
|
+
"org:hardis:diagnose:licenses",
|
|
5612
|
+
"org:diagnose:hardis:licenses",
|
|
5613
|
+
"org:diagnose:licenses:hardis",
|
|
5614
|
+
"hardis:diagnose:org:licenses",
|
|
5615
|
+
"diagnose:hardis:org:licenses",
|
|
5616
|
+
"diagnose:org:hardis:licenses",
|
|
5617
|
+
"diagnose:org:licenses:hardis",
|
|
5618
|
+
"hardis:diagnose:licenses:org",
|
|
5619
|
+
"diagnose:hardis:licenses:org",
|
|
5620
|
+
"diagnose:licenses:hardis:org",
|
|
5621
|
+
"diagnose:licenses:org:hardis",
|
|
5622
|
+
"hardis:org:licenses:diagnose",
|
|
5623
|
+
"org:hardis:licenses:diagnose",
|
|
5624
|
+
"org:licenses:hardis:diagnose",
|
|
5625
|
+
"org:licenses:diagnose:hardis",
|
|
5626
|
+
"hardis:licenses:org:diagnose",
|
|
5627
|
+
"licenses:hardis:org:diagnose",
|
|
5628
|
+
"licenses:org:hardis:diagnose",
|
|
5629
|
+
"licenses:org:diagnose:hardis",
|
|
5630
|
+
"hardis:licenses:diagnose:org",
|
|
5631
|
+
"licenses:hardis:diagnose:org",
|
|
5632
|
+
"licenses:diagnose:hardis:org",
|
|
5633
|
+
"licenses:diagnose:org:hardis"
|
|
5603
5634
|
]
|
|
5604
5635
|
},
|
|
5605
|
-
"hardis:org:diagnose:
|
|
5636
|
+
"hardis:org:diagnose:releaseupdates": {
|
|
5606
5637
|
"aliases": [],
|
|
5607
5638
|
"args": {},
|
|
5608
|
-
"description": "
|
|
5639
|
+
"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",
|
|
5609
5640
|
"examples": [
|
|
5610
|
-
"$ sf hardis:org:diagnose:
|
|
5641
|
+
"$ sf hardis:org:diagnose:releaseupdates"
|
|
5611
5642
|
],
|
|
5612
5643
|
"flags": {
|
|
5613
5644
|
"json": {
|
|
@@ -5671,30 +5702,13 @@
|
|
|
5671
5702
|
},
|
|
5672
5703
|
"hasDynamicHelp": true,
|
|
5673
5704
|
"hiddenAliases": [],
|
|
5674
|
-
"id": "hardis:org:diagnose:
|
|
5705
|
+
"id": "hardis:org:diagnose:releaseupdates",
|
|
5675
5706
|
"pluginAlias": "sfdx-hardis",
|
|
5676
5707
|
"pluginName": "sfdx-hardis",
|
|
5677
5708
|
"pluginType": "core",
|
|
5678
5709
|
"strict": true,
|
|
5679
5710
|
"enableJsonFlag": true,
|
|
5680
|
-
"title": "
|
|
5681
|
-
"allowedInactiveConnectedApps": [
|
|
5682
|
-
"Ant Migration Tool",
|
|
5683
|
-
"Chatter Desktop",
|
|
5684
|
-
"Chatter Mobile for BlackBerry",
|
|
5685
|
-
"Force.com IDE",
|
|
5686
|
-
"OIQ_Integration",
|
|
5687
|
-
"Salesforce CLI",
|
|
5688
|
-
"Salesforce Files",
|
|
5689
|
-
"Salesforce Mobile Dashboards",
|
|
5690
|
-
"Salesforce Touch",
|
|
5691
|
-
"Salesforce for Outlook",
|
|
5692
|
-
"SalesforceA",
|
|
5693
|
-
"SalesforceA for Android",
|
|
5694
|
-
"SalesforceA for iOS",
|
|
5695
|
-
"SalesforceDX Namespace Registry",
|
|
5696
|
-
"SalesforceIQ"
|
|
5697
|
-
],
|
|
5711
|
+
"title": "Check Release Updates of an org",
|
|
5698
5712
|
"requiresProject": false,
|
|
5699
5713
|
"isESM": true,
|
|
5700
5714
|
"relativePath": [
|
|
@@ -5703,43 +5717,43 @@
|
|
|
5703
5717
|
"hardis",
|
|
5704
5718
|
"org",
|
|
5705
5719
|
"diagnose",
|
|
5706
|
-
"
|
|
5720
|
+
"releaseupdates.js"
|
|
5707
5721
|
],
|
|
5708
5722
|
"aliasPermutations": [],
|
|
5709
5723
|
"permutations": [
|
|
5710
|
-
"hardis:org:diagnose:
|
|
5711
|
-
"org:hardis:diagnose:
|
|
5712
|
-
"org:diagnose:hardis:
|
|
5713
|
-
"org:diagnose:
|
|
5714
|
-
"hardis:diagnose:org:
|
|
5715
|
-
"diagnose:hardis:org:
|
|
5716
|
-
"diagnose:org:hardis:
|
|
5717
|
-
"diagnose:org:
|
|
5718
|
-
"hardis:diagnose:
|
|
5719
|
-
"diagnose:hardis:
|
|
5720
|
-
"diagnose:
|
|
5721
|
-
"diagnose:
|
|
5722
|
-
"hardis:org:
|
|
5723
|
-
"org:hardis:
|
|
5724
|
-
"org:
|
|
5725
|
-
"org:
|
|
5726
|
-
"hardis:
|
|
5727
|
-
"
|
|
5728
|
-
"
|
|
5729
|
-
"
|
|
5730
|
-
"hardis:
|
|
5731
|
-
"
|
|
5732
|
-
"
|
|
5733
|
-
"
|
|
5724
|
+
"hardis:org:diagnose:releaseupdates",
|
|
5725
|
+
"org:hardis:diagnose:releaseupdates",
|
|
5726
|
+
"org:diagnose:hardis:releaseupdates",
|
|
5727
|
+
"org:diagnose:releaseupdates:hardis",
|
|
5728
|
+
"hardis:diagnose:org:releaseupdates",
|
|
5729
|
+
"diagnose:hardis:org:releaseupdates",
|
|
5730
|
+
"diagnose:org:hardis:releaseupdates",
|
|
5731
|
+
"diagnose:org:releaseupdates:hardis",
|
|
5732
|
+
"hardis:diagnose:releaseupdates:org",
|
|
5733
|
+
"diagnose:hardis:releaseupdates:org",
|
|
5734
|
+
"diagnose:releaseupdates:hardis:org",
|
|
5735
|
+
"diagnose:releaseupdates:org:hardis",
|
|
5736
|
+
"hardis:org:releaseupdates:diagnose",
|
|
5737
|
+
"org:hardis:releaseupdates:diagnose",
|
|
5738
|
+
"org:releaseupdates:hardis:diagnose",
|
|
5739
|
+
"org:releaseupdates:diagnose:hardis",
|
|
5740
|
+
"hardis:releaseupdates:org:diagnose",
|
|
5741
|
+
"releaseupdates:hardis:org:diagnose",
|
|
5742
|
+
"releaseupdates:org:hardis:diagnose",
|
|
5743
|
+
"releaseupdates:org:diagnose:hardis",
|
|
5744
|
+
"hardis:releaseupdates:diagnose:org",
|
|
5745
|
+
"releaseupdates:hardis:diagnose:org",
|
|
5746
|
+
"releaseupdates:diagnose:hardis:org",
|
|
5747
|
+
"releaseupdates:diagnose:org:hardis"
|
|
5734
5748
|
]
|
|
5735
5749
|
},
|
|
5736
|
-
"hardis:org:diagnose:
|
|
5750
|
+
"hardis:org:diagnose:unused-apex-classes": {
|
|
5737
5751
|
"aliases": [],
|
|
5738
5752
|
"args": {},
|
|
5739
|
-
"description": "
|
|
5753
|
+
"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",
|
|
5740
5754
|
"examples": [
|
|
5741
|
-
"$ sf hardis:org:diagnose:
|
|
5742
|
-
"$ sf hardis:org:diagnose:
|
|
5755
|
+
"$ sf hardis:org:diagnose:unused-apex-classes",
|
|
5756
|
+
"$ sf hardis:org:diagnose:unused-apex-classes --days 700"
|
|
5743
5757
|
],
|
|
5744
5758
|
"flags": {
|
|
5745
5759
|
"json": {
|
|
@@ -5765,6 +5779,14 @@
|
|
|
5765
5779
|
"multiple": false,
|
|
5766
5780
|
"type": "option"
|
|
5767
5781
|
},
|
|
5782
|
+
"days": {
|
|
5783
|
+
"char": "t",
|
|
5784
|
+
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
5785
|
+
"name": "days",
|
|
5786
|
+
"hasDynamicHelp": false,
|
|
5787
|
+
"multiple": false,
|
|
5788
|
+
"type": "option"
|
|
5789
|
+
},
|
|
5768
5790
|
"debug": {
|
|
5769
5791
|
"char": "d",
|
|
5770
5792
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5803,32 +5825,14 @@
|
|
|
5803
5825
|
},
|
|
5804
5826
|
"hasDynamicHelp": true,
|
|
5805
5827
|
"hiddenAliases": [],
|
|
5806
|
-
"id": "hardis:org:diagnose:
|
|
5828
|
+
"id": "hardis:org:diagnose:unused-apex-classes",
|
|
5807
5829
|
"pluginAlias": "sfdx-hardis",
|
|
5808
5830
|
"pluginName": "sfdx-hardis",
|
|
5809
5831
|
"pluginType": "core",
|
|
5810
5832
|
"strict": true,
|
|
5811
5833
|
"enableJsonFlag": true,
|
|
5812
|
-
"title": "Detect unused
|
|
5834
|
+
"title": "Detect unused Apex classes in an org",
|
|
5813
5835
|
"requiresProject": false,
|
|
5814
|
-
"additionalPermissionSetsToAlwaysGet": [
|
|
5815
|
-
"Sales_User"
|
|
5816
|
-
],
|
|
5817
|
-
"permSetsPermSetLicenses": [
|
|
5818
|
-
{
|
|
5819
|
-
"permSet": "Sales_User",
|
|
5820
|
-
"permSetLicense": "SalesUserPsl"
|
|
5821
|
-
}
|
|
5822
|
-
],
|
|
5823
|
-
"profilesPermissionSetLicenses": [
|
|
5824
|
-
{
|
|
5825
|
-
"profile": "Salesforce API Only",
|
|
5826
|
-
"permSetLicense": "SalesforceAPIIntegrationPsl"
|
|
5827
|
-
}
|
|
5828
|
-
],
|
|
5829
|
-
"alwaysExcludeForActiveUsersPermissionSetLicenses": [
|
|
5830
|
-
"IdentityConnect"
|
|
5831
|
-
],
|
|
5832
5836
|
"isESM": true,
|
|
5833
5837
|
"relativePath": [
|
|
5834
5838
|
"lib",
|
|
@@ -5836,46 +5840,42 @@
|
|
|
5836
5840
|
"hardis",
|
|
5837
5841
|
"org",
|
|
5838
5842
|
"diagnose",
|
|
5839
|
-
"
|
|
5843
|
+
"unused-apex-classes.js"
|
|
5840
5844
|
],
|
|
5841
5845
|
"aliasPermutations": [],
|
|
5842
5846
|
"permutations": [
|
|
5843
|
-
"hardis:org:diagnose:
|
|
5844
|
-
"org:hardis:diagnose:
|
|
5845
|
-
"org:diagnose:hardis:
|
|
5846
|
-
"org:diagnose:
|
|
5847
|
-
"hardis:diagnose:org:
|
|
5848
|
-
"diagnose:hardis:org:
|
|
5849
|
-
"diagnose:org:hardis:
|
|
5850
|
-
"diagnose:org:
|
|
5851
|
-
"hardis:diagnose:
|
|
5852
|
-
"diagnose:hardis:
|
|
5853
|
-
"diagnose:
|
|
5854
|
-
"diagnose:
|
|
5855
|
-
"hardis:org:
|
|
5856
|
-
"org:hardis:
|
|
5857
|
-
"org:
|
|
5858
|
-
"org:
|
|
5859
|
-
"hardis:
|
|
5860
|
-
"
|
|
5861
|
-
"
|
|
5862
|
-
"
|
|
5863
|
-
"hardis:
|
|
5864
|
-
"
|
|
5865
|
-
"
|
|
5866
|
-
"
|
|
5867
|
-
]
|
|
5868
|
-
},
|
|
5869
|
-
"hardis:org:diagnose:
|
|
5870
|
-
"aliases": [],
|
|
5871
|
-
"args": {},
|
|
5872
|
-
"description": "
|
|
5873
|
-
"examples": [
|
|
5874
|
-
"$ sf hardis:org:diagnose:
|
|
5875
|
-
"$ sf hardis:org:diagnose:unusedusers --days 365",
|
|
5876
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm",
|
|
5877
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licenseidentifiers SFDC,AUL,AUL1",
|
|
5878
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm --returnactiveusers"
|
|
5847
|
+
"hardis:org:diagnose:unused-apex-classes",
|
|
5848
|
+
"org:hardis:diagnose:unused-apex-classes",
|
|
5849
|
+
"org:diagnose:hardis:unused-apex-classes",
|
|
5850
|
+
"org:diagnose:unused-apex-classes:hardis",
|
|
5851
|
+
"hardis:diagnose:org:unused-apex-classes",
|
|
5852
|
+
"diagnose:hardis:org:unused-apex-classes",
|
|
5853
|
+
"diagnose:org:hardis:unused-apex-classes",
|
|
5854
|
+
"diagnose:org:unused-apex-classes:hardis",
|
|
5855
|
+
"hardis:diagnose:unused-apex-classes:org",
|
|
5856
|
+
"diagnose:hardis:unused-apex-classes:org",
|
|
5857
|
+
"diagnose:unused-apex-classes:hardis:org",
|
|
5858
|
+
"diagnose:unused-apex-classes:org:hardis",
|
|
5859
|
+
"hardis:org:unused-apex-classes:diagnose",
|
|
5860
|
+
"org:hardis:unused-apex-classes:diagnose",
|
|
5861
|
+
"org:unused-apex-classes:hardis:diagnose",
|
|
5862
|
+
"org:unused-apex-classes:diagnose:hardis",
|
|
5863
|
+
"hardis:unused-apex-classes:org:diagnose",
|
|
5864
|
+
"unused-apex-classes:hardis:org:diagnose",
|
|
5865
|
+
"unused-apex-classes:org:hardis:diagnose",
|
|
5866
|
+
"unused-apex-classes:org:diagnose:hardis",
|
|
5867
|
+
"hardis:unused-apex-classes:diagnose:org",
|
|
5868
|
+
"unused-apex-classes:hardis:diagnose:org",
|
|
5869
|
+
"unused-apex-classes:diagnose:hardis:org",
|
|
5870
|
+
"unused-apex-classes:diagnose:org:hardis"
|
|
5871
|
+
]
|
|
5872
|
+
},
|
|
5873
|
+
"hardis:org:diagnose:unused-connected-apps": {
|
|
5874
|
+
"aliases": [],
|
|
5875
|
+
"args": {},
|
|
5876
|
+
"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",
|
|
5877
|
+
"examples": [
|
|
5878
|
+
"$ sf hardis:org:diagnose:unused-connected-apps"
|
|
5879
5879
|
],
|
|
5880
5880
|
"flags": {
|
|
5881
5881
|
"json": {
|
|
@@ -5901,41 +5901,6 @@
|
|
|
5901
5901
|
"multiple": false,
|
|
5902
5902
|
"type": "option"
|
|
5903
5903
|
},
|
|
5904
|
-
"days": {
|
|
5905
|
-
"char": "t",
|
|
5906
|
-
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
5907
|
-
"name": "days",
|
|
5908
|
-
"hasDynamicHelp": false,
|
|
5909
|
-
"multiple": false,
|
|
5910
|
-
"type": "option"
|
|
5911
|
-
},
|
|
5912
|
-
"licensetypes": {
|
|
5913
|
-
"char": "l",
|
|
5914
|
-
"description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
|
|
5915
|
-
"name": "licensetypes",
|
|
5916
|
-
"hasDynamicHelp": false,
|
|
5917
|
-
"multiple": false,
|
|
5918
|
-
"options": [
|
|
5919
|
-
"all",
|
|
5920
|
-
"all-crm",
|
|
5921
|
-
"all-paying"
|
|
5922
|
-
],
|
|
5923
|
-
"type": "option"
|
|
5924
|
-
},
|
|
5925
|
-
"licenseidentifiers": {
|
|
5926
|
-
"char": "i",
|
|
5927
|
-
"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",
|
|
5928
|
-
"name": "licenseidentifiers",
|
|
5929
|
-
"hasDynamicHelp": false,
|
|
5930
|
-
"multiple": false,
|
|
5931
|
-
"type": "option"
|
|
5932
|
-
},
|
|
5933
|
-
"returnactiveusers": {
|
|
5934
|
-
"description": "Inverts the command by returning the active users",
|
|
5935
|
-
"name": "returnactiveusers",
|
|
5936
|
-
"allowNo": false,
|
|
5937
|
-
"type": "boolean"
|
|
5938
|
-
},
|
|
5939
5904
|
"debug": {
|
|
5940
5905
|
"char": "d",
|
|
5941
5906
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5974,13 +5939,30 @@
|
|
|
5974
5939
|
},
|
|
5975
5940
|
"hasDynamicHelp": true,
|
|
5976
5941
|
"hiddenAliases": [],
|
|
5977
|
-
"id": "hardis:org:diagnose:
|
|
5942
|
+
"id": "hardis:org:diagnose:unused-connected-apps",
|
|
5978
5943
|
"pluginAlias": "sfdx-hardis",
|
|
5979
5944
|
"pluginName": "sfdx-hardis",
|
|
5980
5945
|
"pluginType": "core",
|
|
5981
5946
|
"strict": true,
|
|
5982
5947
|
"enableJsonFlag": true,
|
|
5983
|
-
"title": "
|
|
5948
|
+
"title": "Unused Connected Apps in an org",
|
|
5949
|
+
"allowedInactiveConnectedApps": [
|
|
5950
|
+
"Ant Migration Tool",
|
|
5951
|
+
"Chatter Desktop",
|
|
5952
|
+
"Chatter Mobile for BlackBerry",
|
|
5953
|
+
"Force.com IDE",
|
|
5954
|
+
"OIQ_Integration",
|
|
5955
|
+
"Salesforce CLI",
|
|
5956
|
+
"Salesforce Files",
|
|
5957
|
+
"Salesforce Mobile Dashboards",
|
|
5958
|
+
"Salesforce Touch",
|
|
5959
|
+
"Salesforce for Outlook",
|
|
5960
|
+
"SalesforceA",
|
|
5961
|
+
"SalesforceA for Android",
|
|
5962
|
+
"SalesforceA for iOS",
|
|
5963
|
+
"SalesforceDX Namespace Registry",
|
|
5964
|
+
"SalesforceIQ"
|
|
5965
|
+
],
|
|
5984
5966
|
"requiresProject": false,
|
|
5985
5967
|
"isESM": true,
|
|
5986
5968
|
"relativePath": [
|
|
@@ -5989,42 +5971,43 @@
|
|
|
5989
5971
|
"hardis",
|
|
5990
5972
|
"org",
|
|
5991
5973
|
"diagnose",
|
|
5992
|
-
"
|
|
5974
|
+
"unused-connected-apps.js"
|
|
5993
5975
|
],
|
|
5994
5976
|
"aliasPermutations": [],
|
|
5995
5977
|
"permutations": [
|
|
5996
|
-
"hardis:org:diagnose:
|
|
5997
|
-
"org:hardis:diagnose:
|
|
5998
|
-
"org:diagnose:hardis:
|
|
5999
|
-
"org:diagnose:
|
|
6000
|
-
"hardis:diagnose:org:
|
|
6001
|
-
"diagnose:hardis:org:
|
|
6002
|
-
"diagnose:org:hardis:
|
|
6003
|
-
"diagnose:org:
|
|
6004
|
-
"hardis:diagnose:
|
|
6005
|
-
"diagnose:hardis:
|
|
6006
|
-
"diagnose:
|
|
6007
|
-
"diagnose:
|
|
6008
|
-
"hardis:org:
|
|
6009
|
-
"org:hardis:
|
|
6010
|
-
"org:
|
|
6011
|
-
"org:
|
|
6012
|
-
"hardis:
|
|
6013
|
-
"
|
|
6014
|
-
"
|
|
6015
|
-
"
|
|
6016
|
-
"hardis:
|
|
6017
|
-
"
|
|
6018
|
-
"
|
|
6019
|
-
"
|
|
5978
|
+
"hardis:org:diagnose:unused-connected-apps",
|
|
5979
|
+
"org:hardis:diagnose:unused-connected-apps",
|
|
5980
|
+
"org:diagnose:hardis:unused-connected-apps",
|
|
5981
|
+
"org:diagnose:unused-connected-apps:hardis",
|
|
5982
|
+
"hardis:diagnose:org:unused-connected-apps",
|
|
5983
|
+
"diagnose:hardis:org:unused-connected-apps",
|
|
5984
|
+
"diagnose:org:hardis:unused-connected-apps",
|
|
5985
|
+
"diagnose:org:unused-connected-apps:hardis",
|
|
5986
|
+
"hardis:diagnose:unused-connected-apps:org",
|
|
5987
|
+
"diagnose:hardis:unused-connected-apps:org",
|
|
5988
|
+
"diagnose:unused-connected-apps:hardis:org",
|
|
5989
|
+
"diagnose:unused-connected-apps:org:hardis",
|
|
5990
|
+
"hardis:org:unused-connected-apps:diagnose",
|
|
5991
|
+
"org:hardis:unused-connected-apps:diagnose",
|
|
5992
|
+
"org:unused-connected-apps:hardis:diagnose",
|
|
5993
|
+
"org:unused-connected-apps:diagnose:hardis",
|
|
5994
|
+
"hardis:unused-connected-apps:org:diagnose",
|
|
5995
|
+
"unused-connected-apps:hardis:org:diagnose",
|
|
5996
|
+
"unused-connected-apps:org:hardis:diagnose",
|
|
5997
|
+
"unused-connected-apps:org:diagnose:hardis",
|
|
5998
|
+
"hardis:unused-connected-apps:diagnose:org",
|
|
5999
|
+
"unused-connected-apps:hardis:diagnose:org",
|
|
6000
|
+
"unused-connected-apps:diagnose:hardis:org",
|
|
6001
|
+
"unused-connected-apps:diagnose:org:hardis"
|
|
6020
6002
|
]
|
|
6021
6003
|
},
|
|
6022
|
-
"hardis:org:
|
|
6004
|
+
"hardis:org:diagnose:unusedlicenses": {
|
|
6023
6005
|
"aliases": [],
|
|
6024
6006
|
"args": {},
|
|
6025
|
-
"description": "
|
|
6007
|
+
"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",
|
|
6026
6008
|
"examples": [
|
|
6027
|
-
"$ sf hardis:org:
|
|
6009
|
+
"$ sf hardis:org:diagnose:unusedlicenses",
|
|
6010
|
+
"$ sf hardis:org:diagnose:unusedlicenses --fix"
|
|
6028
6011
|
],
|
|
6029
6012
|
"flags": {
|
|
6030
6013
|
"json": {
|
|
@@ -6042,37 +6025,10 @@
|
|
|
6042
6025
|
"multiple": false,
|
|
6043
6026
|
"type": "option"
|
|
6044
6027
|
},
|
|
6045
|
-
"
|
|
6046
|
-
"char": "
|
|
6047
|
-
"description": "
|
|
6048
|
-
"name": "
|
|
6049
|
-
"hasDynamicHelp": false,
|
|
6050
|
-
"multiple": false,
|
|
6051
|
-
"type": "option"
|
|
6052
|
-
},
|
|
6053
|
-
"chunksize": {
|
|
6054
|
-
"char": "c",
|
|
6055
|
-
"description": "Number of records to add in a chunk before it is processed",
|
|
6056
|
-
"name": "chunksize",
|
|
6057
|
-
"default": 1000,
|
|
6058
|
-
"hasDynamicHelp": false,
|
|
6059
|
-
"multiple": false,
|
|
6060
|
-
"type": "option"
|
|
6061
|
-
},
|
|
6062
|
-
"polltimeout": {
|
|
6063
|
-
"char": "t",
|
|
6064
|
-
"description": "Timeout in MS for Bulk API calls",
|
|
6065
|
-
"name": "polltimeout",
|
|
6066
|
-
"default": 300000,
|
|
6067
|
-
"hasDynamicHelp": false,
|
|
6068
|
-
"multiple": false,
|
|
6069
|
-
"type": "option"
|
|
6070
|
-
},
|
|
6071
|
-
"startchunknumber": {
|
|
6072
|
-
"char": "s",
|
|
6073
|
-
"description": "Chunk number to start from",
|
|
6074
|
-
"name": "startchunknumber",
|
|
6075
|
-
"default": 0,
|
|
6028
|
+
"outputfile": {
|
|
6029
|
+
"char": "f",
|
|
6030
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6031
|
+
"name": "outputfile",
|
|
6076
6032
|
"hasDynamicHelp": false,
|
|
6077
6033
|
"multiple": false,
|
|
6078
6034
|
"type": "option"
|
|
@@ -6115,57 +6071,79 @@
|
|
|
6115
6071
|
},
|
|
6116
6072
|
"hasDynamicHelp": true,
|
|
6117
6073
|
"hiddenAliases": [],
|
|
6118
|
-
"id": "hardis:org:
|
|
6074
|
+
"id": "hardis:org:diagnose:unusedlicenses",
|
|
6119
6075
|
"pluginAlias": "sfdx-hardis",
|
|
6120
6076
|
"pluginName": "sfdx-hardis",
|
|
6121
6077
|
"pluginType": "core",
|
|
6122
6078
|
"strict": true,
|
|
6123
6079
|
"enableJsonFlag": true,
|
|
6124
|
-
"title": "
|
|
6080
|
+
"title": "Detect unused Permission Set Licenses (beta)",
|
|
6125
6081
|
"requiresProject": false,
|
|
6082
|
+
"additionalPermissionSetsToAlwaysGet": [
|
|
6083
|
+
"Sales_User"
|
|
6084
|
+
],
|
|
6085
|
+
"permSetsPermSetLicenses": [
|
|
6086
|
+
{
|
|
6087
|
+
"permSet": "Sales_User",
|
|
6088
|
+
"permSetLicense": "SalesUserPsl"
|
|
6089
|
+
}
|
|
6090
|
+
],
|
|
6091
|
+
"profilesPermissionSetLicenses": [
|
|
6092
|
+
{
|
|
6093
|
+
"profile": "Salesforce API Only",
|
|
6094
|
+
"permSetLicense": "SalesforceAPIIntegrationPsl"
|
|
6095
|
+
}
|
|
6096
|
+
],
|
|
6097
|
+
"alwaysExcludeForActiveUsersPermissionSetLicenses": [
|
|
6098
|
+
"IdentityConnect"
|
|
6099
|
+
],
|
|
6126
6100
|
"isESM": true,
|
|
6127
6101
|
"relativePath": [
|
|
6128
6102
|
"lib",
|
|
6129
6103
|
"commands",
|
|
6130
6104
|
"hardis",
|
|
6131
6105
|
"org",
|
|
6132
|
-
"
|
|
6133
|
-
"
|
|
6106
|
+
"diagnose",
|
|
6107
|
+
"unusedlicenses.js"
|
|
6134
6108
|
],
|
|
6135
6109
|
"aliasPermutations": [],
|
|
6136
6110
|
"permutations": [
|
|
6137
|
-
"hardis:org:
|
|
6138
|
-
"org:hardis:
|
|
6139
|
-
"org:
|
|
6140
|
-
"org:
|
|
6141
|
-
"hardis:
|
|
6142
|
-
"
|
|
6143
|
-
"
|
|
6144
|
-
"
|
|
6145
|
-
"hardis:
|
|
6146
|
-
"
|
|
6147
|
-
"
|
|
6148
|
-
"
|
|
6149
|
-
"hardis:org:
|
|
6150
|
-
"org:hardis:
|
|
6151
|
-
"org:
|
|
6152
|
-
"org:
|
|
6153
|
-
"hardis:
|
|
6154
|
-
"
|
|
6155
|
-
"
|
|
6156
|
-
"
|
|
6157
|
-
"hardis:
|
|
6158
|
-
"
|
|
6159
|
-
"
|
|
6160
|
-
"
|
|
6111
|
+
"hardis:org:diagnose:unusedlicenses",
|
|
6112
|
+
"org:hardis:diagnose:unusedlicenses",
|
|
6113
|
+
"org:diagnose:hardis:unusedlicenses",
|
|
6114
|
+
"org:diagnose:unusedlicenses:hardis",
|
|
6115
|
+
"hardis:diagnose:org:unusedlicenses",
|
|
6116
|
+
"diagnose:hardis:org:unusedlicenses",
|
|
6117
|
+
"diagnose:org:hardis:unusedlicenses",
|
|
6118
|
+
"diagnose:org:unusedlicenses:hardis",
|
|
6119
|
+
"hardis:diagnose:unusedlicenses:org",
|
|
6120
|
+
"diagnose:hardis:unusedlicenses:org",
|
|
6121
|
+
"diagnose:unusedlicenses:hardis:org",
|
|
6122
|
+
"diagnose:unusedlicenses:org:hardis",
|
|
6123
|
+
"hardis:org:unusedlicenses:diagnose",
|
|
6124
|
+
"org:hardis:unusedlicenses:diagnose",
|
|
6125
|
+
"org:unusedlicenses:hardis:diagnose",
|
|
6126
|
+
"org:unusedlicenses:diagnose:hardis",
|
|
6127
|
+
"hardis:unusedlicenses:org:diagnose",
|
|
6128
|
+
"unusedlicenses:hardis:org:diagnose",
|
|
6129
|
+
"unusedlicenses:org:hardis:diagnose",
|
|
6130
|
+
"unusedlicenses:org:diagnose:hardis",
|
|
6131
|
+
"hardis:unusedlicenses:diagnose:org",
|
|
6132
|
+
"unusedlicenses:hardis:diagnose:org",
|
|
6133
|
+
"unusedlicenses:diagnose:hardis:org",
|
|
6134
|
+
"unusedlicenses:diagnose:org:hardis"
|
|
6161
6135
|
]
|
|
6162
6136
|
},
|
|
6163
|
-
"hardis:org:
|
|
6137
|
+
"hardis:org:diagnose:unusedusers": {
|
|
6164
6138
|
"aliases": [],
|
|
6165
6139
|
"args": {},
|
|
6166
|
-
"description": "
|
|
6140
|
+
"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",
|
|
6167
6141
|
"examples": [
|
|
6168
|
-
"$ sf hardis:org:
|
|
6142
|
+
"$ sf hardis:org:diagnose:unusedusers",
|
|
6143
|
+
"$ sf hardis:org:diagnose:unusedusers --days 365",
|
|
6144
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm",
|
|
6145
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licenseidentifiers SFDC,AUL,AUL1",
|
|
6146
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm --returnactiveusers"
|
|
6169
6147
|
],
|
|
6170
6148
|
"flags": {
|
|
6171
6149
|
"json": {
|
|
@@ -6183,18 +6161,46 @@
|
|
|
6183
6161
|
"multiple": false,
|
|
6184
6162
|
"type": "option"
|
|
6185
6163
|
},
|
|
6186
|
-
"
|
|
6187
|
-
"char": "
|
|
6188
|
-
"description": "
|
|
6189
|
-
"name": "
|
|
6164
|
+
"outputfile": {
|
|
6165
|
+
"char": "f",
|
|
6166
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6167
|
+
"name": "outputfile",
|
|
6190
6168
|
"hasDynamicHelp": false,
|
|
6191
6169
|
"multiple": false,
|
|
6192
6170
|
"type": "option"
|
|
6193
6171
|
},
|
|
6194
|
-
"
|
|
6195
|
-
"char": "
|
|
6196
|
-
"description": "
|
|
6197
|
-
"name": "
|
|
6172
|
+
"days": {
|
|
6173
|
+
"char": "t",
|
|
6174
|
+
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
6175
|
+
"name": "days",
|
|
6176
|
+
"hasDynamicHelp": false,
|
|
6177
|
+
"multiple": false,
|
|
6178
|
+
"type": "option"
|
|
6179
|
+
},
|
|
6180
|
+
"licensetypes": {
|
|
6181
|
+
"char": "l",
|
|
6182
|
+
"description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
|
|
6183
|
+
"name": "licensetypes",
|
|
6184
|
+
"hasDynamicHelp": false,
|
|
6185
|
+
"multiple": false,
|
|
6186
|
+
"options": [
|
|
6187
|
+
"all",
|
|
6188
|
+
"all-crm",
|
|
6189
|
+
"all-paying"
|
|
6190
|
+
],
|
|
6191
|
+
"type": "option"
|
|
6192
|
+
},
|
|
6193
|
+
"licenseidentifiers": {
|
|
6194
|
+
"char": "i",
|
|
6195
|
+
"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",
|
|
6196
|
+
"name": "licenseidentifiers",
|
|
6197
|
+
"hasDynamicHelp": false,
|
|
6198
|
+
"multiple": false,
|
|
6199
|
+
"type": "option"
|
|
6200
|
+
},
|
|
6201
|
+
"returnactiveusers": {
|
|
6202
|
+
"description": "Inverts the command by returning the active users",
|
|
6203
|
+
"name": "returnactiveusers",
|
|
6198
6204
|
"allowNo": false,
|
|
6199
6205
|
"type": "boolean"
|
|
6200
6206
|
},
|
|
@@ -6236,13 +6242,13 @@
|
|
|
6236
6242
|
},
|
|
6237
6243
|
"hasDynamicHelp": true,
|
|
6238
6244
|
"hiddenAliases": [],
|
|
6239
|
-
"id": "hardis:org:
|
|
6245
|
+
"id": "hardis:org:diagnose:unusedusers",
|
|
6240
6246
|
"pluginAlias": "sfdx-hardis",
|
|
6241
6247
|
"pluginName": "sfdx-hardis",
|
|
6242
6248
|
"pluginType": "core",
|
|
6243
6249
|
"strict": true,
|
|
6244
6250
|
"enableJsonFlag": true,
|
|
6245
|
-
"title": "
|
|
6251
|
+
"title": "Detect unused Users in Salesforce",
|
|
6246
6252
|
"requiresProject": false,
|
|
6247
6253
|
"isESM": true,
|
|
6248
6254
|
"relativePath": [
|
|
@@ -6250,35 +6256,35 @@
|
|
|
6250
6256
|
"commands",
|
|
6251
6257
|
"hardis",
|
|
6252
6258
|
"org",
|
|
6253
|
-
"
|
|
6254
|
-
"
|
|
6259
|
+
"diagnose",
|
|
6260
|
+
"unusedusers.js"
|
|
6255
6261
|
],
|
|
6256
6262
|
"aliasPermutations": [],
|
|
6257
6263
|
"permutations": [
|
|
6258
|
-
"hardis:org:
|
|
6259
|
-
"org:hardis:
|
|
6260
|
-
"org:
|
|
6261
|
-
"org:
|
|
6262
|
-
"hardis:
|
|
6263
|
-
"
|
|
6264
|
-
"
|
|
6265
|
-
"
|
|
6266
|
-
"hardis:
|
|
6267
|
-
"
|
|
6268
|
-
"
|
|
6269
|
-
"
|
|
6270
|
-
"hardis:org:
|
|
6271
|
-
"org:hardis:
|
|
6272
|
-
"org:
|
|
6273
|
-
"org:
|
|
6274
|
-
"hardis:
|
|
6275
|
-
"
|
|
6276
|
-
"
|
|
6277
|
-
"
|
|
6278
|
-
"hardis:
|
|
6279
|
-
"
|
|
6280
|
-
"
|
|
6281
|
-
"
|
|
6264
|
+
"hardis:org:diagnose:unusedusers",
|
|
6265
|
+
"org:hardis:diagnose:unusedusers",
|
|
6266
|
+
"org:diagnose:hardis:unusedusers",
|
|
6267
|
+
"org:diagnose:unusedusers:hardis",
|
|
6268
|
+
"hardis:diagnose:org:unusedusers",
|
|
6269
|
+
"diagnose:hardis:org:unusedusers",
|
|
6270
|
+
"diagnose:org:hardis:unusedusers",
|
|
6271
|
+
"diagnose:org:unusedusers:hardis",
|
|
6272
|
+
"hardis:diagnose:unusedusers:org",
|
|
6273
|
+
"diagnose:hardis:unusedusers:org",
|
|
6274
|
+
"diagnose:unusedusers:hardis:org",
|
|
6275
|
+
"diagnose:unusedusers:org:hardis",
|
|
6276
|
+
"hardis:org:unusedusers:diagnose",
|
|
6277
|
+
"org:hardis:unusedusers:diagnose",
|
|
6278
|
+
"org:unusedusers:hardis:diagnose",
|
|
6279
|
+
"org:unusedusers:diagnose:hardis",
|
|
6280
|
+
"hardis:unusedusers:org:diagnose",
|
|
6281
|
+
"unusedusers:hardis:org:diagnose",
|
|
6282
|
+
"unusedusers:org:hardis:diagnose",
|
|
6283
|
+
"unusedusers:org:diagnose:hardis",
|
|
6284
|
+
"hardis:unusedusers:diagnose:org",
|
|
6285
|
+
"unusedusers:hardis:diagnose:org",
|
|
6286
|
+
"unusedusers:diagnose:hardis:org",
|
|
6287
|
+
"unusedusers:diagnose:org:hardis"
|
|
6282
6288
|
]
|
|
6283
6289
|
},
|
|
6284
6290
|
"hardis:org:fix:listviewmine": {
|
|
@@ -13864,5 +13870,5 @@
|
|
|
13864
13870
|
]
|
|
13865
13871
|
}
|
|
13866
13872
|
},
|
|
13867
|
-
"version": "5.10.2-
|
|
13873
|
+
"version": "5.10.2-beta202412231619.0"
|
|
13868
13874
|
}
|