sfdx-hardis 6.1.2 → 6.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/lib/commands/hardis/org/retrieve/packageconfig.js +2 -0
- package/lib/commands/hardis/org/retrieve/packageconfig.js.map +1 -1
- package/lib/commands/hardis/package/install.js +2 -0
- package/lib/commands/hardis/package/install.js.map +1 -1
- package/lib/commands/hardis/project/configure/auth.js +20 -4
- package/lib/commands/hardis/project/configure/auth.js.map +1 -1
- package/lib/common/utils/index.js +22 -9
- package/lib/common/utils/index.js.map +1 -1
- package/oclif.manifest.json +881 -881
- 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": {
|
|
@@ -5488,15 +5488,12 @@
|
|
|
5488
5488
|
"import:data:org:hardis"
|
|
5489
5489
|
]
|
|
5490
5490
|
},
|
|
5491
|
-
"hardis:org:
|
|
5491
|
+
"hardis:org:files:export": {
|
|
5492
5492
|
"aliases": [],
|
|
5493
5493
|
"args": {},
|
|
5494
|
-
"description": "
|
|
5494
|
+
"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, and output naming conventions.\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.\n- **File Download:** Downloads the actual file content from Salesforce.\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 and `promptFilesExportConfiguration` for customizing export options.\n- **Error Handling:** Includes mechanisms to handle potential errors during the export process, such as network issues or API limits.\n</details>\n",
|
|
5495
5495
|
"examples": [
|
|
5496
|
-
"$ sf hardis:org:
|
|
5497
|
-
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
|
|
5498
|
-
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
|
|
5499
|
-
"$ sf hardis:org:diagnose:audittrail --lastndays 5"
|
|
5496
|
+
"$ sf hardis:org:files:export"
|
|
5500
5497
|
],
|
|
5501
5498
|
"flags": {
|
|
5502
5499
|
"json": {
|
|
@@ -5514,26 +5511,37 @@
|
|
|
5514
5511
|
"multiple": false,
|
|
5515
5512
|
"type": "option"
|
|
5516
5513
|
},
|
|
5517
|
-
"
|
|
5518
|
-
"char": "
|
|
5519
|
-
"description": "
|
|
5520
|
-
"name": "
|
|
5514
|
+
"path": {
|
|
5515
|
+
"char": "p",
|
|
5516
|
+
"description": "Path to the file export project",
|
|
5517
|
+
"name": "path",
|
|
5521
5518
|
"hasDynamicHelp": false,
|
|
5522
5519
|
"multiple": false,
|
|
5523
5520
|
"type": "option"
|
|
5524
5521
|
},
|
|
5525
|
-
"
|
|
5522
|
+
"chunksize": {
|
|
5523
|
+
"char": "c",
|
|
5524
|
+
"description": "Number of records to add in a chunk before it is processed",
|
|
5525
|
+
"name": "chunksize",
|
|
5526
|
+
"default": 1000,
|
|
5527
|
+
"hasDynamicHelp": false,
|
|
5528
|
+
"multiple": false,
|
|
5529
|
+
"type": "option"
|
|
5530
|
+
},
|
|
5531
|
+
"polltimeout": {
|
|
5526
5532
|
"char": "t",
|
|
5527
|
-
"description": "
|
|
5528
|
-
"name": "
|
|
5533
|
+
"description": "Timeout in MS for Bulk API calls",
|
|
5534
|
+
"name": "polltimeout",
|
|
5535
|
+
"default": 300000,
|
|
5529
5536
|
"hasDynamicHelp": false,
|
|
5530
5537
|
"multiple": false,
|
|
5531
5538
|
"type": "option"
|
|
5532
5539
|
},
|
|
5533
|
-
"
|
|
5534
|
-
"char": "
|
|
5535
|
-
"description": "
|
|
5536
|
-
"name": "
|
|
5540
|
+
"startchunknumber": {
|
|
5541
|
+
"char": "s",
|
|
5542
|
+
"description": "Chunk number to start from",
|
|
5543
|
+
"name": "startchunknumber",
|
|
5544
|
+
"default": 0,
|
|
5537
5545
|
"hasDynamicHelp": false,
|
|
5538
5546
|
"multiple": false,
|
|
5539
5547
|
"type": "option"
|
|
@@ -5576,13 +5584,13 @@
|
|
|
5576
5584
|
},
|
|
5577
5585
|
"hasDynamicHelp": true,
|
|
5578
5586
|
"hiddenAliases": [],
|
|
5579
|
-
"id": "hardis:org:
|
|
5587
|
+
"id": "hardis:org:files:export",
|
|
5580
5588
|
"pluginAlias": "sfdx-hardis",
|
|
5581
5589
|
"pluginName": "sfdx-hardis",
|
|
5582
5590
|
"pluginType": "core",
|
|
5583
5591
|
"strict": true,
|
|
5584
5592
|
"enableJsonFlag": true,
|
|
5585
|
-
"title": "
|
|
5593
|
+
"title": "Export files",
|
|
5586
5594
|
"requiresProject": false,
|
|
5587
5595
|
"isESM": true,
|
|
5588
5596
|
"relativePath": [
|
|
@@ -5590,43 +5598,43 @@
|
|
|
5590
5598
|
"commands",
|
|
5591
5599
|
"hardis",
|
|
5592
5600
|
"org",
|
|
5593
|
-
"
|
|
5594
|
-
"
|
|
5601
|
+
"files",
|
|
5602
|
+
"export.js"
|
|
5595
5603
|
],
|
|
5596
5604
|
"aliasPermutations": [],
|
|
5597
5605
|
"permutations": [
|
|
5598
|
-
"hardis:org:
|
|
5599
|
-
"org:hardis:
|
|
5600
|
-
"org:
|
|
5601
|
-
"org:
|
|
5602
|
-
"hardis:
|
|
5603
|
-
"
|
|
5604
|
-
"
|
|
5605
|
-
"
|
|
5606
|
-
"hardis:
|
|
5607
|
-
"
|
|
5608
|
-
"
|
|
5609
|
-
"
|
|
5610
|
-
"hardis:org:
|
|
5611
|
-
"org:hardis:
|
|
5612
|
-
"org:
|
|
5613
|
-
"org:
|
|
5614
|
-
"hardis:
|
|
5615
|
-
"
|
|
5616
|
-
"
|
|
5617
|
-
"
|
|
5618
|
-
"hardis:
|
|
5619
|
-
"
|
|
5620
|
-
"
|
|
5621
|
-
"
|
|
5606
|
+
"hardis:org:files:export",
|
|
5607
|
+
"org:hardis:files:export",
|
|
5608
|
+
"org:files:hardis:export",
|
|
5609
|
+
"org:files:export:hardis",
|
|
5610
|
+
"hardis:files:org:export",
|
|
5611
|
+
"files:hardis:org:export",
|
|
5612
|
+
"files:org:hardis:export",
|
|
5613
|
+
"files:org:export:hardis",
|
|
5614
|
+
"hardis:files:export:org",
|
|
5615
|
+
"files:hardis:export:org",
|
|
5616
|
+
"files:export:hardis:org",
|
|
5617
|
+
"files:export:org:hardis",
|
|
5618
|
+
"hardis:org:export:files",
|
|
5619
|
+
"org:hardis:export:files",
|
|
5620
|
+
"org:export:hardis:files",
|
|
5621
|
+
"org:export:files:hardis",
|
|
5622
|
+
"hardis:export:org:files",
|
|
5623
|
+
"export:hardis:org:files",
|
|
5624
|
+
"export:org:hardis:files",
|
|
5625
|
+
"export:org:files:hardis",
|
|
5626
|
+
"hardis:export:files:org",
|
|
5627
|
+
"export:hardis:files:org",
|
|
5628
|
+
"export:files:hardis:org",
|
|
5629
|
+
"export:files:org:hardis"
|
|
5622
5630
|
]
|
|
5623
5631
|
},
|
|
5624
|
-
"hardis:org:
|
|
5632
|
+
"hardis:org:files:import": {
|
|
5625
5633
|
"aliases": [],
|
|
5626
5634
|
"args": {},
|
|
5627
|
-
"description": "\
|
|
5635
|
+
"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",
|
|
5628
5636
|
"examples": [
|
|
5629
|
-
"$ sf hardis:org:
|
|
5637
|
+
"$ sf hardis:org:files:import"
|
|
5630
5638
|
],
|
|
5631
5639
|
"flags": {
|
|
5632
5640
|
"json": {
|
|
@@ -5644,8 +5652,262 @@
|
|
|
5644
5652
|
"multiple": false,
|
|
5645
5653
|
"type": "option"
|
|
5646
5654
|
},
|
|
5647
|
-
"
|
|
5648
|
-
"char": "
|
|
5655
|
+
"path": {
|
|
5656
|
+
"char": "p",
|
|
5657
|
+
"description": "Path to the file export project",
|
|
5658
|
+
"name": "path",
|
|
5659
|
+
"hasDynamicHelp": false,
|
|
5660
|
+
"multiple": false,
|
|
5661
|
+
"type": "option"
|
|
5662
|
+
},
|
|
5663
|
+
"overwrite": {
|
|
5664
|
+
"char": "f",
|
|
5665
|
+
"description": "Override existing files (doubles the number of API calls)",
|
|
5666
|
+
"name": "overwrite",
|
|
5667
|
+
"allowNo": false,
|
|
5668
|
+
"type": "boolean"
|
|
5669
|
+
},
|
|
5670
|
+
"debug": {
|
|
5671
|
+
"char": "d",
|
|
5672
|
+
"description": "Activate debug mode (more logs)",
|
|
5673
|
+
"name": "debug",
|
|
5674
|
+
"allowNo": false,
|
|
5675
|
+
"type": "boolean"
|
|
5676
|
+
},
|
|
5677
|
+
"websocket": {
|
|
5678
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
5679
|
+
"name": "websocket",
|
|
5680
|
+
"hasDynamicHelp": false,
|
|
5681
|
+
"multiple": false,
|
|
5682
|
+
"type": "option"
|
|
5683
|
+
},
|
|
5684
|
+
"skipauth": {
|
|
5685
|
+
"description": "Skip authentication check when a default username is required",
|
|
5686
|
+
"name": "skipauth",
|
|
5687
|
+
"allowNo": false,
|
|
5688
|
+
"type": "boolean"
|
|
5689
|
+
},
|
|
5690
|
+
"target-org": {
|
|
5691
|
+
"aliases": [
|
|
5692
|
+
"targetusername",
|
|
5693
|
+
"u"
|
|
5694
|
+
],
|
|
5695
|
+
"char": "o",
|
|
5696
|
+
"deprecateAliases": true,
|
|
5697
|
+
"name": "target-org",
|
|
5698
|
+
"noCacheDefault": true,
|
|
5699
|
+
"required": true,
|
|
5700
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5701
|
+
"hasDynamicHelp": true,
|
|
5702
|
+
"multiple": false,
|
|
5703
|
+
"type": "option"
|
|
5704
|
+
}
|
|
5705
|
+
},
|
|
5706
|
+
"hasDynamicHelp": true,
|
|
5707
|
+
"hiddenAliases": [],
|
|
5708
|
+
"id": "hardis:org:files:import",
|
|
5709
|
+
"pluginAlias": "sfdx-hardis",
|
|
5710
|
+
"pluginName": "sfdx-hardis",
|
|
5711
|
+
"pluginType": "core",
|
|
5712
|
+
"strict": true,
|
|
5713
|
+
"enableJsonFlag": true,
|
|
5714
|
+
"title": "Import files",
|
|
5715
|
+
"requiresProject": false,
|
|
5716
|
+
"isESM": true,
|
|
5717
|
+
"relativePath": [
|
|
5718
|
+
"lib",
|
|
5719
|
+
"commands",
|
|
5720
|
+
"hardis",
|
|
5721
|
+
"org",
|
|
5722
|
+
"files",
|
|
5723
|
+
"import.js"
|
|
5724
|
+
],
|
|
5725
|
+
"aliasPermutations": [],
|
|
5726
|
+
"permutations": [
|
|
5727
|
+
"hardis:org:files:import",
|
|
5728
|
+
"org:hardis:files:import",
|
|
5729
|
+
"org:files:hardis:import",
|
|
5730
|
+
"org:files:import:hardis",
|
|
5731
|
+
"hardis:files:org:import",
|
|
5732
|
+
"files:hardis:org:import",
|
|
5733
|
+
"files:org:hardis:import",
|
|
5734
|
+
"files:org:import:hardis",
|
|
5735
|
+
"hardis:files:import:org",
|
|
5736
|
+
"files:hardis:import:org",
|
|
5737
|
+
"files:import:hardis:org",
|
|
5738
|
+
"files:import:org:hardis",
|
|
5739
|
+
"hardis:org:import:files",
|
|
5740
|
+
"org:hardis:import:files",
|
|
5741
|
+
"org:import:hardis:files",
|
|
5742
|
+
"org:import:files:hardis",
|
|
5743
|
+
"hardis:import:org:files",
|
|
5744
|
+
"import:hardis:org:files",
|
|
5745
|
+
"import:org:hardis:files",
|
|
5746
|
+
"import:org:files:hardis",
|
|
5747
|
+
"hardis:import:files:org",
|
|
5748
|
+
"import:hardis:files:org",
|
|
5749
|
+
"import:files:hardis:org",
|
|
5750
|
+
"import:files:org:hardis"
|
|
5751
|
+
]
|
|
5752
|
+
},
|
|
5753
|
+
"hardis:org:diagnose:audittrail": {
|
|
5754
|
+
"aliases": [],
|
|
5755
|
+
"args": {},
|
|
5756
|
+
"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",
|
|
5757
|
+
"examples": [
|
|
5758
|
+
"$ sf hardis:org:diagnose:audittrail",
|
|
5759
|
+
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
|
|
5760
|
+
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
|
|
5761
|
+
"$ sf hardis:org:diagnose:audittrail --lastndays 5"
|
|
5762
|
+
],
|
|
5763
|
+
"flags": {
|
|
5764
|
+
"json": {
|
|
5765
|
+
"description": "Format output as json.",
|
|
5766
|
+
"helpGroup": "GLOBAL",
|
|
5767
|
+
"name": "json",
|
|
5768
|
+
"allowNo": false,
|
|
5769
|
+
"type": "boolean"
|
|
5770
|
+
},
|
|
5771
|
+
"flags-dir": {
|
|
5772
|
+
"helpGroup": "GLOBAL",
|
|
5773
|
+
"name": "flags-dir",
|
|
5774
|
+
"summary": "Import flag values from a directory.",
|
|
5775
|
+
"hasDynamicHelp": false,
|
|
5776
|
+
"multiple": false,
|
|
5777
|
+
"type": "option"
|
|
5778
|
+
},
|
|
5779
|
+
"excludeusers": {
|
|
5780
|
+
"char": "e",
|
|
5781
|
+
"description": "Comma-separated list of usernames to exclude",
|
|
5782
|
+
"name": "excludeusers",
|
|
5783
|
+
"hasDynamicHelp": false,
|
|
5784
|
+
"multiple": false,
|
|
5785
|
+
"type": "option"
|
|
5786
|
+
},
|
|
5787
|
+
"lastndays": {
|
|
5788
|
+
"char": "t",
|
|
5789
|
+
"description": "Number of days to extract from today (included)",
|
|
5790
|
+
"name": "lastndays",
|
|
5791
|
+
"hasDynamicHelp": false,
|
|
5792
|
+
"multiple": false,
|
|
5793
|
+
"type": "option"
|
|
5794
|
+
},
|
|
5795
|
+
"outputfile": {
|
|
5796
|
+
"char": "f",
|
|
5797
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
5798
|
+
"name": "outputfile",
|
|
5799
|
+
"hasDynamicHelp": false,
|
|
5800
|
+
"multiple": false,
|
|
5801
|
+
"type": "option"
|
|
5802
|
+
},
|
|
5803
|
+
"debug": {
|
|
5804
|
+
"char": "d",
|
|
5805
|
+
"description": "Activate debug mode (more logs)",
|
|
5806
|
+
"name": "debug",
|
|
5807
|
+
"allowNo": false,
|
|
5808
|
+
"type": "boolean"
|
|
5809
|
+
},
|
|
5810
|
+
"websocket": {
|
|
5811
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
5812
|
+
"name": "websocket",
|
|
5813
|
+
"hasDynamicHelp": false,
|
|
5814
|
+
"multiple": false,
|
|
5815
|
+
"type": "option"
|
|
5816
|
+
},
|
|
5817
|
+
"skipauth": {
|
|
5818
|
+
"description": "Skip authentication check when a default username is required",
|
|
5819
|
+
"name": "skipauth",
|
|
5820
|
+
"allowNo": false,
|
|
5821
|
+
"type": "boolean"
|
|
5822
|
+
},
|
|
5823
|
+
"target-org": {
|
|
5824
|
+
"aliases": [
|
|
5825
|
+
"targetusername",
|
|
5826
|
+
"u"
|
|
5827
|
+
],
|
|
5828
|
+
"char": "o",
|
|
5829
|
+
"deprecateAliases": true,
|
|
5830
|
+
"name": "target-org",
|
|
5831
|
+
"noCacheDefault": true,
|
|
5832
|
+
"required": true,
|
|
5833
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5834
|
+
"hasDynamicHelp": true,
|
|
5835
|
+
"multiple": false,
|
|
5836
|
+
"type": "option"
|
|
5837
|
+
}
|
|
5838
|
+
},
|
|
5839
|
+
"hasDynamicHelp": true,
|
|
5840
|
+
"hiddenAliases": [],
|
|
5841
|
+
"id": "hardis:org:diagnose:audittrail",
|
|
5842
|
+
"pluginAlias": "sfdx-hardis",
|
|
5843
|
+
"pluginName": "sfdx-hardis",
|
|
5844
|
+
"pluginType": "core",
|
|
5845
|
+
"strict": true,
|
|
5846
|
+
"enableJsonFlag": true,
|
|
5847
|
+
"title": "Diagnose content of Setup Audit Trail",
|
|
5848
|
+
"requiresProject": false,
|
|
5849
|
+
"isESM": true,
|
|
5850
|
+
"relativePath": [
|
|
5851
|
+
"lib",
|
|
5852
|
+
"commands",
|
|
5853
|
+
"hardis",
|
|
5854
|
+
"org",
|
|
5855
|
+
"diagnose",
|
|
5856
|
+
"audittrail.js"
|
|
5857
|
+
],
|
|
5858
|
+
"aliasPermutations": [],
|
|
5859
|
+
"permutations": [
|
|
5860
|
+
"hardis:org:diagnose:audittrail",
|
|
5861
|
+
"org:hardis:diagnose:audittrail",
|
|
5862
|
+
"org:diagnose:hardis:audittrail",
|
|
5863
|
+
"org:diagnose:audittrail:hardis",
|
|
5864
|
+
"hardis:diagnose:org:audittrail",
|
|
5865
|
+
"diagnose:hardis:org:audittrail",
|
|
5866
|
+
"diagnose:org:hardis:audittrail",
|
|
5867
|
+
"diagnose:org:audittrail:hardis",
|
|
5868
|
+
"hardis:diagnose:audittrail:org",
|
|
5869
|
+
"diagnose:hardis:audittrail:org",
|
|
5870
|
+
"diagnose:audittrail:hardis:org",
|
|
5871
|
+
"diagnose:audittrail:org:hardis",
|
|
5872
|
+
"hardis:org:audittrail:diagnose",
|
|
5873
|
+
"org:hardis:audittrail:diagnose",
|
|
5874
|
+
"org:audittrail:hardis:diagnose",
|
|
5875
|
+
"org:audittrail:diagnose:hardis",
|
|
5876
|
+
"hardis:audittrail:org:diagnose",
|
|
5877
|
+
"audittrail:hardis:org:diagnose",
|
|
5878
|
+
"audittrail:org:hardis:diagnose",
|
|
5879
|
+
"audittrail:org:diagnose:hardis",
|
|
5880
|
+
"hardis:audittrail:diagnose:org",
|
|
5881
|
+
"audittrail:hardis:diagnose:org",
|
|
5882
|
+
"audittrail:diagnose:hardis:org",
|
|
5883
|
+
"audittrail:diagnose:org:hardis"
|
|
5884
|
+
]
|
|
5885
|
+
},
|
|
5886
|
+
"hardis:org:diagnose:instanceupgrade": {
|
|
5887
|
+
"aliases": [],
|
|
5888
|
+
"args": {},
|
|
5889
|
+
"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",
|
|
5890
|
+
"examples": [
|
|
5891
|
+
"$ sf hardis:org:diagnose:instanceupgrade"
|
|
5892
|
+
],
|
|
5893
|
+
"flags": {
|
|
5894
|
+
"json": {
|
|
5895
|
+
"description": "Format output as json.",
|
|
5896
|
+
"helpGroup": "GLOBAL",
|
|
5897
|
+
"name": "json",
|
|
5898
|
+
"allowNo": false,
|
|
5899
|
+
"type": "boolean"
|
|
5900
|
+
},
|
|
5901
|
+
"flags-dir": {
|
|
5902
|
+
"helpGroup": "GLOBAL",
|
|
5903
|
+
"name": "flags-dir",
|
|
5904
|
+
"summary": "Import flag values from a directory.",
|
|
5905
|
+
"hasDynamicHelp": false,
|
|
5906
|
+
"multiple": false,
|
|
5907
|
+
"type": "option"
|
|
5908
|
+
},
|
|
5909
|
+
"debug": {
|
|
5910
|
+
"char": "d",
|
|
5649
5911
|
"description": "Activate debug mode (more logs)",
|
|
5650
5912
|
"name": "debug",
|
|
5651
5913
|
"allowNo": false,
|
|
@@ -6637,12 +6899,13 @@
|
|
|
6637
6899
|
"unusedusers:diagnose:org:hardis"
|
|
6638
6900
|
]
|
|
6639
6901
|
},
|
|
6640
|
-
"hardis:org:
|
|
6902
|
+
"hardis:org:fix:listviewmine": {
|
|
6641
6903
|
"aliases": [],
|
|
6642
6904
|
"args": {},
|
|
6643
|
-
"description": "
|
|
6905
|
+
"description": "Fix listviews whose scope Mine has been replaced by Everything\n\n[](https://nicolas.vuillamy.fr/invalid-scope-mine-not-allowed-deploy-your-listviews-anyway-443aceca8ac7)\n\nList of ListViews can be:\n\n- read from .sfdx-hardis.yml file in property **listViewsToSetToMine**\n- sent in argument listviews\n\nNote: property **listViewsToSetToMine** can be auto-generated by command hardis:work:save if .sfdx-hardis.yml contains the following configuration\n\n```yaml\nautoCleanTypes:\n - listViewsMine\n```\n\n- Example of sfdx-hardis.yml property `listViewsToSetToMine`:\n\n```yaml\nlistViewsToSetToMine:\n - \"force-app/main/default/objects/Operation__c/listViews/MyCurrentOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Operation__c/listViews/MyFinalizedOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/Default_Opportunity_Pipeline.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MyCurrentSubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MySubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Account/listViews/MyActivePartners.listView-meta.xml\"\n```\n\n- If manually written, this could also be:\n\n```yaml\nlistViewsToSetToMine:\n - \"Operation__c:MyCurrentOperations\"\n - \"Operation__c:MyFinalizedOperations\"\n - \"Opportunity:Default_Opportunity_Pipeline\"\n - \"Opportunity:MyCurrentSubscriptions\"\n - \"Opportunity:MySubscriptions\"\n - \"Account:MyActivePartners\"\n```\n\nTroubleshooting: if you need to run this command from an alpine-linux based docker image, use this workaround in your dockerfile:\n\n```dockerfile\n# Do not use puppeteer embedded chromium\nRUN apk add --update --no-cache chromium\nENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=\"true\"\nENV CHROMIUM_PATH=\"/usr/bin/chromium-browser\"\nENV PUPPETEER_EXECUTABLE_PATH=\"$\\{CHROMIUM_PATH}\" // remove \\ before {\n```\n",
|
|
6644
6906
|
"examples": [
|
|
6645
|
-
"$ sf hardis:org:
|
|
6907
|
+
"$ sf hardis:org:fix:listviewmine",
|
|
6908
|
+
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
6646
6909
|
],
|
|
6647
6910
|
"flags": {
|
|
6648
6911
|
"json": {
|
|
@@ -6660,37 +6923,10 @@
|
|
|
6660
6923
|
"multiple": false,
|
|
6661
6924
|
"type": "option"
|
|
6662
6925
|
},
|
|
6663
|
-
"
|
|
6664
|
-
"char": "
|
|
6665
|
-
"description": "
|
|
6666
|
-
"name": "
|
|
6667
|
-
"hasDynamicHelp": false,
|
|
6668
|
-
"multiple": false,
|
|
6669
|
-
"type": "option"
|
|
6670
|
-
},
|
|
6671
|
-
"chunksize": {
|
|
6672
|
-
"char": "c",
|
|
6673
|
-
"description": "Number of records to add in a chunk before it is processed",
|
|
6674
|
-
"name": "chunksize",
|
|
6675
|
-
"default": 1000,
|
|
6676
|
-
"hasDynamicHelp": false,
|
|
6677
|
-
"multiple": false,
|
|
6678
|
-
"type": "option"
|
|
6679
|
-
},
|
|
6680
|
-
"polltimeout": {
|
|
6681
|
-
"char": "t",
|
|
6682
|
-
"description": "Timeout in MS for Bulk API calls",
|
|
6683
|
-
"name": "polltimeout",
|
|
6684
|
-
"default": 300000,
|
|
6685
|
-
"hasDynamicHelp": false,
|
|
6686
|
-
"multiple": false,
|
|
6687
|
-
"type": "option"
|
|
6688
|
-
},
|
|
6689
|
-
"startchunknumber": {
|
|
6690
|
-
"char": "s",
|
|
6691
|
-
"description": "Chunk number to start from",
|
|
6692
|
-
"name": "startchunknumber",
|
|
6693
|
-
"default": 0,
|
|
6926
|
+
"listviews": {
|
|
6927
|
+
"char": "l",
|
|
6928
|
+
"description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
|
|
6929
|
+
"name": "listviews",
|
|
6694
6930
|
"hasDynamicHelp": false,
|
|
6695
6931
|
"multiple": false,
|
|
6696
6932
|
"type": "option"
|
|
@@ -6733,57 +6969,59 @@
|
|
|
6733
6969
|
},
|
|
6734
6970
|
"hasDynamicHelp": true,
|
|
6735
6971
|
"hiddenAliases": [],
|
|
6736
|
-
"id": "hardis:org:
|
|
6972
|
+
"id": "hardis:org:fix:listviewmine",
|
|
6737
6973
|
"pluginAlias": "sfdx-hardis",
|
|
6738
6974
|
"pluginName": "sfdx-hardis",
|
|
6739
6975
|
"pluginType": "core",
|
|
6740
6976
|
"strict": true,
|
|
6741
6977
|
"enableJsonFlag": true,
|
|
6742
|
-
"title": "
|
|
6743
|
-
"requiresProject":
|
|
6978
|
+
"title": "Fix listviews with ",
|
|
6979
|
+
"requiresProject": true,
|
|
6744
6980
|
"isESM": true,
|
|
6745
6981
|
"relativePath": [
|
|
6746
6982
|
"lib",
|
|
6747
6983
|
"commands",
|
|
6748
6984
|
"hardis",
|
|
6749
6985
|
"org",
|
|
6750
|
-
"
|
|
6751
|
-
"
|
|
6986
|
+
"fix",
|
|
6987
|
+
"listviewmine.js"
|
|
6752
6988
|
],
|
|
6753
6989
|
"aliasPermutations": [],
|
|
6754
6990
|
"permutations": [
|
|
6755
|
-
"hardis:org:
|
|
6756
|
-
"org:hardis:
|
|
6757
|
-
"org:
|
|
6758
|
-
"org:
|
|
6759
|
-
"hardis:
|
|
6760
|
-
"
|
|
6761
|
-
"
|
|
6762
|
-
"
|
|
6763
|
-
"hardis:
|
|
6764
|
-
"
|
|
6765
|
-
"
|
|
6766
|
-
"
|
|
6767
|
-
"hardis:org:
|
|
6768
|
-
"org:hardis:
|
|
6769
|
-
"org:
|
|
6770
|
-
"org:
|
|
6771
|
-
"hardis:
|
|
6772
|
-
"
|
|
6773
|
-
"
|
|
6774
|
-
"
|
|
6775
|
-
"hardis:
|
|
6776
|
-
"
|
|
6777
|
-
"
|
|
6778
|
-
"
|
|
6991
|
+
"hardis:org:fix:listviewmine",
|
|
6992
|
+
"org:hardis:fix:listviewmine",
|
|
6993
|
+
"org:fix:hardis:listviewmine",
|
|
6994
|
+
"org:fix:listviewmine:hardis",
|
|
6995
|
+
"hardis:fix:org:listviewmine",
|
|
6996
|
+
"fix:hardis:org:listviewmine",
|
|
6997
|
+
"fix:org:hardis:listviewmine",
|
|
6998
|
+
"fix:org:listviewmine:hardis",
|
|
6999
|
+
"hardis:fix:listviewmine:org",
|
|
7000
|
+
"fix:hardis:listviewmine:org",
|
|
7001
|
+
"fix:listviewmine:hardis:org",
|
|
7002
|
+
"fix:listviewmine:org:hardis",
|
|
7003
|
+
"hardis:org:listviewmine:fix",
|
|
7004
|
+
"org:hardis:listviewmine:fix",
|
|
7005
|
+
"org:listviewmine:hardis:fix",
|
|
7006
|
+
"org:listviewmine:fix:hardis",
|
|
7007
|
+
"hardis:listviewmine:org:fix",
|
|
7008
|
+
"listviewmine:hardis:org:fix",
|
|
7009
|
+
"listviewmine:org:hardis:fix",
|
|
7010
|
+
"listviewmine:org:fix:hardis",
|
|
7011
|
+
"hardis:listviewmine:fix:org",
|
|
7012
|
+
"listviewmine:hardis:fix:org",
|
|
7013
|
+
"listviewmine:fix:hardis:org",
|
|
7014
|
+
"listviewmine:fix:org:hardis"
|
|
6779
7015
|
]
|
|
6780
7016
|
},
|
|
6781
|
-
"hardis:org:
|
|
7017
|
+
"hardis:org:generate:packagexmlfull": {
|
|
6782
7018
|
"aliases": [],
|
|
6783
7019
|
"args": {},
|
|
6784
|
-
"description": "\
|
|
7020
|
+
"description": "\n## Command Behavior\n\n**Generates a comprehensive `package.xml` file for a Salesforce org, including all metadata components, even managed ones.**\n\nThis command is essential for various Salesforce development and administration tasks, especially when you need a complete snapshot of an org's metadata. It goes beyond typical source tracking by including managed package components, which is crucial for understanding the full metadata footprint of an org.\n\nKey functionalities:\n\n- **Full Org Metadata Retrieval:** Connects to a specified Salesforce org (or prompts for one if not provided) and retrieves a complete list of all metadata types and their members.\n- **Managed Package Inclusion:** Unlike standard source retrieval, this command explicitly includes metadata from managed packages, providing a truly comprehensive `package.xml`.\n- **Customizable Output:** Allows you to specify the output file path for the generated `package.xml`.\n- **Interactive Org Selection:** If no target org is specified, it interactively prompts the user to choose an org. (or use --no-prompt to skip this step)\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce Metadata API Interaction:** It leverages the Salesforce Metadata API to list all available metadata types and then retrieve all components for each type.\n- **`buildOrgManifest` Utility:** The core logic for querying the org's metadata and constructing the `package.xml` is encapsulated within the `buildOrgManifest` utility function.\n- **XML Generation:** It dynamically builds the XML structure of the `package.xml` file, including the `types` and `members` elements for all retrieved metadata.\n- **File System Operations:** It writes the generated `package.xml` file to the specified output path.\n- **Interactive Prompts:** Uses `promptOrgUsernameDefault` to guide the user in selecting the target Salesforce org.\n</details>\n",
|
|
6785
7021
|
"examples": [
|
|
6786
|
-
"$ sf hardis:org:
|
|
7022
|
+
"$ sf hardis:org:generate:packagexmlfull",
|
|
7023
|
+
"$ sf hardis:org:generate:packagexmlfull --outputfile /tmp/packagexmlfull.xml",
|
|
7024
|
+
"$ sf hardis:org:generate:packagexmlfull --target-org nico@example.com"
|
|
6787
7025
|
],
|
|
6788
7026
|
"flags": {
|
|
6789
7027
|
"json": {
|
|
@@ -6801,21 +7039,13 @@
|
|
|
6801
7039
|
"multiple": false,
|
|
6802
7040
|
"type": "option"
|
|
6803
7041
|
},
|
|
6804
|
-
"
|
|
6805
|
-
"
|
|
6806
|
-
"
|
|
6807
|
-
"name": "path",
|
|
7042
|
+
"outputfile": {
|
|
7043
|
+
"description": "Output package.xml file",
|
|
7044
|
+
"name": "outputfile",
|
|
6808
7045
|
"hasDynamicHelp": false,
|
|
6809
7046
|
"multiple": false,
|
|
6810
7047
|
"type": "option"
|
|
6811
7048
|
},
|
|
6812
|
-
"overwrite": {
|
|
6813
|
-
"char": "f",
|
|
6814
|
-
"description": "Override existing files (doubles the number of API calls)",
|
|
6815
|
-
"name": "overwrite",
|
|
6816
|
-
"allowNo": false,
|
|
6817
|
-
"type": "boolean"
|
|
6818
|
-
},
|
|
6819
7049
|
"debug": {
|
|
6820
7050
|
"char": "d",
|
|
6821
7051
|
"description": "Activate debug mode (more logs)",
|
|
@@ -6823,6 +7053,13 @@
|
|
|
6823
7053
|
"allowNo": false,
|
|
6824
7054
|
"type": "boolean"
|
|
6825
7055
|
},
|
|
7056
|
+
"no-prompt": {
|
|
7057
|
+
"char": "n",
|
|
7058
|
+
"description": "Do not prompt for org username, use the default one",
|
|
7059
|
+
"name": "no-prompt",
|
|
7060
|
+
"allowNo": false,
|
|
7061
|
+
"type": "boolean"
|
|
7062
|
+
},
|
|
6826
7063
|
"websocket": {
|
|
6827
7064
|
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
6828
7065
|
"name": "websocket",
|
|
@@ -6854,13 +7091,13 @@
|
|
|
6854
7091
|
},
|
|
6855
7092
|
"hasDynamicHelp": true,
|
|
6856
7093
|
"hiddenAliases": [],
|
|
6857
|
-
"id": "hardis:org:
|
|
7094
|
+
"id": "hardis:org:generate:packagexmlfull",
|
|
6858
7095
|
"pluginAlias": "sfdx-hardis",
|
|
6859
7096
|
"pluginName": "sfdx-hardis",
|
|
6860
7097
|
"pluginType": "core",
|
|
6861
7098
|
"strict": true,
|
|
6862
7099
|
"enableJsonFlag": true,
|
|
6863
|
-
"title": "
|
|
7100
|
+
"title": "Generate Full Org package.xml",
|
|
6864
7101
|
"requiresProject": false,
|
|
6865
7102
|
"isESM": true,
|
|
6866
7103
|
"relativePath": [
|
|
@@ -6868,44 +7105,43 @@
|
|
|
6868
7105
|
"commands",
|
|
6869
7106
|
"hardis",
|
|
6870
7107
|
"org",
|
|
6871
|
-
"
|
|
6872
|
-
"
|
|
7108
|
+
"generate",
|
|
7109
|
+
"packagexmlfull.js"
|
|
6873
7110
|
],
|
|
6874
7111
|
"aliasPermutations": [],
|
|
6875
7112
|
"permutations": [
|
|
6876
|
-
"hardis:org:
|
|
6877
|
-
"org:hardis:
|
|
6878
|
-
"org:
|
|
6879
|
-
"org:
|
|
6880
|
-
"hardis:
|
|
6881
|
-
"
|
|
6882
|
-
"
|
|
6883
|
-
"
|
|
6884
|
-
"hardis:
|
|
6885
|
-
"
|
|
6886
|
-
"
|
|
6887
|
-
"
|
|
6888
|
-
"hardis:org:
|
|
6889
|
-
"org:hardis:
|
|
6890
|
-
"org:
|
|
6891
|
-
"org:
|
|
6892
|
-
"hardis:
|
|
6893
|
-
"
|
|
6894
|
-
"
|
|
6895
|
-
"
|
|
6896
|
-
"hardis:
|
|
6897
|
-
"
|
|
6898
|
-
"
|
|
6899
|
-
"
|
|
7113
|
+
"hardis:org:generate:packagexmlfull",
|
|
7114
|
+
"org:hardis:generate:packagexmlfull",
|
|
7115
|
+
"org:generate:hardis:packagexmlfull",
|
|
7116
|
+
"org:generate:packagexmlfull:hardis",
|
|
7117
|
+
"hardis:generate:org:packagexmlfull",
|
|
7118
|
+
"generate:hardis:org:packagexmlfull",
|
|
7119
|
+
"generate:org:hardis:packagexmlfull",
|
|
7120
|
+
"generate:org:packagexmlfull:hardis",
|
|
7121
|
+
"hardis:generate:packagexmlfull:org",
|
|
7122
|
+
"generate:hardis:packagexmlfull:org",
|
|
7123
|
+
"generate:packagexmlfull:hardis:org",
|
|
7124
|
+
"generate:packagexmlfull:org:hardis",
|
|
7125
|
+
"hardis:org:packagexmlfull:generate",
|
|
7126
|
+
"org:hardis:packagexmlfull:generate",
|
|
7127
|
+
"org:packagexmlfull:hardis:generate",
|
|
7128
|
+
"org:packagexmlfull:generate:hardis",
|
|
7129
|
+
"hardis:packagexmlfull:org:generate",
|
|
7130
|
+
"packagexmlfull:hardis:org:generate",
|
|
7131
|
+
"packagexmlfull:org:hardis:generate",
|
|
7132
|
+
"packagexmlfull:org:generate:hardis",
|
|
7133
|
+
"hardis:packagexmlfull:generate:org",
|
|
7134
|
+
"packagexmlfull:hardis:generate:org",
|
|
7135
|
+
"packagexmlfull:generate:hardis:org",
|
|
7136
|
+
"packagexmlfull:generate:org:hardis"
|
|
6900
7137
|
]
|
|
6901
7138
|
},
|
|
6902
|
-
"hardis:org:
|
|
7139
|
+
"hardis:org:monitor:all": {
|
|
6903
7140
|
"aliases": [],
|
|
6904
7141
|
"args": {},
|
|
6905
|
-
"description": "
|
|
7142
|
+
"description": "Monitor org, generate reports and sends notifications\n\nYou can disable some commands defining either a **monitoringDisable** property in `.sfdx-hardis.yml`, or a comma separated list in env variable **MONITORING_DISABLE**\n\nExample in .sfdx-hardis.yml:\n \n```yaml\nmonitoringDisable:\n - METADATA_STATUS\n - MISSING_ATTRIBUTES\n - UNUSED_METADATAS\n```\n \nExample in env var:\n\n```sh\nMONITORING_DISABLE=METADATA_STATUS,MISSING_ATTRIBUTES,UNUSED_METADATAS\n```\n\nA [default list of monitoring commands](https://sfdx-hardis.cloudity.com/salesforce-monitoring-home/#monitoring-commands) is used, if you want to override it you can define property **monitoringCommands** in your .sfdx-hardis.yml file\n\nExample:\n\n```yaml\nmonitoringCommands:\n - title: My Custom command\n command: sf my:custom:command\n - title: My Custom command 2\n command: sf my:other:custom:command\n```\n\nYou can force the daily run of all commands by defining env var `MONITORING_IGNORE_FREQUENCY=true`\n\nThe default list of commands is the following:\n\n| Key | Description | Command | Frequency |\n| :---: | :---- | :---- | :-----: |\n| [AUDIT_TRAIL](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/audittrail) | Detect suspect setup actions in major org | [sf hardis:org:diagnose:audittrail](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/audittrail) | daily |\n| [LEGACY_API](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/legacyapi) | Detect calls to deprecated API versions | [sf hardis:org:diagnose:legacyapi](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/legacyapi) | daily |\n| [ORG_LIMITS](https://sfdx-hardis.cloudity.com/hardis/org/monitor/limits) | Detect if org limits are close to be reached | [sf hardis:org:monitor:limits](https://sfdx-hardis.cloudity.com/hardis/org/monitor/limits) | daily |\n| [LICENSES](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/licenses) | Extract licenses information | [sf hardis:org:diagnose:licenses](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/licenses) | weekly |\n| [LINT_ACCESS](https://sfdx-hardis.cloudity.com/hardis/lint/access) | Detect custom elements with no access rights defined in permission sets | [sf hardis:lint:access](https://sfdx-hardis.cloudity.com/hardis/lint/access) | weekly |\n| [UNUSED_LICENSES](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedlicenses) | Detect permission set licenses that are assigned to users that do not need them | [sf hardis:org:diagnose:unusedlicenses](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedlicenses) | weekly |\n| [UNUSED_USERS](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedusers) | Detect active users without recent logins | [sf hardis:org:diagnose:unusedusers](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedusers) | weekly |\n| [ACTIVE_USERS](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedusers) | Detect active users with recent logins | [sf hardis:org:diagnose:unusedusers --returnactiveusers](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedusers) | weekly |\n| [ORG_INFO](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/instanceupgrade) | Get org info + SF instance info + next major upgrade date | [sf hardis:org:diagnose:instanceupgrade](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/instanceupgrade) | weekly |\n| [RELEASE_UPDATES](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/releaseupdates) | Gather warnings about incoming and overdue Release Updates | [sf hardis:org:diagnose:releaseupdates](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/releaseupdates) | weekly |\n| [UNUSED_METADATAS](https://sfdx-hardis.cloudity.com/hardis/lint/unusedmetadatas) | Detect custom labels and custom permissions that are not in use | [sf hardis:lint:unusedmetadatas](https://sfdx-hardis.cloudity.com/hardis/lint/unusedmetadatas) | weekly |\n| [UNUSED_APEX_CLASSES](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unused-apex-classes) | Detect unused Apex classes in an org | [sf hardis:org:diagnose:unused-apex-classes](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unused-apex-classes) | weekly |\n| [CONNECTED_APPS](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unused-connected-apps) | Detect unused Connected Apps in an org | [sf hardis:org:diagnose:unused-connected-apps](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unused-connected-apps) | weekly |\n| [METADATA_STATUS](https://sfdx-hardis.cloudity.com/hardis/lint/metadatastatus) | Detect inactive metadata | [sf hardis:lint:metadatastatus](https://sfdx-hardis.cloudity.com/hardis/lint/metadatastatus) | weekly |\n| [MISSING_ATTRIBUTES](https://sfdx-hardis.cloudity.com/hardis/lint/missingattributes) | Detect missing description on custom field | [sf hardis:lint:missingattributes](https://sfdx-hardis.cloudity.com/hardis/lint/missingattributes) | weekly |\n\n",
|
|
6906
7143
|
"examples": [
|
|
6907
|
-
"$ sf hardis:org:
|
|
6908
|
-
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
7144
|
+
"$ sf hardis:org:monitor:all"
|
|
6909
7145
|
],
|
|
6910
7146
|
"flags": {
|
|
6911
7147
|
"json": {
|
|
@@ -6923,14 +7159,6 @@
|
|
|
6923
7159
|
"multiple": false,
|
|
6924
7160
|
"type": "option"
|
|
6925
7161
|
},
|
|
6926
|
-
"listviews": {
|
|
6927
|
-
"char": "l",
|
|
6928
|
-
"description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
|
|
6929
|
-
"name": "listviews",
|
|
6930
|
-
"hasDynamicHelp": false,
|
|
6931
|
-
"multiple": false,
|
|
6932
|
-
"type": "option"
|
|
6933
|
-
},
|
|
6934
7162
|
"debug": {
|
|
6935
7163
|
"char": "d",
|
|
6936
7164
|
"description": "Activate debug mode (more logs)",
|
|
@@ -6969,235 +7197,7 @@
|
|
|
6969
7197
|
},
|
|
6970
7198
|
"hasDynamicHelp": true,
|
|
6971
7199
|
"hiddenAliases": [],
|
|
6972
|
-
"id": "hardis:org:
|
|
6973
|
-
"pluginAlias": "sfdx-hardis",
|
|
6974
|
-
"pluginName": "sfdx-hardis",
|
|
6975
|
-
"pluginType": "core",
|
|
6976
|
-
"strict": true,
|
|
6977
|
-
"enableJsonFlag": true,
|
|
6978
|
-
"title": "Fix listviews with ",
|
|
6979
|
-
"requiresProject": true,
|
|
6980
|
-
"isESM": true,
|
|
6981
|
-
"relativePath": [
|
|
6982
|
-
"lib",
|
|
6983
|
-
"commands",
|
|
6984
|
-
"hardis",
|
|
6985
|
-
"org",
|
|
6986
|
-
"fix",
|
|
6987
|
-
"listviewmine.js"
|
|
6988
|
-
],
|
|
6989
|
-
"aliasPermutations": [],
|
|
6990
|
-
"permutations": [
|
|
6991
|
-
"hardis:org:fix:listviewmine",
|
|
6992
|
-
"org:hardis:fix:listviewmine",
|
|
6993
|
-
"org:fix:hardis:listviewmine",
|
|
6994
|
-
"org:fix:listviewmine:hardis",
|
|
6995
|
-
"hardis:fix:org:listviewmine",
|
|
6996
|
-
"fix:hardis:org:listviewmine",
|
|
6997
|
-
"fix:org:hardis:listviewmine",
|
|
6998
|
-
"fix:org:listviewmine:hardis",
|
|
6999
|
-
"hardis:fix:listviewmine:org",
|
|
7000
|
-
"fix:hardis:listviewmine:org",
|
|
7001
|
-
"fix:listviewmine:hardis:org",
|
|
7002
|
-
"fix:listviewmine:org:hardis",
|
|
7003
|
-
"hardis:org:listviewmine:fix",
|
|
7004
|
-
"org:hardis:listviewmine:fix",
|
|
7005
|
-
"org:listviewmine:hardis:fix",
|
|
7006
|
-
"org:listviewmine:fix:hardis",
|
|
7007
|
-
"hardis:listviewmine:org:fix",
|
|
7008
|
-
"listviewmine:hardis:org:fix",
|
|
7009
|
-
"listviewmine:org:hardis:fix",
|
|
7010
|
-
"listviewmine:org:fix:hardis",
|
|
7011
|
-
"hardis:listviewmine:fix:org",
|
|
7012
|
-
"listviewmine:hardis:fix:org",
|
|
7013
|
-
"listviewmine:fix:hardis:org",
|
|
7014
|
-
"listviewmine:fix:org:hardis"
|
|
7015
|
-
]
|
|
7016
|
-
},
|
|
7017
|
-
"hardis:org:generate:packagexmlfull": {
|
|
7018
|
-
"aliases": [],
|
|
7019
|
-
"args": {},
|
|
7020
|
-
"description": "\n## Command Behavior\n\n**Generates a comprehensive `package.xml` file for a Salesforce org, including all metadata components, even managed ones.**\n\nThis command is essential for various Salesforce development and administration tasks, especially when you need a complete snapshot of an org's metadata. It goes beyond typical source tracking by including managed package components, which is crucial for understanding the full metadata footprint of an org.\n\nKey functionalities:\n\n- **Full Org Metadata Retrieval:** Connects to a specified Salesforce org (or prompts for one if not provided) and retrieves a complete list of all metadata types and their members.\n- **Managed Package Inclusion:** Unlike standard source retrieval, this command explicitly includes metadata from managed packages, providing a truly comprehensive `package.xml`.\n- **Customizable Output:** Allows you to specify the output file path for the generated `package.xml`.\n- **Interactive Org Selection:** If no target org is specified, it interactively prompts the user to choose an org. (or use --no-prompt to skip this step)\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce Metadata API Interaction:** It leverages the Salesforce Metadata API to list all available metadata types and then retrieve all components for each type.\n- **`buildOrgManifest` Utility:** The core logic for querying the org's metadata and constructing the `package.xml` is encapsulated within the `buildOrgManifest` utility function.\n- **XML Generation:** It dynamically builds the XML structure of the `package.xml` file, including the `types` and `members` elements for all retrieved metadata.\n- **File System Operations:** It writes the generated `package.xml` file to the specified output path.\n- **Interactive Prompts:** Uses `promptOrgUsernameDefault` to guide the user in selecting the target Salesforce org.\n</details>\n",
|
|
7021
|
-
"examples": [
|
|
7022
|
-
"$ sf hardis:org:generate:packagexmlfull",
|
|
7023
|
-
"$ sf hardis:org:generate:packagexmlfull --outputfile /tmp/packagexmlfull.xml",
|
|
7024
|
-
"$ sf hardis:org:generate:packagexmlfull --target-org nico@example.com"
|
|
7025
|
-
],
|
|
7026
|
-
"flags": {
|
|
7027
|
-
"json": {
|
|
7028
|
-
"description": "Format output as json.",
|
|
7029
|
-
"helpGroup": "GLOBAL",
|
|
7030
|
-
"name": "json",
|
|
7031
|
-
"allowNo": false,
|
|
7032
|
-
"type": "boolean"
|
|
7033
|
-
},
|
|
7034
|
-
"flags-dir": {
|
|
7035
|
-
"helpGroup": "GLOBAL",
|
|
7036
|
-
"name": "flags-dir",
|
|
7037
|
-
"summary": "Import flag values from a directory.",
|
|
7038
|
-
"hasDynamicHelp": false,
|
|
7039
|
-
"multiple": false,
|
|
7040
|
-
"type": "option"
|
|
7041
|
-
},
|
|
7042
|
-
"outputfile": {
|
|
7043
|
-
"description": "Output package.xml file",
|
|
7044
|
-
"name": "outputfile",
|
|
7045
|
-
"hasDynamicHelp": false,
|
|
7046
|
-
"multiple": false,
|
|
7047
|
-
"type": "option"
|
|
7048
|
-
},
|
|
7049
|
-
"debug": {
|
|
7050
|
-
"char": "d",
|
|
7051
|
-
"description": "Activate debug mode (more logs)",
|
|
7052
|
-
"name": "debug",
|
|
7053
|
-
"allowNo": false,
|
|
7054
|
-
"type": "boolean"
|
|
7055
|
-
},
|
|
7056
|
-
"no-prompt": {
|
|
7057
|
-
"char": "n",
|
|
7058
|
-
"description": "Do not prompt for org username, use the default one",
|
|
7059
|
-
"name": "no-prompt",
|
|
7060
|
-
"allowNo": false,
|
|
7061
|
-
"type": "boolean"
|
|
7062
|
-
},
|
|
7063
|
-
"websocket": {
|
|
7064
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7065
|
-
"name": "websocket",
|
|
7066
|
-
"hasDynamicHelp": false,
|
|
7067
|
-
"multiple": false,
|
|
7068
|
-
"type": "option"
|
|
7069
|
-
},
|
|
7070
|
-
"skipauth": {
|
|
7071
|
-
"description": "Skip authentication check when a default username is required",
|
|
7072
|
-
"name": "skipauth",
|
|
7073
|
-
"allowNo": false,
|
|
7074
|
-
"type": "boolean"
|
|
7075
|
-
},
|
|
7076
|
-
"target-org": {
|
|
7077
|
-
"aliases": [
|
|
7078
|
-
"targetusername",
|
|
7079
|
-
"u"
|
|
7080
|
-
],
|
|
7081
|
-
"char": "o",
|
|
7082
|
-
"deprecateAliases": true,
|
|
7083
|
-
"name": "target-org",
|
|
7084
|
-
"noCacheDefault": true,
|
|
7085
|
-
"required": true,
|
|
7086
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7087
|
-
"hasDynamicHelp": true,
|
|
7088
|
-
"multiple": false,
|
|
7089
|
-
"type": "option"
|
|
7090
|
-
}
|
|
7091
|
-
},
|
|
7092
|
-
"hasDynamicHelp": true,
|
|
7093
|
-
"hiddenAliases": [],
|
|
7094
|
-
"id": "hardis:org:generate:packagexmlfull",
|
|
7095
|
-
"pluginAlias": "sfdx-hardis",
|
|
7096
|
-
"pluginName": "sfdx-hardis",
|
|
7097
|
-
"pluginType": "core",
|
|
7098
|
-
"strict": true,
|
|
7099
|
-
"enableJsonFlag": true,
|
|
7100
|
-
"title": "Generate Full Org package.xml",
|
|
7101
|
-
"requiresProject": false,
|
|
7102
|
-
"isESM": true,
|
|
7103
|
-
"relativePath": [
|
|
7104
|
-
"lib",
|
|
7105
|
-
"commands",
|
|
7106
|
-
"hardis",
|
|
7107
|
-
"org",
|
|
7108
|
-
"generate",
|
|
7109
|
-
"packagexmlfull.js"
|
|
7110
|
-
],
|
|
7111
|
-
"aliasPermutations": [],
|
|
7112
|
-
"permutations": [
|
|
7113
|
-
"hardis:org:generate:packagexmlfull",
|
|
7114
|
-
"org:hardis:generate:packagexmlfull",
|
|
7115
|
-
"org:generate:hardis:packagexmlfull",
|
|
7116
|
-
"org:generate:packagexmlfull:hardis",
|
|
7117
|
-
"hardis:generate:org:packagexmlfull",
|
|
7118
|
-
"generate:hardis:org:packagexmlfull",
|
|
7119
|
-
"generate:org:hardis:packagexmlfull",
|
|
7120
|
-
"generate:org:packagexmlfull:hardis",
|
|
7121
|
-
"hardis:generate:packagexmlfull:org",
|
|
7122
|
-
"generate:hardis:packagexmlfull:org",
|
|
7123
|
-
"generate:packagexmlfull:hardis:org",
|
|
7124
|
-
"generate:packagexmlfull:org:hardis",
|
|
7125
|
-
"hardis:org:packagexmlfull:generate",
|
|
7126
|
-
"org:hardis:packagexmlfull:generate",
|
|
7127
|
-
"org:packagexmlfull:hardis:generate",
|
|
7128
|
-
"org:packagexmlfull:generate:hardis",
|
|
7129
|
-
"hardis:packagexmlfull:org:generate",
|
|
7130
|
-
"packagexmlfull:hardis:org:generate",
|
|
7131
|
-
"packagexmlfull:org:hardis:generate",
|
|
7132
|
-
"packagexmlfull:org:generate:hardis",
|
|
7133
|
-
"hardis:packagexmlfull:generate:org",
|
|
7134
|
-
"packagexmlfull:hardis:generate:org",
|
|
7135
|
-
"packagexmlfull:generate:hardis:org",
|
|
7136
|
-
"packagexmlfull:generate:org:hardis"
|
|
7137
|
-
]
|
|
7138
|
-
},
|
|
7139
|
-
"hardis:org:monitor:all": {
|
|
7140
|
-
"aliases": [],
|
|
7141
|
-
"args": {},
|
|
7142
|
-
"description": "Monitor org, generate reports and sends notifications\n\nYou can disable some commands defining either a **monitoringDisable** property in `.sfdx-hardis.yml`, or a comma separated list in env variable **MONITORING_DISABLE**\n\nExample in .sfdx-hardis.yml:\n \n```yaml\nmonitoringDisable:\n - METADATA_STATUS\n - MISSING_ATTRIBUTES\n - UNUSED_METADATAS\n```\n \nExample in env var:\n\n```sh\nMONITORING_DISABLE=METADATA_STATUS,MISSING_ATTRIBUTES,UNUSED_METADATAS\n```\n\nA [default list of monitoring commands](https://sfdx-hardis.cloudity.com/salesforce-monitoring-home/#monitoring-commands) is used, if you want to override it you can define property **monitoringCommands** in your .sfdx-hardis.yml file\n\nExample:\n\n```yaml\nmonitoringCommands:\n - title: My Custom command\n command: sf my:custom:command\n - title: My Custom command 2\n command: sf my:other:custom:command\n```\n\nYou can force the daily run of all commands by defining env var `MONITORING_IGNORE_FREQUENCY=true`\n\nThe default list of commands is the following:\n\n| Key | Description | Command | Frequency |\n| :---: | :---- | :---- | :-----: |\n| [AUDIT_TRAIL](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/audittrail) | Detect suspect setup actions in major org | [sf hardis:org:diagnose:audittrail](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/audittrail) | daily |\n| [LEGACY_API](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/legacyapi) | Detect calls to deprecated API versions | [sf hardis:org:diagnose:legacyapi](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/legacyapi) | daily |\n| [ORG_LIMITS](https://sfdx-hardis.cloudity.com/hardis/org/monitor/limits) | Detect if org limits are close to be reached | [sf hardis:org:monitor:limits](https://sfdx-hardis.cloudity.com/hardis/org/monitor/limits) | daily |\n| [LICENSES](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/licenses) | Extract licenses information | [sf hardis:org:diagnose:licenses](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/licenses) | weekly |\n| [LINT_ACCESS](https://sfdx-hardis.cloudity.com/hardis/lint/access) | Detect custom elements with no access rights defined in permission sets | [sf hardis:lint:access](https://sfdx-hardis.cloudity.com/hardis/lint/access) | weekly |\n| [UNUSED_LICENSES](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedlicenses) | Detect permission set licenses that are assigned to users that do not need them | [sf hardis:org:diagnose:unusedlicenses](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedlicenses) | weekly |\n| [UNUSED_USERS](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedusers) | Detect active users without recent logins | [sf hardis:org:diagnose:unusedusers](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedusers) | weekly |\n| [ACTIVE_USERS](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedusers) | Detect active users with recent logins | [sf hardis:org:diagnose:unusedusers --returnactiveusers](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedusers) | weekly |\n| [ORG_INFO](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/instanceupgrade) | Get org info + SF instance info + next major upgrade date | [sf hardis:org:diagnose:instanceupgrade](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/instanceupgrade) | weekly |\n| [RELEASE_UPDATES](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/releaseupdates) | Gather warnings about incoming and overdue Release Updates | [sf hardis:org:diagnose:releaseupdates](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/releaseupdates) | weekly |\n| [UNUSED_METADATAS](https://sfdx-hardis.cloudity.com/hardis/lint/unusedmetadatas) | Detect custom labels and custom permissions that are not in use | [sf hardis:lint:unusedmetadatas](https://sfdx-hardis.cloudity.com/hardis/lint/unusedmetadatas) | weekly |\n| [UNUSED_APEX_CLASSES](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unused-apex-classes) | Detect unused Apex classes in an org | [sf hardis:org:diagnose:unused-apex-classes](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unused-apex-classes) | weekly |\n| [CONNECTED_APPS](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unused-connected-apps) | Detect unused Connected Apps in an org | [sf hardis:org:diagnose:unused-connected-apps](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unused-connected-apps) | weekly |\n| [METADATA_STATUS](https://sfdx-hardis.cloudity.com/hardis/lint/metadatastatus) | Detect inactive metadata | [sf hardis:lint:metadatastatus](https://sfdx-hardis.cloudity.com/hardis/lint/metadatastatus) | weekly |\n| [MISSING_ATTRIBUTES](https://sfdx-hardis.cloudity.com/hardis/lint/missingattributes) | Detect missing description on custom field | [sf hardis:lint:missingattributes](https://sfdx-hardis.cloudity.com/hardis/lint/missingattributes) | weekly |\n\n",
|
|
7143
|
-
"examples": [
|
|
7144
|
-
"$ sf hardis:org:monitor:all"
|
|
7145
|
-
],
|
|
7146
|
-
"flags": {
|
|
7147
|
-
"json": {
|
|
7148
|
-
"description": "Format output as json.",
|
|
7149
|
-
"helpGroup": "GLOBAL",
|
|
7150
|
-
"name": "json",
|
|
7151
|
-
"allowNo": false,
|
|
7152
|
-
"type": "boolean"
|
|
7153
|
-
},
|
|
7154
|
-
"flags-dir": {
|
|
7155
|
-
"helpGroup": "GLOBAL",
|
|
7156
|
-
"name": "flags-dir",
|
|
7157
|
-
"summary": "Import flag values from a directory.",
|
|
7158
|
-
"hasDynamicHelp": false,
|
|
7159
|
-
"multiple": false,
|
|
7160
|
-
"type": "option"
|
|
7161
|
-
},
|
|
7162
|
-
"debug": {
|
|
7163
|
-
"char": "d",
|
|
7164
|
-
"description": "Activate debug mode (more logs)",
|
|
7165
|
-
"name": "debug",
|
|
7166
|
-
"allowNo": false,
|
|
7167
|
-
"type": "boolean"
|
|
7168
|
-
},
|
|
7169
|
-
"websocket": {
|
|
7170
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7171
|
-
"name": "websocket",
|
|
7172
|
-
"hasDynamicHelp": false,
|
|
7173
|
-
"multiple": false,
|
|
7174
|
-
"type": "option"
|
|
7175
|
-
},
|
|
7176
|
-
"skipauth": {
|
|
7177
|
-
"description": "Skip authentication check when a default username is required",
|
|
7178
|
-
"name": "skipauth",
|
|
7179
|
-
"allowNo": false,
|
|
7180
|
-
"type": "boolean"
|
|
7181
|
-
},
|
|
7182
|
-
"target-org": {
|
|
7183
|
-
"aliases": [
|
|
7184
|
-
"targetusername",
|
|
7185
|
-
"u"
|
|
7186
|
-
],
|
|
7187
|
-
"char": "o",
|
|
7188
|
-
"deprecateAliases": true,
|
|
7189
|
-
"name": "target-org",
|
|
7190
|
-
"noCacheDefault": true,
|
|
7191
|
-
"required": true,
|
|
7192
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7193
|
-
"hasDynamicHelp": true,
|
|
7194
|
-
"multiple": false,
|
|
7195
|
-
"type": "option"
|
|
7196
|
-
}
|
|
7197
|
-
},
|
|
7198
|
-
"hasDynamicHelp": true,
|
|
7199
|
-
"hiddenAliases": [],
|
|
7200
|
-
"id": "hardis:org:monitor:all",
|
|
7200
|
+
"id": "hardis:org:monitor:all",
|
|
7201
7201
|
"pluginAlias": "sfdx-hardis",
|
|
7202
7202
|
"pluginName": "sfdx-hardis",
|
|
7203
7203
|
"pluginType": "core",
|
|
@@ -7611,13 +7611,16 @@
|
|
|
7611
7611
|
"limits:monitor:org:hardis"
|
|
7612
7612
|
]
|
|
7613
7613
|
},
|
|
7614
|
-
"hardis:org:
|
|
7614
|
+
"hardis:org:refresh:after-refresh": {
|
|
7615
7615
|
"aliases": [],
|
|
7616
7616
|
"args": {},
|
|
7617
|
-
"description": "\n**
|
|
7617
|
+
"description": "\n## Command Behavior\n\n**Restores all previously backed-up Connected Apps (including Consumer Secrets) to a Salesforce org after a sandbox refresh.**\n\nThis command is the second step in the sandbox refresh process. It scans the backup folder created before the refresh, allows selection of which Connected Apps to restore, and automates their deletion and redeployment to the refreshed org, ensuring all credentials and configuration are preserved.\n\nKey functionalities:\n\n- **Backup Folder Selection:** Prompts the user to select the correct backup folder for the sandbox instance.\n- **Connected App Discovery:** Scans the backup for all Connected App metadata files.\n- **User Selection:** Allows interactive or flag-based selection of which Connected Apps to restore.\n- **Validation:** Ensures all selected apps exist in the backup and validates user input.\n- **Org Cleanup:** Deletes existing Connected Apps from the refreshed org to allow clean redeployment.\n- **Deployment:** Deploys the selected Connected Apps (with secrets) to the org.\n- **Summary and Reporting:** Provides a summary of restored apps and their status.\n\nThis command is part of [sfdx-hardis Sandbox Refresh](https://sfdx-hardis.cloudity.com/salesforce-sandbox-refresh/) and is designed to be run after a sandbox refresh, using the backup created by the before-refresh command.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\n- **Backup Folder Handling:** Prompts for and validates the backup folder under `scripts/sandbox-refresh/`.\n- **Metadata Scanning:** Uses glob patterns to find all `*.connectedApp - meta.xml` files in the backup.\n- **Selection Logic:** Supports `--all`, `--name`, and interactive selection of apps to restore.\n- **Validation:** Checks that all requested apps exist in the backup and provides clear errors if not.\n- **Org Operations:** Deletes existing Connected Apps from the org before redeployment to avoid conflicts.\n- **Deployment:** Uses utility functions to deploy Connected Apps and their secrets to the org.\n- **Error Handling:** Handles and reports errors at each step, including parsing and deployment issues.\n\n</details>\n",
|
|
7618
7618
|
"examples": [
|
|
7619
|
-
"$ sf hardis:org:
|
|
7620
|
-
"$ sf hardis:org:
|
|
7619
|
+
"$ sf hardis:org:refresh:after-refresh",
|
|
7620
|
+
"$ sf hardis:org:refresh:after-refresh --name \"MyConnectedApp\" // Process specific app, no selection prompt",
|
|
7621
|
+
"$ sf hardis:org:refresh:after-refresh --name \"App1,App2,App3\" // Process multiple apps, no selection prompt",
|
|
7622
|
+
"$ sf hardis:org:refresh:after-refresh --all // Process all apps, no selection prompt",
|
|
7623
|
+
"$ sf hardis:org:refresh:after-refresh --target-org myDevOrg"
|
|
7621
7624
|
],
|
|
7622
7625
|
"flags": {
|
|
7623
7626
|
"json": {
|
|
@@ -7635,23 +7638,37 @@
|
|
|
7635
7638
|
"multiple": false,
|
|
7636
7639
|
"type": "option"
|
|
7637
7640
|
},
|
|
7638
|
-
"
|
|
7639
|
-
"char": "
|
|
7640
|
-
"
|
|
7641
|
-
"
|
|
7642
|
-
"
|
|
7643
|
-
"
|
|
7641
|
+
"target-org": {
|
|
7642
|
+
"char": "o",
|
|
7643
|
+
"name": "target-org",
|
|
7644
|
+
"noCacheDefault": true,
|
|
7645
|
+
"required": true,
|
|
7646
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7647
|
+
"hasDynamicHelp": true,
|
|
7648
|
+
"multiple": false,
|
|
7649
|
+
"type": "option"
|
|
7644
7650
|
},
|
|
7645
|
-
"
|
|
7646
|
-
"char": "
|
|
7647
|
-
"description": "
|
|
7648
|
-
"name": "
|
|
7651
|
+
"name": {
|
|
7652
|
+
"char": "n",
|
|
7653
|
+
"description": "Connected App name(s) to process (bypasses selection prompt). For multiple apps, separate with commas (e.g., \"App1,App2\")",
|
|
7654
|
+
"name": "name",
|
|
7655
|
+
"summary": "Filter according to Name criteria",
|
|
7656
|
+
"hasDynamicHelp": false,
|
|
7657
|
+
"multiple": false,
|
|
7658
|
+
"type": "option"
|
|
7659
|
+
},
|
|
7660
|
+
"all": {
|
|
7661
|
+
"char": "a",
|
|
7662
|
+
"description": "If set, all Connected Apps from the local repository will be processed. Takes precedence over --name if both are specified.",
|
|
7663
|
+
"name": "all",
|
|
7664
|
+
"summary": "Process all Connected Apps without selection prompt",
|
|
7649
7665
|
"allowNo": false,
|
|
7650
7666
|
"type": "boolean"
|
|
7651
7667
|
},
|
|
7652
7668
|
"websocket": {
|
|
7653
7669
|
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7654
7670
|
"name": "websocket",
|
|
7671
|
+
"summary": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7655
7672
|
"hasDynamicHelp": false,
|
|
7656
7673
|
"multiple": false,
|
|
7657
7674
|
"type": "option"
|
|
@@ -7659,80 +7676,68 @@
|
|
|
7659
7676
|
"skipauth": {
|
|
7660
7677
|
"description": "Skip authentication check when a default username is required",
|
|
7661
7678
|
"name": "skipauth",
|
|
7679
|
+
"summary": "Skip authentication check when a default username is required",
|
|
7662
7680
|
"allowNo": false,
|
|
7663
7681
|
"type": "boolean"
|
|
7664
|
-
},
|
|
7665
|
-
"target-org": {
|
|
7666
|
-
"aliases": [
|
|
7667
|
-
"targetusername",
|
|
7668
|
-
"u"
|
|
7669
|
-
],
|
|
7670
|
-
"char": "o",
|
|
7671
|
-
"deprecateAliases": true,
|
|
7672
|
-
"name": "target-org",
|
|
7673
|
-
"noCacheDefault": true,
|
|
7674
|
-
"required": true,
|
|
7675
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7676
|
-
"hasDynamicHelp": true,
|
|
7677
|
-
"multiple": false,
|
|
7678
|
-
"type": "option"
|
|
7679
7682
|
}
|
|
7680
7683
|
},
|
|
7681
7684
|
"hasDynamicHelp": true,
|
|
7682
7685
|
"hiddenAliases": [],
|
|
7683
|
-
"id": "hardis:org:
|
|
7686
|
+
"id": "hardis:org:refresh:after-refresh",
|
|
7684
7687
|
"pluginAlias": "sfdx-hardis",
|
|
7685
7688
|
"pluginName": "sfdx-hardis",
|
|
7686
7689
|
"pluginType": "core",
|
|
7687
7690
|
"strict": true,
|
|
7688
7691
|
"enableJsonFlag": true,
|
|
7689
|
-
"title": "
|
|
7690
|
-
"requiresProject":
|
|
7692
|
+
"title": "Restore Connected Apps after org refresh",
|
|
7693
|
+
"requiresProject": true,
|
|
7691
7694
|
"isESM": true,
|
|
7692
7695
|
"relativePath": [
|
|
7693
7696
|
"lib",
|
|
7694
7697
|
"commands",
|
|
7695
7698
|
"hardis",
|
|
7696
7699
|
"org",
|
|
7697
|
-
"
|
|
7698
|
-
"
|
|
7700
|
+
"refresh",
|
|
7701
|
+
"after-refresh.js"
|
|
7699
7702
|
],
|
|
7700
7703
|
"aliasPermutations": [],
|
|
7701
7704
|
"permutations": [
|
|
7702
|
-
"hardis:org:
|
|
7703
|
-
"org:hardis:
|
|
7704
|
-
"org:
|
|
7705
|
-
"org:
|
|
7706
|
-
"hardis:
|
|
7707
|
-
"
|
|
7708
|
-
"
|
|
7709
|
-
"
|
|
7710
|
-
"hardis:
|
|
7711
|
-
"
|
|
7712
|
-
"
|
|
7713
|
-
"
|
|
7714
|
-
"hardis:org:
|
|
7715
|
-
"org:hardis:
|
|
7716
|
-
"org:
|
|
7717
|
-
"org:
|
|
7718
|
-
"hardis:
|
|
7719
|
-
"
|
|
7720
|
-
"
|
|
7721
|
-
"
|
|
7722
|
-
"hardis:
|
|
7723
|
-
"
|
|
7724
|
-
"
|
|
7725
|
-
"
|
|
7705
|
+
"hardis:org:refresh:after-refresh",
|
|
7706
|
+
"org:hardis:refresh:after-refresh",
|
|
7707
|
+
"org:refresh:hardis:after-refresh",
|
|
7708
|
+
"org:refresh:after-refresh:hardis",
|
|
7709
|
+
"hardis:refresh:org:after-refresh",
|
|
7710
|
+
"refresh:hardis:org:after-refresh",
|
|
7711
|
+
"refresh:org:hardis:after-refresh",
|
|
7712
|
+
"refresh:org:after-refresh:hardis",
|
|
7713
|
+
"hardis:refresh:after-refresh:org",
|
|
7714
|
+
"refresh:hardis:after-refresh:org",
|
|
7715
|
+
"refresh:after-refresh:hardis:org",
|
|
7716
|
+
"refresh:after-refresh:org:hardis",
|
|
7717
|
+
"hardis:org:after-refresh:refresh",
|
|
7718
|
+
"org:hardis:after-refresh:refresh",
|
|
7719
|
+
"org:after-refresh:hardis:refresh",
|
|
7720
|
+
"org:after-refresh:refresh:hardis",
|
|
7721
|
+
"hardis:after-refresh:org:refresh",
|
|
7722
|
+
"after-refresh:hardis:org:refresh",
|
|
7723
|
+
"after-refresh:org:hardis:refresh",
|
|
7724
|
+
"after-refresh:org:refresh:hardis",
|
|
7725
|
+
"hardis:after-refresh:refresh:org",
|
|
7726
|
+
"after-refresh:hardis:refresh:org",
|
|
7727
|
+
"after-refresh:refresh:hardis:org",
|
|
7728
|
+
"after-refresh:refresh:org:hardis"
|
|
7726
7729
|
]
|
|
7727
7730
|
},
|
|
7728
|
-
"hardis:org:
|
|
7731
|
+
"hardis:org:refresh:before-refresh": {
|
|
7729
7732
|
"aliases": [],
|
|
7730
7733
|
"args": {},
|
|
7731
|
-
"description": "\n**
|
|
7734
|
+
"description": "\n## Command Behavior\n\n**Backs up all Connected Apps, their secrets, certificates, and custom settings from a Salesforce org before a sandbox refresh, enabling full restoration after the refresh.**\n\nThis command is essential for Salesforce sandbox refresh operations where Connected Apps (and their Consumer Secrets), certificates, and custom settings would otherwise be lost. It automates the extraction, secure storage, and (optionally) deletion of Connected Apps, ensuring that all credentials and configuration can be restored post-refresh.\n\nKey functionalities:\n\n- **Connected App Discovery:** Lists all Connected Apps in the org, with options to filter by name, process all, or interactively select.\n- **User Selection:** Allows interactive or flag-based selection of which Connected Apps to back up.\n- **Metadata Retrieval:** Retrieves Connected App metadata and saves it in a dedicated project folder for the sandbox instance.\n- **Consumer Secret Extraction:** Attempts to extract Consumer Secrets automatically using browser automation (Puppeteer), or prompts for manual entry if automation fails.\n- **Config Persistence:** Stores the list of selected apps in the project config for use during restoration.\n- **Optional Deletion:** Can delete the Connected Apps from the org after backup, as required for re-upload after refresh.\n- **Certificate Backup:** Retrieves all org certificates and their definitions, saving them for later restoration.\n- **Custom Settings Backup:** Lists all custom settings in the org, allows user selection, and exports their data to JSON files for backup.\n- **Summary and Reporting:** Provides a summary of actions, including which apps, certificates, and custom settings were saved and whether secrets were captured.\n\nThis command is part of [sfdx-hardis Sandbox Refresh](https://sfdx-hardis.cloudity.com/salesforce-sandbox-refresh/) and is designed to be run before a sandbox refresh. It ensures that all Connected Apps, secrets, certificates, and custom settings are safely stored for later restoration.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\n- **Salesforce CLI Integration:** Uses `sf org list metadata`, `sf project retrieve start`, and other CLI commands to discover and retrieve Connected Apps, certificates, and custom settings.\n- **Metadata Handling:** Saves Connected App XML files and certificate files in a dedicated folder under `scripts/sandbox-refresh/<sandbox-folder>`.\n- **Consumer Secret Handling:** Uses Puppeteer to automate browser login and extraction of Consumer Secrets, falling back to manual prompts if needed.\n- **Custom Settings Handling:** Lists all custom settings, allows user selection, and exports their data using `sf data tree export` to JSON files.\n- **Config Management:** Updates `config/.sfdx-hardis.yml` with the list of selected apps for later use.\n- **Deletion Logic:** Optionally deletes Connected Apps from the org (required for re-upload after refresh), with user confirmation unless running in CI or with `--delete` flag.\n- **Error Handling:** Provides detailed error messages and guidance if retrieval or extraction fails.\n- **Reporting:** Sends summary and configuration files to the WebSocket client for reporting and traceability.\n\n</details>\n",
|
|
7732
7735
|
"examples": [
|
|
7733
|
-
"$ sf hardis:org:
|
|
7734
|
-
"$ sf hardis:org:
|
|
7735
|
-
"$ sf hardis:org:
|
|
7736
|
+
"$ sf hardis:org:refresh:before-refresh",
|
|
7737
|
+
"$ sf hardis:org:refresh:before-refresh --name \"MyConnectedApp\"",
|
|
7738
|
+
"$ sf hardis:org:refresh:before-refresh --name \"App1,App2,App3\"",
|
|
7739
|
+
"$ sf hardis:org:refresh:before-refresh --all",
|
|
7740
|
+
"$ sf hardis:org:refresh:before-refresh --delete"
|
|
7736
7741
|
],
|
|
7737
7742
|
"flags": {
|
|
7738
7743
|
"json": {
|
|
@@ -7750,56 +7755,38 @@
|
|
|
7750
7755
|
"multiple": false,
|
|
7751
7756
|
"type": "option"
|
|
7752
7757
|
},
|
|
7753
|
-
"
|
|
7754
|
-
"char": "
|
|
7755
|
-
"
|
|
7756
|
-
"
|
|
7757
|
-
"
|
|
7758
|
-
"
|
|
7759
|
-
|
|
7760
|
-
"name": {
|
|
7761
|
-
"char": "n",
|
|
7762
|
-
"description": "Filter according to Name criteria",
|
|
7763
|
-
"name": "name",
|
|
7764
|
-
"hasDynamicHelp": false,
|
|
7765
|
-
"multiple": false,
|
|
7766
|
-
"type": "option"
|
|
7767
|
-
},
|
|
7768
|
-
"status": {
|
|
7769
|
-
"char": "s",
|
|
7770
|
-
"description": "Filter according to Status criteria",
|
|
7771
|
-
"name": "status",
|
|
7772
|
-
"hasDynamicHelp": false,
|
|
7758
|
+
"target-org": {
|
|
7759
|
+
"char": "o",
|
|
7760
|
+
"name": "target-org",
|
|
7761
|
+
"noCacheDefault": true,
|
|
7762
|
+
"required": true,
|
|
7763
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7764
|
+
"hasDynamicHelp": true,
|
|
7773
7765
|
"multiple": false,
|
|
7774
7766
|
"type": "option"
|
|
7775
7767
|
},
|
|
7776
|
-
"delete
|
|
7777
|
-
"char": "
|
|
7778
|
-
"description": "
|
|
7779
|
-
"name": "delete
|
|
7768
|
+
"delete": {
|
|
7769
|
+
"char": "d",
|
|
7770
|
+
"description": "By default, Connected Apps are not deleted from the org after saving. Set this flag to force their deletion so they will be able to be reuploaded again after refreshing the org.",
|
|
7771
|
+
"name": "delete",
|
|
7772
|
+
"summary": "Delete Connected Apps from org after saving",
|
|
7780
7773
|
"allowNo": false,
|
|
7781
7774
|
"type": "boolean"
|
|
7782
7775
|
},
|
|
7783
|
-
"
|
|
7784
|
-
"char": "
|
|
7785
|
-
"description": "
|
|
7786
|
-
"name": "
|
|
7787
|
-
"
|
|
7788
|
-
"type": "boolean"
|
|
7789
|
-
},
|
|
7790
|
-
"instanceurl": {
|
|
7791
|
-
"char": "r",
|
|
7792
|
-
"description": "URL of org instance",
|
|
7793
|
-
"name": "instanceurl",
|
|
7794
|
-
"default": "https://login.salesforce.com",
|
|
7776
|
+
"name": {
|
|
7777
|
+
"char": "n",
|
|
7778
|
+
"description": "Connected App name(s) to process. For multiple apps, separate with commas (e.g., \"App1,App2\")",
|
|
7779
|
+
"name": "name",
|
|
7780
|
+
"summary": "Filter according to Name criteria",
|
|
7795
7781
|
"hasDynamicHelp": false,
|
|
7796
7782
|
"multiple": false,
|
|
7797
7783
|
"type": "option"
|
|
7798
7784
|
},
|
|
7799
|
-
"
|
|
7800
|
-
"char": "
|
|
7801
|
-
"description": "
|
|
7802
|
-
"name": "
|
|
7785
|
+
"all": {
|
|
7786
|
+
"char": "a",
|
|
7787
|
+
"description": "If set, all Connected Apps from the org will be processed. Takes precedence over --name if both are specified.",
|
|
7788
|
+
"name": "all",
|
|
7789
|
+
"summary": "Process all Connected Apps without selection prompt",
|
|
7803
7790
|
"allowNo": false,
|
|
7804
7791
|
"type": "boolean"
|
|
7805
7792
|
},
|
|
@@ -7815,80 +7802,61 @@
|
|
|
7815
7802
|
"name": "skipauth",
|
|
7816
7803
|
"allowNo": false,
|
|
7817
7804
|
"type": "boolean"
|
|
7818
|
-
},
|
|
7819
|
-
"target-org": {
|
|
7820
|
-
"aliases": [
|
|
7821
|
-
"targetusername",
|
|
7822
|
-
"u"
|
|
7823
|
-
],
|
|
7824
|
-
"char": "o",
|
|
7825
|
-
"deprecateAliases": true,
|
|
7826
|
-
"name": "target-org",
|
|
7827
|
-
"noCacheDefault": true,
|
|
7828
|
-
"required": true,
|
|
7829
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7830
|
-
"hasDynamicHelp": true,
|
|
7831
|
-
"multiple": false,
|
|
7832
|
-
"type": "option"
|
|
7833
7805
|
}
|
|
7834
7806
|
},
|
|
7835
7807
|
"hasDynamicHelp": true,
|
|
7836
7808
|
"hiddenAliases": [],
|
|
7837
|
-
"id": "hardis:org:
|
|
7809
|
+
"id": "hardis:org:refresh:before-refresh",
|
|
7838
7810
|
"pluginAlias": "sfdx-hardis",
|
|
7839
7811
|
"pluginName": "sfdx-hardis",
|
|
7840
7812
|
"pluginType": "core",
|
|
7841
7813
|
"strict": true,
|
|
7842
7814
|
"enableJsonFlag": true,
|
|
7843
|
-
"
|
|
7844
|
-
"requiresProject": false,
|
|
7815
|
+
"requiresProject": true,
|
|
7845
7816
|
"isESM": true,
|
|
7846
7817
|
"relativePath": [
|
|
7847
7818
|
"lib",
|
|
7848
7819
|
"commands",
|
|
7849
7820
|
"hardis",
|
|
7850
7821
|
"org",
|
|
7851
|
-
"
|
|
7852
|
-
"
|
|
7822
|
+
"refresh",
|
|
7823
|
+
"before-refresh.js"
|
|
7853
7824
|
],
|
|
7854
7825
|
"aliasPermutations": [],
|
|
7855
7826
|
"permutations": [
|
|
7856
|
-
"hardis:org:
|
|
7857
|
-
"org:hardis:
|
|
7858
|
-
"org:
|
|
7859
|
-
"org:
|
|
7860
|
-
"hardis:
|
|
7861
|
-
"
|
|
7862
|
-
"
|
|
7863
|
-
"
|
|
7864
|
-
"hardis:
|
|
7865
|
-
"
|
|
7866
|
-
"
|
|
7867
|
-
"
|
|
7868
|
-
"hardis:org:
|
|
7869
|
-
"org:hardis:
|
|
7870
|
-
"org:
|
|
7871
|
-
"org:
|
|
7872
|
-
"hardis:
|
|
7873
|
-
"
|
|
7874
|
-
"
|
|
7875
|
-
"
|
|
7876
|
-
"hardis:
|
|
7877
|
-
"
|
|
7878
|
-
"
|
|
7879
|
-
"
|
|
7827
|
+
"hardis:org:refresh:before-refresh",
|
|
7828
|
+
"org:hardis:refresh:before-refresh",
|
|
7829
|
+
"org:refresh:hardis:before-refresh",
|
|
7830
|
+
"org:refresh:before-refresh:hardis",
|
|
7831
|
+
"hardis:refresh:org:before-refresh",
|
|
7832
|
+
"refresh:hardis:org:before-refresh",
|
|
7833
|
+
"refresh:org:hardis:before-refresh",
|
|
7834
|
+
"refresh:org:before-refresh:hardis",
|
|
7835
|
+
"hardis:refresh:before-refresh:org",
|
|
7836
|
+
"refresh:hardis:before-refresh:org",
|
|
7837
|
+
"refresh:before-refresh:hardis:org",
|
|
7838
|
+
"refresh:before-refresh:org:hardis",
|
|
7839
|
+
"hardis:org:before-refresh:refresh",
|
|
7840
|
+
"org:hardis:before-refresh:refresh",
|
|
7841
|
+
"org:before-refresh:hardis:refresh",
|
|
7842
|
+
"org:before-refresh:refresh:hardis",
|
|
7843
|
+
"hardis:before-refresh:org:refresh",
|
|
7844
|
+
"before-refresh:hardis:org:refresh",
|
|
7845
|
+
"before-refresh:org:hardis:refresh",
|
|
7846
|
+
"before-refresh:org:refresh:hardis",
|
|
7847
|
+
"hardis:before-refresh:refresh:org",
|
|
7848
|
+
"before-refresh:hardis:refresh:org",
|
|
7849
|
+
"before-refresh:refresh:hardis:org",
|
|
7850
|
+
"before-refresh:refresh:org:hardis"
|
|
7880
7851
|
]
|
|
7881
7852
|
},
|
|
7882
|
-
"hardis:org:
|
|
7853
|
+
"hardis:org:retrieve:packageconfig": {
|
|
7883
7854
|
"aliases": [],
|
|
7884
7855
|
"args": {},
|
|
7885
|
-
"description": "\n
|
|
7856
|
+
"description": "\n**Retrieves the installed package configuration from a Salesforce org and optionally updates the local project configuration.**\n\nThis command is useful for maintaining an accurate record of installed packages within your Salesforce project, which is crucial for managing dependencies and ensuring consistent deployments across environments.\n\nKey functionalities:\n\n- **Package Listing:** Connects to a specified Salesforce org (or prompts for one if not provided) and retrieves a list of all installed packages.\n- **Configuration Update:** Offers the option to update your local project's configuration with the retrieved list of installed packages. This can be beneficial for automating package installations during environment setup or CI/CD processes.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Org Connection:** It establishes a connection to the target Salesforce org using the provided or prompted username.\n- **Metadata Retrieval:** It utilizes `MetadataUtils.listInstalledPackages` to query the Salesforce org and obtain details about the installed packages.\n- **Interactive Prompt:** It uses the `prompts` library to ask the user whether they want to update their local project configuration with the retrieved package list.\n- **Configuration Management:** If the user confirms, it calls `managePackageConfig` to update the project's configuration file (likely `.sfdx-hardis.yml`) with the new package information.\n- **User Feedback:** Provides clear messages to the user about the success of the package retrieval and configuration update.\n</details>\n",
|
|
7886
7857
|
"examples": [
|
|
7887
|
-
"$ sf hardis:org:
|
|
7888
|
-
"
|
|
7889
|
-
"$ sf hardis:org:refresh:after-refresh --name \"App1,App2,App3\" // Process multiple apps, no selection prompt",
|
|
7890
|
-
"$ sf hardis:org:refresh:after-refresh --all // Process all apps, no selection prompt",
|
|
7891
|
-
"$ sf hardis:org:refresh:after-refresh --target-org myDevOrg"
|
|
7858
|
+
"$ sf hardis:org:retrieve:packageconfig",
|
|
7859
|
+
"sf hardis:org:retrieve:packageconfig -u myOrg"
|
|
7892
7860
|
],
|
|
7893
7861
|
"flags": {
|
|
7894
7862
|
"json": {
|
|
@@ -7906,37 +7874,16 @@
|
|
|
7906
7874
|
"multiple": false,
|
|
7907
7875
|
"type": "option"
|
|
7908
7876
|
},
|
|
7909
|
-
"
|
|
7910
|
-
"char": "
|
|
7911
|
-
"
|
|
7912
|
-
"
|
|
7913
|
-
"required": true,
|
|
7914
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7915
|
-
"hasDynamicHelp": true,
|
|
7916
|
-
"multiple": false,
|
|
7917
|
-
"type": "option"
|
|
7918
|
-
},
|
|
7919
|
-
"name": {
|
|
7920
|
-
"char": "n",
|
|
7921
|
-
"description": "Connected App name(s) to process (bypasses selection prompt). For multiple apps, separate with commas (e.g., \"App1,App2\")",
|
|
7922
|
-
"name": "name",
|
|
7923
|
-
"summary": "Filter according to Name criteria",
|
|
7924
|
-
"hasDynamicHelp": false,
|
|
7925
|
-
"multiple": false,
|
|
7926
|
-
"type": "option"
|
|
7927
|
-
},
|
|
7928
|
-
"all": {
|
|
7929
|
-
"char": "a",
|
|
7930
|
-
"description": "If set, all Connected Apps from the local repository will be processed. Takes precedence over --name if both are specified.",
|
|
7931
|
-
"name": "all",
|
|
7932
|
-
"summary": "Process all Connected Apps without selection prompt",
|
|
7877
|
+
"debug": {
|
|
7878
|
+
"char": "d",
|
|
7879
|
+
"description": "Activate debug mode (more logs)",
|
|
7880
|
+
"name": "debug",
|
|
7933
7881
|
"allowNo": false,
|
|
7934
7882
|
"type": "boolean"
|
|
7935
7883
|
},
|
|
7936
7884
|
"websocket": {
|
|
7937
7885
|
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7938
7886
|
"name": "websocket",
|
|
7939
|
-
"summary": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7940
7887
|
"hasDynamicHelp": false,
|
|
7941
7888
|
"multiple": false,
|
|
7942
7889
|
"type": "option"
|
|
@@ -7944,68 +7891,79 @@
|
|
|
7944
7891
|
"skipauth": {
|
|
7945
7892
|
"description": "Skip authentication check when a default username is required",
|
|
7946
7893
|
"name": "skipauth",
|
|
7947
|
-
"summary": "Skip authentication check when a default username is required",
|
|
7948
7894
|
"allowNo": false,
|
|
7949
7895
|
"type": "boolean"
|
|
7896
|
+
},
|
|
7897
|
+
"target-org": {
|
|
7898
|
+
"aliases": [
|
|
7899
|
+
"targetusername",
|
|
7900
|
+
"u"
|
|
7901
|
+
],
|
|
7902
|
+
"char": "o",
|
|
7903
|
+
"deprecateAliases": true,
|
|
7904
|
+
"name": "target-org",
|
|
7905
|
+
"noCacheDefault": true,
|
|
7906
|
+
"required": true,
|
|
7907
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7908
|
+
"hasDynamicHelp": true,
|
|
7909
|
+
"multiple": false,
|
|
7910
|
+
"type": "option"
|
|
7950
7911
|
}
|
|
7951
7912
|
},
|
|
7952
7913
|
"hasDynamicHelp": true,
|
|
7953
7914
|
"hiddenAliases": [],
|
|
7954
|
-
"id": "hardis:org:
|
|
7915
|
+
"id": "hardis:org:retrieve:packageconfig",
|
|
7955
7916
|
"pluginAlias": "sfdx-hardis",
|
|
7956
7917
|
"pluginName": "sfdx-hardis",
|
|
7957
7918
|
"pluginType": "core",
|
|
7958
7919
|
"strict": true,
|
|
7959
7920
|
"enableJsonFlag": true,
|
|
7960
|
-
"title": "
|
|
7961
|
-
"requiresProject":
|
|
7921
|
+
"title": "Retrieve package configuration from an org",
|
|
7922
|
+
"requiresProject": false,
|
|
7962
7923
|
"isESM": true,
|
|
7963
7924
|
"relativePath": [
|
|
7964
7925
|
"lib",
|
|
7965
7926
|
"commands",
|
|
7966
7927
|
"hardis",
|
|
7967
7928
|
"org",
|
|
7968
|
-
"
|
|
7969
|
-
"
|
|
7929
|
+
"retrieve",
|
|
7930
|
+
"packageconfig.js"
|
|
7970
7931
|
],
|
|
7971
7932
|
"aliasPermutations": [],
|
|
7972
7933
|
"permutations": [
|
|
7973
|
-
"hardis:org:
|
|
7974
|
-
"org:hardis:
|
|
7975
|
-
"org:
|
|
7976
|
-
"org:
|
|
7977
|
-
"hardis:
|
|
7978
|
-
"
|
|
7979
|
-
"
|
|
7980
|
-
"
|
|
7981
|
-
"hardis:
|
|
7982
|
-
"
|
|
7983
|
-
"
|
|
7984
|
-
"
|
|
7985
|
-
"hardis:org:
|
|
7986
|
-
"org:hardis:
|
|
7987
|
-
"org:
|
|
7988
|
-
"org:
|
|
7989
|
-
"hardis:
|
|
7990
|
-
"
|
|
7991
|
-
"
|
|
7992
|
-
"
|
|
7993
|
-
"hardis:
|
|
7994
|
-
"
|
|
7995
|
-
"
|
|
7996
|
-
"
|
|
7934
|
+
"hardis:org:retrieve:packageconfig",
|
|
7935
|
+
"org:hardis:retrieve:packageconfig",
|
|
7936
|
+
"org:retrieve:hardis:packageconfig",
|
|
7937
|
+
"org:retrieve:packageconfig:hardis",
|
|
7938
|
+
"hardis:retrieve:org:packageconfig",
|
|
7939
|
+
"retrieve:hardis:org:packageconfig",
|
|
7940
|
+
"retrieve:org:hardis:packageconfig",
|
|
7941
|
+
"retrieve:org:packageconfig:hardis",
|
|
7942
|
+
"hardis:retrieve:packageconfig:org",
|
|
7943
|
+
"retrieve:hardis:packageconfig:org",
|
|
7944
|
+
"retrieve:packageconfig:hardis:org",
|
|
7945
|
+
"retrieve:packageconfig:org:hardis",
|
|
7946
|
+
"hardis:org:packageconfig:retrieve",
|
|
7947
|
+
"org:hardis:packageconfig:retrieve",
|
|
7948
|
+
"org:packageconfig:hardis:retrieve",
|
|
7949
|
+
"org:packageconfig:retrieve:hardis",
|
|
7950
|
+
"hardis:packageconfig:org:retrieve",
|
|
7951
|
+
"packageconfig:hardis:org:retrieve",
|
|
7952
|
+
"packageconfig:org:hardis:retrieve",
|
|
7953
|
+
"packageconfig:org:retrieve:hardis",
|
|
7954
|
+
"hardis:packageconfig:retrieve:org",
|
|
7955
|
+
"packageconfig:hardis:retrieve:org",
|
|
7956
|
+
"packageconfig:retrieve:hardis:org",
|
|
7957
|
+
"packageconfig:retrieve:org:hardis"
|
|
7997
7958
|
]
|
|
7998
7959
|
},
|
|
7999
|
-
"hardis:org:
|
|
7960
|
+
"hardis:org:purge:apexlog": {
|
|
8000
7961
|
"aliases": [],
|
|
8001
7962
|
"args": {},
|
|
8002
|
-
"description": "\n
|
|
7963
|
+
"description": "\n**Purges Apex debug logs from a Salesforce org.**\n\nThis command provides a quick and efficient way to clear out accumulated Apex debug logs from your Salesforce environment. This is particularly useful for:\n\n- **Storage Management:** Freeing up valuable data storage space in your Salesforce org.\n- **Performance Optimization:** Reducing the overhead associated with large volumes of debug logs.\n- **Troubleshooting:** Ensuring that new debug logs are generated cleanly without interference from old, irrelevant logs.\n\nKey functionalities:\n\n- **Log Identification:** Queries the `ApexLog` object to identify all existing debug logs.\n- **Confirmation Prompt:** Before deletion, it prompts for user confirmation, displaying the number of Apex logs that will be deleted.\n- **Bulk Deletion:** Uses the Salesforce Bulk API to efficiently delete a large number of Apex logs.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **SOQL Query:** It executes a SOQL query (`SELECT Id FROM ApexLog LIMIT 50000`) to retrieve the IDs of Apex logs to be deleted. The limit is set to 50,000 to handle large volumes of logs.\n- **CSV Export:** The retrieved log IDs are temporarily exported to a CSV file (`ApexLogsToDelete_*.csv`) in the `./tmp` directory.\n- **User Confirmation:** It uses the `prompts` library to ask for user confirmation before proceeding with the deletion, displaying the count of logs to be purged.\n- **Bulk API Deletion:** It then uses the Salesforce CLI's `sf data delete bulk` command, pointing to the generated CSV file, to perform the mass deletion of Apex logs.\n- **File System Operations:** It uses `fs-extra` to create the temporary directory and manage the CSV file.\n- **Error Handling:** Includes error handling for the query and deletion operations.\n</details>\n",
|
|
8003
7964
|
"examples": [
|
|
8004
|
-
"$ sf hardis:org:
|
|
8005
|
-
"$ sf hardis:org:
|
|
8006
|
-
"$ sf hardis:org:refresh:before-refresh --name \"App1,App2,App3\"",
|
|
8007
|
-
"$ sf hardis:org:refresh:before-refresh --all",
|
|
8008
|
-
"$ sf hardis:org:refresh:before-refresh --delete"
|
|
7965
|
+
"$ sf hardis:org:purge:apexlog",
|
|
7966
|
+
"$ sf hardis:org:purge:apexlog --target-org nicolas.vuillamy@gmail.com"
|
|
8009
7967
|
],
|
|
8010
7968
|
"flags": {
|
|
8011
7969
|
"json": {
|
|
@@ -8023,38 +7981,17 @@
|
|
|
8023
7981
|
"multiple": false,
|
|
8024
7982
|
"type": "option"
|
|
8025
7983
|
},
|
|
8026
|
-
"
|
|
8027
|
-
"char": "
|
|
8028
|
-
"
|
|
8029
|
-
"
|
|
8030
|
-
"
|
|
8031
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
8032
|
-
"hasDynamicHelp": true,
|
|
8033
|
-
"multiple": false,
|
|
8034
|
-
"type": "option"
|
|
8035
|
-
},
|
|
8036
|
-
"delete": {
|
|
8037
|
-
"char": "d",
|
|
8038
|
-
"description": "By default, Connected Apps are not deleted from the org after saving. Set this flag to force their deletion so they will be able to be reuploaded again after refreshing the org.",
|
|
8039
|
-
"name": "delete",
|
|
8040
|
-
"summary": "Delete Connected Apps from org after saving",
|
|
8041
|
-
"allowNo": false,
|
|
7984
|
+
"prompt": {
|
|
7985
|
+
"char": "z",
|
|
7986
|
+
"description": "Prompt for confirmation (true by default, use --no-prompt to skip)",
|
|
7987
|
+
"name": "prompt",
|
|
7988
|
+
"allowNo": true,
|
|
8042
7989
|
"type": "boolean"
|
|
8043
7990
|
},
|
|
8044
|
-
"
|
|
8045
|
-
"char": "
|
|
8046
|
-
"description": "
|
|
8047
|
-
"name": "
|
|
8048
|
-
"summary": "Filter according to Name criteria",
|
|
8049
|
-
"hasDynamicHelp": false,
|
|
8050
|
-
"multiple": false,
|
|
8051
|
-
"type": "option"
|
|
8052
|
-
},
|
|
8053
|
-
"all": {
|
|
8054
|
-
"char": "a",
|
|
8055
|
-
"description": "If set, all Connected Apps from the org will be processed. Takes precedence over --name if both are specified.",
|
|
8056
|
-
"name": "all",
|
|
8057
|
-
"summary": "Process all Connected Apps without selection prompt",
|
|
7991
|
+
"debug": {
|
|
7992
|
+
"char": "d",
|
|
7993
|
+
"description": "Activate debug mode (more logs)",
|
|
7994
|
+
"name": "debug",
|
|
8058
7995
|
"allowNo": false,
|
|
8059
7996
|
"type": "boolean"
|
|
8060
7997
|
},
|
|
@@ -8070,61 +8007,78 @@
|
|
|
8070
8007
|
"name": "skipauth",
|
|
8071
8008
|
"allowNo": false,
|
|
8072
8009
|
"type": "boolean"
|
|
8010
|
+
},
|
|
8011
|
+
"target-org": {
|
|
8012
|
+
"aliases": [
|
|
8013
|
+
"targetusername",
|
|
8014
|
+
"u"
|
|
8015
|
+
],
|
|
8016
|
+
"char": "o",
|
|
8017
|
+
"deprecateAliases": true,
|
|
8018
|
+
"name": "target-org",
|
|
8019
|
+
"noCacheDefault": true,
|
|
8020
|
+
"required": true,
|
|
8021
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
8022
|
+
"hasDynamicHelp": true,
|
|
8023
|
+
"multiple": false,
|
|
8024
|
+
"type": "option"
|
|
8073
8025
|
}
|
|
8074
8026
|
},
|
|
8075
8027
|
"hasDynamicHelp": true,
|
|
8076
8028
|
"hiddenAliases": [],
|
|
8077
|
-
"id": "hardis:org:
|
|
8029
|
+
"id": "hardis:org:purge:apexlog",
|
|
8078
8030
|
"pluginAlias": "sfdx-hardis",
|
|
8079
8031
|
"pluginName": "sfdx-hardis",
|
|
8080
8032
|
"pluginType": "core",
|
|
8081
8033
|
"strict": true,
|
|
8082
8034
|
"enableJsonFlag": true,
|
|
8083
|
-
"
|
|
8035
|
+
"title": "Purge Apex Logs",
|
|
8036
|
+
"requiresProject": false,
|
|
8084
8037
|
"isESM": true,
|
|
8085
8038
|
"relativePath": [
|
|
8086
8039
|
"lib",
|
|
8087
8040
|
"commands",
|
|
8088
8041
|
"hardis",
|
|
8089
8042
|
"org",
|
|
8090
|
-
"
|
|
8091
|
-
"
|
|
8043
|
+
"purge",
|
|
8044
|
+
"apexlog.js"
|
|
8092
8045
|
],
|
|
8093
8046
|
"aliasPermutations": [],
|
|
8094
8047
|
"permutations": [
|
|
8095
|
-
"hardis:org:
|
|
8096
|
-
"org:hardis:
|
|
8097
|
-
"org:
|
|
8098
|
-
"org:
|
|
8099
|
-
"hardis:
|
|
8100
|
-
"
|
|
8101
|
-
"
|
|
8102
|
-
"
|
|
8103
|
-
"hardis:
|
|
8104
|
-
"
|
|
8105
|
-
"
|
|
8106
|
-
"
|
|
8107
|
-
"hardis:org:
|
|
8108
|
-
"org:hardis:
|
|
8109
|
-
"org:
|
|
8110
|
-
"org:
|
|
8111
|
-
"hardis:
|
|
8112
|
-
"
|
|
8113
|
-
"
|
|
8114
|
-
"
|
|
8115
|
-
"hardis:
|
|
8116
|
-
"
|
|
8117
|
-
"
|
|
8118
|
-
"
|
|
8048
|
+
"hardis:org:purge:apexlog",
|
|
8049
|
+
"org:hardis:purge:apexlog",
|
|
8050
|
+
"org:purge:hardis:apexlog",
|
|
8051
|
+
"org:purge:apexlog:hardis",
|
|
8052
|
+
"hardis:purge:org:apexlog",
|
|
8053
|
+
"purge:hardis:org:apexlog",
|
|
8054
|
+
"purge:org:hardis:apexlog",
|
|
8055
|
+
"purge:org:apexlog:hardis",
|
|
8056
|
+
"hardis:purge:apexlog:org",
|
|
8057
|
+
"purge:hardis:apexlog:org",
|
|
8058
|
+
"purge:apexlog:hardis:org",
|
|
8059
|
+
"purge:apexlog:org:hardis",
|
|
8060
|
+
"hardis:org:apexlog:purge",
|
|
8061
|
+
"org:hardis:apexlog:purge",
|
|
8062
|
+
"org:apexlog:hardis:purge",
|
|
8063
|
+
"org:apexlog:purge:hardis",
|
|
8064
|
+
"hardis:apexlog:org:purge",
|
|
8065
|
+
"apexlog:hardis:org:purge",
|
|
8066
|
+
"apexlog:org:hardis:purge",
|
|
8067
|
+
"apexlog:org:purge:hardis",
|
|
8068
|
+
"hardis:apexlog:purge:org",
|
|
8069
|
+
"apexlog:hardis:purge:org",
|
|
8070
|
+
"apexlog:purge:hardis:org",
|
|
8071
|
+
"apexlog:purge:org:hardis"
|
|
8119
8072
|
]
|
|
8120
8073
|
},
|
|
8121
|
-
"hardis:org:
|
|
8074
|
+
"hardis:org:purge:flow": {
|
|
8122
8075
|
"aliases": [],
|
|
8123
8076
|
"args": {},
|
|
8124
|
-
"description": "\n**
|
|
8077
|
+
"description": "\n**Purges old or unwanted Flow versions from a Salesforce org, with an option to delete related Flow Interviews.**\n\nThis command helps maintain a clean and performant Salesforce org by removing obsolete Flow versions. Over time, multiple versions of Flows can accumulate, consuming storage and potentially impacting performance. This tool provides a controlled way to clean up these versions.\n\nKey functionalities:\n\n- **Targeted Flow Selection:** Allows you to filter Flow versions to delete by name (`--name`) and status (`--status`, e.g., `Obsolete`, `Draft`, `Inactive`).\n- **Flow Interview Deletion:** If a Flow version cannot be deleted due to active Flow Interviews, the `--delete-flow-interviews` flag (or interactive prompt) allows you to delete these interviews first, then retry the Flow version deletion.\n- **Confirmation Prompt:** In interactive mode, it prompts for confirmation before proceeding with the deletion of Flow versions and Flow Interviews.\n- **Partial Success Handling:** The `--allowpurgefailure` flag (default `true`) allows the command to continue even if some deletions fail, reporting the errors.\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 `Flow` object (using the Tooling API) to list Flow versions based on the provided filters (name, status, manageable state).\n- **Bulk Deletion (Tooling API):** It uses `bulkDeleteTooling` to perform mass deletions of Flow versions. If deletion fails due to active interviews, it extracts the interview IDs.\n- **Flow Interview Management:** If `delete-flow-interviews` is enabled, it queries `FlowInterview` objects, performs bulk deletion of the identified interviews using `bulkDelete`, and then retries the Flow version deletion.\n- **Interactive Prompts:** Uses the `prompts` library to interact with the user for selecting Flows, statuses, and confirming deletion actions.\n- **Error Reporting:** Logs detailed error messages for failed deletions, including the specific reasons.\n- **Command-Line Execution:** Uses `execSfdxJson` to execute Salesforce CLI commands for querying Flow data.\n</details>\n",
|
|
8125
8078
|
"examples": [
|
|
8126
|
-
"$ sf hardis:org:
|
|
8127
|
-
"sf hardis:org:
|
|
8079
|
+
"$ sf hardis:org:purge:flow",
|
|
8080
|
+
"$ sf hardis:org:purge:flow --target-org nicolas.vuillamy@gmail.com --no-prompt --delete-flow-interviews",
|
|
8081
|
+
"$ sf hardis:org:purge:flow --target-org nicolas.vuillamy@gmail.com --status \"Obsolete,Draft,InvalidDraft\" --name TestFlow"
|
|
8128
8082
|
],
|
|
8129
8083
|
"flags": {
|
|
8130
8084
|
"json": {
|
|
@@ -8142,6 +8096,52 @@
|
|
|
8142
8096
|
"multiple": false,
|
|
8143
8097
|
"type": "option"
|
|
8144
8098
|
},
|
|
8099
|
+
"prompt": {
|
|
8100
|
+
"char": "z",
|
|
8101
|
+
"description": "Prompt for confirmation (true by default, use --no-prompt to skip)",
|
|
8102
|
+
"name": "prompt",
|
|
8103
|
+
"allowNo": true,
|
|
8104
|
+
"type": "boolean"
|
|
8105
|
+
},
|
|
8106
|
+
"name": {
|
|
8107
|
+
"char": "n",
|
|
8108
|
+
"description": "Filter according to Name criteria",
|
|
8109
|
+
"name": "name",
|
|
8110
|
+
"hasDynamicHelp": false,
|
|
8111
|
+
"multiple": false,
|
|
8112
|
+
"type": "option"
|
|
8113
|
+
},
|
|
8114
|
+
"status": {
|
|
8115
|
+
"char": "s",
|
|
8116
|
+
"description": "Filter according to Status criteria",
|
|
8117
|
+
"name": "status",
|
|
8118
|
+
"hasDynamicHelp": false,
|
|
8119
|
+
"multiple": false,
|
|
8120
|
+
"type": "option"
|
|
8121
|
+
},
|
|
8122
|
+
"delete-flow-interviews": {
|
|
8123
|
+
"char": "w",
|
|
8124
|
+
"description": "If the presence of Flow interviews prevent to delete flows versions, delete them before retrying to delete flow versions",
|
|
8125
|
+
"name": "delete-flow-interviews",
|
|
8126
|
+
"allowNo": false,
|
|
8127
|
+
"type": "boolean"
|
|
8128
|
+
},
|
|
8129
|
+
"allowpurgefailure": {
|
|
8130
|
+
"char": "f",
|
|
8131
|
+
"description": "Allows purges to fail without exiting with 1. Use --no-allowpurgefailure to disable",
|
|
8132
|
+
"name": "allowpurgefailure",
|
|
8133
|
+
"allowNo": true,
|
|
8134
|
+
"type": "boolean"
|
|
8135
|
+
},
|
|
8136
|
+
"instanceurl": {
|
|
8137
|
+
"char": "r",
|
|
8138
|
+
"description": "URL of org instance",
|
|
8139
|
+
"name": "instanceurl",
|
|
8140
|
+
"default": "https://login.salesforce.com",
|
|
8141
|
+
"hasDynamicHelp": false,
|
|
8142
|
+
"multiple": false,
|
|
8143
|
+
"type": "option"
|
|
8144
|
+
},
|
|
8145
8145
|
"debug": {
|
|
8146
8146
|
"char": "d",
|
|
8147
8147
|
"description": "Activate debug mode (more logs)",
|
|
@@ -8180,13 +8180,13 @@
|
|
|
8180
8180
|
},
|
|
8181
8181
|
"hasDynamicHelp": true,
|
|
8182
8182
|
"hiddenAliases": [],
|
|
8183
|
-
"id": "hardis:org:
|
|
8183
|
+
"id": "hardis:org:purge:flow",
|
|
8184
8184
|
"pluginAlias": "sfdx-hardis",
|
|
8185
8185
|
"pluginName": "sfdx-hardis",
|
|
8186
8186
|
"pluginType": "core",
|
|
8187
8187
|
"strict": true,
|
|
8188
8188
|
"enableJsonFlag": true,
|
|
8189
|
-
"title": "
|
|
8189
|
+
"title": "Purge Flow versions",
|
|
8190
8190
|
"requiresProject": false,
|
|
8191
8191
|
"isESM": true,
|
|
8192
8192
|
"relativePath": [
|
|
@@ -8194,35 +8194,35 @@
|
|
|
8194
8194
|
"commands",
|
|
8195
8195
|
"hardis",
|
|
8196
8196
|
"org",
|
|
8197
|
-
"
|
|
8198
|
-
"
|
|
8197
|
+
"purge",
|
|
8198
|
+
"flow.js"
|
|
8199
8199
|
],
|
|
8200
8200
|
"aliasPermutations": [],
|
|
8201
8201
|
"permutations": [
|
|
8202
|
-
"hardis:org:
|
|
8203
|
-
"org:hardis:
|
|
8204
|
-
"org:
|
|
8205
|
-
"org:
|
|
8206
|
-
"hardis:
|
|
8207
|
-
"
|
|
8208
|
-
"
|
|
8209
|
-
"
|
|
8210
|
-
"hardis:
|
|
8211
|
-
"
|
|
8212
|
-
"
|
|
8213
|
-
"
|
|
8214
|
-
"hardis:org:
|
|
8215
|
-
"org:hardis:
|
|
8216
|
-
"org:
|
|
8217
|
-
"org:
|
|
8218
|
-
"hardis:
|
|
8219
|
-
"
|
|
8220
|
-
"
|
|
8221
|
-
"
|
|
8222
|
-
"hardis:
|
|
8223
|
-
"
|
|
8224
|
-
"
|
|
8225
|
-
"
|
|
8202
|
+
"hardis:org:purge:flow",
|
|
8203
|
+
"org:hardis:purge:flow",
|
|
8204
|
+
"org:purge:hardis:flow",
|
|
8205
|
+
"org:purge:flow:hardis",
|
|
8206
|
+
"hardis:purge:org:flow",
|
|
8207
|
+
"purge:hardis:org:flow",
|
|
8208
|
+
"purge:org:hardis:flow",
|
|
8209
|
+
"purge:org:flow:hardis",
|
|
8210
|
+
"hardis:purge:flow:org",
|
|
8211
|
+
"purge:hardis:flow:org",
|
|
8212
|
+
"purge:flow:hardis:org",
|
|
8213
|
+
"purge:flow:org:hardis",
|
|
8214
|
+
"hardis:org:flow:purge",
|
|
8215
|
+
"org:hardis:flow:purge",
|
|
8216
|
+
"org:flow:hardis:purge",
|
|
8217
|
+
"org:flow:purge:hardis",
|
|
8218
|
+
"hardis:flow:org:purge",
|
|
8219
|
+
"flow:hardis:org:purge",
|
|
8220
|
+
"flow:org:hardis:purge",
|
|
8221
|
+
"flow:org:purge:hardis",
|
|
8222
|
+
"hardis:flow:purge:org",
|
|
8223
|
+
"flow:hardis:purge:org",
|
|
8224
|
+
"flow:purge:hardis:org",
|
|
8225
|
+
"flow:purge:org:hardis"
|
|
8226
8226
|
]
|
|
8227
8227
|
},
|
|
8228
8228
|
"hardis:org:test:apex": {
|
|
@@ -10997,6 +10997,109 @@
|
|
|
10997
10997
|
"xml:clean:project:hardis"
|
|
10998
10998
|
]
|
|
10999
10999
|
},
|
|
11000
|
+
"hardis:project:convert:profilestopermsets": {
|
|
11001
|
+
"aliases": [],
|
|
11002
|
+
"args": {},
|
|
11003
|
+
"description": "\n## Command Behavior\n\n**Converts existing Salesforce Profiles into Permission Sets, facilitating a more granular and recommended security model.**\n\nThis command helps in migrating permissions from Profiles to Permission Sets, which is a best practice for managing user access in Salesforce. It creates a new Permission Set for each specified Profile, adopting a naming convention of `PS_PROFILENAME`.\n\nKey functionalities:\n\n- **Profile to Permission Set Conversion:** Automatically extracts permissions from a Profile and creates a corresponding Permission Set.\n- **Naming Convention:** New Permission Sets are named with a `PS_` prefix followed by the Profile name (e.g., `PS_Standard_User`).\n- **Exclusion Filter:** Allows you to exclude specific Profiles from the conversion process using the `--except` flag.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **External Plugin Integration:** It relies on the `shane-sfdx-plugins` (specifically the `sf shane:profile:convert` command) to perform the actual conversion.\n- **File System Scan:** It reads the contents of the `force-app/main/default/profiles` directory to identify all available Profile metadata files.\n- **Command Execution:** For each identified Profile (that is not excluded), it constructs and executes the `sf shane:profile:convert` command with the appropriate Profile name and desired Permission Set name.\n- **Error Handling:** Includes basic error handling for the external command execution.\n</details>\n",
|
|
11004
|
+
"examples": [
|
|
11005
|
+
"$ sf hardis:project:convert:profilestopermsets"
|
|
11006
|
+
],
|
|
11007
|
+
"flags": {
|
|
11008
|
+
"json": {
|
|
11009
|
+
"description": "Format output as json.",
|
|
11010
|
+
"helpGroup": "GLOBAL",
|
|
11011
|
+
"name": "json",
|
|
11012
|
+
"allowNo": false,
|
|
11013
|
+
"type": "boolean"
|
|
11014
|
+
},
|
|
11015
|
+
"flags-dir": {
|
|
11016
|
+
"helpGroup": "GLOBAL",
|
|
11017
|
+
"name": "flags-dir",
|
|
11018
|
+
"summary": "Import flag values from a directory.",
|
|
11019
|
+
"hasDynamicHelp": false,
|
|
11020
|
+
"multiple": false,
|
|
11021
|
+
"type": "option"
|
|
11022
|
+
},
|
|
11023
|
+
"except": {
|
|
11024
|
+
"char": "e",
|
|
11025
|
+
"description": "List of filters",
|
|
11026
|
+
"name": "except",
|
|
11027
|
+
"default": [],
|
|
11028
|
+
"hasDynamicHelp": false,
|
|
11029
|
+
"multiple": true,
|
|
11030
|
+
"type": "option"
|
|
11031
|
+
},
|
|
11032
|
+
"debug": {
|
|
11033
|
+
"char": "d",
|
|
11034
|
+
"description": "Activate debug mode (more logs)",
|
|
11035
|
+
"name": "debug",
|
|
11036
|
+
"allowNo": false,
|
|
11037
|
+
"type": "boolean"
|
|
11038
|
+
},
|
|
11039
|
+
"websocket": {
|
|
11040
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11041
|
+
"name": "websocket",
|
|
11042
|
+
"hasDynamicHelp": false,
|
|
11043
|
+
"multiple": false,
|
|
11044
|
+
"type": "option"
|
|
11045
|
+
},
|
|
11046
|
+
"skipauth": {
|
|
11047
|
+
"description": "Skip authentication check when a default username is required",
|
|
11048
|
+
"name": "skipauth",
|
|
11049
|
+
"allowNo": false,
|
|
11050
|
+
"type": "boolean"
|
|
11051
|
+
}
|
|
11052
|
+
},
|
|
11053
|
+
"hasDynamicHelp": false,
|
|
11054
|
+
"hiddenAliases": [],
|
|
11055
|
+
"id": "hardis:project:convert:profilestopermsets",
|
|
11056
|
+
"pluginAlias": "sfdx-hardis",
|
|
11057
|
+
"pluginName": "sfdx-hardis",
|
|
11058
|
+
"pluginType": "core",
|
|
11059
|
+
"strict": true,
|
|
11060
|
+
"enableJsonFlag": true,
|
|
11061
|
+
"title": "Convert Profiles into Permission Sets",
|
|
11062
|
+
"requiresProject": true,
|
|
11063
|
+
"requiresSfdxPlugins": [
|
|
11064
|
+
"shane-sfdx-plugins"
|
|
11065
|
+
],
|
|
11066
|
+
"isESM": true,
|
|
11067
|
+
"relativePath": [
|
|
11068
|
+
"lib",
|
|
11069
|
+
"commands",
|
|
11070
|
+
"hardis",
|
|
11071
|
+
"project",
|
|
11072
|
+
"convert",
|
|
11073
|
+
"profilestopermsets.js"
|
|
11074
|
+
],
|
|
11075
|
+
"aliasPermutations": [],
|
|
11076
|
+
"permutations": [
|
|
11077
|
+
"hardis:project:convert:profilestopermsets",
|
|
11078
|
+
"project:hardis:convert:profilestopermsets",
|
|
11079
|
+
"project:convert:hardis:profilestopermsets",
|
|
11080
|
+
"project:convert:profilestopermsets:hardis",
|
|
11081
|
+
"hardis:convert:project:profilestopermsets",
|
|
11082
|
+
"convert:hardis:project:profilestopermsets",
|
|
11083
|
+
"convert:project:hardis:profilestopermsets",
|
|
11084
|
+
"convert:project:profilestopermsets:hardis",
|
|
11085
|
+
"hardis:convert:profilestopermsets:project",
|
|
11086
|
+
"convert:hardis:profilestopermsets:project",
|
|
11087
|
+
"convert:profilestopermsets:hardis:project",
|
|
11088
|
+
"convert:profilestopermsets:project:hardis",
|
|
11089
|
+
"hardis:project:profilestopermsets:convert",
|
|
11090
|
+
"project:hardis:profilestopermsets:convert",
|
|
11091
|
+
"project:profilestopermsets:hardis:convert",
|
|
11092
|
+
"project:profilestopermsets:convert:hardis",
|
|
11093
|
+
"hardis:profilestopermsets:project:convert",
|
|
11094
|
+
"profilestopermsets:hardis:project:convert",
|
|
11095
|
+
"profilestopermsets:project:hardis:convert",
|
|
11096
|
+
"profilestopermsets:project:convert:hardis",
|
|
11097
|
+
"hardis:profilestopermsets:convert:project",
|
|
11098
|
+
"profilestopermsets:hardis:convert:project",
|
|
11099
|
+
"profilestopermsets:convert:hardis:project",
|
|
11100
|
+
"profilestopermsets:convert:project:hardis"
|
|
11101
|
+
]
|
|
11102
|
+
},
|
|
11000
11103
|
"hardis:project:configure:auth": {
|
|
11001
11104
|
"aliases": [],
|
|
11002
11105
|
"args": {},
|
|
@@ -11126,109 +11229,6 @@
|
|
|
11126
11229
|
"auth:configure:project:hardis"
|
|
11127
11230
|
]
|
|
11128
11231
|
},
|
|
11129
|
-
"hardis:project:convert:profilestopermsets": {
|
|
11130
|
-
"aliases": [],
|
|
11131
|
-
"args": {},
|
|
11132
|
-
"description": "\n## Command Behavior\n\n**Converts existing Salesforce Profiles into Permission Sets, facilitating a more granular and recommended security model.**\n\nThis command helps in migrating permissions from Profiles to Permission Sets, which is a best practice for managing user access in Salesforce. It creates a new Permission Set for each specified Profile, adopting a naming convention of `PS_PROFILENAME`.\n\nKey functionalities:\n\n- **Profile to Permission Set Conversion:** Automatically extracts permissions from a Profile and creates a corresponding Permission Set.\n- **Naming Convention:** New Permission Sets are named with a `PS_` prefix followed by the Profile name (e.g., `PS_Standard_User`).\n- **Exclusion Filter:** Allows you to exclude specific Profiles from the conversion process using the `--except` flag.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **External Plugin Integration:** It relies on the `shane-sfdx-plugins` (specifically the `sf shane:profile:convert` command) to perform the actual conversion.\n- **File System Scan:** It reads the contents of the `force-app/main/default/profiles` directory to identify all available Profile metadata files.\n- **Command Execution:** For each identified Profile (that is not excluded), it constructs and executes the `sf shane:profile:convert` command with the appropriate Profile name and desired Permission Set name.\n- **Error Handling:** Includes basic error handling for the external command execution.\n</details>\n",
|
|
11133
|
-
"examples": [
|
|
11134
|
-
"$ sf hardis:project:convert:profilestopermsets"
|
|
11135
|
-
],
|
|
11136
|
-
"flags": {
|
|
11137
|
-
"json": {
|
|
11138
|
-
"description": "Format output as json.",
|
|
11139
|
-
"helpGroup": "GLOBAL",
|
|
11140
|
-
"name": "json",
|
|
11141
|
-
"allowNo": false,
|
|
11142
|
-
"type": "boolean"
|
|
11143
|
-
},
|
|
11144
|
-
"flags-dir": {
|
|
11145
|
-
"helpGroup": "GLOBAL",
|
|
11146
|
-
"name": "flags-dir",
|
|
11147
|
-
"summary": "Import flag values from a directory.",
|
|
11148
|
-
"hasDynamicHelp": false,
|
|
11149
|
-
"multiple": false,
|
|
11150
|
-
"type": "option"
|
|
11151
|
-
},
|
|
11152
|
-
"except": {
|
|
11153
|
-
"char": "e",
|
|
11154
|
-
"description": "List of filters",
|
|
11155
|
-
"name": "except",
|
|
11156
|
-
"default": [],
|
|
11157
|
-
"hasDynamicHelp": false,
|
|
11158
|
-
"multiple": true,
|
|
11159
|
-
"type": "option"
|
|
11160
|
-
},
|
|
11161
|
-
"debug": {
|
|
11162
|
-
"char": "d",
|
|
11163
|
-
"description": "Activate debug mode (more logs)",
|
|
11164
|
-
"name": "debug",
|
|
11165
|
-
"allowNo": false,
|
|
11166
|
-
"type": "boolean"
|
|
11167
|
-
},
|
|
11168
|
-
"websocket": {
|
|
11169
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11170
|
-
"name": "websocket",
|
|
11171
|
-
"hasDynamicHelp": false,
|
|
11172
|
-
"multiple": false,
|
|
11173
|
-
"type": "option"
|
|
11174
|
-
},
|
|
11175
|
-
"skipauth": {
|
|
11176
|
-
"description": "Skip authentication check when a default username is required",
|
|
11177
|
-
"name": "skipauth",
|
|
11178
|
-
"allowNo": false,
|
|
11179
|
-
"type": "boolean"
|
|
11180
|
-
}
|
|
11181
|
-
},
|
|
11182
|
-
"hasDynamicHelp": false,
|
|
11183
|
-
"hiddenAliases": [],
|
|
11184
|
-
"id": "hardis:project:convert:profilestopermsets",
|
|
11185
|
-
"pluginAlias": "sfdx-hardis",
|
|
11186
|
-
"pluginName": "sfdx-hardis",
|
|
11187
|
-
"pluginType": "core",
|
|
11188
|
-
"strict": true,
|
|
11189
|
-
"enableJsonFlag": true,
|
|
11190
|
-
"title": "Convert Profiles into Permission Sets",
|
|
11191
|
-
"requiresProject": true,
|
|
11192
|
-
"requiresSfdxPlugins": [
|
|
11193
|
-
"shane-sfdx-plugins"
|
|
11194
|
-
],
|
|
11195
|
-
"isESM": true,
|
|
11196
|
-
"relativePath": [
|
|
11197
|
-
"lib",
|
|
11198
|
-
"commands",
|
|
11199
|
-
"hardis",
|
|
11200
|
-
"project",
|
|
11201
|
-
"convert",
|
|
11202
|
-
"profilestopermsets.js"
|
|
11203
|
-
],
|
|
11204
|
-
"aliasPermutations": [],
|
|
11205
|
-
"permutations": [
|
|
11206
|
-
"hardis:project:convert:profilestopermsets",
|
|
11207
|
-
"project:hardis:convert:profilestopermsets",
|
|
11208
|
-
"project:convert:hardis:profilestopermsets",
|
|
11209
|
-
"project:convert:profilestopermsets:hardis",
|
|
11210
|
-
"hardis:convert:project:profilestopermsets",
|
|
11211
|
-
"convert:hardis:project:profilestopermsets",
|
|
11212
|
-
"convert:project:hardis:profilestopermsets",
|
|
11213
|
-
"convert:project:profilestopermsets:hardis",
|
|
11214
|
-
"hardis:convert:profilestopermsets:project",
|
|
11215
|
-
"convert:hardis:profilestopermsets:project",
|
|
11216
|
-
"convert:profilestopermsets:hardis:project",
|
|
11217
|
-
"convert:profilestopermsets:project:hardis",
|
|
11218
|
-
"hardis:project:profilestopermsets:convert",
|
|
11219
|
-
"project:hardis:profilestopermsets:convert",
|
|
11220
|
-
"project:profilestopermsets:hardis:convert",
|
|
11221
|
-
"project:profilestopermsets:convert:hardis",
|
|
11222
|
-
"hardis:profilestopermsets:project:convert",
|
|
11223
|
-
"profilestopermsets:hardis:project:convert",
|
|
11224
|
-
"profilestopermsets:project:hardis:convert",
|
|
11225
|
-
"profilestopermsets:project:convert:hardis",
|
|
11226
|
-
"hardis:profilestopermsets:convert:project",
|
|
11227
|
-
"profilestopermsets:hardis:convert:project",
|
|
11228
|
-
"profilestopermsets:convert:hardis:project",
|
|
11229
|
-
"profilestopermsets:convert:project:hardis"
|
|
11230
|
-
]
|
|
11231
|
-
},
|
|
11232
11232
|
"hardis:project:deploy:notify": {
|
|
11233
11233
|
"aliases": [],
|
|
11234
11234
|
"args": {},
|
|
@@ -15101,5 +15101,5 @@
|
|
|
15101
15101
|
]
|
|
15102
15102
|
}
|
|
15103
15103
|
},
|
|
15104
|
-
"version": "6.1.
|
|
15104
|
+
"version": "6.1.4"
|
|
15105
15105
|
}
|