sfdx-hardis 6.7.0 → 6.7.2-beta202510122234.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 +11 -0
- package/README.md +20 -8
- package/lib/commands/hardis/org/diagnose/releaseupdates.js +3 -2
- package/lib/commands/hardis/org/diagnose/releaseupdates.js.map +1 -1
- package/lib/commands/hardis/org/retrieve/sources/retrofit.js +2 -2
- package/lib/commands/hardis/org/retrieve/sources/retrofit.js.map +1 -1
- package/lib/commands/hardis/project/metadata/activate-decomposed.js +2 -0
- package/lib/commands/hardis/project/metadata/activate-decomposed.js.map +1 -1
- package/lib/commands/hardis/work/new.js +2 -2
- package/lib/commands/hardis/work/new.js.map +1 -1
- package/lib/commands/hardis/work/refresh.js +3 -3
- package/lib/commands/hardis/work/refresh.js.map +1 -1
- package/lib/commands/hardis/work/save.js +3 -3
- package/lib/commands/hardis/work/save.js.map +1 -1
- package/lib/common/utils/gitUtils.js +3 -3
- package/lib/common/utils/gitUtils.js.map +1 -1
- package/lib/common/utils/index.d.ts +3 -0
- package/lib/common/utils/index.js +192 -4
- package/lib/common/utils/index.js.map +1 -1
- package/oclif.manifest.json +1023 -1023
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -57,13 +57,12 @@
|
|
|
57
57
|
"world:hello"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
-
"hardis:
|
|
60
|
+
"hardis:cache:clear": {
|
|
61
61
|
"aliases": [],
|
|
62
62
|
"args": {},
|
|
63
|
-
"description": "\n## Command Behavior\n\n**
|
|
63
|
+
"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",
|
|
64
64
|
"examples": [
|
|
65
|
-
"$ sf hardis:
|
|
66
|
-
"CI=true sf hardis:auth:login"
|
|
65
|
+
"$ sf hardis:cache:clear"
|
|
67
66
|
],
|
|
68
67
|
"flags": {
|
|
69
68
|
"json": {
|
|
@@ -81,28 +80,6 @@
|
|
|
81
80
|
"multiple": false,
|
|
82
81
|
"type": "option"
|
|
83
82
|
},
|
|
84
|
-
"instanceurl": {
|
|
85
|
-
"char": "r",
|
|
86
|
-
"description": "URL of org instance",
|
|
87
|
-
"name": "instanceurl",
|
|
88
|
-
"hasDynamicHelp": false,
|
|
89
|
-
"multiple": false,
|
|
90
|
-
"type": "option"
|
|
91
|
-
},
|
|
92
|
-
"devhub": {
|
|
93
|
-
"char": "h",
|
|
94
|
-
"description": "Also connect associated DevHub",
|
|
95
|
-
"name": "devhub",
|
|
96
|
-
"allowNo": false,
|
|
97
|
-
"type": "boolean"
|
|
98
|
-
},
|
|
99
|
-
"scratchorg": {
|
|
100
|
-
"char": "s",
|
|
101
|
-
"description": "Scratch org",
|
|
102
|
-
"name": "scratchorg",
|
|
103
|
-
"allowNo": false,
|
|
104
|
-
"type": "boolean"
|
|
105
|
-
},
|
|
106
83
|
"debug": {
|
|
107
84
|
"char": "d",
|
|
108
85
|
"description": "Activate debug mode (more logs)",
|
|
@@ -126,38 +103,41 @@
|
|
|
126
103
|
},
|
|
127
104
|
"hasDynamicHelp": false,
|
|
128
105
|
"hiddenAliases": [],
|
|
129
|
-
"id": "hardis:
|
|
106
|
+
"id": "hardis:cache:clear",
|
|
130
107
|
"pluginAlias": "sfdx-hardis",
|
|
131
108
|
"pluginName": "sfdx-hardis",
|
|
132
109
|
"pluginType": "core",
|
|
133
110
|
"strict": true,
|
|
134
111
|
"enableJsonFlag": true,
|
|
135
|
-
"title": "
|
|
112
|
+
"title": "Clear sfdx-hardis cache",
|
|
113
|
+
"uiConfig": {
|
|
114
|
+
"hide": true
|
|
115
|
+
},
|
|
136
116
|
"requiresProject": false,
|
|
137
117
|
"isESM": true,
|
|
138
118
|
"relativePath": [
|
|
139
119
|
"lib",
|
|
140
120
|
"commands",
|
|
141
121
|
"hardis",
|
|
142
|
-
"
|
|
143
|
-
"
|
|
122
|
+
"cache",
|
|
123
|
+
"clear.js"
|
|
144
124
|
],
|
|
145
125
|
"aliasPermutations": [],
|
|
146
126
|
"permutations": [
|
|
147
|
-
"hardis:
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"hardis:
|
|
151
|
-
"
|
|
152
|
-
"
|
|
127
|
+
"hardis:cache:clear",
|
|
128
|
+
"cache:hardis:clear",
|
|
129
|
+
"cache:clear:hardis",
|
|
130
|
+
"hardis:clear:cache",
|
|
131
|
+
"clear:hardis:cache",
|
|
132
|
+
"clear:cache:hardis"
|
|
153
133
|
]
|
|
154
134
|
},
|
|
155
|
-
"hardis:
|
|
135
|
+
"hardis:config:get": {
|
|
156
136
|
"aliases": [],
|
|
157
137
|
"args": {},
|
|
158
|
-
"description": "\n## Command Behavior\n\n**
|
|
138
|
+
"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",
|
|
159
139
|
"examples": [
|
|
160
|
-
"$ sf hardis:
|
|
140
|
+
"$ sf hardis:project:deploy:sources:metadata"
|
|
161
141
|
],
|
|
162
142
|
"flags": {
|
|
163
143
|
"json": {
|
|
@@ -175,6 +155,20 @@
|
|
|
175
155
|
"multiple": false,
|
|
176
156
|
"type": "option"
|
|
177
157
|
},
|
|
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
|
+
},
|
|
178
172
|
"debug": {
|
|
179
173
|
"char": "d",
|
|
180
174
|
"description": "Activate debug mode (more logs)",
|
|
@@ -198,41 +192,39 @@
|
|
|
198
192
|
},
|
|
199
193
|
"hasDynamicHelp": false,
|
|
200
194
|
"hiddenAliases": [],
|
|
201
|
-
"id": "hardis:
|
|
195
|
+
"id": "hardis:config:get",
|
|
202
196
|
"pluginAlias": "sfdx-hardis",
|
|
203
197
|
"pluginName": "sfdx-hardis",
|
|
204
198
|
"pluginType": "core",
|
|
205
199
|
"strict": true,
|
|
206
200
|
"enableJsonFlag": true,
|
|
207
|
-
"title": "
|
|
208
|
-
"uiConfig": {
|
|
209
|
-
"hide": true
|
|
210
|
-
},
|
|
201
|
+
"title": "Deploy metadata sources to org",
|
|
211
202
|
"requiresProject": false,
|
|
212
203
|
"isESM": true,
|
|
213
204
|
"relativePath": [
|
|
214
205
|
"lib",
|
|
215
206
|
"commands",
|
|
216
207
|
"hardis",
|
|
217
|
-
"
|
|
218
|
-
"
|
|
208
|
+
"config",
|
|
209
|
+
"get.js"
|
|
219
210
|
],
|
|
220
211
|
"aliasPermutations": [],
|
|
221
212
|
"permutations": [
|
|
222
|
-
"hardis:
|
|
223
|
-
"
|
|
224
|
-
"
|
|
225
|
-
"hardis:
|
|
226
|
-
"
|
|
227
|
-
"
|
|
213
|
+
"hardis:config:get",
|
|
214
|
+
"config:hardis:get",
|
|
215
|
+
"config:get:hardis",
|
|
216
|
+
"hardis:get:config",
|
|
217
|
+
"get:hardis:config",
|
|
218
|
+
"get:config:hardis"
|
|
228
219
|
]
|
|
229
220
|
},
|
|
230
|
-
"hardis:
|
|
221
|
+
"hardis:auth:login": {
|
|
231
222
|
"aliases": [],
|
|
232
223
|
"args": {},
|
|
233
|
-
"description": "\n## Command Behavior\n\n**
|
|
224
|
+
"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",
|
|
234
225
|
"examples": [
|
|
235
|
-
"$ sf hardis:
|
|
226
|
+
"$ sf hardis:auth:login",
|
|
227
|
+
"CI=true sf hardis:auth:login"
|
|
236
228
|
],
|
|
237
229
|
"flags": {
|
|
238
230
|
"json": {
|
|
@@ -250,20 +242,28 @@
|
|
|
250
242
|
"multiple": false,
|
|
251
243
|
"type": "option"
|
|
252
244
|
},
|
|
253
|
-
"
|
|
254
|
-
"char": "
|
|
255
|
-
"description": "
|
|
256
|
-
"name": "
|
|
257
|
-
"default": "project",
|
|
245
|
+
"instanceurl": {
|
|
246
|
+
"char": "r",
|
|
247
|
+
"description": "URL of org instance",
|
|
248
|
+
"name": "instanceurl",
|
|
258
249
|
"hasDynamicHelp": false,
|
|
259
250
|
"multiple": false,
|
|
260
|
-
"options": [
|
|
261
|
-
"project",
|
|
262
|
-
"branch",
|
|
263
|
-
"user"
|
|
264
|
-
],
|
|
265
251
|
"type": "option"
|
|
266
252
|
},
|
|
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:auth:login",
|
|
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": "Login",
|
|
297
297
|
"requiresProject": false,
|
|
298
298
|
"isESM": true,
|
|
299
299
|
"relativePath": [
|
|
300
300
|
"lib",
|
|
301
301
|
"commands",
|
|
302
302
|
"hardis",
|
|
303
|
-
"
|
|
304
|
-
"
|
|
303
|
+
"auth",
|
|
304
|
+
"login.js"
|
|
305
305
|
],
|
|
306
306
|
"aliasPermutations": [],
|
|
307
307
|
"permutations": [
|
|
308
|
-
"hardis:
|
|
309
|
-
"
|
|
310
|
-
"
|
|
311
|
-
"hardis:
|
|
312
|
-
"
|
|
313
|
-
"
|
|
308
|
+
"hardis:auth:login",
|
|
309
|
+
"auth:hardis:login",
|
|
310
|
+
"auth:login:hardis",
|
|
311
|
+
"hardis:login:auth",
|
|
312
|
+
"login:hardis:auth",
|
|
313
|
+
"login:auth:hardis"
|
|
314
314
|
]
|
|
315
315
|
},
|
|
316
316
|
"hardis:doc:fieldusage": {
|
|
@@ -4421,12 +4421,13 @@
|
|
|
4421
4421
|
"ws:work:hardis"
|
|
4422
4422
|
]
|
|
4423
4423
|
},
|
|
4424
|
-
"hardis:
|
|
4424
|
+
"hardis:git:pull-requests:extract": {
|
|
4425
4425
|
"aliases": [],
|
|
4426
4426
|
"args": {},
|
|
4427
|
-
"description": "\n## Command Behavior\n\n**Extracts
|
|
4427
|
+
"description": "\n## Command Behavior\n\n**Extracts pull request information from your Git server based on specified filtering criteria.**\n\nThis command provides a powerful way to query and retrieve details about pull requests (or merge requests, depending on your Git provider) in your repository. It's highly useful for reporting, auditing, and analyzing development workflows.\n\nKey functionalities include:\n\n- **Target Branch Filtering:** You can filter pull requests by their target branch using the `--target-branch` flag. If not specified, the command will prompt you to select one.\n- **Status Filtering:** Filter pull requests by their status: `open`, `merged`, or `abandoned` using the `--status` flag. An interactive prompt is provided if no status is specified.\n- **Minimum Date Filtering:** Use the `--min-date` flag to retrieve pull requests created or updated after a specific date.\n- **CSV Output:** The extracted pull request data is generated into a CSV file, which can be used for further analysis in spreadsheet software.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves interacting with a Git provider's API:\n\n- **Git Provider Abstraction:** It uses the `GitProvider.getInstance(true)` to abstract away the specifics of different Git platforms (e.g., GitHub, GitLab, Azure DevOps). This ensures the command can work across various environments.\n- **API Calls:** The `gitProvider.listPullRequests()` method is called with a `prConstraint` object that encapsulates the filtering criteria (target branch, minimum date, status).\n- **Interactive Prompts:** The `prompts` library is used to interactively gather input from the user for the target branch and pull request status if they are not provided as command-line flags.\n- **Date Handling:** The `moment` library is used to parse and handle date inputs for the `--min-date` flag.\n- **CSV Generation:** The `generateCsvFile` utility is responsible for converting the retrieved pull request data into a CSV format, and `generateReportPath` determines the output file location.\n- **Error Handling:** It includes error handling for cases where a Git provider cannot be identified.\n</details>\n",
|
|
4428
4428
|
"examples": [
|
|
4429
|
-
"$ sf hardis:
|
|
4429
|
+
"$ sf hardis:git:pull-requests:extract",
|
|
4430
|
+
"$ sf hardis:git:pull-requests:extract --target-branch main --status merged"
|
|
4430
4431
|
],
|
|
4431
4432
|
"flags": {
|
|
4432
4433
|
"json": {
|
|
@@ -4444,6 +4445,35 @@
|
|
|
4444
4445
|
"multiple": false,
|
|
4445
4446
|
"type": "option"
|
|
4446
4447
|
},
|
|
4448
|
+
"target-branch": {
|
|
4449
|
+
"char": "t",
|
|
4450
|
+
"description": "Target branch of PRs",
|
|
4451
|
+
"name": "target-branch",
|
|
4452
|
+
"hasDynamicHelp": false,
|
|
4453
|
+
"multiple": false,
|
|
4454
|
+
"type": "option"
|
|
4455
|
+
},
|
|
4456
|
+
"status": {
|
|
4457
|
+
"char": "x",
|
|
4458
|
+
"description": "Status of the PR",
|
|
4459
|
+
"name": "status",
|
|
4460
|
+
"hasDynamicHelp": false,
|
|
4461
|
+
"multiple": false,
|
|
4462
|
+
"options": [
|
|
4463
|
+
"open",
|
|
4464
|
+
"merged",
|
|
4465
|
+
"abandoned"
|
|
4466
|
+
],
|
|
4467
|
+
"type": "option"
|
|
4468
|
+
},
|
|
4469
|
+
"min-date": {
|
|
4470
|
+
"char": "m",
|
|
4471
|
+
"description": "Minimum date for PR",
|
|
4472
|
+
"name": "min-date",
|
|
4473
|
+
"hasDynamicHelp": false,
|
|
4474
|
+
"multiple": false,
|
|
4475
|
+
"type": "option"
|
|
4476
|
+
},
|
|
4447
4477
|
"outputfile": {
|
|
4448
4478
|
"char": "f",
|
|
4449
4479
|
"description": "Force the path and name of output report file. Must end with .csv",
|
|
@@ -4475,57 +4505,57 @@
|
|
|
4475
4505
|
},
|
|
4476
4506
|
"hasDynamicHelp": false,
|
|
4477
4507
|
"hiddenAliases": [],
|
|
4478
|
-
"id": "hardis:
|
|
4508
|
+
"id": "hardis:git:pull-requests:extract",
|
|
4479
4509
|
"pluginAlias": "sfdx-hardis",
|
|
4480
4510
|
"pluginName": "sfdx-hardis",
|
|
4481
4511
|
"pluginType": "core",
|
|
4482
4512
|
"strict": true,
|
|
4483
4513
|
"enableJsonFlag": true,
|
|
4484
|
-
"title": "
|
|
4514
|
+
"title": "Extract pull requests",
|
|
4485
4515
|
"requiresProject": true,
|
|
4486
4516
|
"isESM": true,
|
|
4487
4517
|
"relativePath": [
|
|
4488
4518
|
"lib",
|
|
4489
4519
|
"commands",
|
|
4490
4520
|
"hardis",
|
|
4491
|
-
"
|
|
4492
|
-
"
|
|
4493
|
-
"
|
|
4521
|
+
"git",
|
|
4522
|
+
"pull-requests",
|
|
4523
|
+
"extract.js"
|
|
4494
4524
|
],
|
|
4495
4525
|
"aliasPermutations": [],
|
|
4496
4526
|
"permutations": [
|
|
4497
|
-
"hardis:
|
|
4498
|
-
"
|
|
4499
|
-
"
|
|
4500
|
-
"
|
|
4501
|
-
"hardis:
|
|
4502
|
-
"
|
|
4503
|
-
"
|
|
4504
|
-
"
|
|
4505
|
-
"hardis:extract:
|
|
4506
|
-
"
|
|
4507
|
-
"extract:
|
|
4508
|
-
"extract:
|
|
4509
|
-
"hardis:
|
|
4510
|
-
"
|
|
4511
|
-
"
|
|
4512
|
-
"
|
|
4513
|
-
"hardis:
|
|
4514
|
-
"
|
|
4515
|
-
"
|
|
4516
|
-
"
|
|
4517
|
-
"hardis:
|
|
4518
|
-
"
|
|
4519
|
-
"
|
|
4520
|
-
"
|
|
4527
|
+
"hardis:git:pull-requests:extract",
|
|
4528
|
+
"git:hardis:pull-requests:extract",
|
|
4529
|
+
"git:pull-requests:hardis:extract",
|
|
4530
|
+
"git:pull-requests:extract:hardis",
|
|
4531
|
+
"hardis:pull-requests:git:extract",
|
|
4532
|
+
"pull-requests:hardis:git:extract",
|
|
4533
|
+
"pull-requests:git:hardis:extract",
|
|
4534
|
+
"pull-requests:git:extract:hardis",
|
|
4535
|
+
"hardis:pull-requests:extract:git",
|
|
4536
|
+
"pull-requests:hardis:extract:git",
|
|
4537
|
+
"pull-requests:extract:hardis:git",
|
|
4538
|
+
"pull-requests:extract:git:hardis",
|
|
4539
|
+
"hardis:git:extract:pull-requests",
|
|
4540
|
+
"git:hardis:extract:pull-requests",
|
|
4541
|
+
"git:extract:hardis:pull-requests",
|
|
4542
|
+
"git:extract:pull-requests:hardis",
|
|
4543
|
+
"hardis:extract:git:pull-requests",
|
|
4544
|
+
"extract:hardis:git:pull-requests",
|
|
4545
|
+
"extract:git:hardis:pull-requests",
|
|
4546
|
+
"extract:git:pull-requests:hardis",
|
|
4547
|
+
"hardis:extract:pull-requests:git",
|
|
4548
|
+
"extract:hardis:pull-requests:git",
|
|
4549
|
+
"extract:pull-requests:hardis:git",
|
|
4550
|
+
"extract:pull-requests:git:hardis"
|
|
4521
4551
|
]
|
|
4522
4552
|
},
|
|
4523
|
-
"hardis:doc:
|
|
4553
|
+
"hardis:doc:extract:permsetgroups": {
|
|
4524
4554
|
"aliases": [],
|
|
4525
4555
|
"args": {},
|
|
4526
|
-
"description": "\n## Command Behavior\n\n**
|
|
4556
|
+
"description": "\n## Command Behavior\n\n**Extracts and documents Salesforce Permission Set Groups and their assigned Permission Sets.**\n\nThis command generates two types of output: a CSV file and a Markdown file, providing a clear overview of how Permission Set Groups are structured and what Permission Sets they contain within your Salesforce project. This is particularly useful for:\n\n- **Documentation:** Creating human-readable documentation of your permission architecture.\n- **Auditing:** Understanding the composition of permission sets for security and compliance checks.\n- **Analysis:** Gaining insights into how permissions are bundled and assigned in your Salesforce environment.\n\nThe generated CSV file provides a structured, machine-readable format, while the Markdown file offers a more descriptive, human-friendly view, including the group's name, label, description, and a list of its constituent permission sets.\n\n## Technical explanations\n\nThe command performs the following technical steps:\n\n- **File Discovery:** It uses `glob` to find all `.permissionsetgroup-meta.xml` files within the current working directory, respecting `.gitignore` patterns.\n- **XML Parsing:** For each discovered Permission Set Group XML file, it parses the XML content using `parseXmlFile` to extract relevant information such as the group's name, label, description, and the names of the Permission Sets it contains.\n- **Data Structuring:** The extracted data is then structured into a list of objects, making it easy to process.\n- **CSV Generation:** It constructs a CSV file with two columns: 'Permission set group' and 'Permission sets'. The 'Permission sets' column lists all assigned permission sets for each group, enclosed in quotes and separated by commas. The CSV file is saved to a temporary directory or a user-specified path.\n- **Markdown Generation:** It generates a Markdown file (`docs/permission-set-groups.md`) that includes a title, a table of contents, and detailed sections for each Permission Set Group. Each section lists the group's name, label, description, and a bulleted list of its assigned Permission Sets.\n- **File System Operations:** It uses `fs-extra` to ensure output directories exist and to write the generated CSV and Markdown files.\n- **VS Code Integration:** It uses `WebSocketClient.requestOpenFile` to automatically open the generated CSV and Markdown files in VS Code, enhancing the user experience.\n",
|
|
4527
4557
|
"examples": [
|
|
4528
|
-
"$ sf hardis:doc:
|
|
4558
|
+
"$ sf hardis:doc:extract:permsetgroups"
|
|
4529
4559
|
],
|
|
4530
4560
|
"flags": {
|
|
4531
4561
|
"json": {
|
|
@@ -4543,12 +4573,20 @@
|
|
|
4543
4573
|
"multiple": false,
|
|
4544
4574
|
"type": "option"
|
|
4545
4575
|
},
|
|
4546
|
-
"
|
|
4547
|
-
"char": "
|
|
4548
|
-
"description": "
|
|
4549
|
-
"name": "
|
|
4550
|
-
"
|
|
4551
|
-
"
|
|
4576
|
+
"outputfile": {
|
|
4577
|
+
"char": "f",
|
|
4578
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
4579
|
+
"name": "outputfile",
|
|
4580
|
+
"hasDynamicHelp": false,
|
|
4581
|
+
"multiple": false,
|
|
4582
|
+
"type": "option"
|
|
4583
|
+
},
|
|
4584
|
+
"debug": {
|
|
4585
|
+
"char": "d",
|
|
4586
|
+
"description": "Activate debug mode (more logs)",
|
|
4587
|
+
"name": "debug",
|
|
4588
|
+
"allowNo": false,
|
|
4589
|
+
"type": "boolean"
|
|
4552
4590
|
},
|
|
4553
4591
|
"websocket": {
|
|
4554
4592
|
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
@@ -4566,58 +4604,57 @@
|
|
|
4566
4604
|
},
|
|
4567
4605
|
"hasDynamicHelp": false,
|
|
4568
4606
|
"hiddenAliases": [],
|
|
4569
|
-
"id": "hardis:doc:
|
|
4607
|
+
"id": "hardis:doc:extract:permsetgroups",
|
|
4570
4608
|
"pluginAlias": "sfdx-hardis",
|
|
4571
4609
|
"pluginName": "sfdx-hardis",
|
|
4572
4610
|
"pluginType": "core",
|
|
4573
4611
|
"strict": true,
|
|
4574
4612
|
"enableJsonFlag": true,
|
|
4575
|
-
"title": "Generate
|
|
4576
|
-
"requiresProject":
|
|
4613
|
+
"title": "Generate project documentation",
|
|
4614
|
+
"requiresProject": true,
|
|
4577
4615
|
"isESM": true,
|
|
4578
4616
|
"relativePath": [
|
|
4579
4617
|
"lib",
|
|
4580
4618
|
"commands",
|
|
4581
4619
|
"hardis",
|
|
4582
4620
|
"doc",
|
|
4583
|
-
"
|
|
4584
|
-
"
|
|
4621
|
+
"extract",
|
|
4622
|
+
"permsetgroups.js"
|
|
4585
4623
|
],
|
|
4586
4624
|
"aliasPermutations": [],
|
|
4587
4625
|
"permutations": [
|
|
4588
|
-
"hardis:doc:
|
|
4589
|
-
"doc:hardis:
|
|
4590
|
-
"doc:
|
|
4591
|
-
"doc:
|
|
4592
|
-
"hardis:
|
|
4593
|
-
"
|
|
4594
|
-
"
|
|
4595
|
-
"
|
|
4596
|
-
"hardis:
|
|
4597
|
-
"
|
|
4598
|
-
"
|
|
4599
|
-
"
|
|
4600
|
-
"hardis:doc:
|
|
4601
|
-
"doc:hardis:
|
|
4602
|
-
"doc:
|
|
4603
|
-
"doc:
|
|
4604
|
-
"hardis:
|
|
4605
|
-
"
|
|
4606
|
-
"
|
|
4607
|
-
"
|
|
4608
|
-
"hardis:
|
|
4609
|
-
"
|
|
4610
|
-
"
|
|
4611
|
-
"
|
|
4626
|
+
"hardis:doc:extract:permsetgroups",
|
|
4627
|
+
"doc:hardis:extract:permsetgroups",
|
|
4628
|
+
"doc:extract:hardis:permsetgroups",
|
|
4629
|
+
"doc:extract:permsetgroups:hardis",
|
|
4630
|
+
"hardis:extract:doc:permsetgroups",
|
|
4631
|
+
"extract:hardis:doc:permsetgroups",
|
|
4632
|
+
"extract:doc:hardis:permsetgroups",
|
|
4633
|
+
"extract:doc:permsetgroups:hardis",
|
|
4634
|
+
"hardis:extract:permsetgroups:doc",
|
|
4635
|
+
"extract:hardis:permsetgroups:doc",
|
|
4636
|
+
"extract:permsetgroups:hardis:doc",
|
|
4637
|
+
"extract:permsetgroups:doc:hardis",
|
|
4638
|
+
"hardis:doc:permsetgroups:extract",
|
|
4639
|
+
"doc:hardis:permsetgroups:extract",
|
|
4640
|
+
"doc:permsetgroups:hardis:extract",
|
|
4641
|
+
"doc:permsetgroups:extract:hardis",
|
|
4642
|
+
"hardis:permsetgroups:doc:extract",
|
|
4643
|
+
"permsetgroups:hardis:doc:extract",
|
|
4644
|
+
"permsetgroups:doc:hardis:extract",
|
|
4645
|
+
"permsetgroups:doc:extract:hardis",
|
|
4646
|
+
"hardis:permsetgroups:extract:doc",
|
|
4647
|
+
"permsetgroups:hardis:extract:doc",
|
|
4648
|
+
"permsetgroups:extract:hardis:doc",
|
|
4649
|
+
"permsetgroups:extract:doc:hardis"
|
|
4612
4650
|
]
|
|
4613
4651
|
},
|
|
4614
|
-
"hardis:
|
|
4652
|
+
"hardis:doc:plugin:generate": {
|
|
4615
4653
|
"aliases": [],
|
|
4616
4654
|
"args": {},
|
|
4617
|
-
"description": "\n## Command Behavior\n\n**
|
|
4655
|
+
"description": "\n## Command Behavior\n\n**Generates Markdown documentation for an SF CLI plugin, ready for conversion into HTML with MkDocs.**\n\nThis command automates the creation of comprehensive documentation for your Salesforce CLI plugin. It processes your plugin's commands and their flags to generate structured Markdown files, which can then be used with MkDocs to produce a professional-looking website.\n\nKey functionalities:\n\n- **Command Documentation:** Generates a dedicated Markdown file for each command, including its description, parameters (flags), and examples.\n- **Index and Commands Pages:** Creates an `index.md` and `commands.md` file that list all available commands, providing an overview and easy navigation.\n- **MkDocs Integration:** Sets up the basic MkDocs project structure and updates the `mkdocs.yml` navigation to include the generated command documentation.\n- **Default File Copying:** Copies essential MkDocs configuration files and GitHub Actions workflows to your project, streamlining the setup for continuous documentation deployment.\n\n**Post-Generation Steps:**\n\nAfter the initial run, you will need to manually update:\n\n- `mkdocs.yml`: Customize the project title, theme, and other MkDocs settings.\n- `.github/workflows/build-deploy-docs.yml`: Configure the GitHub Actions workflow for automatic documentation deployment.\n- `docs/javascripts/gtag.js`: If desired, set up Google Analytics tracking.\n\nFinally, activate GitHub Pages with `gh_pages` as the target branch. This will enable automatic documentation rebuilding and publishing to GitHub Pages upon each merge into your `master`/`main` branch.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Plugin Configuration Loading:** It loads the SF CLI plugin's configuration using `@oclif/core`'s `Config.load()`, which provides access to all registered commands and their metadata.\n- **Command Iteration:** It iterates through each command defined in the plugin's configuration.\n- **Markdown File Generation:** For each command, it constructs a Markdown file (`.md`) containing:\n - The command ID as the main heading.\n - The command's `description` property.\n - A table of parameters (flags), including their name, type, description, default value, required status, and available options. It dynamically extracts this information from the command's `flags` property.\n - Code blocks for each example provided in the command's `examples` property.\n- **Navigation Structure:** It builds a nested JavaScript object (`commandsNav`) that mirrors the command hierarchy, which is then converted to YAML and inserted into `mkdocs.yml` to create the navigation menu.\n- **Index and Commands Page Generation:** It reads the project's `README.md` and extracts relevant sections to create the `index.md` file. It also generates a separate `commands.md` file listing all commands.\n- **File System Operations:** It uses `fs-extra` to create directories, copy default MkDocs files (`defaults/mkdocs`), and write the generated Markdown and YAML files.\n- **YAML Serialization:** It uses `js-yaml` to serialize the navigation object into YAML format for `mkdocs.yml`.\n</details>\n",
|
|
4618
4656
|
"examples": [
|
|
4619
|
-
"$ sf hardis:
|
|
4620
|
-
"$ sf hardis:git:pull-requests:extract --target-branch main --status merged"
|
|
4657
|
+
"$ sf hardis:doc:plugin:generate"
|
|
4621
4658
|
],
|
|
4622
4659
|
"flags": {
|
|
4623
4660
|
"json": {
|
|
@@ -4635,43 +4672,6 @@
|
|
|
4635
4672
|
"multiple": false,
|
|
4636
4673
|
"type": "option"
|
|
4637
4674
|
},
|
|
4638
|
-
"target-branch": {
|
|
4639
|
-
"char": "t",
|
|
4640
|
-
"description": "Target branch of PRs",
|
|
4641
|
-
"name": "target-branch",
|
|
4642
|
-
"hasDynamicHelp": false,
|
|
4643
|
-
"multiple": false,
|
|
4644
|
-
"type": "option"
|
|
4645
|
-
},
|
|
4646
|
-
"status": {
|
|
4647
|
-
"char": "x",
|
|
4648
|
-
"description": "Status of the PR",
|
|
4649
|
-
"name": "status",
|
|
4650
|
-
"hasDynamicHelp": false,
|
|
4651
|
-
"multiple": false,
|
|
4652
|
-
"options": [
|
|
4653
|
-
"open",
|
|
4654
|
-
"merged",
|
|
4655
|
-
"abandoned"
|
|
4656
|
-
],
|
|
4657
|
-
"type": "option"
|
|
4658
|
-
},
|
|
4659
|
-
"min-date": {
|
|
4660
|
-
"char": "m",
|
|
4661
|
-
"description": "Minimum date for PR",
|
|
4662
|
-
"name": "min-date",
|
|
4663
|
-
"hasDynamicHelp": false,
|
|
4664
|
-
"multiple": false,
|
|
4665
|
-
"type": "option"
|
|
4666
|
-
},
|
|
4667
|
-
"outputfile": {
|
|
4668
|
-
"char": "f",
|
|
4669
|
-
"description": "Force the path and name of output report file. Must end with .csv",
|
|
4670
|
-
"name": "outputfile",
|
|
4671
|
-
"hasDynamicHelp": false,
|
|
4672
|
-
"multiple": false,
|
|
4673
|
-
"type": "option"
|
|
4674
|
-
},
|
|
4675
4675
|
"debug": {
|
|
4676
4676
|
"char": "d",
|
|
4677
4677
|
"description": "Activate debug mode (more logs)",
|
|
@@ -4695,49 +4695,49 @@
|
|
|
4695
4695
|
},
|
|
4696
4696
|
"hasDynamicHelp": false,
|
|
4697
4697
|
"hiddenAliases": [],
|
|
4698
|
-
"id": "hardis:
|
|
4698
|
+
"id": "hardis:doc:plugin:generate",
|
|
4699
4699
|
"pluginAlias": "sfdx-hardis",
|
|
4700
4700
|
"pluginName": "sfdx-hardis",
|
|
4701
4701
|
"pluginType": "core",
|
|
4702
4702
|
"strict": true,
|
|
4703
4703
|
"enableJsonFlag": true,
|
|
4704
|
-
"title": "
|
|
4705
|
-
"requiresProject":
|
|
4704
|
+
"title": "Generate SF Cli Plugin Documentation",
|
|
4705
|
+
"requiresProject": false,
|
|
4706
4706
|
"isESM": true,
|
|
4707
4707
|
"relativePath": [
|
|
4708
4708
|
"lib",
|
|
4709
4709
|
"commands",
|
|
4710
4710
|
"hardis",
|
|
4711
|
-
"
|
|
4712
|
-
"
|
|
4713
|
-
"
|
|
4711
|
+
"doc",
|
|
4712
|
+
"plugin",
|
|
4713
|
+
"generate.js"
|
|
4714
4714
|
],
|
|
4715
4715
|
"aliasPermutations": [],
|
|
4716
4716
|
"permutations": [
|
|
4717
|
-
"hardis:
|
|
4718
|
-
"
|
|
4719
|
-
"
|
|
4720
|
-
"
|
|
4721
|
-
"hardis:
|
|
4722
|
-
"
|
|
4723
|
-
"
|
|
4724
|
-
"
|
|
4725
|
-
"hardis:
|
|
4726
|
-
"
|
|
4727
|
-
"
|
|
4728
|
-
"
|
|
4729
|
-
"hardis:
|
|
4730
|
-
"
|
|
4731
|
-
"
|
|
4732
|
-
"
|
|
4733
|
-
"hardis:
|
|
4734
|
-
"
|
|
4735
|
-
"
|
|
4736
|
-
"
|
|
4737
|
-
"hardis:
|
|
4738
|
-
"
|
|
4739
|
-
"
|
|
4740
|
-
"
|
|
4717
|
+
"hardis:doc:plugin:generate",
|
|
4718
|
+
"doc:hardis:plugin:generate",
|
|
4719
|
+
"doc:plugin:hardis:generate",
|
|
4720
|
+
"doc:plugin:generate:hardis",
|
|
4721
|
+
"hardis:plugin:doc:generate",
|
|
4722
|
+
"plugin:hardis:doc:generate",
|
|
4723
|
+
"plugin:doc:hardis:generate",
|
|
4724
|
+
"plugin:doc:generate:hardis",
|
|
4725
|
+
"hardis:plugin:generate:doc",
|
|
4726
|
+
"plugin:hardis:generate:doc",
|
|
4727
|
+
"plugin:generate:hardis:doc",
|
|
4728
|
+
"plugin:generate:doc:hardis",
|
|
4729
|
+
"hardis:doc:generate:plugin",
|
|
4730
|
+
"doc:hardis:generate:plugin",
|
|
4731
|
+
"doc:generate:hardis:plugin",
|
|
4732
|
+
"doc:generate:plugin:hardis",
|
|
4733
|
+
"hardis:generate:doc:plugin",
|
|
4734
|
+
"generate:hardis:doc:plugin",
|
|
4735
|
+
"generate:doc:hardis:plugin",
|
|
4736
|
+
"generate:doc:plugin:hardis",
|
|
4737
|
+
"hardis:generate:plugin:doc",
|
|
4738
|
+
"generate:hardis:plugin:doc",
|
|
4739
|
+
"generate:plugin:hardis:doc",
|
|
4740
|
+
"generate:plugin:doc:hardis"
|
|
4741
4741
|
]
|
|
4742
4742
|
},
|
|
4743
4743
|
"hardis:org:community:update": {
|
|
@@ -5538,15 +5538,12 @@
|
|
|
5538
5538
|
"import:data:org:hardis"
|
|
5539
5539
|
]
|
|
5540
5540
|
},
|
|
5541
|
-
"hardis:org:
|
|
5541
|
+
"hardis:org:files:export": {
|
|
5542
5542
|
"aliases": [],
|
|
5543
5543
|
"args": {},
|
|
5544
|
-
"description": "
|
|
5544
|
+
"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",
|
|
5545
5545
|
"examples": [
|
|
5546
|
-
"$ sf hardis:org:
|
|
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"
|
|
5546
|
+
"$ sf hardis:org:files:export"
|
|
5550
5547
|
],
|
|
5551
5548
|
"flags": {
|
|
5552
5549
|
"json": {
|
|
@@ -5564,30 +5561,48 @@
|
|
|
5564
5561
|
"multiple": false,
|
|
5565
5562
|
"type": "option"
|
|
5566
5563
|
},
|
|
5567
|
-
"
|
|
5568
|
-
"char": "
|
|
5569
|
-
"description": "
|
|
5570
|
-
"name": "
|
|
5564
|
+
"path": {
|
|
5565
|
+
"char": "p",
|
|
5566
|
+
"description": "Path to the file export project",
|
|
5567
|
+
"name": "path",
|
|
5571
5568
|
"hasDynamicHelp": false,
|
|
5572
5569
|
"multiple": false,
|
|
5573
5570
|
"type": "option"
|
|
5574
5571
|
},
|
|
5575
|
-
"
|
|
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,
|
|
5577
|
+
"hasDynamicHelp": false,
|
|
5578
|
+
"multiple": false,
|
|
5579
|
+
"type": "option"
|
|
5580
|
+
},
|
|
5581
|
+
"polltimeout": {
|
|
5576
5582
|
"char": "t",
|
|
5577
|
-
"description": "
|
|
5578
|
-
"name": "
|
|
5583
|
+
"description": "Timeout in MS for Bulk API calls",
|
|
5584
|
+
"name": "polltimeout",
|
|
5585
|
+
"default": 300000,
|
|
5579
5586
|
"hasDynamicHelp": false,
|
|
5580
5587
|
"multiple": false,
|
|
5581
5588
|
"type": "option"
|
|
5582
5589
|
},
|
|
5583
|
-
"
|
|
5584
|
-
"char": "
|
|
5585
|
-
"description": "
|
|
5586
|
-
"name": "
|
|
5590
|
+
"startchunknumber": {
|
|
5591
|
+
"char": "s",
|
|
5592
|
+
"description": "Chunk number to start from",
|
|
5593
|
+
"name": "startchunknumber",
|
|
5594
|
+
"default": 0,
|
|
5587
5595
|
"hasDynamicHelp": false,
|
|
5588
5596
|
"multiple": false,
|
|
5589
5597
|
"type": "option"
|
|
5590
5598
|
},
|
|
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
|
+
},
|
|
5591
5606
|
"debug": {
|
|
5592
5607
|
"char": "d",
|
|
5593
5608
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5626,13 +5641,13 @@
|
|
|
5626
5641
|
},
|
|
5627
5642
|
"hasDynamicHelp": true,
|
|
5628
5643
|
"hiddenAliases": [],
|
|
5629
|
-
"id": "hardis:org:
|
|
5644
|
+
"id": "hardis:org:files:export",
|
|
5630
5645
|
"pluginAlias": "sfdx-hardis",
|
|
5631
5646
|
"pluginName": "sfdx-hardis",
|
|
5632
5647
|
"pluginType": "core",
|
|
5633
5648
|
"strict": true,
|
|
5634
5649
|
"enableJsonFlag": true,
|
|
5635
|
-
"title": "
|
|
5650
|
+
"title": "Export files",
|
|
5636
5651
|
"requiresProject": false,
|
|
5637
5652
|
"isESM": true,
|
|
5638
5653
|
"relativePath": [
|
|
@@ -5640,43 +5655,43 @@
|
|
|
5640
5655
|
"commands",
|
|
5641
5656
|
"hardis",
|
|
5642
5657
|
"org",
|
|
5643
|
-
"
|
|
5644
|
-
"
|
|
5658
|
+
"files",
|
|
5659
|
+
"export.js"
|
|
5645
5660
|
],
|
|
5646
5661
|
"aliasPermutations": [],
|
|
5647
5662
|
"permutations": [
|
|
5648
|
-
"hardis:org:
|
|
5649
|
-
"org:hardis:
|
|
5650
|
-
"org:
|
|
5651
|
-
"org:
|
|
5652
|
-
"hardis:
|
|
5653
|
-
"
|
|
5654
|
-
"
|
|
5655
|
-
"
|
|
5656
|
-
"hardis:
|
|
5657
|
-
"
|
|
5658
|
-
"
|
|
5659
|
-
"
|
|
5660
|
-
"hardis:org:
|
|
5661
|
-
"org:hardis:
|
|
5662
|
-
"org:
|
|
5663
|
-
"org:
|
|
5664
|
-
"hardis:
|
|
5665
|
-
"
|
|
5666
|
-
"
|
|
5667
|
-
"
|
|
5668
|
-
"hardis:
|
|
5669
|
-
"
|
|
5670
|
-
"
|
|
5671
|
-
"
|
|
5663
|
+
"hardis:org:files:export",
|
|
5664
|
+
"org:hardis:files:export",
|
|
5665
|
+
"org:files:hardis:export",
|
|
5666
|
+
"org:files:export:hardis",
|
|
5667
|
+
"hardis:files:org:export",
|
|
5668
|
+
"files:hardis:org:export",
|
|
5669
|
+
"files:org:hardis:export",
|
|
5670
|
+
"files:org:export:hardis",
|
|
5671
|
+
"hardis:files:export:org",
|
|
5672
|
+
"files:hardis:export:org",
|
|
5673
|
+
"files:export:hardis:org",
|
|
5674
|
+
"files:export:org:hardis",
|
|
5675
|
+
"hardis:org:export:files",
|
|
5676
|
+
"org:hardis:export:files",
|
|
5677
|
+
"org:export:hardis:files",
|
|
5678
|
+
"org:export:files:hardis",
|
|
5679
|
+
"hardis:export:org:files",
|
|
5680
|
+
"export:hardis:org:files",
|
|
5681
|
+
"export:org:hardis:files",
|
|
5682
|
+
"export:org:files:hardis",
|
|
5683
|
+
"hardis:export:files:org",
|
|
5684
|
+
"export:hardis:files:org",
|
|
5685
|
+
"export:files:hardis:org",
|
|
5686
|
+
"export:files:org:hardis"
|
|
5672
5687
|
]
|
|
5673
5688
|
},
|
|
5674
|
-
"hardis:org:
|
|
5689
|
+
"hardis:org:files:import": {
|
|
5675
5690
|
"aliases": [],
|
|
5676
5691
|
"args": {},
|
|
5677
|
-
"description": "\
|
|
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",
|
|
5678
5693
|
"examples": [
|
|
5679
|
-
"$ sf hardis:org:
|
|
5694
|
+
"$ sf hardis:org:files:import"
|
|
5680
5695
|
],
|
|
5681
5696
|
"flags": {
|
|
5682
5697
|
"json": {
|
|
@@ -5694,6 +5709,21 @@
|
|
|
5694
5709
|
"multiple": false,
|
|
5695
5710
|
"type": "option"
|
|
5696
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
|
+
},
|
|
5697
5727
|
"debug": {
|
|
5698
5728
|
"char": "d",
|
|
5699
5729
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5732,13 +5762,13 @@
|
|
|
5732
5762
|
},
|
|
5733
5763
|
"hasDynamicHelp": true,
|
|
5734
5764
|
"hiddenAliases": [],
|
|
5735
|
-
"id": "hardis:org:
|
|
5765
|
+
"id": "hardis:org:files:import",
|
|
5736
5766
|
"pluginAlias": "sfdx-hardis",
|
|
5737
5767
|
"pluginName": "sfdx-hardis",
|
|
5738
5768
|
"pluginType": "core",
|
|
5739
5769
|
"strict": true,
|
|
5740
5770
|
"enableJsonFlag": true,
|
|
5741
|
-
"title": "
|
|
5771
|
+
"title": "Import files",
|
|
5742
5772
|
"requiresProject": false,
|
|
5743
5773
|
"isESM": true,
|
|
5744
5774
|
"relativePath": [
|
|
@@ -5746,46 +5776,46 @@
|
|
|
5746
5776
|
"commands",
|
|
5747
5777
|
"hardis",
|
|
5748
5778
|
"org",
|
|
5749
|
-
"
|
|
5750
|
-
"
|
|
5779
|
+
"files",
|
|
5780
|
+
"import.js"
|
|
5751
5781
|
],
|
|
5752
5782
|
"aliasPermutations": [],
|
|
5753
5783
|
"permutations": [
|
|
5754
|
-
"hardis:org:
|
|
5755
|
-
"org:hardis:
|
|
5756
|
-
"org:
|
|
5757
|
-
"org:
|
|
5758
|
-
"hardis:
|
|
5759
|
-
"
|
|
5760
|
-
"
|
|
5761
|
-
"
|
|
5762
|
-
"hardis:
|
|
5763
|
-
"
|
|
5764
|
-
"
|
|
5765
|
-
"
|
|
5766
|
-
"hardis:org:
|
|
5767
|
-
"org:hardis:
|
|
5768
|
-
"org:
|
|
5769
|
-
"org:
|
|
5770
|
-
"hardis:
|
|
5771
|
-
"
|
|
5772
|
-
"
|
|
5773
|
-
"
|
|
5774
|
-
"hardis:
|
|
5775
|
-
"
|
|
5776
|
-
"
|
|
5777
|
-
"
|
|
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"
|
|
5778
5808
|
]
|
|
5779
5809
|
},
|
|
5780
|
-
"hardis:org:diagnose:
|
|
5810
|
+
"hardis:org:diagnose:audittrail": {
|
|
5781
5811
|
"aliases": [],
|
|
5782
5812
|
"args": {},
|
|
5783
|
-
"description": "
|
|
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",
|
|
5784
5814
|
"examples": [
|
|
5785
|
-
"$ sf hardis:org:diagnose:
|
|
5786
|
-
"$ sf hardis:org:diagnose:
|
|
5787
|
-
"$ sf hardis:org:diagnose:
|
|
5788
|
-
"$ sf hardis:org:diagnose:
|
|
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"
|
|
5789
5819
|
],
|
|
5790
5820
|
"flags": {
|
|
5791
5821
|
"json": {
|
|
@@ -5803,20 +5833,18 @@
|
|
|
5803
5833
|
"multiple": false,
|
|
5804
5834
|
"type": "option"
|
|
5805
5835
|
},
|
|
5806
|
-
"
|
|
5836
|
+
"excludeusers": {
|
|
5807
5837
|
"char": "e",
|
|
5808
|
-
"description": "
|
|
5809
|
-
"name": "
|
|
5810
|
-
"default": "ApiTotalUsage",
|
|
5838
|
+
"description": "Comma-separated list of usernames to exclude",
|
|
5839
|
+
"name": "excludeusers",
|
|
5811
5840
|
"hasDynamicHelp": false,
|
|
5812
5841
|
"multiple": false,
|
|
5813
5842
|
"type": "option"
|
|
5814
5843
|
},
|
|
5815
|
-
"
|
|
5816
|
-
"char": "
|
|
5817
|
-
"description": "Number of
|
|
5818
|
-
"name": "
|
|
5819
|
-
"default": 999,
|
|
5844
|
+
"lastndays": {
|
|
5845
|
+
"char": "t",
|
|
5846
|
+
"description": "Number of days to extract from today (included)",
|
|
5847
|
+
"name": "lastndays",
|
|
5820
5848
|
"hasDynamicHelp": false,
|
|
5821
5849
|
"multiple": false,
|
|
5822
5850
|
"type": "option"
|
|
@@ -5867,13 +5895,13 @@
|
|
|
5867
5895
|
},
|
|
5868
5896
|
"hasDynamicHelp": true,
|
|
5869
5897
|
"hiddenAliases": [],
|
|
5870
|
-
"id": "hardis:org:diagnose:
|
|
5898
|
+
"id": "hardis:org:diagnose:audittrail",
|
|
5871
5899
|
"pluginAlias": "sfdx-hardis",
|
|
5872
5900
|
"pluginName": "sfdx-hardis",
|
|
5873
5901
|
"pluginType": "core",
|
|
5874
5902
|
"strict": true,
|
|
5875
5903
|
"enableJsonFlag": true,
|
|
5876
|
-
"title": "
|
|
5904
|
+
"title": "Diagnose content of Setup Audit Trail",
|
|
5877
5905
|
"requiresProject": false,
|
|
5878
5906
|
"isESM": true,
|
|
5879
5907
|
"relativePath": [
|
|
@@ -5882,42 +5910,42 @@
|
|
|
5882
5910
|
"hardis",
|
|
5883
5911
|
"org",
|
|
5884
5912
|
"diagnose",
|
|
5885
|
-
"
|
|
5913
|
+
"audittrail.js"
|
|
5886
5914
|
],
|
|
5887
5915
|
"aliasPermutations": [],
|
|
5888
5916
|
"permutations": [
|
|
5889
|
-
"hardis:org:diagnose:
|
|
5890
|
-
"org:hardis:diagnose:
|
|
5891
|
-
"org:diagnose:hardis:
|
|
5892
|
-
"org:diagnose:
|
|
5893
|
-
"hardis:diagnose:org:
|
|
5894
|
-
"diagnose:hardis:org:
|
|
5895
|
-
"diagnose:org:hardis:
|
|
5896
|
-
"diagnose:org:
|
|
5897
|
-
"hardis:diagnose:
|
|
5898
|
-
"diagnose:hardis:
|
|
5899
|
-
"diagnose:
|
|
5900
|
-
"diagnose:
|
|
5901
|
-
"hardis:org:
|
|
5902
|
-
"org:hardis:
|
|
5903
|
-
"org:
|
|
5904
|
-
"org:
|
|
5905
|
-
"hardis:
|
|
5906
|
-
"
|
|
5907
|
-
"
|
|
5908
|
-
"
|
|
5909
|
-
"hardis:
|
|
5910
|
-
"
|
|
5911
|
-
"
|
|
5912
|
-
"
|
|
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"
|
|
5913
5941
|
]
|
|
5914
5942
|
},
|
|
5915
|
-
"hardis:org:diagnose:
|
|
5943
|
+
"hardis:org:diagnose:instanceupgrade": {
|
|
5916
5944
|
"aliases": [],
|
|
5917
5945
|
"args": {},
|
|
5918
|
-
"description": "\n
|
|
5946
|
+
"description": "\n## Command Behavior\n\n**Retrieves and displays the scheduled upgrade date for a Salesforce org's instance.**\n\nThis command provides crucial information about when your Salesforce instance will be upgraded to the next major release (Spring, Summer, or Winter). This is vital for release planning, testing, and ensuring compatibility with upcoming Salesforce features.\n\nKey functionalities:\n\n- **Instance Identification:** Determines the Salesforce instance name of your target org.\n- **Upgrade Date Retrieval:** Fetches the planned start time of the next major core service upgrade for that instance from the Salesforce Status API.\n- **Days Until Upgrade:** Calculates and displays the number of days remaining until the next major upgrade.\n- **Severity-Based Logging:** Adjusts the log severity (info, warning) based on the proximity of the upgrade date, providing a visual cue for urgency.\n- **Notifications:** Sends notifications to configured channels (e.g., Slack, MS Teams, Grafana) with the upgrade information, making it suitable for automated monitoring.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce SOQL Query:** It first queries the `Organization` object in Salesforce to get the `InstanceName` of the target org.\n- **Salesforce Status API Integration:** It makes an HTTP GET request to the Salesforce Status API (`https://api.status.salesforce.com/v1/instances/{instanceName}/status`) to retrieve detailed information about the instance, including scheduled maintenances.\n- **Data Parsing:** It parses the JSON response from the Status API to extract the relevant major release upgrade information.\n- **Date Calculation:** Uses the `moment` library to calculate the difference in days between the current date and the planned upgrade date.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including the instance name, upgrade date, and days remaining, along with relevant metrics for monitoring dashboards.\n- **User Feedback:** Provides clear messages to the user about the upgrade status and proximity.\n</details>\n",
|
|
5919
5947
|
"examples": [
|
|
5920
|
-
"$ sf hardis:org:diagnose:
|
|
5948
|
+
"$ sf hardis:org:diagnose:instanceupgrade"
|
|
5921
5949
|
],
|
|
5922
5950
|
"flags": {
|
|
5923
5951
|
"json": {
|
|
@@ -5935,21 +5963,6 @@
|
|
|
5935
5963
|
"multiple": false,
|
|
5936
5964
|
"type": "option"
|
|
5937
5965
|
},
|
|
5938
|
-
"outputfile": {
|
|
5939
|
-
"char": "f",
|
|
5940
|
-
"description": "Force the path and name of output report file. Must end with .csv",
|
|
5941
|
-
"name": "outputfile",
|
|
5942
|
-
"hasDynamicHelp": false,
|
|
5943
|
-
"multiple": false,
|
|
5944
|
-
"type": "option"
|
|
5945
|
-
},
|
|
5946
|
-
"usedonly": {
|
|
5947
|
-
"char": "u",
|
|
5948
|
-
"description": "Filter to have only used licenses",
|
|
5949
|
-
"name": "usedonly",
|
|
5950
|
-
"allowNo": false,
|
|
5951
|
-
"type": "boolean"
|
|
5952
|
-
},
|
|
5953
5966
|
"debug": {
|
|
5954
5967
|
"char": "d",
|
|
5955
5968
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5988,13 +6001,13 @@
|
|
|
5988
6001
|
},
|
|
5989
6002
|
"hasDynamicHelp": true,
|
|
5990
6003
|
"hiddenAliases": [],
|
|
5991
|
-
"id": "hardis:org:diagnose:
|
|
6004
|
+
"id": "hardis:org:diagnose:instanceupgrade",
|
|
5992
6005
|
"pluginAlias": "sfdx-hardis",
|
|
5993
6006
|
"pluginName": "sfdx-hardis",
|
|
5994
6007
|
"pluginType": "core",
|
|
5995
6008
|
"strict": true,
|
|
5996
6009
|
"enableJsonFlag": true,
|
|
5997
|
-
"title": "
|
|
6010
|
+
"title": "Get Instance Upgrade date",
|
|
5998
6011
|
"requiresProject": false,
|
|
5999
6012
|
"isESM": true,
|
|
6000
6013
|
"relativePath": [
|
|
@@ -6003,55 +6016,76 @@
|
|
|
6003
6016
|
"hardis",
|
|
6004
6017
|
"org",
|
|
6005
6018
|
"diagnose",
|
|
6006
|
-
"
|
|
6019
|
+
"instanceupgrade.js"
|
|
6007
6020
|
],
|
|
6008
6021
|
"aliasPermutations": [],
|
|
6009
6022
|
"permutations": [
|
|
6010
|
-
"hardis:org:diagnose:
|
|
6011
|
-
"org:hardis:diagnose:
|
|
6012
|
-
"org:diagnose:hardis:
|
|
6013
|
-
"org:diagnose:
|
|
6014
|
-
"hardis:diagnose:org:
|
|
6015
|
-
"diagnose:hardis:org:
|
|
6016
|
-
"diagnose:org:hardis:
|
|
6017
|
-
"diagnose:org:
|
|
6018
|
-
"hardis:diagnose:
|
|
6019
|
-
"diagnose:hardis:
|
|
6020
|
-
"diagnose:
|
|
6021
|
-
"diagnose:
|
|
6022
|
-
"hardis:org:
|
|
6023
|
-
"org:hardis:
|
|
6024
|
-
"org:
|
|
6025
|
-
"org:
|
|
6026
|
-
"hardis:
|
|
6027
|
-
"
|
|
6028
|
-
"
|
|
6029
|
-
"
|
|
6030
|
-
"hardis:
|
|
6031
|
-
"
|
|
6032
|
-
"
|
|
6033
|
-
"
|
|
6034
|
-
]
|
|
6035
|
-
},
|
|
6036
|
-
"hardis:org:diagnose:
|
|
6037
|
-
"aliases": [],
|
|
6038
|
-
"args": {},
|
|
6039
|
-
"description": "
|
|
6040
|
-
"examples": [
|
|
6041
|
-
"$ sf hardis:org:diagnose:
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
"
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
"
|
|
6049
|
-
"
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
"
|
|
6053
|
-
|
|
6054
|
-
|
|
6023
|
+
"hardis:org:diagnose:instanceupgrade",
|
|
6024
|
+
"org:hardis:diagnose:instanceupgrade",
|
|
6025
|
+
"org:diagnose:hardis:instanceupgrade",
|
|
6026
|
+
"org:diagnose:instanceupgrade:hardis",
|
|
6027
|
+
"hardis:diagnose:org:instanceupgrade",
|
|
6028
|
+
"diagnose:hardis:org:instanceupgrade",
|
|
6029
|
+
"diagnose:org:hardis:instanceupgrade",
|
|
6030
|
+
"diagnose:org:instanceupgrade:hardis",
|
|
6031
|
+
"hardis:diagnose:instanceupgrade:org",
|
|
6032
|
+
"diagnose:hardis:instanceupgrade:org",
|
|
6033
|
+
"diagnose:instanceupgrade:hardis:org",
|
|
6034
|
+
"diagnose:instanceupgrade:org:hardis",
|
|
6035
|
+
"hardis:org:instanceupgrade:diagnose",
|
|
6036
|
+
"org:hardis:instanceupgrade:diagnose",
|
|
6037
|
+
"org:instanceupgrade:hardis:diagnose",
|
|
6038
|
+
"org:instanceupgrade:diagnose:hardis",
|
|
6039
|
+
"hardis:instanceupgrade:org:diagnose",
|
|
6040
|
+
"instanceupgrade:hardis:org:diagnose",
|
|
6041
|
+
"instanceupgrade:org:hardis:diagnose",
|
|
6042
|
+
"instanceupgrade:org:diagnose:hardis",
|
|
6043
|
+
"hardis:instanceupgrade:diagnose:org",
|
|
6044
|
+
"instanceupgrade:hardis:diagnose:org",
|
|
6045
|
+
"instanceupgrade:diagnose:hardis:org",
|
|
6046
|
+
"instanceupgrade:diagnose:org:hardis"
|
|
6047
|
+
]
|
|
6048
|
+
},
|
|
6049
|
+
"hardis:org:diagnose:legacyapi": {
|
|
6050
|
+
"aliases": [],
|
|
6051
|
+
"args": {},
|
|
6052
|
+
"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",
|
|
6053
|
+
"examples": [
|
|
6054
|
+
"$ sf hardis:org:diagnose:legacyapi",
|
|
6055
|
+
"$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com",
|
|
6056
|
+
"$ sf hardis:org:diagnose:legacyapi --outputfile 'c:/path/to/folder/legacyapi.csv'",
|
|
6057
|
+
"$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com --outputfile ./tmp/legacyapi.csv"
|
|
6058
|
+
],
|
|
6059
|
+
"flags": {
|
|
6060
|
+
"json": {
|
|
6061
|
+
"description": "Format output as json.",
|
|
6062
|
+
"helpGroup": "GLOBAL",
|
|
6063
|
+
"name": "json",
|
|
6064
|
+
"allowNo": false,
|
|
6065
|
+
"type": "boolean"
|
|
6066
|
+
},
|
|
6067
|
+
"flags-dir": {
|
|
6068
|
+
"helpGroup": "GLOBAL",
|
|
6069
|
+
"name": "flags-dir",
|
|
6070
|
+
"summary": "Import flag values from a directory.",
|
|
6071
|
+
"hasDynamicHelp": false,
|
|
6072
|
+
"multiple": false,
|
|
6073
|
+
"type": "option"
|
|
6074
|
+
},
|
|
6075
|
+
"eventtype": {
|
|
6076
|
+
"char": "e",
|
|
6077
|
+
"description": "Type of EventLogFile event to analyze",
|
|
6078
|
+
"name": "eventtype",
|
|
6079
|
+
"default": "ApiTotalUsage",
|
|
6080
|
+
"hasDynamicHelp": false,
|
|
6081
|
+
"multiple": false,
|
|
6082
|
+
"type": "option"
|
|
6083
|
+
},
|
|
6084
|
+
"limit": {
|
|
6085
|
+
"char": "l",
|
|
6086
|
+
"description": "Number of latest EventLogFile events to analyze",
|
|
6087
|
+
"name": "limit",
|
|
6088
|
+
"default": 999,
|
|
6055
6089
|
"hasDynamicHelp": false,
|
|
6056
6090
|
"multiple": false,
|
|
6057
6091
|
"type": "option"
|
|
@@ -6102,13 +6136,13 @@
|
|
|
6102
6136
|
},
|
|
6103
6137
|
"hasDynamicHelp": true,
|
|
6104
6138
|
"hiddenAliases": [],
|
|
6105
|
-
"id": "hardis:org:diagnose:
|
|
6139
|
+
"id": "hardis:org:diagnose:legacyapi",
|
|
6106
6140
|
"pluginAlias": "sfdx-hardis",
|
|
6107
6141
|
"pluginName": "sfdx-hardis",
|
|
6108
6142
|
"pluginType": "core",
|
|
6109
6143
|
"strict": true,
|
|
6110
6144
|
"enableJsonFlag": true,
|
|
6111
|
-
"title": "Check
|
|
6145
|
+
"title": "Check for legacy API use",
|
|
6112
6146
|
"requiresProject": false,
|
|
6113
6147
|
"isESM": true,
|
|
6114
6148
|
"relativePath": [
|
|
@@ -6117,42 +6151,42 @@
|
|
|
6117
6151
|
"hardis",
|
|
6118
6152
|
"org",
|
|
6119
6153
|
"diagnose",
|
|
6120
|
-
"
|
|
6154
|
+
"legacyapi.js"
|
|
6121
6155
|
],
|
|
6122
6156
|
"aliasPermutations": [],
|
|
6123
6157
|
"permutations": [
|
|
6124
|
-
"hardis:org:diagnose:
|
|
6125
|
-
"org:hardis:diagnose:
|
|
6126
|
-
"org:diagnose:hardis:
|
|
6127
|
-
"org:diagnose:
|
|
6128
|
-
"hardis:diagnose:org:
|
|
6129
|
-
"diagnose:hardis:org:
|
|
6130
|
-
"diagnose:org:hardis:
|
|
6131
|
-
"diagnose:org:
|
|
6132
|
-
"hardis:diagnose:
|
|
6133
|
-
"diagnose:hardis:
|
|
6134
|
-
"diagnose:
|
|
6135
|
-
"diagnose:
|
|
6136
|
-
"hardis:org:
|
|
6137
|
-
"org:hardis:
|
|
6138
|
-
"org:
|
|
6139
|
-
"org:
|
|
6140
|
-
"hardis:
|
|
6141
|
-
"
|
|
6142
|
-
"
|
|
6143
|
-
"
|
|
6144
|
-
"hardis:
|
|
6145
|
-
"
|
|
6146
|
-
"
|
|
6147
|
-
"
|
|
6158
|
+
"hardis:org:diagnose:legacyapi",
|
|
6159
|
+
"org:hardis:diagnose:legacyapi",
|
|
6160
|
+
"org:diagnose:hardis:legacyapi",
|
|
6161
|
+
"org:diagnose:legacyapi:hardis",
|
|
6162
|
+
"hardis:diagnose:org:legacyapi",
|
|
6163
|
+
"diagnose:hardis:org:legacyapi",
|
|
6164
|
+
"diagnose:org:hardis:legacyapi",
|
|
6165
|
+
"diagnose:org:legacyapi:hardis",
|
|
6166
|
+
"hardis:diagnose:legacyapi:org",
|
|
6167
|
+
"diagnose:hardis:legacyapi:org",
|
|
6168
|
+
"diagnose:legacyapi:hardis:org",
|
|
6169
|
+
"diagnose:legacyapi:org:hardis",
|
|
6170
|
+
"hardis:org:legacyapi:diagnose",
|
|
6171
|
+
"org:hardis:legacyapi:diagnose",
|
|
6172
|
+
"org:legacyapi:hardis:diagnose",
|
|
6173
|
+
"org:legacyapi:diagnose:hardis",
|
|
6174
|
+
"hardis:legacyapi:org:diagnose",
|
|
6175
|
+
"legacyapi:hardis:org:diagnose",
|
|
6176
|
+
"legacyapi:org:hardis:diagnose",
|
|
6177
|
+
"legacyapi:org:diagnose:hardis",
|
|
6178
|
+
"hardis:legacyapi:diagnose:org",
|
|
6179
|
+
"legacyapi:hardis:diagnose:org",
|
|
6180
|
+
"legacyapi:diagnose:hardis:org",
|
|
6181
|
+
"legacyapi:diagnose:org:hardis"
|
|
6148
6182
|
]
|
|
6149
6183
|
},
|
|
6150
|
-
"hardis:org:diagnose:
|
|
6184
|
+
"hardis:org:diagnose:licenses": {
|
|
6151
6185
|
"aliases": [],
|
|
6152
6186
|
"args": {},
|
|
6153
|
-
"description": "\n
|
|
6187
|
+
"description": "\n**Lists and analyzes User Licenses and Permission Set Licenses subscribed and used in a Salesforce org.**\n\nThis command provides a comprehensive overview of your Salesforce license consumption. It's particularly useful for:\n\n- **License Management:** Understanding which licenses are active, how many are available, and how many are being used.\n- **Cost Optimization:** Identifying unused or underutilized licenses that could be reallocated or decommissioned.\n- **Compliance:** Ensuring that your organization is compliant with Salesforce licensing agreements.\n- **Monitoring:** Tracking license usage trends over time.\n\nKey functionalities:\n\n- **User License Details:** Retrieves information about standard and custom User Licenses, including `MasterLabel`, `Name`, `TotalLicenses`, and `UsedLicenses`.\n- **Permission Set License Details:** Retrieves information about Permission Set Licenses, including `MasterLabel`, `PermissionSetLicenseKey`, `TotalLicenses`, and `UsedLicenses`.\n- **Used Licenses Filter:** The `--usedonly` flag allows you to filter the report to show only licenses that have at least one `UsedLicenses` count greater than zero.\n- **CSV Report Generation:** Generates a CSV file containing all the retrieved license information, suitable for detailed analysis.\n- **Notifications:** Sends notifications to configured channels (e.g., Grafana, Slack, MS Teams) with a summary of license usage, including lists of active and used licenses.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce SOQL Queries:** It executes SOQL queries against the `UserLicense` and `PermissionSetLicense` objects in Salesforce to retrieve license data.\n- **Data Transformation:** It processes the query results, reformatting the data to be more readable and consistent for reporting purposes (e.g., removing `Id` and `attributes`, renaming `PermissionSetLicenseKey` to `Name`).\n- **Data Aggregation:** It aggregates license information, creating a `licensesByKey` object for quick lookups and a `usedLicenses` array for a concise list of actively used licenses.\n- **Report Generation:** It uses `generateCsvFile` to create the CSV report of license data.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including attachments of the generated CSV report and metrics for monitoring dashboards.\n- **User Feedback:** Provides clear messages to the user about the license extraction process and the used licenses.\n</details>\n",
|
|
6154
6188
|
"examples": [
|
|
6155
|
-
"$ sf hardis:org:diagnose:
|
|
6189
|
+
"$ sf hardis:org:diagnose:licenses"
|
|
6156
6190
|
],
|
|
6157
6191
|
"flags": {
|
|
6158
6192
|
"json": {
|
|
@@ -6178,6 +6212,13 @@
|
|
|
6178
6212
|
"multiple": false,
|
|
6179
6213
|
"type": "option"
|
|
6180
6214
|
},
|
|
6215
|
+
"usedonly": {
|
|
6216
|
+
"char": "u",
|
|
6217
|
+
"description": "Filter to have only used licenses",
|
|
6218
|
+
"name": "usedonly",
|
|
6219
|
+
"allowNo": false,
|
|
6220
|
+
"type": "boolean"
|
|
6221
|
+
},
|
|
6181
6222
|
"debug": {
|
|
6182
6223
|
"char": "d",
|
|
6183
6224
|
"description": "Activate debug mode (more logs)",
|
|
@@ -6216,13 +6257,13 @@
|
|
|
6216
6257
|
},
|
|
6217
6258
|
"hasDynamicHelp": true,
|
|
6218
6259
|
"hiddenAliases": [],
|
|
6219
|
-
"id": "hardis:org:diagnose:
|
|
6260
|
+
"id": "hardis:org:diagnose:licenses",
|
|
6220
6261
|
"pluginAlias": "sfdx-hardis",
|
|
6221
6262
|
"pluginName": "sfdx-hardis",
|
|
6222
6263
|
"pluginType": "core",
|
|
6223
6264
|
"strict": true,
|
|
6224
6265
|
"enableJsonFlag": true,
|
|
6225
|
-
"title": "
|
|
6266
|
+
"title": "List licenses subscribed and used in a Salesforce org",
|
|
6226
6267
|
"requiresProject": false,
|
|
6227
6268
|
"isESM": true,
|
|
6228
6269
|
"relativePath": [
|
|
@@ -6231,43 +6272,42 @@
|
|
|
6231
6272
|
"hardis",
|
|
6232
6273
|
"org",
|
|
6233
6274
|
"diagnose",
|
|
6234
|
-
"
|
|
6275
|
+
"licenses.js"
|
|
6235
6276
|
],
|
|
6236
6277
|
"aliasPermutations": [],
|
|
6237
6278
|
"permutations": [
|
|
6238
|
-
"hardis:org:diagnose:
|
|
6239
|
-
"org:hardis:diagnose:
|
|
6240
|
-
"org:diagnose:hardis:
|
|
6241
|
-
"org:diagnose:
|
|
6242
|
-
"hardis:diagnose:org:
|
|
6243
|
-
"diagnose:hardis:org:
|
|
6244
|
-
"diagnose:org:hardis:
|
|
6245
|
-
"diagnose:org:
|
|
6246
|
-
"hardis:diagnose:
|
|
6247
|
-
"diagnose:hardis:
|
|
6248
|
-
"diagnose:
|
|
6249
|
-
"diagnose:
|
|
6250
|
-
"hardis:org:
|
|
6251
|
-
"org:hardis:
|
|
6252
|
-
"org:
|
|
6253
|
-
"org:
|
|
6254
|
-
"hardis:
|
|
6255
|
-
"
|
|
6256
|
-
"
|
|
6257
|
-
"
|
|
6258
|
-
"hardis:
|
|
6259
|
-
"
|
|
6260
|
-
"
|
|
6261
|
-
"
|
|
6279
|
+
"hardis:org:diagnose:licenses",
|
|
6280
|
+
"org:hardis:diagnose:licenses",
|
|
6281
|
+
"org:diagnose:hardis:licenses",
|
|
6282
|
+
"org:diagnose:licenses:hardis",
|
|
6283
|
+
"hardis:diagnose:org:licenses",
|
|
6284
|
+
"diagnose:hardis:org:licenses",
|
|
6285
|
+
"diagnose:org:hardis:licenses",
|
|
6286
|
+
"diagnose:org:licenses:hardis",
|
|
6287
|
+
"hardis:diagnose:licenses:org",
|
|
6288
|
+
"diagnose:hardis:licenses:org",
|
|
6289
|
+
"diagnose:licenses:hardis:org",
|
|
6290
|
+
"diagnose:licenses:org:hardis",
|
|
6291
|
+
"hardis:org:licenses:diagnose",
|
|
6292
|
+
"org:hardis:licenses:diagnose",
|
|
6293
|
+
"org:licenses:hardis:diagnose",
|
|
6294
|
+
"org:licenses:diagnose:hardis",
|
|
6295
|
+
"hardis:licenses:org:diagnose",
|
|
6296
|
+
"licenses:hardis:org:diagnose",
|
|
6297
|
+
"licenses:org:hardis:diagnose",
|
|
6298
|
+
"licenses:org:diagnose:hardis",
|
|
6299
|
+
"hardis:licenses:diagnose:org",
|
|
6300
|
+
"licenses:hardis:diagnose:org",
|
|
6301
|
+
"licenses:diagnose:hardis:org",
|
|
6302
|
+
"licenses:diagnose:org:hardis"
|
|
6262
6303
|
]
|
|
6263
6304
|
},
|
|
6264
|
-
"hardis:org:diagnose:
|
|
6305
|
+
"hardis:org:diagnose:releaseupdates": {
|
|
6265
6306
|
"aliases": [],
|
|
6266
6307
|
"args": {},
|
|
6267
|
-
"description": "
|
|
6308
|
+
"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",
|
|
6268
6309
|
"examples": [
|
|
6269
|
-
"$ sf hardis:org:diagnose:
|
|
6270
|
-
"$ sf hardis:org:diagnose:unused-apex-classes --days 700"
|
|
6310
|
+
"$ sf hardis:org:diagnose:releaseupdates"
|
|
6271
6311
|
],
|
|
6272
6312
|
"flags": {
|
|
6273
6313
|
"json": {
|
|
@@ -6293,14 +6333,6 @@
|
|
|
6293
6333
|
"multiple": false,
|
|
6294
6334
|
"type": "option"
|
|
6295
6335
|
},
|
|
6296
|
-
"days": {
|
|
6297
|
-
"char": "t",
|
|
6298
|
-
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
6299
|
-
"name": "days",
|
|
6300
|
-
"hasDynamicHelp": false,
|
|
6301
|
-
"multiple": false,
|
|
6302
|
-
"type": "option"
|
|
6303
|
-
},
|
|
6304
6336
|
"debug": {
|
|
6305
6337
|
"char": "d",
|
|
6306
6338
|
"description": "Activate debug mode (more logs)",
|
|
@@ -6339,13 +6371,13 @@
|
|
|
6339
6371
|
},
|
|
6340
6372
|
"hasDynamicHelp": true,
|
|
6341
6373
|
"hiddenAliases": [],
|
|
6342
|
-
"id": "hardis:org:diagnose:
|
|
6374
|
+
"id": "hardis:org:diagnose:releaseupdates",
|
|
6343
6375
|
"pluginAlias": "sfdx-hardis",
|
|
6344
6376
|
"pluginName": "sfdx-hardis",
|
|
6345
6377
|
"pluginType": "core",
|
|
6346
6378
|
"strict": true,
|
|
6347
6379
|
"enableJsonFlag": true,
|
|
6348
|
-
"title": "
|
|
6380
|
+
"title": "Check Release Updates of an org",
|
|
6349
6381
|
"requiresProject": false,
|
|
6350
6382
|
"isESM": true,
|
|
6351
6383
|
"relativePath": [
|
|
@@ -6354,34 +6386,271 @@
|
|
|
6354
6386
|
"hardis",
|
|
6355
6387
|
"org",
|
|
6356
6388
|
"diagnose",
|
|
6357
|
-
"
|
|
6389
|
+
"releaseupdates.js"
|
|
6358
6390
|
],
|
|
6359
6391
|
"aliasPermutations": [],
|
|
6360
6392
|
"permutations": [
|
|
6361
|
-
"hardis:org:diagnose:
|
|
6362
|
-
"org:hardis:diagnose:
|
|
6363
|
-
"org:diagnose:hardis:
|
|
6364
|
-
"org:diagnose:
|
|
6365
|
-
"hardis:diagnose:org:
|
|
6366
|
-
"diagnose:hardis:org:
|
|
6367
|
-
"diagnose:org:hardis:
|
|
6368
|
-
"diagnose:org:
|
|
6369
|
-
"hardis:diagnose:
|
|
6370
|
-
"diagnose:hardis:
|
|
6371
|
-
"diagnose:
|
|
6372
|
-
"diagnose:
|
|
6373
|
-
"hardis:org:
|
|
6374
|
-
"org:hardis:
|
|
6375
|
-
"org:
|
|
6376
|
-
"org:
|
|
6377
|
-
"hardis:
|
|
6378
|
-
"
|
|
6379
|
-
"
|
|
6380
|
-
"
|
|
6381
|
-
"hardis:
|
|
6382
|
-
"
|
|
6383
|
-
"
|
|
6384
|
-
"
|
|
6393
|
+
"hardis:org:diagnose:releaseupdates",
|
|
6394
|
+
"org:hardis:diagnose:releaseupdates",
|
|
6395
|
+
"org:diagnose:hardis:releaseupdates",
|
|
6396
|
+
"org:diagnose:releaseupdates:hardis",
|
|
6397
|
+
"hardis:diagnose:org:releaseupdates",
|
|
6398
|
+
"diagnose:hardis:org:releaseupdates",
|
|
6399
|
+
"diagnose:org:hardis:releaseupdates",
|
|
6400
|
+
"diagnose:org:releaseupdates:hardis",
|
|
6401
|
+
"hardis:diagnose:releaseupdates:org",
|
|
6402
|
+
"diagnose:hardis:releaseupdates:org",
|
|
6403
|
+
"diagnose:releaseupdates:hardis:org",
|
|
6404
|
+
"diagnose:releaseupdates:org:hardis",
|
|
6405
|
+
"hardis:org:releaseupdates:diagnose",
|
|
6406
|
+
"org:hardis:releaseupdates:diagnose",
|
|
6407
|
+
"org:releaseupdates:hardis:diagnose",
|
|
6408
|
+
"org:releaseupdates:diagnose:hardis",
|
|
6409
|
+
"hardis:releaseupdates:org:diagnose",
|
|
6410
|
+
"releaseupdates:hardis:org:diagnose",
|
|
6411
|
+
"releaseupdates:org:hardis:diagnose",
|
|
6412
|
+
"releaseupdates:org:diagnose:hardis",
|
|
6413
|
+
"hardis:releaseupdates:diagnose:org",
|
|
6414
|
+
"releaseupdates:hardis:diagnose:org",
|
|
6415
|
+
"releaseupdates:diagnose:hardis:org",
|
|
6416
|
+
"releaseupdates:diagnose:org:hardis"
|
|
6417
|
+
]
|
|
6418
|
+
},
|
|
6419
|
+
"hardis:org:diagnose:unsecure-connected-apps": {
|
|
6420
|
+
"aliases": [],
|
|
6421
|
+
"args": {},
|
|
6422
|
+
"description": "\n## Command Behavior\n\n**Detects unsecured Connected Apps in a Salesforce org and generates detailed reports for security analysis.**\n\nThis command is a critical security diagnostic tool that helps administrators identify Connected Apps that may pose security risks due to improper configuration. It provides comprehensive analysis of OAuth tokens and Connected App security settings to ensure proper access control.\n\nKey functionalities:\n\n- **OAuth Token Analysis:** Queries all OAuth tokens in the org using SOQL to retrieve comprehensive token information including app names, users, authorization status, and usage statistics.\n- **Security Status Assessment:** Evaluates each Connected App's security configuration by checking the `IsUsingAdminAuthorization` flag to determine if admin pre-approval is required.\n- **Unsecured App Detection:** Identifies Connected Apps that allow users to authorize themselves without admin approval, which can pose security risks.\n- **Detailed Reporting:** Generates two comprehensive CSV reports:\n - **OAuth Tokens Report:** Lists all OAuth tokens with security status, user information, and usage data\n - **Connected Apps Summary:** Aggregates unsecured Connected Apps with counts of associated OAuth tokens\n- **Visual Indicators:** Uses status icons (❌ for unsecured, ✅ for secured) to provide immediate visual feedback on security status.\n- **Security Recommendations:** Provides actionable guidance on how to secure Connected Apps through proper configuration.\n- **Notifications:** Sends alerts to configured channels (Grafana, Slack, MS Teams) with security findings and attached reports.\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-org-security/) and can output Grafana, Slack and MsTeams Notifications.\n\n<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/jHv8yrSK8Dg\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **SOQL Query Execution:** Executes a comprehensive SOQL query on the `OauthToken` object, joining with `AppMenuItem` and `User` objects to gather complete security context.\n- **Security Analysis Logic:** Analyzes the `AppMenuItem.IsUsingAdminAuthorization` field to determine if a Connected App requires admin pre-approval for user authorization.\n- **Data Transformation:** Processes raw SOQL results to add security status indicators and reorganize data for optimal reporting and analysis.\n- **Aggregation Processing:** Groups OAuth tokens by Connected App name to provide summary statistics and identify the most problematic applications.\n- **Report Generation:** Uses `generateCsvFile` to create structured CSV reports with proper formatting and metadata for easy analysis and sharing.\n- **Notification Integration:** Integrates with the `NotifProvider` to send security alerts with detailed metrics, including the number of unsecured Connected Apps and associated OAuth tokens.\n- **File Management:** Generates multiple output formats (CSV, XLSX) and manages file paths using `generateReportPath` for consistent report organization.\n- **Connection Management:** Uses `setConnectionVariables` to ensure proper authentication context for notification providers that require org connection details.\n</details>\n",
|
|
6423
|
+
"examples": [
|
|
6424
|
+
"$ sf hardis:org:diagnose:unsecure-connected-apps"
|
|
6425
|
+
],
|
|
6426
|
+
"flags": {
|
|
6427
|
+
"json": {
|
|
6428
|
+
"description": "Format output as json.",
|
|
6429
|
+
"helpGroup": "GLOBAL",
|
|
6430
|
+
"name": "json",
|
|
6431
|
+
"allowNo": false,
|
|
6432
|
+
"type": "boolean"
|
|
6433
|
+
},
|
|
6434
|
+
"flags-dir": {
|
|
6435
|
+
"helpGroup": "GLOBAL",
|
|
6436
|
+
"name": "flags-dir",
|
|
6437
|
+
"summary": "Import flag values from a directory.",
|
|
6438
|
+
"hasDynamicHelp": false,
|
|
6439
|
+
"multiple": false,
|
|
6440
|
+
"type": "option"
|
|
6441
|
+
},
|
|
6442
|
+
"outputfile": {
|
|
6443
|
+
"char": "f",
|
|
6444
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6445
|
+
"name": "outputfile",
|
|
6446
|
+
"hasDynamicHelp": false,
|
|
6447
|
+
"multiple": false,
|
|
6448
|
+
"type": "option"
|
|
6449
|
+
},
|
|
6450
|
+
"debug": {
|
|
6451
|
+
"char": "d",
|
|
6452
|
+
"description": "Activate debug mode (more logs)",
|
|
6453
|
+
"name": "debug",
|
|
6454
|
+
"allowNo": false,
|
|
6455
|
+
"type": "boolean"
|
|
6456
|
+
},
|
|
6457
|
+
"websocket": {
|
|
6458
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
6459
|
+
"name": "websocket",
|
|
6460
|
+
"hasDynamicHelp": false,
|
|
6461
|
+
"multiple": false,
|
|
6462
|
+
"type": "option"
|
|
6463
|
+
},
|
|
6464
|
+
"skipauth": {
|
|
6465
|
+
"description": "Skip authentication check when a default username is required",
|
|
6466
|
+
"name": "skipauth",
|
|
6467
|
+
"allowNo": false,
|
|
6468
|
+
"type": "boolean"
|
|
6469
|
+
},
|
|
6470
|
+
"target-org": {
|
|
6471
|
+
"aliases": [
|
|
6472
|
+
"targetusername",
|
|
6473
|
+
"u"
|
|
6474
|
+
],
|
|
6475
|
+
"char": "o",
|
|
6476
|
+
"deprecateAliases": true,
|
|
6477
|
+
"name": "target-org",
|
|
6478
|
+
"noCacheDefault": true,
|
|
6479
|
+
"required": true,
|
|
6480
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
6481
|
+
"hasDynamicHelp": true,
|
|
6482
|
+
"multiple": false,
|
|
6483
|
+
"type": "option"
|
|
6484
|
+
}
|
|
6485
|
+
},
|
|
6486
|
+
"hasDynamicHelp": true,
|
|
6487
|
+
"hiddenAliases": [],
|
|
6488
|
+
"id": "hardis:org:diagnose:unsecure-connected-apps",
|
|
6489
|
+
"pluginAlias": "sfdx-hardis",
|
|
6490
|
+
"pluginName": "sfdx-hardis",
|
|
6491
|
+
"pluginType": "core",
|
|
6492
|
+
"strict": true,
|
|
6493
|
+
"enableJsonFlag": true,
|
|
6494
|
+
"title": "Detect Unsecured Connected Apps",
|
|
6495
|
+
"requiresProject": false,
|
|
6496
|
+
"isESM": true,
|
|
6497
|
+
"relativePath": [
|
|
6498
|
+
"lib",
|
|
6499
|
+
"commands",
|
|
6500
|
+
"hardis",
|
|
6501
|
+
"org",
|
|
6502
|
+
"diagnose",
|
|
6503
|
+
"unsecure-connected-apps.js"
|
|
6504
|
+
],
|
|
6505
|
+
"aliasPermutations": [],
|
|
6506
|
+
"permutations": [
|
|
6507
|
+
"hardis:org:diagnose:unsecure-connected-apps",
|
|
6508
|
+
"org:hardis:diagnose:unsecure-connected-apps",
|
|
6509
|
+
"org:diagnose:hardis:unsecure-connected-apps",
|
|
6510
|
+
"org:diagnose:unsecure-connected-apps:hardis",
|
|
6511
|
+
"hardis:diagnose:org:unsecure-connected-apps",
|
|
6512
|
+
"diagnose:hardis:org:unsecure-connected-apps",
|
|
6513
|
+
"diagnose:org:hardis:unsecure-connected-apps",
|
|
6514
|
+
"diagnose:org:unsecure-connected-apps:hardis",
|
|
6515
|
+
"hardis:diagnose:unsecure-connected-apps:org",
|
|
6516
|
+
"diagnose:hardis:unsecure-connected-apps:org",
|
|
6517
|
+
"diagnose:unsecure-connected-apps:hardis:org",
|
|
6518
|
+
"diagnose:unsecure-connected-apps:org:hardis",
|
|
6519
|
+
"hardis:org:unsecure-connected-apps:diagnose",
|
|
6520
|
+
"org:hardis:unsecure-connected-apps:diagnose",
|
|
6521
|
+
"org:unsecure-connected-apps:hardis:diagnose",
|
|
6522
|
+
"org:unsecure-connected-apps:diagnose:hardis",
|
|
6523
|
+
"hardis:unsecure-connected-apps:org:diagnose",
|
|
6524
|
+
"unsecure-connected-apps:hardis:org:diagnose",
|
|
6525
|
+
"unsecure-connected-apps:org:hardis:diagnose",
|
|
6526
|
+
"unsecure-connected-apps:org:diagnose:hardis",
|
|
6527
|
+
"hardis:unsecure-connected-apps:diagnose:org",
|
|
6528
|
+
"unsecure-connected-apps:hardis:diagnose:org",
|
|
6529
|
+
"unsecure-connected-apps:diagnose:hardis:org",
|
|
6530
|
+
"unsecure-connected-apps:diagnose:org:hardis"
|
|
6531
|
+
]
|
|
6532
|
+
},
|
|
6533
|
+
"hardis:org:diagnose:unused-apex-classes": {
|
|
6534
|
+
"aliases": [],
|
|
6535
|
+
"args": {},
|
|
6536
|
+
"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",
|
|
6537
|
+
"examples": [
|
|
6538
|
+
"$ sf hardis:org:diagnose:unused-apex-classes",
|
|
6539
|
+
"$ sf hardis:org:diagnose:unused-apex-classes --days 700"
|
|
6540
|
+
],
|
|
6541
|
+
"flags": {
|
|
6542
|
+
"json": {
|
|
6543
|
+
"description": "Format output as json.",
|
|
6544
|
+
"helpGroup": "GLOBAL",
|
|
6545
|
+
"name": "json",
|
|
6546
|
+
"allowNo": false,
|
|
6547
|
+
"type": "boolean"
|
|
6548
|
+
},
|
|
6549
|
+
"flags-dir": {
|
|
6550
|
+
"helpGroup": "GLOBAL",
|
|
6551
|
+
"name": "flags-dir",
|
|
6552
|
+
"summary": "Import flag values from a directory.",
|
|
6553
|
+
"hasDynamicHelp": false,
|
|
6554
|
+
"multiple": false,
|
|
6555
|
+
"type": "option"
|
|
6556
|
+
},
|
|
6557
|
+
"outputfile": {
|
|
6558
|
+
"char": "f",
|
|
6559
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6560
|
+
"name": "outputfile",
|
|
6561
|
+
"hasDynamicHelp": false,
|
|
6562
|
+
"multiple": false,
|
|
6563
|
+
"type": "option"
|
|
6564
|
+
},
|
|
6565
|
+
"days": {
|
|
6566
|
+
"char": "t",
|
|
6567
|
+
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
6568
|
+
"name": "days",
|
|
6569
|
+
"hasDynamicHelp": false,
|
|
6570
|
+
"multiple": false,
|
|
6571
|
+
"type": "option"
|
|
6572
|
+
},
|
|
6573
|
+
"debug": {
|
|
6574
|
+
"char": "d",
|
|
6575
|
+
"description": "Activate debug mode (more logs)",
|
|
6576
|
+
"name": "debug",
|
|
6577
|
+
"allowNo": false,
|
|
6578
|
+
"type": "boolean"
|
|
6579
|
+
},
|
|
6580
|
+
"websocket": {
|
|
6581
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
6582
|
+
"name": "websocket",
|
|
6583
|
+
"hasDynamicHelp": false,
|
|
6584
|
+
"multiple": false,
|
|
6585
|
+
"type": "option"
|
|
6586
|
+
},
|
|
6587
|
+
"skipauth": {
|
|
6588
|
+
"description": "Skip authentication check when a default username is required",
|
|
6589
|
+
"name": "skipauth",
|
|
6590
|
+
"allowNo": false,
|
|
6591
|
+
"type": "boolean"
|
|
6592
|
+
},
|
|
6593
|
+
"target-org": {
|
|
6594
|
+
"aliases": [
|
|
6595
|
+
"targetusername",
|
|
6596
|
+
"u"
|
|
6597
|
+
],
|
|
6598
|
+
"char": "o",
|
|
6599
|
+
"deprecateAliases": true,
|
|
6600
|
+
"name": "target-org",
|
|
6601
|
+
"noCacheDefault": true,
|
|
6602
|
+
"required": true,
|
|
6603
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
6604
|
+
"hasDynamicHelp": true,
|
|
6605
|
+
"multiple": false,
|
|
6606
|
+
"type": "option"
|
|
6607
|
+
}
|
|
6608
|
+
},
|
|
6609
|
+
"hasDynamicHelp": true,
|
|
6610
|
+
"hiddenAliases": [],
|
|
6611
|
+
"id": "hardis:org:diagnose:unused-apex-classes",
|
|
6612
|
+
"pluginAlias": "sfdx-hardis",
|
|
6613
|
+
"pluginName": "sfdx-hardis",
|
|
6614
|
+
"pluginType": "core",
|
|
6615
|
+
"strict": true,
|
|
6616
|
+
"enableJsonFlag": true,
|
|
6617
|
+
"title": "Detect unused Apex classes in an org",
|
|
6618
|
+
"requiresProject": false,
|
|
6619
|
+
"isESM": true,
|
|
6620
|
+
"relativePath": [
|
|
6621
|
+
"lib",
|
|
6622
|
+
"commands",
|
|
6623
|
+
"hardis",
|
|
6624
|
+
"org",
|
|
6625
|
+
"diagnose",
|
|
6626
|
+
"unused-apex-classes.js"
|
|
6627
|
+
],
|
|
6628
|
+
"aliasPermutations": [],
|
|
6629
|
+
"permutations": [
|
|
6630
|
+
"hardis:org:diagnose:unused-apex-classes",
|
|
6631
|
+
"org:hardis:diagnose:unused-apex-classes",
|
|
6632
|
+
"org:diagnose:hardis:unused-apex-classes",
|
|
6633
|
+
"org:diagnose:unused-apex-classes:hardis",
|
|
6634
|
+
"hardis:diagnose:org:unused-apex-classes",
|
|
6635
|
+
"diagnose:hardis:org:unused-apex-classes",
|
|
6636
|
+
"diagnose:org:hardis:unused-apex-classes",
|
|
6637
|
+
"diagnose:org:unused-apex-classes:hardis",
|
|
6638
|
+
"hardis:diagnose:unused-apex-classes:org",
|
|
6639
|
+
"diagnose:hardis:unused-apex-classes:org",
|
|
6640
|
+
"diagnose:unused-apex-classes:hardis:org",
|
|
6641
|
+
"diagnose:unused-apex-classes:org:hardis",
|
|
6642
|
+
"hardis:org:unused-apex-classes:diagnose",
|
|
6643
|
+
"org:hardis:unused-apex-classes:diagnose",
|
|
6644
|
+
"org:unused-apex-classes:hardis:diagnose",
|
|
6645
|
+
"org:unused-apex-classes:diagnose:hardis",
|
|
6646
|
+
"hardis:unused-apex-classes:org:diagnose",
|
|
6647
|
+
"unused-apex-classes:hardis:org:diagnose",
|
|
6648
|
+
"unused-apex-classes:org:hardis:diagnose",
|
|
6649
|
+
"unused-apex-classes:org:diagnose:hardis",
|
|
6650
|
+
"hardis:unused-apex-classes:diagnose:org",
|
|
6651
|
+
"unused-apex-classes:hardis:diagnose:org",
|
|
6652
|
+
"unused-apex-classes:diagnose:hardis:org",
|
|
6653
|
+
"unused-apex-classes:diagnose:org:hardis"
|
|
6385
6654
|
]
|
|
6386
6655
|
},
|
|
6387
6656
|
"hardis:org:diagnose:unused-connected-apps": {
|
|
@@ -6801,275 +7070,6 @@
|
|
|
6801
7070
|
"unusedusers:diagnose:org:hardis"
|
|
6802
7071
|
]
|
|
6803
7072
|
},
|
|
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
|
-
]
|
|
7072
|
-
},
|
|
7073
7073
|
"hardis:org:fix:listviewmine": {
|
|
7074
7074
|
"aliases": [],
|
|
7075
7075
|
"args": {},
|
|
@@ -11363,262 +11363,47 @@
|
|
|
11363
11363
|
"pluginName": "sfdx-hardis",
|
|
11364
11364
|
"pluginType": "core",
|
|
11365
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
|
-
"hardis:project:fix:profiletabs": {
|
|
11410
|
-
"aliases": [],
|
|
11411
|
-
"args": {},
|
|
11412
|
-
"description": "\n## Command Behavior\n\n**Interactively updates tab visibility settings in Salesforce profiles, addressing a common issue where tab visibilities are not correctly retrieved by `sf project retrieve start`.**\n\nThis command provides a user-friendly interface to manage tab settings within your profile XML files, ensuring that your local project accurately reflects the intended tab configurations in your Salesforce org.\n\nKey functionalities:\n\n- **Interactive Tab Selection:** Displays a multi-select menu of all available tabs in your org, allowing you to choose which tabs to update.\n- **Visibility Control:** Lets you set the visibility for the selected tabs to either `DefaultOn` (Visible) or `Hidden`.\n- **Profile Selection:** Presents a multi-select menu of all .profile-meta.xml files in your project, allowing you to apply the tab visibility changes to specific profiles.\n- **XML Updates:** Modifies the <tabVisibilities> section of the selected profile XML files to reflect the chosen tab settings. If a tab visibility setting already exists for a selected tab, it will be updated; otherwise, a new one will be added.\n- **Sorted Output:** The <tabVisibilities> in the updated profile XML files are sorted alphabetically for consistency and readability.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **SOQL Queries (Tooling API):** It queries the `TabDefinition` object using `soqlQueryTooling` to retrieve a list of all available tabs in the target org.\n- **File Discovery:** Uses `glob` to find all .profile-meta.xml files within the specified project path.\n- **Interactive Prompts:** Leverages the `prompts` library to create interactive menus for selecting tabs, visibility settings, and profiles.\n- **XML Parsing and Manipulation:** Uses `parseXmlFile` to read the content of profile XML files and `writeXmlFile` to write the modified content back. It manipulates the `tabVisibilities` array within the parsed XML to add or update tab settings.\n- **Array Sorting:** Employs the `sort-array` library to sort the `tabVisibilities` alphabetically by tab name.\n- **Logging:** Provides feedback to the user about which profiles have been updated and a summary of the changes.\n</details>\n",
|
|
11413
|
-
"examples": [
|
|
11414
|
-
"$ sf hardis:project:fix:profiletabs"
|
|
11415
|
-
],
|
|
11416
|
-
"flags": {
|
|
11417
|
-
"json": {
|
|
11418
|
-
"description": "Format output as json.",
|
|
11419
|
-
"helpGroup": "GLOBAL",
|
|
11420
|
-
"name": "json",
|
|
11421
|
-
"allowNo": false,
|
|
11422
|
-
"type": "boolean"
|
|
11423
|
-
},
|
|
11424
|
-
"flags-dir": {
|
|
11425
|
-
"helpGroup": "GLOBAL",
|
|
11426
|
-
"name": "flags-dir",
|
|
11427
|
-
"summary": "Import flag values from a directory.",
|
|
11428
|
-
"hasDynamicHelp": false,
|
|
11429
|
-
"multiple": false,
|
|
11430
|
-
"type": "option"
|
|
11431
|
-
},
|
|
11432
|
-
"path": {
|
|
11433
|
-
"char": "p",
|
|
11434
|
-
"description": "Root folder",
|
|
11435
|
-
"name": "path",
|
|
11436
|
-
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
11437
|
-
"hasDynamicHelp": false,
|
|
11438
|
-
"multiple": false,
|
|
11439
|
-
"type": "option"
|
|
11440
|
-
},
|
|
11441
|
-
"debug": {
|
|
11442
|
-
"char": "d",
|
|
11443
|
-
"description": "Activate debug mode (more logs)",
|
|
11444
|
-
"name": "debug",
|
|
11445
|
-
"allowNo": false,
|
|
11446
|
-
"type": "boolean"
|
|
11447
|
-
},
|
|
11448
|
-
"websocket": {
|
|
11449
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11450
|
-
"name": "websocket",
|
|
11451
|
-
"hasDynamicHelp": false,
|
|
11452
|
-
"multiple": false,
|
|
11453
|
-
"type": "option"
|
|
11454
|
-
},
|
|
11455
|
-
"skipauth": {
|
|
11456
|
-
"description": "Skip authentication check when a default username is required",
|
|
11457
|
-
"name": "skipauth",
|
|
11458
|
-
"allowNo": false,
|
|
11459
|
-
"type": "boolean"
|
|
11460
|
-
},
|
|
11461
|
-
"target-org": {
|
|
11462
|
-
"aliases": [
|
|
11463
|
-
"targetusername",
|
|
11464
|
-
"u"
|
|
11465
|
-
],
|
|
11466
|
-
"char": "o",
|
|
11467
|
-
"deprecateAliases": true,
|
|
11468
|
-
"name": "target-org",
|
|
11469
|
-
"noCacheDefault": true,
|
|
11470
|
-
"required": true,
|
|
11471
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
11472
|
-
"hasDynamicHelp": true,
|
|
11473
|
-
"multiple": false,
|
|
11474
|
-
"type": "option"
|
|
11475
|
-
}
|
|
11476
|
-
},
|
|
11477
|
-
"hasDynamicHelp": true,
|
|
11478
|
-
"hiddenAliases": [],
|
|
11479
|
-
"id": "hardis:project:fix:profiletabs",
|
|
11480
|
-
"pluginAlias": "sfdx-hardis",
|
|
11481
|
-
"pluginName": "sfdx-hardis",
|
|
11482
|
-
"pluginType": "core",
|
|
11483
|
-
"strict": true,
|
|
11484
|
-
"enableJsonFlag": true,
|
|
11485
|
-
"title": "Fix profiles to add tabs that are not retrieved by SF CLI",
|
|
11486
|
-
"requiresProject": true,
|
|
11487
|
-
"isESM": true,
|
|
11488
|
-
"relativePath": [
|
|
11489
|
-
"lib",
|
|
11490
|
-
"commands",
|
|
11491
|
-
"hardis",
|
|
11492
|
-
"project",
|
|
11493
|
-
"fix",
|
|
11494
|
-
"profiletabs.js"
|
|
11495
|
-
],
|
|
11496
|
-
"aliasPermutations": [],
|
|
11497
|
-
"permutations": [
|
|
11498
|
-
"hardis:project:fix:profiletabs",
|
|
11499
|
-
"project:hardis:fix:profiletabs",
|
|
11500
|
-
"project:fix:hardis:profiletabs",
|
|
11501
|
-
"project:fix:profiletabs:hardis",
|
|
11502
|
-
"hardis:fix:project:profiletabs",
|
|
11503
|
-
"fix:hardis:project:profiletabs",
|
|
11504
|
-
"fix:project:hardis:profiletabs",
|
|
11505
|
-
"fix:project:profiletabs:hardis",
|
|
11506
|
-
"hardis:fix:profiletabs:project",
|
|
11507
|
-
"fix:hardis:profiletabs:project",
|
|
11508
|
-
"fix:profiletabs:hardis:project",
|
|
11509
|
-
"fix:profiletabs:project:hardis",
|
|
11510
|
-
"hardis:project:profiletabs:fix",
|
|
11511
|
-
"project:hardis:profiletabs:fix",
|
|
11512
|
-
"project:profiletabs:hardis:fix",
|
|
11513
|
-
"project:profiletabs:fix:hardis",
|
|
11514
|
-
"hardis:profiletabs:project:fix",
|
|
11515
|
-
"profiletabs:hardis:project:fix",
|
|
11516
|
-
"profiletabs:project:hardis:fix",
|
|
11517
|
-
"profiletabs:project:fix:hardis",
|
|
11518
|
-
"hardis:profiletabs:fix:project",
|
|
11519
|
-
"profiletabs:hardis:fix:project",
|
|
11520
|
-
"profiletabs:fix:hardis:project",
|
|
11521
|
-
"profiletabs:fix:project:hardis"
|
|
11522
|
-
]
|
|
11523
|
-
},
|
|
11524
|
-
"hardis:project:fix:v53flexipages": {
|
|
11525
|
-
"aliases": [],
|
|
11526
|
-
"args": {},
|
|
11527
|
-
"description": "\n## Command Behavior\n\n**Fixes Salesforce FlexiPages for compatibility with API Version 53.0 (Winter '22 release) by adding missing identifiers to component instances.**\n\nSalesforce introduced a change in API Version 53.0 that requires `identifier` tags within `componentInstance` and `fieldInstance` elements in FlexiPage metadata. If these identifiers are missing, deployments to orgs with API version 53.0 or higher will fail. This command automates the process of adding these missing identifiers, ensuring your FlexiPages remain deployable.\n\nKey functionalities:\n\n- **Targeted FlexiPage Processing:** Scans all .flexipage-meta.xml files within the specified root folder (defaults to current working directory).\n- **Identifier Injection:** Inserts a unique `identifier` tag (e.g., `SFDX_HARDIS_REPLACEMENT_ID`) into `componentInstance` and `fieldInstance` elements that lack one.\n\n**Important Note:** After running this command, ensure you update your `apiVersion` to `53.0` (or higher) in your `package.xml` and `sfdx-project.json` files.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **File Discovery:** Uses `glob` to find all .flexipage-meta.xml files.\n- **Content Reading:** Reads the XML content of each FlexiPage file.\n- **Regular Expression Replacement:** Employs a set of regular expressions to identify specific XML patterns (componentName.../componentName.../componentInstance, componentName.../componentName.../visibilityRule, fieldItem.../fieldItem.../fieldInstance) that are missing the `identifier` tag.\n- **Dynamic ID Generation:** For each match, it generates a unique identifier (e.g., `sfdxHardisIdX`) and injects it into the XML structure.\n- **File Writing:** If changes are made, the modified XML content is written back to the FlexiPage file using `fs.writeFile`.\n- **Logging:** Provides messages about which FlexiPages are being processed and a summary of the total number of identifiers added.\n</details>\n",
|
|
11528
|
-
"examples": [
|
|
11529
|
-
"$ sf hardis:project:fix:v53flexipages"
|
|
11530
|
-
],
|
|
11531
|
-
"flags": {
|
|
11532
|
-
"json": {
|
|
11533
|
-
"description": "Format output as json.",
|
|
11534
|
-
"helpGroup": "GLOBAL",
|
|
11535
|
-
"name": "json",
|
|
11536
|
-
"allowNo": false,
|
|
11537
|
-
"type": "boolean"
|
|
11538
|
-
},
|
|
11539
|
-
"flags-dir": {
|
|
11540
|
-
"helpGroup": "GLOBAL",
|
|
11541
|
-
"name": "flags-dir",
|
|
11542
|
-
"summary": "Import flag values from a directory.",
|
|
11543
|
-
"hasDynamicHelp": false,
|
|
11544
|
-
"multiple": false,
|
|
11545
|
-
"type": "option"
|
|
11546
|
-
},
|
|
11547
|
-
"path": {
|
|
11548
|
-
"char": "p",
|
|
11549
|
-
"description": "Root folder",
|
|
11550
|
-
"name": "path",
|
|
11551
|
-
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
11552
|
-
"hasDynamicHelp": false,
|
|
11553
|
-
"multiple": false,
|
|
11554
|
-
"type": "option"
|
|
11555
|
-
},
|
|
11556
|
-
"debug": {
|
|
11557
|
-
"char": "d",
|
|
11558
|
-
"description": "Activate debug mode (more logs)",
|
|
11559
|
-
"name": "debug",
|
|
11560
|
-
"allowNo": false,
|
|
11561
|
-
"type": "boolean"
|
|
11562
|
-
},
|
|
11563
|
-
"websocket": {
|
|
11564
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11565
|
-
"name": "websocket",
|
|
11566
|
-
"hasDynamicHelp": false,
|
|
11567
|
-
"multiple": false,
|
|
11568
|
-
"type": "option"
|
|
11569
|
-
},
|
|
11570
|
-
"skipauth": {
|
|
11571
|
-
"description": "Skip authentication check when a default username is required",
|
|
11572
|
-
"name": "skipauth",
|
|
11573
|
-
"allowNo": false,
|
|
11574
|
-
"type": "boolean"
|
|
11575
|
-
}
|
|
11576
|
-
},
|
|
11577
|
-
"hasDynamicHelp": false,
|
|
11578
|
-
"hiddenAliases": [],
|
|
11579
|
-
"id": "hardis:project:fix:v53flexipages",
|
|
11580
|
-
"pluginAlias": "sfdx-hardis",
|
|
11581
|
-
"pluginName": "sfdx-hardis",
|
|
11582
|
-
"pluginType": "core",
|
|
11583
|
-
"strict": true,
|
|
11584
|
-
"enableJsonFlag": true,
|
|
11585
|
-
"title": "Fix flexipages for v53",
|
|
11586
|
-
"requiresProject": true,
|
|
11587
|
-
"isESM": true,
|
|
11588
|
-
"relativePath": [
|
|
11589
|
-
"lib",
|
|
11590
|
-
"commands",
|
|
11591
|
-
"hardis",
|
|
11592
|
-
"project",
|
|
11593
|
-
"fix",
|
|
11594
|
-
"v53flexipages.js"
|
|
11595
|
-
],
|
|
11596
|
-
"aliasPermutations": [],
|
|
11597
|
-
"permutations": [
|
|
11598
|
-
"hardis:project:fix:v53flexipages",
|
|
11599
|
-
"project:hardis:fix:v53flexipages",
|
|
11600
|
-
"project:fix:hardis:v53flexipages",
|
|
11601
|
-
"project:fix:v53flexipages:hardis",
|
|
11602
|
-
"hardis:fix:project:v53flexipages",
|
|
11603
|
-
"fix:hardis:project:v53flexipages",
|
|
11604
|
-
"fix:project:hardis:v53flexipages",
|
|
11605
|
-
"fix:project:v53flexipages:hardis",
|
|
11606
|
-
"hardis:fix:v53flexipages:project",
|
|
11607
|
-
"fix:hardis:v53flexipages:project",
|
|
11608
|
-
"fix:v53flexipages:hardis:project",
|
|
11609
|
-
"fix:v53flexipages:project:hardis",
|
|
11610
|
-
"hardis:project:v53flexipages:fix",
|
|
11611
|
-
"project:hardis:v53flexipages:fix",
|
|
11612
|
-
"project:v53flexipages:hardis:fix",
|
|
11613
|
-
"project:v53flexipages:fix:hardis",
|
|
11614
|
-
"hardis:v53flexipages:project:fix",
|
|
11615
|
-
"v53flexipages:hardis:project:fix",
|
|
11616
|
-
"v53flexipages:project:hardis:fix",
|
|
11617
|
-
"v53flexipages:project:fix:hardis",
|
|
11618
|
-
"hardis:v53flexipages:fix:project",
|
|
11619
|
-
"v53flexipages:hardis:fix:project",
|
|
11620
|
-
"v53flexipages:fix:hardis:project",
|
|
11621
|
-
"v53flexipages:fix:project:hardis"
|
|
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"
|
|
11622
11407
|
]
|
|
11623
11408
|
},
|
|
11624
11409
|
"hardis:project:deploy:notify": {
|
|
@@ -12796,6 +12581,221 @@
|
|
|
12796
12581
|
"validate:deploy:project:hardis"
|
|
12797
12582
|
]
|
|
12798
12583
|
},
|
|
12584
|
+
"hardis:project:fix:profiletabs": {
|
|
12585
|
+
"aliases": [],
|
|
12586
|
+
"args": {},
|
|
12587
|
+
"description": "\n## Command Behavior\n\n**Interactively updates tab visibility settings in Salesforce profiles, addressing a common issue where tab visibilities are not correctly retrieved by `sf project retrieve start`.**\n\nThis command provides a user-friendly interface to manage tab settings within your profile XML files, ensuring that your local project accurately reflects the intended tab configurations in your Salesforce org.\n\nKey functionalities:\n\n- **Interactive Tab Selection:** Displays a multi-select menu of all available tabs in your org, allowing you to choose which tabs to update.\n- **Visibility Control:** Lets you set the visibility for the selected tabs to either `DefaultOn` (Visible) or `Hidden`.\n- **Profile Selection:** Presents a multi-select menu of all .profile-meta.xml files in your project, allowing you to apply the tab visibility changes to specific profiles.\n- **XML Updates:** Modifies the <tabVisibilities> section of the selected profile XML files to reflect the chosen tab settings. If a tab visibility setting already exists for a selected tab, it will be updated; otherwise, a new one will be added.\n- **Sorted Output:** The <tabVisibilities> in the updated profile XML files are sorted alphabetically for consistency and readability.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **SOQL Queries (Tooling API):** It queries the `TabDefinition` object using `soqlQueryTooling` to retrieve a list of all available tabs in the target org.\n- **File Discovery:** Uses `glob` to find all .profile-meta.xml files within the specified project path.\n- **Interactive Prompts:** Leverages the `prompts` library to create interactive menus for selecting tabs, visibility settings, and profiles.\n- **XML Parsing and Manipulation:** Uses `parseXmlFile` to read the content of profile XML files and `writeXmlFile` to write the modified content back. It manipulates the `tabVisibilities` array within the parsed XML to add or update tab settings.\n- **Array Sorting:** Employs the `sort-array` library to sort the `tabVisibilities` alphabetically by tab name.\n- **Logging:** Provides feedback to the user about which profiles have been updated and a summary of the changes.\n</details>\n",
|
|
12588
|
+
"examples": [
|
|
12589
|
+
"$ sf hardis:project:fix:profiletabs"
|
|
12590
|
+
],
|
|
12591
|
+
"flags": {
|
|
12592
|
+
"json": {
|
|
12593
|
+
"description": "Format output as json.",
|
|
12594
|
+
"helpGroup": "GLOBAL",
|
|
12595
|
+
"name": "json",
|
|
12596
|
+
"allowNo": false,
|
|
12597
|
+
"type": "boolean"
|
|
12598
|
+
},
|
|
12599
|
+
"flags-dir": {
|
|
12600
|
+
"helpGroup": "GLOBAL",
|
|
12601
|
+
"name": "flags-dir",
|
|
12602
|
+
"summary": "Import flag values from a directory.",
|
|
12603
|
+
"hasDynamicHelp": false,
|
|
12604
|
+
"multiple": false,
|
|
12605
|
+
"type": "option"
|
|
12606
|
+
},
|
|
12607
|
+
"path": {
|
|
12608
|
+
"char": "p",
|
|
12609
|
+
"description": "Root folder",
|
|
12610
|
+
"name": "path",
|
|
12611
|
+
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
12612
|
+
"hasDynamicHelp": false,
|
|
12613
|
+
"multiple": false,
|
|
12614
|
+
"type": "option"
|
|
12615
|
+
},
|
|
12616
|
+
"debug": {
|
|
12617
|
+
"char": "d",
|
|
12618
|
+
"description": "Activate debug mode (more logs)",
|
|
12619
|
+
"name": "debug",
|
|
12620
|
+
"allowNo": false,
|
|
12621
|
+
"type": "boolean"
|
|
12622
|
+
},
|
|
12623
|
+
"websocket": {
|
|
12624
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
12625
|
+
"name": "websocket",
|
|
12626
|
+
"hasDynamicHelp": false,
|
|
12627
|
+
"multiple": false,
|
|
12628
|
+
"type": "option"
|
|
12629
|
+
},
|
|
12630
|
+
"skipauth": {
|
|
12631
|
+
"description": "Skip authentication check when a default username is required",
|
|
12632
|
+
"name": "skipauth",
|
|
12633
|
+
"allowNo": false,
|
|
12634
|
+
"type": "boolean"
|
|
12635
|
+
},
|
|
12636
|
+
"target-org": {
|
|
12637
|
+
"aliases": [
|
|
12638
|
+
"targetusername",
|
|
12639
|
+
"u"
|
|
12640
|
+
],
|
|
12641
|
+
"char": "o",
|
|
12642
|
+
"deprecateAliases": true,
|
|
12643
|
+
"name": "target-org",
|
|
12644
|
+
"noCacheDefault": true,
|
|
12645
|
+
"required": true,
|
|
12646
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
12647
|
+
"hasDynamicHelp": true,
|
|
12648
|
+
"multiple": false,
|
|
12649
|
+
"type": "option"
|
|
12650
|
+
}
|
|
12651
|
+
},
|
|
12652
|
+
"hasDynamicHelp": true,
|
|
12653
|
+
"hiddenAliases": [],
|
|
12654
|
+
"id": "hardis:project:fix:profiletabs",
|
|
12655
|
+
"pluginAlias": "sfdx-hardis",
|
|
12656
|
+
"pluginName": "sfdx-hardis",
|
|
12657
|
+
"pluginType": "core",
|
|
12658
|
+
"strict": true,
|
|
12659
|
+
"enableJsonFlag": true,
|
|
12660
|
+
"title": "Fix profiles to add tabs that are not retrieved by SF CLI",
|
|
12661
|
+
"requiresProject": true,
|
|
12662
|
+
"isESM": true,
|
|
12663
|
+
"relativePath": [
|
|
12664
|
+
"lib",
|
|
12665
|
+
"commands",
|
|
12666
|
+
"hardis",
|
|
12667
|
+
"project",
|
|
12668
|
+
"fix",
|
|
12669
|
+
"profiletabs.js"
|
|
12670
|
+
],
|
|
12671
|
+
"aliasPermutations": [],
|
|
12672
|
+
"permutations": [
|
|
12673
|
+
"hardis:project:fix:profiletabs",
|
|
12674
|
+
"project:hardis:fix:profiletabs",
|
|
12675
|
+
"project:fix:hardis:profiletabs",
|
|
12676
|
+
"project:fix:profiletabs:hardis",
|
|
12677
|
+
"hardis:fix:project:profiletabs",
|
|
12678
|
+
"fix:hardis:project:profiletabs",
|
|
12679
|
+
"fix:project:hardis:profiletabs",
|
|
12680
|
+
"fix:project:profiletabs:hardis",
|
|
12681
|
+
"hardis:fix:profiletabs:project",
|
|
12682
|
+
"fix:hardis:profiletabs:project",
|
|
12683
|
+
"fix:profiletabs:hardis:project",
|
|
12684
|
+
"fix:profiletabs:project:hardis",
|
|
12685
|
+
"hardis:project:profiletabs:fix",
|
|
12686
|
+
"project:hardis:profiletabs:fix",
|
|
12687
|
+
"project:profiletabs:hardis:fix",
|
|
12688
|
+
"project:profiletabs:fix:hardis",
|
|
12689
|
+
"hardis:profiletabs:project:fix",
|
|
12690
|
+
"profiletabs:hardis:project:fix",
|
|
12691
|
+
"profiletabs:project:hardis:fix",
|
|
12692
|
+
"profiletabs:project:fix:hardis",
|
|
12693
|
+
"hardis:profiletabs:fix:project",
|
|
12694
|
+
"profiletabs:hardis:fix:project",
|
|
12695
|
+
"profiletabs:fix:hardis:project",
|
|
12696
|
+
"profiletabs:fix:project:hardis"
|
|
12697
|
+
]
|
|
12698
|
+
},
|
|
12699
|
+
"hardis:project:fix:v53flexipages": {
|
|
12700
|
+
"aliases": [],
|
|
12701
|
+
"args": {},
|
|
12702
|
+
"description": "\n## Command Behavior\n\n**Fixes Salesforce FlexiPages for compatibility with API Version 53.0 (Winter '22 release) by adding missing identifiers to component instances.**\n\nSalesforce introduced a change in API Version 53.0 that requires `identifier` tags within `componentInstance` and `fieldInstance` elements in FlexiPage metadata. If these identifiers are missing, deployments to orgs with API version 53.0 or higher will fail. This command automates the process of adding these missing identifiers, ensuring your FlexiPages remain deployable.\n\nKey functionalities:\n\n- **Targeted FlexiPage Processing:** Scans all .flexipage-meta.xml files within the specified root folder (defaults to current working directory).\n- **Identifier Injection:** Inserts a unique `identifier` tag (e.g., `SFDX_HARDIS_REPLACEMENT_ID`) into `componentInstance` and `fieldInstance` elements that lack one.\n\n**Important Note:** After running this command, ensure you update your `apiVersion` to `53.0` (or higher) in your `package.xml` and `sfdx-project.json` files.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **File Discovery:** Uses `glob` to find all .flexipage-meta.xml files.\n- **Content Reading:** Reads the XML content of each FlexiPage file.\n- **Regular Expression Replacement:** Employs a set of regular expressions to identify specific XML patterns (componentName.../componentName.../componentInstance, componentName.../componentName.../visibilityRule, fieldItem.../fieldItem.../fieldInstance) that are missing the `identifier` tag.\n- **Dynamic ID Generation:** For each match, it generates a unique identifier (e.g., `sfdxHardisIdX`) and injects it into the XML structure.\n- **File Writing:** If changes are made, the modified XML content is written back to the FlexiPage file using `fs.writeFile`.\n- **Logging:** Provides messages about which FlexiPages are being processed and a summary of the total number of identifiers added.\n</details>\n",
|
|
12703
|
+
"examples": [
|
|
12704
|
+
"$ sf hardis:project:fix:v53flexipages"
|
|
12705
|
+
],
|
|
12706
|
+
"flags": {
|
|
12707
|
+
"json": {
|
|
12708
|
+
"description": "Format output as json.",
|
|
12709
|
+
"helpGroup": "GLOBAL",
|
|
12710
|
+
"name": "json",
|
|
12711
|
+
"allowNo": false,
|
|
12712
|
+
"type": "boolean"
|
|
12713
|
+
},
|
|
12714
|
+
"flags-dir": {
|
|
12715
|
+
"helpGroup": "GLOBAL",
|
|
12716
|
+
"name": "flags-dir",
|
|
12717
|
+
"summary": "Import flag values from a directory.",
|
|
12718
|
+
"hasDynamicHelp": false,
|
|
12719
|
+
"multiple": false,
|
|
12720
|
+
"type": "option"
|
|
12721
|
+
},
|
|
12722
|
+
"path": {
|
|
12723
|
+
"char": "p",
|
|
12724
|
+
"description": "Root folder",
|
|
12725
|
+
"name": "path",
|
|
12726
|
+
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
12727
|
+
"hasDynamicHelp": false,
|
|
12728
|
+
"multiple": false,
|
|
12729
|
+
"type": "option"
|
|
12730
|
+
},
|
|
12731
|
+
"debug": {
|
|
12732
|
+
"char": "d",
|
|
12733
|
+
"description": "Activate debug mode (more logs)",
|
|
12734
|
+
"name": "debug",
|
|
12735
|
+
"allowNo": false,
|
|
12736
|
+
"type": "boolean"
|
|
12737
|
+
},
|
|
12738
|
+
"websocket": {
|
|
12739
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
12740
|
+
"name": "websocket",
|
|
12741
|
+
"hasDynamicHelp": false,
|
|
12742
|
+
"multiple": false,
|
|
12743
|
+
"type": "option"
|
|
12744
|
+
},
|
|
12745
|
+
"skipauth": {
|
|
12746
|
+
"description": "Skip authentication check when a default username is required",
|
|
12747
|
+
"name": "skipauth",
|
|
12748
|
+
"allowNo": false,
|
|
12749
|
+
"type": "boolean"
|
|
12750
|
+
}
|
|
12751
|
+
},
|
|
12752
|
+
"hasDynamicHelp": false,
|
|
12753
|
+
"hiddenAliases": [],
|
|
12754
|
+
"id": "hardis:project:fix:v53flexipages",
|
|
12755
|
+
"pluginAlias": "sfdx-hardis",
|
|
12756
|
+
"pluginName": "sfdx-hardis",
|
|
12757
|
+
"pluginType": "core",
|
|
12758
|
+
"strict": true,
|
|
12759
|
+
"enableJsonFlag": true,
|
|
12760
|
+
"title": "Fix flexipages for v53",
|
|
12761
|
+
"requiresProject": true,
|
|
12762
|
+
"isESM": true,
|
|
12763
|
+
"relativePath": [
|
|
12764
|
+
"lib",
|
|
12765
|
+
"commands",
|
|
12766
|
+
"hardis",
|
|
12767
|
+
"project",
|
|
12768
|
+
"fix",
|
|
12769
|
+
"v53flexipages.js"
|
|
12770
|
+
],
|
|
12771
|
+
"aliasPermutations": [],
|
|
12772
|
+
"permutations": [
|
|
12773
|
+
"hardis:project:fix:v53flexipages",
|
|
12774
|
+
"project:hardis:fix:v53flexipages",
|
|
12775
|
+
"project:fix:hardis:v53flexipages",
|
|
12776
|
+
"project:fix:v53flexipages:hardis",
|
|
12777
|
+
"hardis:fix:project:v53flexipages",
|
|
12778
|
+
"fix:hardis:project:v53flexipages",
|
|
12779
|
+
"fix:project:hardis:v53flexipages",
|
|
12780
|
+
"fix:project:v53flexipages:hardis",
|
|
12781
|
+
"hardis:fix:v53flexipages:project",
|
|
12782
|
+
"fix:hardis:v53flexipages:project",
|
|
12783
|
+
"fix:v53flexipages:hardis:project",
|
|
12784
|
+
"fix:v53flexipages:project:hardis",
|
|
12785
|
+
"hardis:project:v53flexipages:fix",
|
|
12786
|
+
"project:hardis:v53flexipages:fix",
|
|
12787
|
+
"project:v53flexipages:hardis:fix",
|
|
12788
|
+
"project:v53flexipages:fix:hardis",
|
|
12789
|
+
"hardis:v53flexipages:project:fix",
|
|
12790
|
+
"v53flexipages:hardis:project:fix",
|
|
12791
|
+
"v53flexipages:project:hardis:fix",
|
|
12792
|
+
"v53flexipages:project:fix:hardis",
|
|
12793
|
+
"hardis:v53flexipages:fix:project",
|
|
12794
|
+
"v53flexipages:hardis:fix:project",
|
|
12795
|
+
"v53flexipages:fix:hardis:project",
|
|
12796
|
+
"v53flexipages:fix:project:hardis"
|
|
12797
|
+
]
|
|
12798
|
+
},
|
|
12799
12799
|
"hardis:project:generate:bypass": {
|
|
12800
12800
|
"aliases": [],
|
|
12801
12801
|
"args": {},
|
|
@@ -13194,7 +13194,7 @@
|
|
|
13194
13194
|
"hardis:project:metadata:activate-decomposed": {
|
|
13195
13195
|
"aliases": [],
|
|
13196
13196
|
"args": {},
|
|
13197
|
-
"description": "\n## Command Behavior\n\n**Activate decomposed metadata types in Salesforce DX projects.**\n\nThis command helps manage decomposed metadata types that can be split into multiple files in source format. It automatically decomposes all supported metadata types that exist in your project.\n\nSupported metadata types (Beta):\n- CustomLabels\n- PermissionSet\n- ExternalServiceRegistration\n- SharingRules\n- Workflow\n\nSee [Salesforce documentation on decomposed metadata](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_decomposed_md_types.htm)\n\nKey features:\n- Automatically detects and decomposes all applicable metadata types\n- Decomposes only metadata types that exist in your project\n- Interactive confirmation for decomposition operations\n- Handles all confirmation prompts automatically\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThis command utilizes Salesforce CLI's decomposed metadata feature to split complex metadata types into smaller, more manageable components:\n\n- **CustomLabels**: Each custom label becomes a separate file, making it easier to track changes and manage translations.\n- **PermissionSets**: Permission sets are decomposed into multiple files based on the permissions they contain (field permissions, object permissions, etc.).\n- **ExternalServiceRegistration**: Decomposes external service registrations.\n- **SharingRules**: Decomposes sharing rules into individual components.\n- **Workflow**: Decomposes workflow rules into individual components.\n\nThe command wraps the underlying Salesforce CLI functionality and provides a more user-friendly interface with additional validation and error handling.\n\nNote: All decomposed metadata features are currently in Beta in Salesforce CLI.\n</details>\n",
|
|
13197
|
+
"description": "\n## Command Behavior\n\n**Activate decomposed metadata types in Salesforce DX projects.**\n\nThis command helps manage decomposed metadata types that can be split into multiple files in source format. It automatically decomposes all supported metadata types that exist in your project.\n\nSupported metadata types (Beta):\n\n- CustomLabels\n- PermissionSet\n- ExternalServiceRegistration\n- SharingRules\n- Workflow\n\nSee [Salesforce documentation on decomposed metadata](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_decomposed_md_types.htm)\n\nKey features:\n\n- Automatically detects and decomposes all applicable metadata types\n- Decomposes only metadata types that exist in your project\n- Interactive confirmation for decomposition operations\n- Handles all confirmation prompts automatically\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThis command utilizes Salesforce CLI's decomposed metadata feature to split complex metadata types into smaller, more manageable components:\n\n- **CustomLabels**: Each custom label becomes a separate file, making it easier to track changes and manage translations.\n- **PermissionSets**: Permission sets are decomposed into multiple files based on the permissions they contain (field permissions, object permissions, etc.).\n- **ExternalServiceRegistration**: Decomposes external service registrations.\n- **SharingRules**: Decomposes sharing rules into individual components.\n- **Workflow**: Decomposes workflow rules into individual components.\n\nThe command wraps the underlying Salesforce CLI functionality and provides a more user-friendly interface with additional validation and error handling.\n\nNote: All decomposed metadata features are currently in Beta in Salesforce CLI.\n</details>\n",
|
|
13198
13198
|
"examples": [
|
|
13199
13199
|
"$ sf hardis:project:metadata:activate-decomposed",
|
|
13200
13200
|
"$ sf hardis:project:metadata:activate-decomposed --debug"
|
|
@@ -15369,5 +15369,5 @@
|
|
|
15369
15369
|
]
|
|
15370
15370
|
}
|
|
15371
15371
|
},
|
|
15372
|
-
"version": "6.7.0"
|
|
15372
|
+
"version": "6.7.2-beta202510122234.0"
|
|
15373
15373
|
}
|