sfdx-hardis 6.5.2 → 6.5.4
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 +13 -1
- package/README.md +10 -2
- package/lib/commands/hardis/org/monitor/limits.js +1 -1
- package/lib/commands/hardis/org/monitor/limits.js.map +1 -1
- package/lib/common/utils/index.js +2 -2
- package/lib/common/utils/index.js.map +1 -1
- package/oclif.lock +206 -110
- package/oclif.manifest.json +517 -517
- package/package.json +8 -6
package/oclif.manifest.json
CHANGED
|
@@ -57,12 +57,13 @@
|
|
|
57
57
|
"world:hello"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
-
"hardis:
|
|
60
|
+
"hardis:auth:login": {
|
|
61
61
|
"aliases": [],
|
|
62
62
|
"args": {},
|
|
63
|
-
"description": "\n## Command Behavior\n\n**
|
|
63
|
+
"description": "\n## Command Behavior\n\n**Authenticates to a Salesforce org, primarily designed for CI/CD workflows.**\n\nThis command facilitates secure and automated logins to Salesforce organizations within continuous integration and continuous delivery pipelines. It leverages pre-configured authentication details, ensuring that CI/CD processes can interact with Salesforce without manual intervention.\n\nKey aspects:\n\n- **Configuration-Driven:** It relies on authentication variables and files set up by dedicated configuration commands:\n - For CI/CD repositories: [Configure Org CI Authentication](https://sfdx-hardis.cloudity.com/hardis/project/configure/auth/)\n - For Monitoring repositories: [Configure Org Monitoring](https://sfdx-hardis.cloudity.com/hardis/org/configure/monitoring/)\n- **Technical Org Support:** Supports authentication to a 'technical org' (e.g., for calling Agentforce from another org) by utilizing the `SFDX_AUTH_URL_TECHNICAL_ORG` environment variable. If this variable is set, the command authenticates to this org with the alias `TECHNICAL_ORG`.\n\nTo obtain the `SFDX_AUTH_URL_TECHNICAL_ORG` value, you can run `sf org display --verbose --json` and copy the `sfdxAuthUrl` field from the output.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical flow involves:\n\n- **Flag Parsing:** It parses command-line flags such as `instanceurl`, `devhub`, `scratchorg`, and `debug` to determine the authentication context.\n- **Authentication Hook:** It triggers an internal authentication hook (`this.config.runHook('auth', ...`)) which is responsible for executing the actual authentication logic based on the provided flags (e.g., whether it's a Dev Hub or a scratch org).\n- **Environment Variable Check:** It checks for the presence of `SFDX_AUTH_URL_TECHNICAL_ORG` or `TECHNICAL_ORG_ALIAS` environment variables.\n- **`authOrg` Utility:** If a technical org is configured, it calls the `authOrg` utility function to perform the authentication for that specific org, ensuring it's connected and available for subsequent operations.\n- **Salesforce CLI Integration:** It integrates with the Salesforce CLI's authentication mechanisms to establish and manage org connections.\n</details>\n",
|
|
64
64
|
"examples": [
|
|
65
|
-
"$ sf hardis:
|
|
65
|
+
"$ sf hardis:auth:login",
|
|
66
|
+
"CI=true sf hardis:auth:login"
|
|
66
67
|
],
|
|
67
68
|
"flags": {
|
|
68
69
|
"json": {
|
|
@@ -80,6 +81,28 @@
|
|
|
80
81
|
"multiple": false,
|
|
81
82
|
"type": "option"
|
|
82
83
|
},
|
|
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
|
+
},
|
|
83
106
|
"debug": {
|
|
84
107
|
"char": "d",
|
|
85
108
|
"description": "Activate debug mode (more logs)",
|
|
@@ -103,41 +126,38 @@
|
|
|
103
126
|
},
|
|
104
127
|
"hasDynamicHelp": false,
|
|
105
128
|
"hiddenAliases": [],
|
|
106
|
-
"id": "hardis:
|
|
129
|
+
"id": "hardis:auth:login",
|
|
107
130
|
"pluginAlias": "sfdx-hardis",
|
|
108
131
|
"pluginName": "sfdx-hardis",
|
|
109
132
|
"pluginType": "core",
|
|
110
133
|
"strict": true,
|
|
111
134
|
"enableJsonFlag": true,
|
|
112
|
-
"title": "
|
|
113
|
-
"uiConfig": {
|
|
114
|
-
"hide": true
|
|
115
|
-
},
|
|
135
|
+
"title": "Login",
|
|
116
136
|
"requiresProject": false,
|
|
117
137
|
"isESM": true,
|
|
118
138
|
"relativePath": [
|
|
119
139
|
"lib",
|
|
120
140
|
"commands",
|
|
121
141
|
"hardis",
|
|
122
|
-
"
|
|
123
|
-
"
|
|
142
|
+
"auth",
|
|
143
|
+
"login.js"
|
|
124
144
|
],
|
|
125
145
|
"aliasPermutations": [],
|
|
126
146
|
"permutations": [
|
|
127
|
-
"hardis:
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"hardis:
|
|
131
|
-
"
|
|
132
|
-
"
|
|
147
|
+
"hardis:auth:login",
|
|
148
|
+
"auth:hardis:login",
|
|
149
|
+
"auth:login:hardis",
|
|
150
|
+
"hardis:login:auth",
|
|
151
|
+
"login:hardis:auth",
|
|
152
|
+
"login:auth:hardis"
|
|
133
153
|
]
|
|
134
154
|
},
|
|
135
|
-
"hardis:
|
|
155
|
+
"hardis:cache:clear": {
|
|
136
156
|
"aliases": [],
|
|
137
157
|
"args": {},
|
|
138
|
-
"description": "\n## Command Behavior\n\n**
|
|
158
|
+
"description": "\n## Command Behavior\n\n**Clears the local cache generated by the sfdx-hardis plugin.**\n\nThis command is designed to remove temporary files, stored configurations, and other cached data that sfdx-hardis uses to optimize its operations. Clearing the cache can be beneficial for:\n\n- **Troubleshooting:** Resolving unexpected behavior or inconsistencies.\n- **Disk Space Management:** Freeing up storage on your local machine.\n- **Ensuring Fresh Data:** Guaranteeing that the plugin operates with the most current data and configurations.\n\n## Technical explanations\n\nThe command's technical implementation is straightforward:\n\n- **Direct Function Call:** It directly invokes the `clearCache()` function, which is imported from \buri../../../common/cache/index.js\buri.\n- **Cache Management Logic:** The \buriclearCache()` function encapsulates the logic for identifying and removing the specific files and directories that constitute the sfdx-hardis cache.\n",
|
|
139
159
|
"examples": [
|
|
140
|
-
"$ sf hardis:
|
|
160
|
+
"$ sf hardis:cache:clear"
|
|
141
161
|
],
|
|
142
162
|
"flags": {
|
|
143
163
|
"json": {
|
|
@@ -155,20 +175,6 @@
|
|
|
155
175
|
"multiple": false,
|
|
156
176
|
"type": "option"
|
|
157
177
|
},
|
|
158
|
-
"level": {
|
|
159
|
-
"char": "l",
|
|
160
|
-
"description": "project,branch or user",
|
|
161
|
-
"name": "level",
|
|
162
|
-
"default": "project",
|
|
163
|
-
"hasDynamicHelp": false,
|
|
164
|
-
"multiple": false,
|
|
165
|
-
"options": [
|
|
166
|
-
"project",
|
|
167
|
-
"branch",
|
|
168
|
-
"user"
|
|
169
|
-
],
|
|
170
|
-
"type": "option"
|
|
171
|
-
},
|
|
172
178
|
"debug": {
|
|
173
179
|
"char": "d",
|
|
174
180
|
"description": "Activate debug mode (more logs)",
|
|
@@ -192,39 +198,41 @@
|
|
|
192
198
|
},
|
|
193
199
|
"hasDynamicHelp": false,
|
|
194
200
|
"hiddenAliases": [],
|
|
195
|
-
"id": "hardis:
|
|
201
|
+
"id": "hardis:cache:clear",
|
|
196
202
|
"pluginAlias": "sfdx-hardis",
|
|
197
203
|
"pluginName": "sfdx-hardis",
|
|
198
204
|
"pluginType": "core",
|
|
199
205
|
"strict": true,
|
|
200
206
|
"enableJsonFlag": true,
|
|
201
|
-
"title": "
|
|
207
|
+
"title": "Clear sfdx-hardis cache",
|
|
208
|
+
"uiConfig": {
|
|
209
|
+
"hide": true
|
|
210
|
+
},
|
|
202
211
|
"requiresProject": false,
|
|
203
212
|
"isESM": true,
|
|
204
213
|
"relativePath": [
|
|
205
214
|
"lib",
|
|
206
215
|
"commands",
|
|
207
216
|
"hardis",
|
|
208
|
-
"
|
|
209
|
-
"
|
|
217
|
+
"cache",
|
|
218
|
+
"clear.js"
|
|
210
219
|
],
|
|
211
220
|
"aliasPermutations": [],
|
|
212
221
|
"permutations": [
|
|
213
|
-
"hardis:
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
"hardis:
|
|
217
|
-
"
|
|
218
|
-
"
|
|
222
|
+
"hardis:cache:clear",
|
|
223
|
+
"cache:hardis:clear",
|
|
224
|
+
"cache:clear:hardis",
|
|
225
|
+
"hardis:clear:cache",
|
|
226
|
+
"clear:hardis:cache",
|
|
227
|
+
"clear:cache:hardis"
|
|
219
228
|
]
|
|
220
229
|
},
|
|
221
|
-
"hardis:
|
|
230
|
+
"hardis:config:get": {
|
|
222
231
|
"aliases": [],
|
|
223
232
|
"args": {},
|
|
224
|
-
"description": "\n## Command Behavior\n\n**
|
|
233
|
+
"description": "\n## Command Behavior\n\n**Retrieves and displays the sfdx-hardis configuration for a specified level.**\n\nThis command allows you to inspect the configuration that is currently in effect for your project, which is useful for debugging and understanding how sfdx-hardis will behave.\n\n- **Configuration levels:** It can retrieve configuration from three different levels:\n - **Project:** The configuration defined in the project's `.sfdx-hardis.yml` file.\n - **Branch:** The configuration defined in a branch-specific configuration file (e.g., `.sfdx-hardis.production.yml`).\n - **User:** The global user-level configuration.\n\n## Technical explanations\n\nThe command's logic is straightforward:\n\n- **`getConfig` function:** It calls the `getConfig` utility function, passing the desired configuration level as an argument.\n- **Configuration loading:** The `getConfig` function is responsible for finding the appropriate configuration file, reading its contents, and parsing it as YAML or JSON.\n- **Output:** The retrieved configuration is then displayed to the user as a JSON string.\n",
|
|
225
234
|
"examples": [
|
|
226
|
-
"$ sf hardis:
|
|
227
|
-
"CI=true sf hardis:auth:login"
|
|
235
|
+
"$ sf hardis:project:deploy:sources:metadata"
|
|
228
236
|
],
|
|
229
237
|
"flags": {
|
|
230
238
|
"json": {
|
|
@@ -242,28 +250,20 @@
|
|
|
242
250
|
"multiple": false,
|
|
243
251
|
"type": "option"
|
|
244
252
|
},
|
|
245
|
-
"
|
|
246
|
-
"char": "
|
|
247
|
-
"description": "
|
|
248
|
-
"name": "
|
|
253
|
+
"level": {
|
|
254
|
+
"char": "l",
|
|
255
|
+
"description": "project,branch or user",
|
|
256
|
+
"name": "level",
|
|
257
|
+
"default": "project",
|
|
249
258
|
"hasDynamicHelp": false,
|
|
250
259
|
"multiple": false,
|
|
260
|
+
"options": [
|
|
261
|
+
"project",
|
|
262
|
+
"branch",
|
|
263
|
+
"user"
|
|
264
|
+
],
|
|
251
265
|
"type": "option"
|
|
252
266
|
},
|
|
253
|
-
"devhub": {
|
|
254
|
-
"char": "h",
|
|
255
|
-
"description": "Also connect associated DevHub",
|
|
256
|
-
"name": "devhub",
|
|
257
|
-
"allowNo": false,
|
|
258
|
-
"type": "boolean"
|
|
259
|
-
},
|
|
260
|
-
"scratchorg": {
|
|
261
|
-
"char": "s",
|
|
262
|
-
"description": "Scratch org",
|
|
263
|
-
"name": "scratchorg",
|
|
264
|
-
"allowNo": false,
|
|
265
|
-
"type": "boolean"
|
|
266
|
-
},
|
|
267
267
|
"debug": {
|
|
268
268
|
"char": "d",
|
|
269
269
|
"description": "Activate debug mode (more logs)",
|
|
@@ -287,30 +287,30 @@
|
|
|
287
287
|
},
|
|
288
288
|
"hasDynamicHelp": false,
|
|
289
289
|
"hiddenAliases": [],
|
|
290
|
-
"id": "hardis:
|
|
290
|
+
"id": "hardis:config:get",
|
|
291
291
|
"pluginAlias": "sfdx-hardis",
|
|
292
292
|
"pluginName": "sfdx-hardis",
|
|
293
293
|
"pluginType": "core",
|
|
294
294
|
"strict": true,
|
|
295
295
|
"enableJsonFlag": true,
|
|
296
|
-
"title": "
|
|
296
|
+
"title": "Deploy metadata sources to org",
|
|
297
297
|
"requiresProject": false,
|
|
298
298
|
"isESM": true,
|
|
299
299
|
"relativePath": [
|
|
300
300
|
"lib",
|
|
301
301
|
"commands",
|
|
302
302
|
"hardis",
|
|
303
|
-
"
|
|
304
|
-
"
|
|
303
|
+
"config",
|
|
304
|
+
"get.js"
|
|
305
305
|
],
|
|
306
306
|
"aliasPermutations": [],
|
|
307
307
|
"permutations": [
|
|
308
|
-
"hardis:
|
|
309
|
-
"
|
|
310
|
-
"
|
|
311
|
-
"hardis:
|
|
312
|
-
"
|
|
313
|
-
"
|
|
308
|
+
"hardis:config:get",
|
|
309
|
+
"config:hardis:get",
|
|
310
|
+
"config:get:hardis",
|
|
311
|
+
"hardis:get:config",
|
|
312
|
+
"get:hardis:config",
|
|
313
|
+
"get:config:hardis"
|
|
314
314
|
]
|
|
315
315
|
},
|
|
316
316
|
"hardis:doc:fieldusage": {
|
|
@@ -5538,12 +5538,15 @@
|
|
|
5538
5538
|
"import:data:org:hardis"
|
|
5539
5539
|
]
|
|
5540
5540
|
},
|
|
5541
|
-
"hardis:org:
|
|
5541
|
+
"hardis:org:diagnose:audittrail": {
|
|
5542
5542
|
"aliases": [],
|
|
5543
5543
|
"args": {},
|
|
5544
|
-
"description": "
|
|
5544
|
+
"description": "Export Audit trail into a CSV file with selected criteria, and highlight suspect actions\n\nAlso detects updates of Custom Settings values (disable by defining `SKIP_AUDIT_TRAIL_CUSTOM_SETTINGS=true`)\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- External Objects\n - xdsEncryptedFieldChange\n- Groups\n - groupMembership\n- Holidays\n - holiday_insert\n- Inbox mobile and legacy desktop apps\n - enableSIQUserNonEAC\n - siqUserAcceptedTOS\n- Manage Users\n - activateduser\n - createduser\n - changedcommunitynickname\n - changedemail\n - changedfederationid\n - changedpassword\n - changedinteractionuseroffon\n - changedinteractionuseronoff\n - changedmarketinguseroffon\n - changedmarketinguseronoff\n - changedofflineuseroffon\n - changedprofileforuserstdtostd\n - changedprofileforuser\n - changedprofileforusercusttostd\n - changedprofileforuserstdtocust\n - changedroleforusertonone\n - changedroleforuser\n - changedroleforuserfromnone\n - changedUserAdminVerifiedStatusVerified\n - changedUserEmailVerifiedStatusUnverified\n - changedUserEmailVerifiedStatusVerified\n - changedknowledgeuseroffon\n - changedsfcontentuseroffon\n - changedsupportuseroffon\n - changedusername\n - changedUserPhoneNumber\n - changedUserPhoneVerifiedStatusUnverified\n - changedUserPhoneVerifiedStatusVerified\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",
|
|
5545
5545
|
"examples": [
|
|
5546
|
-
"$ sf hardis:org:
|
|
5546
|
+
"$ sf hardis:org:diagnose:audittrail",
|
|
5547
|
+
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
|
|
5548
|
+
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
|
|
5549
|
+
"$ sf hardis:org:diagnose:audittrail --lastndays 5"
|
|
5547
5550
|
],
|
|
5548
5551
|
"flags": {
|
|
5549
5552
|
"json": {
|
|
@@ -5561,48 +5564,30 @@
|
|
|
5561
5564
|
"multiple": false,
|
|
5562
5565
|
"type": "option"
|
|
5563
5566
|
},
|
|
5564
|
-
"
|
|
5565
|
-
"char": "
|
|
5566
|
-
"description": "
|
|
5567
|
-
"name": "
|
|
5568
|
-
"hasDynamicHelp": false,
|
|
5569
|
-
"multiple": false,
|
|
5570
|
-
"type": "option"
|
|
5571
|
-
},
|
|
5572
|
-
"chunksize": {
|
|
5573
|
-
"char": "c",
|
|
5574
|
-
"description": "Number of records to add in a chunk before it is processed",
|
|
5575
|
-
"name": "chunksize",
|
|
5576
|
-
"default": 1000,
|
|
5567
|
+
"excludeusers": {
|
|
5568
|
+
"char": "e",
|
|
5569
|
+
"description": "Comma-separated list of usernames to exclude",
|
|
5570
|
+
"name": "excludeusers",
|
|
5577
5571
|
"hasDynamicHelp": false,
|
|
5578
5572
|
"multiple": false,
|
|
5579
5573
|
"type": "option"
|
|
5580
5574
|
},
|
|
5581
|
-
"
|
|
5575
|
+
"lastndays": {
|
|
5582
5576
|
"char": "t",
|
|
5583
|
-
"description": "
|
|
5584
|
-
"name": "
|
|
5585
|
-
"default": 300000,
|
|
5577
|
+
"description": "Number of days to extract from today (included)",
|
|
5578
|
+
"name": "lastndays",
|
|
5586
5579
|
"hasDynamicHelp": false,
|
|
5587
5580
|
"multiple": false,
|
|
5588
5581
|
"type": "option"
|
|
5589
5582
|
},
|
|
5590
|
-
"
|
|
5591
|
-
"char": "
|
|
5592
|
-
"description": "
|
|
5593
|
-
"name": "
|
|
5594
|
-
"default": 0,
|
|
5583
|
+
"outputfile": {
|
|
5584
|
+
"char": "f",
|
|
5585
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
5586
|
+
"name": "outputfile",
|
|
5595
5587
|
"hasDynamicHelp": false,
|
|
5596
5588
|
"multiple": false,
|
|
5597
5589
|
"type": "option"
|
|
5598
5590
|
},
|
|
5599
|
-
"resume": {
|
|
5600
|
-
"char": "r",
|
|
5601
|
-
"description": "Resume previous export by checking existing files (default in CI)",
|
|
5602
|
-
"name": "resume",
|
|
5603
|
-
"allowNo": false,
|
|
5604
|
-
"type": "boolean"
|
|
5605
|
-
},
|
|
5606
5591
|
"debug": {
|
|
5607
5592
|
"char": "d",
|
|
5608
5593
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5641,13 +5626,13 @@
|
|
|
5641
5626
|
},
|
|
5642
5627
|
"hasDynamicHelp": true,
|
|
5643
5628
|
"hiddenAliases": [],
|
|
5644
|
-
"id": "hardis:org:
|
|
5629
|
+
"id": "hardis:org:diagnose:audittrail",
|
|
5645
5630
|
"pluginAlias": "sfdx-hardis",
|
|
5646
5631
|
"pluginName": "sfdx-hardis",
|
|
5647
5632
|
"pluginType": "core",
|
|
5648
5633
|
"strict": true,
|
|
5649
5634
|
"enableJsonFlag": true,
|
|
5650
|
-
"title": "
|
|
5635
|
+
"title": "Diagnose content of Setup Audit Trail",
|
|
5651
5636
|
"requiresProject": false,
|
|
5652
5637
|
"isESM": true,
|
|
5653
5638
|
"relativePath": [
|
|
@@ -5655,289 +5640,35 @@
|
|
|
5655
5640
|
"commands",
|
|
5656
5641
|
"hardis",
|
|
5657
5642
|
"org",
|
|
5658
|
-
"
|
|
5659
|
-
"
|
|
5643
|
+
"diagnose",
|
|
5644
|
+
"audittrail.js"
|
|
5660
5645
|
],
|
|
5661
5646
|
"aliasPermutations": [],
|
|
5662
5647
|
"permutations": [
|
|
5663
|
-
"hardis:org:
|
|
5664
|
-
"org:hardis:
|
|
5665
|
-
"org:
|
|
5666
|
-
"org:
|
|
5667
|
-
"hardis:
|
|
5668
|
-
"
|
|
5669
|
-
"
|
|
5670
|
-
"
|
|
5671
|
-
"hardis:
|
|
5672
|
-
"
|
|
5673
|
-
"
|
|
5674
|
-
"
|
|
5675
|
-
"hardis:org:
|
|
5676
|
-
"org:hardis:
|
|
5677
|
-
"org:
|
|
5678
|
-
"org:
|
|
5679
|
-
"hardis:
|
|
5680
|
-
"
|
|
5681
|
-
"
|
|
5682
|
-
"
|
|
5683
|
-
"hardis:
|
|
5684
|
-
"
|
|
5685
|
-
"
|
|
5686
|
-
"
|
|
5687
|
-
]
|
|
5688
|
-
},
|
|
5689
|
-
"hardis:org:files:import": {
|
|
5690
|
-
"aliases": [],
|
|
5691
|
-
"args": {},
|
|
5692
|
-
"description": "\nThis command facilitates the mass upload of files into Salesforce, allowing you to populate records with associated documents, images, or other file types. It's a crucial tool for data migration, content seeding, or synchronizing external file repositories with Salesforce.\n\nKey functionalities:\n\n- **Configuration-Driven Import:** Relies on an `export.json` file within a designated file export project (created using `sf hardis:org:configure:files`) to determine which files to import and how they should be associated with Salesforce records.\n- **Interactive Project Selection:** If the file import project path is not provided via the `--path` flag, it interactively prompts the user to select one.\n- **Overwrite Option:** The `--overwrite` flag allows you to replace existing files in Salesforce with local versions that have the same name. Be aware that this option doubles the number of API calls used.\n- **Support for ContentVersion and Attachment:** Handles both modern Salesforce Files (ContentVersion) and older Attachments.\n\nSee this article for how to export files, which is often a prerequisite for importing:\n\n[](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **FilesImporter Class:** The core logic is encapsulated within the `FilesImporter` class, which orchestrates the entire import process.\n- **File System Scan:** Scans the local file system within the configured project directory to identify files for import.\n- **Salesforce API Interaction:** Uses Salesforce APIs (e.g., ContentVersion, Attachment) to upload files and associate them with records.\n- **Configuration Loading:** Reads the `export.json` file to get the import configuration, including SOQL queries to identify parent records for file association.\n- **Interactive Prompts:** Uses `selectFilesWorkspace` to allow the user to choose a file import project and `prompts` for confirming the overwrite behavior.\n- **Error Handling:** Includes mechanisms to handle potential errors during the import process, such as API limits or file upload failures.\n</details>\n",
|
|
5693
|
-
"examples": [
|
|
5694
|
-
"$ sf hardis:org:files:import"
|
|
5695
|
-
],
|
|
5696
|
-
"flags": {
|
|
5697
|
-
"json": {
|
|
5698
|
-
"description": "Format output as json.",
|
|
5699
|
-
"helpGroup": "GLOBAL",
|
|
5700
|
-
"name": "json",
|
|
5701
|
-
"allowNo": false,
|
|
5702
|
-
"type": "boolean"
|
|
5703
|
-
},
|
|
5704
|
-
"flags-dir": {
|
|
5705
|
-
"helpGroup": "GLOBAL",
|
|
5706
|
-
"name": "flags-dir",
|
|
5707
|
-
"summary": "Import flag values from a directory.",
|
|
5708
|
-
"hasDynamicHelp": false,
|
|
5709
|
-
"multiple": false,
|
|
5710
|
-
"type": "option"
|
|
5711
|
-
},
|
|
5712
|
-
"path": {
|
|
5713
|
-
"char": "p",
|
|
5714
|
-
"description": "Path to the file export project",
|
|
5715
|
-
"name": "path",
|
|
5716
|
-
"hasDynamicHelp": false,
|
|
5717
|
-
"multiple": false,
|
|
5718
|
-
"type": "option"
|
|
5719
|
-
},
|
|
5720
|
-
"overwrite": {
|
|
5721
|
-
"char": "f",
|
|
5722
|
-
"description": "Override existing files (doubles the number of API calls)",
|
|
5723
|
-
"name": "overwrite",
|
|
5724
|
-
"allowNo": false,
|
|
5725
|
-
"type": "boolean"
|
|
5726
|
-
},
|
|
5727
|
-
"debug": {
|
|
5728
|
-
"char": "d",
|
|
5729
|
-
"description": "Activate debug mode (more logs)",
|
|
5730
|
-
"name": "debug",
|
|
5731
|
-
"allowNo": false,
|
|
5732
|
-
"type": "boolean"
|
|
5733
|
-
},
|
|
5734
|
-
"websocket": {
|
|
5735
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
5736
|
-
"name": "websocket",
|
|
5737
|
-
"hasDynamicHelp": false,
|
|
5738
|
-
"multiple": false,
|
|
5739
|
-
"type": "option"
|
|
5740
|
-
},
|
|
5741
|
-
"skipauth": {
|
|
5742
|
-
"description": "Skip authentication check when a default username is required",
|
|
5743
|
-
"name": "skipauth",
|
|
5744
|
-
"allowNo": false,
|
|
5745
|
-
"type": "boolean"
|
|
5746
|
-
},
|
|
5747
|
-
"target-org": {
|
|
5748
|
-
"aliases": [
|
|
5749
|
-
"targetusername",
|
|
5750
|
-
"u"
|
|
5751
|
-
],
|
|
5752
|
-
"char": "o",
|
|
5753
|
-
"deprecateAliases": true,
|
|
5754
|
-
"name": "target-org",
|
|
5755
|
-
"noCacheDefault": true,
|
|
5756
|
-
"required": true,
|
|
5757
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5758
|
-
"hasDynamicHelp": true,
|
|
5759
|
-
"multiple": false,
|
|
5760
|
-
"type": "option"
|
|
5761
|
-
}
|
|
5762
|
-
},
|
|
5763
|
-
"hasDynamicHelp": true,
|
|
5764
|
-
"hiddenAliases": [],
|
|
5765
|
-
"id": "hardis:org:files:import",
|
|
5766
|
-
"pluginAlias": "sfdx-hardis",
|
|
5767
|
-
"pluginName": "sfdx-hardis",
|
|
5768
|
-
"pluginType": "core",
|
|
5769
|
-
"strict": true,
|
|
5770
|
-
"enableJsonFlag": true,
|
|
5771
|
-
"title": "Import files",
|
|
5772
|
-
"requiresProject": false,
|
|
5773
|
-
"isESM": true,
|
|
5774
|
-
"relativePath": [
|
|
5775
|
-
"lib",
|
|
5776
|
-
"commands",
|
|
5777
|
-
"hardis",
|
|
5778
|
-
"org",
|
|
5779
|
-
"files",
|
|
5780
|
-
"import.js"
|
|
5781
|
-
],
|
|
5782
|
-
"aliasPermutations": [],
|
|
5783
|
-
"permutations": [
|
|
5784
|
-
"hardis:org:files:import",
|
|
5785
|
-
"org:hardis:files:import",
|
|
5786
|
-
"org:files:hardis:import",
|
|
5787
|
-
"org:files:import:hardis",
|
|
5788
|
-
"hardis:files:org:import",
|
|
5789
|
-
"files:hardis:org:import",
|
|
5790
|
-
"files:org:hardis:import",
|
|
5791
|
-
"files:org:import:hardis",
|
|
5792
|
-
"hardis:files:import:org",
|
|
5793
|
-
"files:hardis:import:org",
|
|
5794
|
-
"files:import:hardis:org",
|
|
5795
|
-
"files:import:org:hardis",
|
|
5796
|
-
"hardis:org:import:files",
|
|
5797
|
-
"org:hardis:import:files",
|
|
5798
|
-
"org:import:hardis:files",
|
|
5799
|
-
"org:import:files:hardis",
|
|
5800
|
-
"hardis:import:org:files",
|
|
5801
|
-
"import:hardis:org:files",
|
|
5802
|
-
"import:org:hardis:files",
|
|
5803
|
-
"import:org:files:hardis",
|
|
5804
|
-
"hardis:import:files:org",
|
|
5805
|
-
"import:hardis:files:org",
|
|
5806
|
-
"import:files:hardis:org",
|
|
5807
|
-
"import:files:org:hardis"
|
|
5808
|
-
]
|
|
5809
|
-
},
|
|
5810
|
-
"hardis:org:diagnose:audittrail": {
|
|
5811
|
-
"aliases": [],
|
|
5812
|
-
"args": {},
|
|
5813
|
-
"description": "Export Audit trail into a CSV file with selected criteria, and highlight suspect actions\n\nAlso detects updates of Custom Settings values (disable by defining `SKIP_AUDIT_TRAIL_CUSTOM_SETTINGS=true`)\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- External Objects\n - xdsEncryptedFieldChange\n- Groups\n - groupMembership\n- Holidays\n - holiday_insert\n- Inbox mobile and legacy desktop apps\n - enableSIQUserNonEAC\n - siqUserAcceptedTOS\n- Manage Users\n - activateduser\n - createduser\n - changedcommunitynickname\n - changedemail\n - changedfederationid\n - changedpassword\n - changedinteractionuseroffon\n - changedinteractionuseronoff\n - changedmarketinguseroffon\n - changedmarketinguseronoff\n - changedofflineuseroffon\n - changedprofileforuserstdtostd\n - changedprofileforuser\n - changedprofileforusercusttostd\n - changedprofileforuserstdtocust\n - changedroleforusertonone\n - changedroleforuser\n - changedroleforuserfromnone\n - changedUserAdminVerifiedStatusVerified\n - changedUserEmailVerifiedStatusUnverified\n - changedUserEmailVerifiedStatusVerified\n - changedknowledgeuseroffon\n - changedsfcontentuseroffon\n - changedsupportuseroffon\n - changedusername\n - changedUserPhoneNumber\n - changedUserPhoneVerifiedStatusUnverified\n - changedUserPhoneVerifiedStatusVerified\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",
|
|
5814
|
-
"examples": [
|
|
5815
|
-
"$ sf hardis:org:diagnose:audittrail",
|
|
5816
|
-
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
|
|
5817
|
-
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
|
|
5818
|
-
"$ sf hardis:org:diagnose:audittrail --lastndays 5"
|
|
5819
|
-
],
|
|
5820
|
-
"flags": {
|
|
5821
|
-
"json": {
|
|
5822
|
-
"description": "Format output as json.",
|
|
5823
|
-
"helpGroup": "GLOBAL",
|
|
5824
|
-
"name": "json",
|
|
5825
|
-
"allowNo": false,
|
|
5826
|
-
"type": "boolean"
|
|
5827
|
-
},
|
|
5828
|
-
"flags-dir": {
|
|
5829
|
-
"helpGroup": "GLOBAL",
|
|
5830
|
-
"name": "flags-dir",
|
|
5831
|
-
"summary": "Import flag values from a directory.",
|
|
5832
|
-
"hasDynamicHelp": false,
|
|
5833
|
-
"multiple": false,
|
|
5834
|
-
"type": "option"
|
|
5835
|
-
},
|
|
5836
|
-
"excludeusers": {
|
|
5837
|
-
"char": "e",
|
|
5838
|
-
"description": "Comma-separated list of usernames to exclude",
|
|
5839
|
-
"name": "excludeusers",
|
|
5840
|
-
"hasDynamicHelp": false,
|
|
5841
|
-
"multiple": false,
|
|
5842
|
-
"type": "option"
|
|
5843
|
-
},
|
|
5844
|
-
"lastndays": {
|
|
5845
|
-
"char": "t",
|
|
5846
|
-
"description": "Number of days to extract from today (included)",
|
|
5847
|
-
"name": "lastndays",
|
|
5848
|
-
"hasDynamicHelp": false,
|
|
5849
|
-
"multiple": false,
|
|
5850
|
-
"type": "option"
|
|
5851
|
-
},
|
|
5852
|
-
"outputfile": {
|
|
5853
|
-
"char": "f",
|
|
5854
|
-
"description": "Force the path and name of output report file. Must end with .csv",
|
|
5855
|
-
"name": "outputfile",
|
|
5856
|
-
"hasDynamicHelp": false,
|
|
5857
|
-
"multiple": false,
|
|
5858
|
-
"type": "option"
|
|
5859
|
-
},
|
|
5860
|
-
"debug": {
|
|
5861
|
-
"char": "d",
|
|
5862
|
-
"description": "Activate debug mode (more logs)",
|
|
5863
|
-
"name": "debug",
|
|
5864
|
-
"allowNo": false,
|
|
5865
|
-
"type": "boolean"
|
|
5866
|
-
},
|
|
5867
|
-
"websocket": {
|
|
5868
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
5869
|
-
"name": "websocket",
|
|
5870
|
-
"hasDynamicHelp": false,
|
|
5871
|
-
"multiple": false,
|
|
5872
|
-
"type": "option"
|
|
5873
|
-
},
|
|
5874
|
-
"skipauth": {
|
|
5875
|
-
"description": "Skip authentication check when a default username is required",
|
|
5876
|
-
"name": "skipauth",
|
|
5877
|
-
"allowNo": false,
|
|
5878
|
-
"type": "boolean"
|
|
5879
|
-
},
|
|
5880
|
-
"target-org": {
|
|
5881
|
-
"aliases": [
|
|
5882
|
-
"targetusername",
|
|
5883
|
-
"u"
|
|
5884
|
-
],
|
|
5885
|
-
"char": "o",
|
|
5886
|
-
"deprecateAliases": true,
|
|
5887
|
-
"name": "target-org",
|
|
5888
|
-
"noCacheDefault": true,
|
|
5889
|
-
"required": true,
|
|
5890
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5891
|
-
"hasDynamicHelp": true,
|
|
5892
|
-
"multiple": false,
|
|
5893
|
-
"type": "option"
|
|
5894
|
-
}
|
|
5895
|
-
},
|
|
5896
|
-
"hasDynamicHelp": true,
|
|
5897
|
-
"hiddenAliases": [],
|
|
5898
|
-
"id": "hardis:org:diagnose:audittrail",
|
|
5899
|
-
"pluginAlias": "sfdx-hardis",
|
|
5900
|
-
"pluginName": "sfdx-hardis",
|
|
5901
|
-
"pluginType": "core",
|
|
5902
|
-
"strict": true,
|
|
5903
|
-
"enableJsonFlag": true,
|
|
5904
|
-
"title": "Diagnose content of Setup Audit Trail",
|
|
5905
|
-
"requiresProject": false,
|
|
5906
|
-
"isESM": true,
|
|
5907
|
-
"relativePath": [
|
|
5908
|
-
"lib",
|
|
5909
|
-
"commands",
|
|
5910
|
-
"hardis",
|
|
5911
|
-
"org",
|
|
5912
|
-
"diagnose",
|
|
5913
|
-
"audittrail.js"
|
|
5914
|
-
],
|
|
5915
|
-
"aliasPermutations": [],
|
|
5916
|
-
"permutations": [
|
|
5917
|
-
"hardis:org:diagnose:audittrail",
|
|
5918
|
-
"org:hardis:diagnose:audittrail",
|
|
5919
|
-
"org:diagnose:hardis:audittrail",
|
|
5920
|
-
"org:diagnose:audittrail:hardis",
|
|
5921
|
-
"hardis:diagnose:org:audittrail",
|
|
5922
|
-
"diagnose:hardis:org:audittrail",
|
|
5923
|
-
"diagnose:org:hardis:audittrail",
|
|
5924
|
-
"diagnose:org:audittrail:hardis",
|
|
5925
|
-
"hardis:diagnose:audittrail:org",
|
|
5926
|
-
"diagnose:hardis:audittrail:org",
|
|
5927
|
-
"diagnose:audittrail:hardis:org",
|
|
5928
|
-
"diagnose:audittrail:org:hardis",
|
|
5929
|
-
"hardis:org:audittrail:diagnose",
|
|
5930
|
-
"org:hardis:audittrail:diagnose",
|
|
5931
|
-
"org:audittrail:hardis:diagnose",
|
|
5932
|
-
"org:audittrail:diagnose:hardis",
|
|
5933
|
-
"hardis:audittrail:org:diagnose",
|
|
5934
|
-
"audittrail:hardis:org:diagnose",
|
|
5935
|
-
"audittrail:org:hardis:diagnose",
|
|
5936
|
-
"audittrail:org:diagnose:hardis",
|
|
5937
|
-
"hardis:audittrail:diagnose:org",
|
|
5938
|
-
"audittrail:hardis:diagnose:org",
|
|
5939
|
-
"audittrail:diagnose:hardis:org",
|
|
5940
|
-
"audittrail:diagnose:org:hardis"
|
|
5648
|
+
"hardis:org:diagnose:audittrail",
|
|
5649
|
+
"org:hardis:diagnose:audittrail",
|
|
5650
|
+
"org:diagnose:hardis:audittrail",
|
|
5651
|
+
"org:diagnose:audittrail:hardis",
|
|
5652
|
+
"hardis:diagnose:org:audittrail",
|
|
5653
|
+
"diagnose:hardis:org:audittrail",
|
|
5654
|
+
"diagnose:org:hardis:audittrail",
|
|
5655
|
+
"diagnose:org:audittrail:hardis",
|
|
5656
|
+
"hardis:diagnose:audittrail:org",
|
|
5657
|
+
"diagnose:hardis:audittrail:org",
|
|
5658
|
+
"diagnose:audittrail:hardis:org",
|
|
5659
|
+
"diagnose:audittrail:org:hardis",
|
|
5660
|
+
"hardis:org:audittrail:diagnose",
|
|
5661
|
+
"org:hardis:audittrail:diagnose",
|
|
5662
|
+
"org:audittrail:hardis:diagnose",
|
|
5663
|
+
"org:audittrail:diagnose:hardis",
|
|
5664
|
+
"hardis:audittrail:org:diagnose",
|
|
5665
|
+
"audittrail:hardis:org:diagnose",
|
|
5666
|
+
"audittrail:org:hardis:diagnose",
|
|
5667
|
+
"audittrail:org:diagnose:hardis",
|
|
5668
|
+
"hardis:audittrail:diagnose:org",
|
|
5669
|
+
"audittrail:hardis:diagnose:org",
|
|
5670
|
+
"audittrail:diagnose:hardis:org",
|
|
5671
|
+
"audittrail:diagnose:org:hardis"
|
|
5941
5672
|
]
|
|
5942
5673
|
},
|
|
5943
5674
|
"hardis:org:diagnose:instanceupgrade": {
|
|
@@ -7044,30 +6775,299 @@
|
|
|
7044
6775
|
],
|
|
7045
6776
|
"aliasPermutations": [],
|
|
7046
6777
|
"permutations": [
|
|
7047
|
-
"hardis:org:diagnose:unusedusers",
|
|
7048
|
-
"org:hardis:diagnose:unusedusers",
|
|
7049
|
-
"org:diagnose:hardis:unusedusers",
|
|
7050
|
-
"org:diagnose:unusedusers:hardis",
|
|
7051
|
-
"hardis:diagnose:org:unusedusers",
|
|
7052
|
-
"diagnose:hardis:org:unusedusers",
|
|
7053
|
-
"diagnose:org:hardis:unusedusers",
|
|
7054
|
-
"diagnose:org:unusedusers:hardis",
|
|
7055
|
-
"hardis:diagnose:unusedusers:org",
|
|
7056
|
-
"diagnose:hardis:unusedusers:org",
|
|
7057
|
-
"diagnose:unusedusers:hardis:org",
|
|
7058
|
-
"diagnose:unusedusers:org:hardis",
|
|
7059
|
-
"hardis:org:unusedusers:diagnose",
|
|
7060
|
-
"org:hardis:unusedusers:diagnose",
|
|
7061
|
-
"org:unusedusers:hardis:diagnose",
|
|
7062
|
-
"org:unusedusers:diagnose:hardis",
|
|
7063
|
-
"hardis:unusedusers:org:diagnose",
|
|
7064
|
-
"unusedusers:hardis:org:diagnose",
|
|
7065
|
-
"unusedusers:org:hardis:diagnose",
|
|
7066
|
-
"unusedusers:org:diagnose:hardis",
|
|
7067
|
-
"hardis:unusedusers:diagnose:org",
|
|
7068
|
-
"unusedusers:hardis:diagnose:org",
|
|
7069
|
-
"unusedusers:diagnose:hardis:org",
|
|
7070
|
-
"unusedusers:diagnose:org:hardis"
|
|
6778
|
+
"hardis:org:diagnose:unusedusers",
|
|
6779
|
+
"org:hardis:diagnose:unusedusers",
|
|
6780
|
+
"org:diagnose:hardis:unusedusers",
|
|
6781
|
+
"org:diagnose:unusedusers:hardis",
|
|
6782
|
+
"hardis:diagnose:org:unusedusers",
|
|
6783
|
+
"diagnose:hardis:org:unusedusers",
|
|
6784
|
+
"diagnose:org:hardis:unusedusers",
|
|
6785
|
+
"diagnose:org:unusedusers:hardis",
|
|
6786
|
+
"hardis:diagnose:unusedusers:org",
|
|
6787
|
+
"diagnose:hardis:unusedusers:org",
|
|
6788
|
+
"diagnose:unusedusers:hardis:org",
|
|
6789
|
+
"diagnose:unusedusers:org:hardis",
|
|
6790
|
+
"hardis:org:unusedusers:diagnose",
|
|
6791
|
+
"org:hardis:unusedusers:diagnose",
|
|
6792
|
+
"org:unusedusers:hardis:diagnose",
|
|
6793
|
+
"org:unusedusers:diagnose:hardis",
|
|
6794
|
+
"hardis:unusedusers:org:diagnose",
|
|
6795
|
+
"unusedusers:hardis:org:diagnose",
|
|
6796
|
+
"unusedusers:org:hardis:diagnose",
|
|
6797
|
+
"unusedusers:org:diagnose:hardis",
|
|
6798
|
+
"hardis:unusedusers:diagnose:org",
|
|
6799
|
+
"unusedusers:hardis:diagnose:org",
|
|
6800
|
+
"unusedusers:diagnose:hardis:org",
|
|
6801
|
+
"unusedusers:diagnose:org:hardis"
|
|
6802
|
+
]
|
|
6803
|
+
},
|
|
6804
|
+
"hardis:org:files:export": {
|
|
6805
|
+
"aliases": [],
|
|
6806
|
+
"args": {},
|
|
6807
|
+
"description": "\n## Command Behavior\n\n**Exports file attachments (ContentVersion, Attachment) from a Salesforce org based on a predefined configuration.**\n\nThis command enables the mass download of files associated with Salesforce records, providing a robust solution for backing up files, migrating them to other systems, or integrating them with external document management solutions.\n\nKey functionalities:\n\n- **Configuration-Driven Export:** Relies on an `export.json` file within a designated file export project to define the export criteria, including the SOQL query for parent records, file types to export, output naming conventions, and file size filtering.\n- **File Size Filtering:** Supports minimum file size filtering via the `fileSizeMin` configuration parameter (in KB). Files smaller than the specified size will be skipped during export.\n- **File Validation:** After downloading each file, validates the integrity by:\n - **Checksum Validation:** For ContentVersion files, compares MD5 checksum with Salesforce's stored checksum\n - **Size Validation:** For both ContentVersion and Attachment files, verifies actual file size matches expected size\n - **Status Tracking:** Files are categorized with specific statuses: `success` (valid files), `failed` (download errors), `skipped` (filtered files), `invalid` (downloaded but failed validation)\n - All validation results are logged in the CSV export log for audit purposes\n- **Resume/Restart Capability:** \n - **Resume Mode:** When `--resume` flag is used (default in CI environments), checks existing downloaded files for validity. Valid files are skipped, invalid files are re-downloaded.\n - **Restart Mode:** When resume is disabled, clears the output folder and starts a fresh export.\n - **Interactive Mode:** When existing files are found and `--resume` is not explicitly specified (non-CI environments), prompts the user to choose between resume or restart.\n- **Interactive Project Selection:** If the file export project path is not provided via the `--path` flag, it interactively prompts the user to select one.\n- **Configurable Export Options:** Allows overriding default export settings such as `chunksize` (number of records processed in a batch), `polltimeout` (timeout for Bulk API calls), and `startchunknumber` (to resume a failed export).\n- **Support for ContentVersion and Attachment:** Handles both modern Salesforce Files (ContentVersion) and older Attachments.\n\nSee this article for a practical example:\n\n[](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **FilesExporter Class:** The core logic is encapsulated within the `FilesExporter` class, which orchestrates the entire export process.\n- **SOQL Queries (Bulk API):** It uses Salesforce Bulk API queries to efficiently retrieve large volumes of parent record IDs and file metadata, including checksums and file sizes.\n- **File Download:** Downloads the actual file content from Salesforce.\n- **File Validation:** After each successful download, validates file integrity by comparing checksums (ContentVersion) and file sizes (both ContentVersion and Attachment) against Salesforce metadata.\n- **Resume Logic:** In resume mode, checks for existing files before downloading, validates their integrity, and only re-downloads invalid or missing files. This enables efficient recovery from interrupted exports.\n- **File System Operations:** Writes the downloaded files to the local file system, organizing them into folders based on the configured naming conventions.\n- **Configuration Loading:** Reads the `export.json` file to get the export configuration. It also allows for interactive overriding of these settings.\n- **Interactive Prompts:** Uses `selectFilesWorkspace` to allow the user to choose a file export project, `promptFilesExportConfiguration` for customizing export options, and prompts for resume/restart choice when existing files are found.\n- **Error Handling:** Includes mechanisms to handle potential errors during the export process, such as network issues, API limits, and file validation failures. Each file is assigned a specific status (`success`, `failed`, `skipped`, `invalid`) for comprehensive tracking and troubleshooting.\n</details>\n",
|
|
6808
|
+
"examples": [
|
|
6809
|
+
"$ sf hardis:org:files:export"
|
|
6810
|
+
],
|
|
6811
|
+
"flags": {
|
|
6812
|
+
"json": {
|
|
6813
|
+
"description": "Format output as json.",
|
|
6814
|
+
"helpGroup": "GLOBAL",
|
|
6815
|
+
"name": "json",
|
|
6816
|
+
"allowNo": false,
|
|
6817
|
+
"type": "boolean"
|
|
6818
|
+
},
|
|
6819
|
+
"flags-dir": {
|
|
6820
|
+
"helpGroup": "GLOBAL",
|
|
6821
|
+
"name": "flags-dir",
|
|
6822
|
+
"summary": "Import flag values from a directory.",
|
|
6823
|
+
"hasDynamicHelp": false,
|
|
6824
|
+
"multiple": false,
|
|
6825
|
+
"type": "option"
|
|
6826
|
+
},
|
|
6827
|
+
"path": {
|
|
6828
|
+
"char": "p",
|
|
6829
|
+
"description": "Path to the file export project",
|
|
6830
|
+
"name": "path",
|
|
6831
|
+
"hasDynamicHelp": false,
|
|
6832
|
+
"multiple": false,
|
|
6833
|
+
"type": "option"
|
|
6834
|
+
},
|
|
6835
|
+
"chunksize": {
|
|
6836
|
+
"char": "c",
|
|
6837
|
+
"description": "Number of records to add in a chunk before it is processed",
|
|
6838
|
+
"name": "chunksize",
|
|
6839
|
+
"default": 1000,
|
|
6840
|
+
"hasDynamicHelp": false,
|
|
6841
|
+
"multiple": false,
|
|
6842
|
+
"type": "option"
|
|
6843
|
+
},
|
|
6844
|
+
"polltimeout": {
|
|
6845
|
+
"char": "t",
|
|
6846
|
+
"description": "Timeout in MS for Bulk API calls",
|
|
6847
|
+
"name": "polltimeout",
|
|
6848
|
+
"default": 300000,
|
|
6849
|
+
"hasDynamicHelp": false,
|
|
6850
|
+
"multiple": false,
|
|
6851
|
+
"type": "option"
|
|
6852
|
+
},
|
|
6853
|
+
"startchunknumber": {
|
|
6854
|
+
"char": "s",
|
|
6855
|
+
"description": "Chunk number to start from",
|
|
6856
|
+
"name": "startchunknumber",
|
|
6857
|
+
"default": 0,
|
|
6858
|
+
"hasDynamicHelp": false,
|
|
6859
|
+
"multiple": false,
|
|
6860
|
+
"type": "option"
|
|
6861
|
+
},
|
|
6862
|
+
"resume": {
|
|
6863
|
+
"char": "r",
|
|
6864
|
+
"description": "Resume previous export by checking existing files (default in CI)",
|
|
6865
|
+
"name": "resume",
|
|
6866
|
+
"allowNo": false,
|
|
6867
|
+
"type": "boolean"
|
|
6868
|
+
},
|
|
6869
|
+
"debug": {
|
|
6870
|
+
"char": "d",
|
|
6871
|
+
"description": "Activate debug mode (more logs)",
|
|
6872
|
+
"name": "debug",
|
|
6873
|
+
"allowNo": false,
|
|
6874
|
+
"type": "boolean"
|
|
6875
|
+
},
|
|
6876
|
+
"websocket": {
|
|
6877
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
6878
|
+
"name": "websocket",
|
|
6879
|
+
"hasDynamicHelp": false,
|
|
6880
|
+
"multiple": false,
|
|
6881
|
+
"type": "option"
|
|
6882
|
+
},
|
|
6883
|
+
"skipauth": {
|
|
6884
|
+
"description": "Skip authentication check when a default username is required",
|
|
6885
|
+
"name": "skipauth",
|
|
6886
|
+
"allowNo": false,
|
|
6887
|
+
"type": "boolean"
|
|
6888
|
+
},
|
|
6889
|
+
"target-org": {
|
|
6890
|
+
"aliases": [
|
|
6891
|
+
"targetusername",
|
|
6892
|
+
"u"
|
|
6893
|
+
],
|
|
6894
|
+
"char": "o",
|
|
6895
|
+
"deprecateAliases": true,
|
|
6896
|
+
"name": "target-org",
|
|
6897
|
+
"noCacheDefault": true,
|
|
6898
|
+
"required": true,
|
|
6899
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
6900
|
+
"hasDynamicHelp": true,
|
|
6901
|
+
"multiple": false,
|
|
6902
|
+
"type": "option"
|
|
6903
|
+
}
|
|
6904
|
+
},
|
|
6905
|
+
"hasDynamicHelp": true,
|
|
6906
|
+
"hiddenAliases": [],
|
|
6907
|
+
"id": "hardis:org:files:export",
|
|
6908
|
+
"pluginAlias": "sfdx-hardis",
|
|
6909
|
+
"pluginName": "sfdx-hardis",
|
|
6910
|
+
"pluginType": "core",
|
|
6911
|
+
"strict": true,
|
|
6912
|
+
"enableJsonFlag": true,
|
|
6913
|
+
"title": "Export files",
|
|
6914
|
+
"requiresProject": false,
|
|
6915
|
+
"isESM": true,
|
|
6916
|
+
"relativePath": [
|
|
6917
|
+
"lib",
|
|
6918
|
+
"commands",
|
|
6919
|
+
"hardis",
|
|
6920
|
+
"org",
|
|
6921
|
+
"files",
|
|
6922
|
+
"export.js"
|
|
6923
|
+
],
|
|
6924
|
+
"aliasPermutations": [],
|
|
6925
|
+
"permutations": [
|
|
6926
|
+
"hardis:org:files:export",
|
|
6927
|
+
"org:hardis:files:export",
|
|
6928
|
+
"org:files:hardis:export",
|
|
6929
|
+
"org:files:export:hardis",
|
|
6930
|
+
"hardis:files:org:export",
|
|
6931
|
+
"files:hardis:org:export",
|
|
6932
|
+
"files:org:hardis:export",
|
|
6933
|
+
"files:org:export:hardis",
|
|
6934
|
+
"hardis:files:export:org",
|
|
6935
|
+
"files:hardis:export:org",
|
|
6936
|
+
"files:export:hardis:org",
|
|
6937
|
+
"files:export:org:hardis",
|
|
6938
|
+
"hardis:org:export:files",
|
|
6939
|
+
"org:hardis:export:files",
|
|
6940
|
+
"org:export:hardis:files",
|
|
6941
|
+
"org:export:files:hardis",
|
|
6942
|
+
"hardis:export:org:files",
|
|
6943
|
+
"export:hardis:org:files",
|
|
6944
|
+
"export:org:hardis:files",
|
|
6945
|
+
"export:org:files:hardis",
|
|
6946
|
+
"hardis:export:files:org",
|
|
6947
|
+
"export:hardis:files:org",
|
|
6948
|
+
"export:files:hardis:org",
|
|
6949
|
+
"export:files:org:hardis"
|
|
6950
|
+
]
|
|
6951
|
+
},
|
|
6952
|
+
"hardis:org:files:import": {
|
|
6953
|
+
"aliases": [],
|
|
6954
|
+
"args": {},
|
|
6955
|
+
"description": "\nThis command facilitates the mass upload of files into Salesforce, allowing you to populate records with associated documents, images, or other file types. It's a crucial tool for data migration, content seeding, or synchronizing external file repositories with Salesforce.\n\nKey functionalities:\n\n- **Configuration-Driven Import:** Relies on an `export.json` file within a designated file export project (created using `sf hardis:org:configure:files`) to determine which files to import and how they should be associated with Salesforce records.\n- **Interactive Project Selection:** If the file import project path is not provided via the `--path` flag, it interactively prompts the user to select one.\n- **Overwrite Option:** The `--overwrite` flag allows you to replace existing files in Salesforce with local versions that have the same name. Be aware that this option doubles the number of API calls used.\n- **Support for ContentVersion and Attachment:** Handles both modern Salesforce Files (ContentVersion) and older Attachments.\n\nSee this article for how to export files, which is often a prerequisite for importing:\n\n[](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **FilesImporter Class:** The core logic is encapsulated within the `FilesImporter` class, which orchestrates the entire import process.\n- **File System Scan:** Scans the local file system within the configured project directory to identify files for import.\n- **Salesforce API Interaction:** Uses Salesforce APIs (e.g., ContentVersion, Attachment) to upload files and associate them with records.\n- **Configuration Loading:** Reads the `export.json` file to get the import configuration, including SOQL queries to identify parent records for file association.\n- **Interactive Prompts:** Uses `selectFilesWorkspace` to allow the user to choose a file import project and `prompts` for confirming the overwrite behavior.\n- **Error Handling:** Includes mechanisms to handle potential errors during the import process, such as API limits or file upload failures.\n</details>\n",
|
|
6956
|
+
"examples": [
|
|
6957
|
+
"$ sf hardis:org:files:import"
|
|
6958
|
+
],
|
|
6959
|
+
"flags": {
|
|
6960
|
+
"json": {
|
|
6961
|
+
"description": "Format output as json.",
|
|
6962
|
+
"helpGroup": "GLOBAL",
|
|
6963
|
+
"name": "json",
|
|
6964
|
+
"allowNo": false,
|
|
6965
|
+
"type": "boolean"
|
|
6966
|
+
},
|
|
6967
|
+
"flags-dir": {
|
|
6968
|
+
"helpGroup": "GLOBAL",
|
|
6969
|
+
"name": "flags-dir",
|
|
6970
|
+
"summary": "Import flag values from a directory.",
|
|
6971
|
+
"hasDynamicHelp": false,
|
|
6972
|
+
"multiple": false,
|
|
6973
|
+
"type": "option"
|
|
6974
|
+
},
|
|
6975
|
+
"path": {
|
|
6976
|
+
"char": "p",
|
|
6977
|
+
"description": "Path to the file export project",
|
|
6978
|
+
"name": "path",
|
|
6979
|
+
"hasDynamicHelp": false,
|
|
6980
|
+
"multiple": false,
|
|
6981
|
+
"type": "option"
|
|
6982
|
+
},
|
|
6983
|
+
"overwrite": {
|
|
6984
|
+
"char": "f",
|
|
6985
|
+
"description": "Override existing files (doubles the number of API calls)",
|
|
6986
|
+
"name": "overwrite",
|
|
6987
|
+
"allowNo": false,
|
|
6988
|
+
"type": "boolean"
|
|
6989
|
+
},
|
|
6990
|
+
"debug": {
|
|
6991
|
+
"char": "d",
|
|
6992
|
+
"description": "Activate debug mode (more logs)",
|
|
6993
|
+
"name": "debug",
|
|
6994
|
+
"allowNo": false,
|
|
6995
|
+
"type": "boolean"
|
|
6996
|
+
},
|
|
6997
|
+
"websocket": {
|
|
6998
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
6999
|
+
"name": "websocket",
|
|
7000
|
+
"hasDynamicHelp": false,
|
|
7001
|
+
"multiple": false,
|
|
7002
|
+
"type": "option"
|
|
7003
|
+
},
|
|
7004
|
+
"skipauth": {
|
|
7005
|
+
"description": "Skip authentication check when a default username is required",
|
|
7006
|
+
"name": "skipauth",
|
|
7007
|
+
"allowNo": false,
|
|
7008
|
+
"type": "boolean"
|
|
7009
|
+
},
|
|
7010
|
+
"target-org": {
|
|
7011
|
+
"aliases": [
|
|
7012
|
+
"targetusername",
|
|
7013
|
+
"u"
|
|
7014
|
+
],
|
|
7015
|
+
"char": "o",
|
|
7016
|
+
"deprecateAliases": true,
|
|
7017
|
+
"name": "target-org",
|
|
7018
|
+
"noCacheDefault": true,
|
|
7019
|
+
"required": true,
|
|
7020
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7021
|
+
"hasDynamicHelp": true,
|
|
7022
|
+
"multiple": false,
|
|
7023
|
+
"type": "option"
|
|
7024
|
+
}
|
|
7025
|
+
},
|
|
7026
|
+
"hasDynamicHelp": true,
|
|
7027
|
+
"hiddenAliases": [],
|
|
7028
|
+
"id": "hardis:org:files:import",
|
|
7029
|
+
"pluginAlias": "sfdx-hardis",
|
|
7030
|
+
"pluginName": "sfdx-hardis",
|
|
7031
|
+
"pluginType": "core",
|
|
7032
|
+
"strict": true,
|
|
7033
|
+
"enableJsonFlag": true,
|
|
7034
|
+
"title": "Import files",
|
|
7035
|
+
"requiresProject": false,
|
|
7036
|
+
"isESM": true,
|
|
7037
|
+
"relativePath": [
|
|
7038
|
+
"lib",
|
|
7039
|
+
"commands",
|
|
7040
|
+
"hardis",
|
|
7041
|
+
"org",
|
|
7042
|
+
"files",
|
|
7043
|
+
"import.js"
|
|
7044
|
+
],
|
|
7045
|
+
"aliasPermutations": [],
|
|
7046
|
+
"permutations": [
|
|
7047
|
+
"hardis:org:files:import",
|
|
7048
|
+
"org:hardis:files:import",
|
|
7049
|
+
"org:files:hardis:import",
|
|
7050
|
+
"org:files:import:hardis",
|
|
7051
|
+
"hardis:files:org:import",
|
|
7052
|
+
"files:hardis:org:import",
|
|
7053
|
+
"files:org:hardis:import",
|
|
7054
|
+
"files:org:import:hardis",
|
|
7055
|
+
"hardis:files:import:org",
|
|
7056
|
+
"files:hardis:import:org",
|
|
7057
|
+
"files:import:hardis:org",
|
|
7058
|
+
"files:import:org:hardis",
|
|
7059
|
+
"hardis:org:import:files",
|
|
7060
|
+
"org:hardis:import:files",
|
|
7061
|
+
"org:import:hardis:files",
|
|
7062
|
+
"org:import:files:hardis",
|
|
7063
|
+
"hardis:import:org:files",
|
|
7064
|
+
"import:hardis:org:files",
|
|
7065
|
+
"import:org:hardis:files",
|
|
7066
|
+
"import:org:files:hardis",
|
|
7067
|
+
"hardis:import:files:org",
|
|
7068
|
+
"import:hardis:files:org",
|
|
7069
|
+
"import:files:hardis:org",
|
|
7070
|
+
"import:files:org:hardis"
|
|
7071
7071
|
]
|
|
7072
7072
|
},
|
|
7073
7073
|
"hardis:org:fix:listviewmine": {
|
|
@@ -9818,6 +9818,109 @@
|
|
|
9818
9818
|
"auth:configure:project:hardis"
|
|
9819
9819
|
]
|
|
9820
9820
|
},
|
|
9821
|
+
"hardis:project:convert:profilestopermsets": {
|
|
9822
|
+
"aliases": [],
|
|
9823
|
+
"args": {},
|
|
9824
|
+
"description": "\n## Command Behavior\n\n**Converts existing Salesforce Profiles into Permission Sets, facilitating a more granular and recommended security model.**\n\nThis command helps in migrating permissions from Profiles to Permission Sets, which is a best practice for managing user access in Salesforce. It creates a new Permission Set for each specified Profile, adopting a naming convention of `PS_PROFILENAME`.\n\nKey functionalities:\n\n- **Profile to Permission Set Conversion:** Automatically extracts permissions from a Profile and creates a corresponding Permission Set.\n- **Naming Convention:** New Permission Sets are named with a `PS_` prefix followed by the Profile name (e.g., `PS_Standard_User`).\n- **Exclusion Filter:** Allows you to exclude specific Profiles from the conversion process using the `--except` flag.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **External Plugin Integration:** It relies on the `shane-sfdx-plugins` (specifically the `sf shane:profile:convert` command) to perform the actual conversion.\n- **File System Scan:** It reads the contents of the `force-app/main/default/profiles` directory to identify all available Profile metadata files.\n- **Command Execution:** For each identified Profile (that is not excluded), it constructs and executes the `sf shane:profile:convert` command with the appropriate Profile name and desired Permission Set name.\n- **Error Handling:** Includes basic error handling for the external command execution.\n</details>\n",
|
|
9825
|
+
"examples": [
|
|
9826
|
+
"$ sf hardis:project:convert:profilestopermsets"
|
|
9827
|
+
],
|
|
9828
|
+
"flags": {
|
|
9829
|
+
"json": {
|
|
9830
|
+
"description": "Format output as json.",
|
|
9831
|
+
"helpGroup": "GLOBAL",
|
|
9832
|
+
"name": "json",
|
|
9833
|
+
"allowNo": false,
|
|
9834
|
+
"type": "boolean"
|
|
9835
|
+
},
|
|
9836
|
+
"flags-dir": {
|
|
9837
|
+
"helpGroup": "GLOBAL",
|
|
9838
|
+
"name": "flags-dir",
|
|
9839
|
+
"summary": "Import flag values from a directory.",
|
|
9840
|
+
"hasDynamicHelp": false,
|
|
9841
|
+
"multiple": false,
|
|
9842
|
+
"type": "option"
|
|
9843
|
+
},
|
|
9844
|
+
"except": {
|
|
9845
|
+
"char": "e",
|
|
9846
|
+
"description": "List of filters",
|
|
9847
|
+
"name": "except",
|
|
9848
|
+
"default": [],
|
|
9849
|
+
"hasDynamicHelp": false,
|
|
9850
|
+
"multiple": true,
|
|
9851
|
+
"type": "option"
|
|
9852
|
+
},
|
|
9853
|
+
"debug": {
|
|
9854
|
+
"char": "d",
|
|
9855
|
+
"description": "Activate debug mode (more logs)",
|
|
9856
|
+
"name": "debug",
|
|
9857
|
+
"allowNo": false,
|
|
9858
|
+
"type": "boolean"
|
|
9859
|
+
},
|
|
9860
|
+
"websocket": {
|
|
9861
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
9862
|
+
"name": "websocket",
|
|
9863
|
+
"hasDynamicHelp": false,
|
|
9864
|
+
"multiple": false,
|
|
9865
|
+
"type": "option"
|
|
9866
|
+
},
|
|
9867
|
+
"skipauth": {
|
|
9868
|
+
"description": "Skip authentication check when a default username is required",
|
|
9869
|
+
"name": "skipauth",
|
|
9870
|
+
"allowNo": false,
|
|
9871
|
+
"type": "boolean"
|
|
9872
|
+
}
|
|
9873
|
+
},
|
|
9874
|
+
"hasDynamicHelp": false,
|
|
9875
|
+
"hiddenAliases": [],
|
|
9876
|
+
"id": "hardis:project:convert:profilestopermsets",
|
|
9877
|
+
"pluginAlias": "sfdx-hardis",
|
|
9878
|
+
"pluginName": "sfdx-hardis",
|
|
9879
|
+
"pluginType": "core",
|
|
9880
|
+
"strict": true,
|
|
9881
|
+
"enableJsonFlag": true,
|
|
9882
|
+
"title": "Convert Profiles into Permission Sets",
|
|
9883
|
+
"requiresProject": true,
|
|
9884
|
+
"requiresSfdxPlugins": [
|
|
9885
|
+
"shane-sfdx-plugins"
|
|
9886
|
+
],
|
|
9887
|
+
"isESM": true,
|
|
9888
|
+
"relativePath": [
|
|
9889
|
+
"lib",
|
|
9890
|
+
"commands",
|
|
9891
|
+
"hardis",
|
|
9892
|
+
"project",
|
|
9893
|
+
"convert",
|
|
9894
|
+
"profilestopermsets.js"
|
|
9895
|
+
],
|
|
9896
|
+
"aliasPermutations": [],
|
|
9897
|
+
"permutations": [
|
|
9898
|
+
"hardis:project:convert:profilestopermsets",
|
|
9899
|
+
"project:hardis:convert:profilestopermsets",
|
|
9900
|
+
"project:convert:hardis:profilestopermsets",
|
|
9901
|
+
"project:convert:profilestopermsets:hardis",
|
|
9902
|
+
"hardis:convert:project:profilestopermsets",
|
|
9903
|
+
"convert:hardis:project:profilestopermsets",
|
|
9904
|
+
"convert:project:hardis:profilestopermsets",
|
|
9905
|
+
"convert:project:profilestopermsets:hardis",
|
|
9906
|
+
"hardis:convert:profilestopermsets:project",
|
|
9907
|
+
"convert:hardis:profilestopermsets:project",
|
|
9908
|
+
"convert:profilestopermsets:hardis:project",
|
|
9909
|
+
"convert:profilestopermsets:project:hardis",
|
|
9910
|
+
"hardis:project:profilestopermsets:convert",
|
|
9911
|
+
"project:hardis:profilestopermsets:convert",
|
|
9912
|
+
"project:profilestopermsets:hardis:convert",
|
|
9913
|
+
"project:profilestopermsets:convert:hardis",
|
|
9914
|
+
"hardis:profilestopermsets:project:convert",
|
|
9915
|
+
"profilestopermsets:hardis:project:convert",
|
|
9916
|
+
"profilestopermsets:project:hardis:convert",
|
|
9917
|
+
"profilestopermsets:project:convert:hardis",
|
|
9918
|
+
"hardis:profilestopermsets:convert:project",
|
|
9919
|
+
"profilestopermsets:hardis:convert:project",
|
|
9920
|
+
"profilestopermsets:convert:hardis:project",
|
|
9921
|
+
"profilestopermsets:convert:project:hardis"
|
|
9922
|
+
]
|
|
9923
|
+
},
|
|
9821
9924
|
"hardis:project:clean:emptyitems": {
|
|
9822
9925
|
"aliases": [],
|
|
9823
9926
|
"args": {},
|
|
@@ -11303,109 +11406,6 @@
|
|
|
11303
11406
|
"xml:clean:project:hardis"
|
|
11304
11407
|
]
|
|
11305
11408
|
},
|
|
11306
|
-
"hardis:project:convert:profilestopermsets": {
|
|
11307
|
-
"aliases": [],
|
|
11308
|
-
"args": {},
|
|
11309
|
-
"description": "\n## Command Behavior\n\n**Converts existing Salesforce Profiles into Permission Sets, facilitating a more granular and recommended security model.**\n\nThis command helps in migrating permissions from Profiles to Permission Sets, which is a best practice for managing user access in Salesforce. It creates a new Permission Set for each specified Profile, adopting a naming convention of `PS_PROFILENAME`.\n\nKey functionalities:\n\n- **Profile to Permission Set Conversion:** Automatically extracts permissions from a Profile and creates a corresponding Permission Set.\n- **Naming Convention:** New Permission Sets are named with a `PS_` prefix followed by the Profile name (e.g., `PS_Standard_User`).\n- **Exclusion Filter:** Allows you to exclude specific Profiles from the conversion process using the `--except` flag.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **External Plugin Integration:** It relies on the `shane-sfdx-plugins` (specifically the `sf shane:profile:convert` command) to perform the actual conversion.\n- **File System Scan:** It reads the contents of the `force-app/main/default/profiles` directory to identify all available Profile metadata files.\n- **Command Execution:** For each identified Profile (that is not excluded), it constructs and executes the `sf shane:profile:convert` command with the appropriate Profile name and desired Permission Set name.\n- **Error Handling:** Includes basic error handling for the external command execution.\n</details>\n",
|
|
11310
|
-
"examples": [
|
|
11311
|
-
"$ sf hardis:project:convert:profilestopermsets"
|
|
11312
|
-
],
|
|
11313
|
-
"flags": {
|
|
11314
|
-
"json": {
|
|
11315
|
-
"description": "Format output as json.",
|
|
11316
|
-
"helpGroup": "GLOBAL",
|
|
11317
|
-
"name": "json",
|
|
11318
|
-
"allowNo": false,
|
|
11319
|
-
"type": "boolean"
|
|
11320
|
-
},
|
|
11321
|
-
"flags-dir": {
|
|
11322
|
-
"helpGroup": "GLOBAL",
|
|
11323
|
-
"name": "flags-dir",
|
|
11324
|
-
"summary": "Import flag values from a directory.",
|
|
11325
|
-
"hasDynamicHelp": false,
|
|
11326
|
-
"multiple": false,
|
|
11327
|
-
"type": "option"
|
|
11328
|
-
},
|
|
11329
|
-
"except": {
|
|
11330
|
-
"char": "e",
|
|
11331
|
-
"description": "List of filters",
|
|
11332
|
-
"name": "except",
|
|
11333
|
-
"default": [],
|
|
11334
|
-
"hasDynamicHelp": false,
|
|
11335
|
-
"multiple": true,
|
|
11336
|
-
"type": "option"
|
|
11337
|
-
},
|
|
11338
|
-
"debug": {
|
|
11339
|
-
"char": "d",
|
|
11340
|
-
"description": "Activate debug mode (more logs)",
|
|
11341
|
-
"name": "debug",
|
|
11342
|
-
"allowNo": false,
|
|
11343
|
-
"type": "boolean"
|
|
11344
|
-
},
|
|
11345
|
-
"websocket": {
|
|
11346
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11347
|
-
"name": "websocket",
|
|
11348
|
-
"hasDynamicHelp": false,
|
|
11349
|
-
"multiple": false,
|
|
11350
|
-
"type": "option"
|
|
11351
|
-
},
|
|
11352
|
-
"skipauth": {
|
|
11353
|
-
"description": "Skip authentication check when a default username is required",
|
|
11354
|
-
"name": "skipauth",
|
|
11355
|
-
"allowNo": false,
|
|
11356
|
-
"type": "boolean"
|
|
11357
|
-
}
|
|
11358
|
-
},
|
|
11359
|
-
"hasDynamicHelp": false,
|
|
11360
|
-
"hiddenAliases": [],
|
|
11361
|
-
"id": "hardis:project:convert:profilestopermsets",
|
|
11362
|
-
"pluginAlias": "sfdx-hardis",
|
|
11363
|
-
"pluginName": "sfdx-hardis",
|
|
11364
|
-
"pluginType": "core",
|
|
11365
|
-
"strict": true,
|
|
11366
|
-
"enableJsonFlag": true,
|
|
11367
|
-
"title": "Convert Profiles into Permission Sets",
|
|
11368
|
-
"requiresProject": true,
|
|
11369
|
-
"requiresSfdxPlugins": [
|
|
11370
|
-
"shane-sfdx-plugins"
|
|
11371
|
-
],
|
|
11372
|
-
"isESM": true,
|
|
11373
|
-
"relativePath": [
|
|
11374
|
-
"lib",
|
|
11375
|
-
"commands",
|
|
11376
|
-
"hardis",
|
|
11377
|
-
"project",
|
|
11378
|
-
"convert",
|
|
11379
|
-
"profilestopermsets.js"
|
|
11380
|
-
],
|
|
11381
|
-
"aliasPermutations": [],
|
|
11382
|
-
"permutations": [
|
|
11383
|
-
"hardis:project:convert:profilestopermsets",
|
|
11384
|
-
"project:hardis:convert:profilestopermsets",
|
|
11385
|
-
"project:convert:hardis:profilestopermsets",
|
|
11386
|
-
"project:convert:profilestopermsets:hardis",
|
|
11387
|
-
"hardis:convert:project:profilestopermsets",
|
|
11388
|
-
"convert:hardis:project:profilestopermsets",
|
|
11389
|
-
"convert:project:hardis:profilestopermsets",
|
|
11390
|
-
"convert:project:profilestopermsets:hardis",
|
|
11391
|
-
"hardis:convert:profilestopermsets:project",
|
|
11392
|
-
"convert:hardis:profilestopermsets:project",
|
|
11393
|
-
"convert:profilestopermsets:hardis:project",
|
|
11394
|
-
"convert:profilestopermsets:project:hardis",
|
|
11395
|
-
"hardis:project:profilestopermsets:convert",
|
|
11396
|
-
"project:hardis:profilestopermsets:convert",
|
|
11397
|
-
"project:profilestopermsets:hardis:convert",
|
|
11398
|
-
"project:profilestopermsets:convert:hardis",
|
|
11399
|
-
"hardis:profilestopermsets:project:convert",
|
|
11400
|
-
"profilestopermsets:hardis:project:convert",
|
|
11401
|
-
"profilestopermsets:project:hardis:convert",
|
|
11402
|
-
"profilestopermsets:project:convert:hardis",
|
|
11403
|
-
"hardis:profilestopermsets:convert:project",
|
|
11404
|
-
"profilestopermsets:hardis:convert:project",
|
|
11405
|
-
"profilestopermsets:convert:hardis:project",
|
|
11406
|
-
"profilestopermsets:convert:project:hardis"
|
|
11407
|
-
]
|
|
11408
|
-
},
|
|
11409
11409
|
"hardis:project:deploy:notify": {
|
|
11410
11410
|
"aliases": [],
|
|
11411
11411
|
"args": {},
|
|
@@ -15278,5 +15278,5 @@
|
|
|
15278
15278
|
]
|
|
15279
15279
|
}
|
|
15280
15280
|
},
|
|
15281
|
-
"version": "6.5.
|
|
15281
|
+
"version": "6.5.4"
|
|
15282
15282
|
}
|