sfdx-hardis 6.7.0 → 6.7.1
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 +6 -0
- package/lib/commands/hardis/org/diagnose/releaseupdates.js +3 -2
- package/lib/commands/hardis/org/diagnose/releaseupdates.js.map +1 -1
- package/lib/commands/hardis/project/metadata/activate-decomposed.js +2 -0
- package/lib/commands/hardis/project/metadata/activate-decomposed.js.map +1 -1
- package/oclif.manifest.json +473 -473
- 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": {
|
|
@@ -9689,12 +9689,12 @@
|
|
|
9689
9689
|
"remotesites:audit:project:hardis"
|
|
9690
9690
|
]
|
|
9691
9691
|
},
|
|
9692
|
-
"hardis:project:
|
|
9692
|
+
"hardis:project:clean:emptyitems": {
|
|
9693
9693
|
"aliases": [],
|
|
9694
9694
|
"args": {},
|
|
9695
|
-
"description": "\n## Command Behavior\n\n**
|
|
9695
|
+
"description": "\n## Command Behavior\n\n**Removes empty or irrelevant metadata items from your Salesforce DX project sources.**\n\nThis command helps maintain a clean and efficient Salesforce codebase by deleting metadata files that are essentially empty or contain no meaningful configuration. These files can sometimes be generated during retrieval processes or remain after refactoring, contributing to unnecessary clutter in your project.\n\nKey functionalities:\n\n- **Targeted Cleaning:** Specifically targets and removes empty instances of:\n - Global Value Set Translations (`.globalValueSetTranslation-meta.xml`)\n - Standard Value Sets (`.standardValueSet-meta.xml`)\n - Sharing Rules (`.sharingRules-meta.xml`)\n- **Content-Based Deletion:** It checks the XML content of these files for the presence of specific tags (e.g., `valueTranslation` for Global Value Set Translations) to determine if they are truly empty or lack relevant data.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **File Discovery:** Uses `glob` to find files matching predefined patterns for Global Value Set Translations, Standard Value Sets, and Sharing Rules within the specified root folder (defaults to `force-app`).\n- **XML Parsing:** For each matching file, it reads and parses the XML content using `parseXmlFile`.\n- **Content Validation:** It then checks the parsed XML object for the existence of specific nested properties (e.g., `xmlContent.GlobalValueSetTranslation.valueTranslation`). If these properties are missing or empty, the file is considered empty.\n- **File Deletion:** If a file is determined to be empty, it is removed from the file system using `fs.remove`.\n- **Logging:** Provides clear messages about which files are being removed and a summary of the total number of items cleaned.\n</details>\n",
|
|
9696
9696
|
"examples": [
|
|
9697
|
-
"$ sf hardis:project:
|
|
9697
|
+
"$ sf hardis:project:clean:emptyitems"
|
|
9698
9698
|
],
|
|
9699
9699
|
"flags": {
|
|
9700
9700
|
"json": {
|
|
@@ -9712,12 +9712,14 @@
|
|
|
9712
9712
|
"multiple": false,
|
|
9713
9713
|
"type": "option"
|
|
9714
9714
|
},
|
|
9715
|
-
"
|
|
9716
|
-
"char": "
|
|
9717
|
-
"description": "
|
|
9718
|
-
"name": "
|
|
9719
|
-
"
|
|
9720
|
-
"
|
|
9715
|
+
"folder": {
|
|
9716
|
+
"char": "f",
|
|
9717
|
+
"description": "Root folder",
|
|
9718
|
+
"name": "folder",
|
|
9719
|
+
"default": "force-app",
|
|
9720
|
+
"hasDynamicHelp": false,
|
|
9721
|
+
"multiple": false,
|
|
9722
|
+
"type": "option"
|
|
9721
9723
|
},
|
|
9722
9724
|
"debug": {
|
|
9723
9725
|
"char": "d",
|
|
@@ -9738,157 +9740,26 @@
|
|
|
9738
9740
|
"name": "skipauth",
|
|
9739
9741
|
"allowNo": false,
|
|
9740
9742
|
"type": "boolean"
|
|
9741
|
-
},
|
|
9742
|
-
"target-org": {
|
|
9743
|
-
"aliases": [
|
|
9744
|
-
"targetusername",
|
|
9745
|
-
"u"
|
|
9746
|
-
],
|
|
9747
|
-
"char": "o",
|
|
9748
|
-
"deprecateAliases": true,
|
|
9749
|
-
"name": "target-org",
|
|
9750
|
-
"noCacheDefault": true,
|
|
9751
|
-
"summary": "Username or alias of the target org.",
|
|
9752
|
-
"hasDynamicHelp": true,
|
|
9753
|
-
"multiple": false,
|
|
9754
|
-
"type": "option"
|
|
9755
|
-
},
|
|
9756
|
-
"target-dev-hub": {
|
|
9757
|
-
"aliases": [
|
|
9758
|
-
"targetdevhubusername"
|
|
9759
|
-
],
|
|
9760
|
-
"char": "v",
|
|
9761
|
-
"deprecateAliases": true,
|
|
9762
|
-
"name": "target-dev-hub",
|
|
9763
|
-
"noCacheDefault": true,
|
|
9764
|
-
"required": false,
|
|
9765
|
-
"summary": "Username or alias of the Dev Hub org.",
|
|
9766
|
-
"hasDynamicHelp": true,
|
|
9767
|
-
"multiple": false,
|
|
9768
|
-
"type": "option"
|
|
9769
9743
|
}
|
|
9770
9744
|
},
|
|
9771
|
-
"hasDynamicHelp":
|
|
9745
|
+
"hasDynamicHelp": false,
|
|
9772
9746
|
"hiddenAliases": [],
|
|
9773
|
-
"id": "hardis:project:
|
|
9747
|
+
"id": "hardis:project:clean:emptyitems",
|
|
9774
9748
|
"pluginAlias": "sfdx-hardis",
|
|
9775
9749
|
"pluginName": "sfdx-hardis",
|
|
9776
9750
|
"pluginType": "core",
|
|
9777
9751
|
"strict": true,
|
|
9778
9752
|
"enableJsonFlag": true,
|
|
9779
|
-
"title": "
|
|
9780
|
-
"requiresProject":
|
|
9781
|
-
"requiresDependencies": [
|
|
9782
|
-
"openssl"
|
|
9783
|
-
],
|
|
9753
|
+
"title": "Clean retrieved empty items in dx sources",
|
|
9754
|
+
"requiresProject": true,
|
|
9784
9755
|
"isESM": true,
|
|
9785
9756
|
"relativePath": [
|
|
9786
9757
|
"lib",
|
|
9787
9758
|
"commands",
|
|
9788
9759
|
"hardis",
|
|
9789
9760
|
"project",
|
|
9790
|
-
"
|
|
9791
|
-
"
|
|
9792
|
-
],
|
|
9793
|
-
"aliasPermutations": [],
|
|
9794
|
-
"permutations": [
|
|
9795
|
-
"hardis:project:configure:auth",
|
|
9796
|
-
"project:hardis:configure:auth",
|
|
9797
|
-
"project:configure:hardis:auth",
|
|
9798
|
-
"project:configure:auth:hardis",
|
|
9799
|
-
"hardis:configure:project:auth",
|
|
9800
|
-
"configure:hardis:project:auth",
|
|
9801
|
-
"configure:project:hardis:auth",
|
|
9802
|
-
"configure:project:auth:hardis",
|
|
9803
|
-
"hardis:configure:auth:project",
|
|
9804
|
-
"configure:hardis:auth:project",
|
|
9805
|
-
"configure:auth:hardis:project",
|
|
9806
|
-
"configure:auth:project:hardis",
|
|
9807
|
-
"hardis:project:auth:configure",
|
|
9808
|
-
"project:hardis:auth:configure",
|
|
9809
|
-
"project:auth:hardis:configure",
|
|
9810
|
-
"project:auth:configure:hardis",
|
|
9811
|
-
"hardis:auth:project:configure",
|
|
9812
|
-
"auth:hardis:project:configure",
|
|
9813
|
-
"auth:project:hardis:configure",
|
|
9814
|
-
"auth:project:configure:hardis",
|
|
9815
|
-
"hardis:auth:configure:project",
|
|
9816
|
-
"auth:hardis:configure:project",
|
|
9817
|
-
"auth:configure:hardis:project",
|
|
9818
|
-
"auth:configure:project:hardis"
|
|
9819
|
-
]
|
|
9820
|
-
},
|
|
9821
|
-
"hardis:project:clean:emptyitems": {
|
|
9822
|
-
"aliases": [],
|
|
9823
|
-
"args": {},
|
|
9824
|
-
"description": "\n## Command Behavior\n\n**Removes empty or irrelevant metadata items from your Salesforce DX project sources.**\n\nThis command helps maintain a clean and efficient Salesforce codebase by deleting metadata files that are essentially empty or contain no meaningful configuration. These files can sometimes be generated during retrieval processes or remain after refactoring, contributing to unnecessary clutter in your project.\n\nKey functionalities:\n\n- **Targeted Cleaning:** Specifically targets and removes empty instances of:\n - Global Value Set Translations (`.globalValueSetTranslation-meta.xml`)\n - Standard Value Sets (`.standardValueSet-meta.xml`)\n - Sharing Rules (`.sharingRules-meta.xml`)\n- **Content-Based Deletion:** It checks the XML content of these files for the presence of specific tags (e.g., `valueTranslation` for Global Value Set Translations) to determine if they are truly empty or lack relevant data.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **File Discovery:** Uses `glob` to find files matching predefined patterns for Global Value Set Translations, Standard Value Sets, and Sharing Rules within the specified root folder (defaults to `force-app`).\n- **XML Parsing:** For each matching file, it reads and parses the XML content using `parseXmlFile`.\n- **Content Validation:** It then checks the parsed XML object for the existence of specific nested properties (e.g., `xmlContent.GlobalValueSetTranslation.valueTranslation`). If these properties are missing or empty, the file is considered empty.\n- **File Deletion:** If a file is determined to be empty, it is removed from the file system using `fs.remove`.\n- **Logging:** Provides clear messages about which files are being removed and a summary of the total number of items cleaned.\n</details>\n",
|
|
9825
|
-
"examples": [
|
|
9826
|
-
"$ sf hardis:project:clean:emptyitems"
|
|
9827
|
-
],
|
|
9828
|
-
"flags": {
|
|
9829
|
-
"json": {
|
|
9830
|
-
"description": "Format output as json.",
|
|
9831
|
-
"helpGroup": "GLOBAL",
|
|
9832
|
-
"name": "json",
|
|
9833
|
-
"allowNo": false,
|
|
9834
|
-
"type": "boolean"
|
|
9835
|
-
},
|
|
9836
|
-
"flags-dir": {
|
|
9837
|
-
"helpGroup": "GLOBAL",
|
|
9838
|
-
"name": "flags-dir",
|
|
9839
|
-
"summary": "Import flag values from a directory.",
|
|
9840
|
-
"hasDynamicHelp": false,
|
|
9841
|
-
"multiple": false,
|
|
9842
|
-
"type": "option"
|
|
9843
|
-
},
|
|
9844
|
-
"folder": {
|
|
9845
|
-
"char": "f",
|
|
9846
|
-
"description": "Root folder",
|
|
9847
|
-
"name": "folder",
|
|
9848
|
-
"default": "force-app",
|
|
9849
|
-
"hasDynamicHelp": false,
|
|
9850
|
-
"multiple": false,
|
|
9851
|
-
"type": "option"
|
|
9852
|
-
},
|
|
9853
|
-
"debug": {
|
|
9854
|
-
"char": "d",
|
|
9855
|
-
"description": "Activate debug mode (more logs)",
|
|
9856
|
-
"name": "debug",
|
|
9857
|
-
"allowNo": false,
|
|
9858
|
-
"type": "boolean"
|
|
9859
|
-
},
|
|
9860
|
-
"websocket": {
|
|
9861
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
9862
|
-
"name": "websocket",
|
|
9863
|
-
"hasDynamicHelp": false,
|
|
9864
|
-
"multiple": false,
|
|
9865
|
-
"type": "option"
|
|
9866
|
-
},
|
|
9867
|
-
"skipauth": {
|
|
9868
|
-
"description": "Skip authentication check when a default username is required",
|
|
9869
|
-
"name": "skipauth",
|
|
9870
|
-
"allowNo": false,
|
|
9871
|
-
"type": "boolean"
|
|
9872
|
-
}
|
|
9873
|
-
},
|
|
9874
|
-
"hasDynamicHelp": false,
|
|
9875
|
-
"hiddenAliases": [],
|
|
9876
|
-
"id": "hardis:project:clean:emptyitems",
|
|
9877
|
-
"pluginAlias": "sfdx-hardis",
|
|
9878
|
-
"pluginName": "sfdx-hardis",
|
|
9879
|
-
"pluginType": "core",
|
|
9880
|
-
"strict": true,
|
|
9881
|
-
"enableJsonFlag": true,
|
|
9882
|
-
"title": "Clean retrieved empty items in dx sources",
|
|
9883
|
-
"requiresProject": true,
|
|
9884
|
-
"isESM": true,
|
|
9885
|
-
"relativePath": [
|
|
9886
|
-
"lib",
|
|
9887
|
-
"commands",
|
|
9888
|
-
"hardis",
|
|
9889
|
-
"project",
|
|
9890
|
-
"clean",
|
|
9891
|
-
"emptyitems.js"
|
|
9761
|
+
"clean",
|
|
9762
|
+
"emptyitems.js"
|
|
9892
9763
|
],
|
|
9893
9764
|
"aliasPermutations": [],
|
|
9894
9765
|
"permutations": [
|
|
@@ -11303,6 +11174,135 @@
|
|
|
11303
11174
|
"xml:clean:project:hardis"
|
|
11304
11175
|
]
|
|
11305
11176
|
},
|
|
11177
|
+
"hardis:project:configure:auth": {
|
|
11178
|
+
"aliases": [],
|
|
11179
|
+
"args": {},
|
|
11180
|
+
"description": "\n## Command Behavior\n\n**Configures authentication between a Git branch and a target Salesforce org for CI/CD deployments.**\n\nThis command facilitates the setup of automated CI/CD pipelines, enabling seamless deployments from specific Git branches to designated Salesforce orgs. It supports both standard Salesforce orgs and Dev Hub configurations, catering to various enterprise deployment workflows.\n\nKey functionalities include:\n\n- **Org Selection/Login:** Guides the user to select an existing Salesforce org or log in to a new one.\n- **Git Branch Association:** Allows associating a specific Git branch with the chosen Salesforce org.\n- **Merge Target Definition:** Enables defining target Git branches into which the configured branch can merge, ensuring controlled deployment flows.\n- **Salesforce Username Configuration:** Prompts for the Salesforce username to be used by the CI server for deployments.\n- **SSL Certificate Generation:** Automatically generates an SSL certificate for secure authentication.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's implementation involves several key technical aspects:\n\n- **SF CLI Integration:** Utilizes \n@salesforce/sf-plugins-core\n for command structure and flag parsing.\n- **Interactive Prompts:** Employs the \nprompts\n library for interactive user input, guiding the configuration process.\n- **Git Integration:** Interacts with Git to retrieve branch information using \n`git().branch([\"--list\", \"-r\"])`\n.\n- **Configuration Management:** Leverages internal utilities (`checkConfig`, `getConfig`, `setConfig`, `setInConfigFile`) to read from and write to project-specific configuration files (e.g., `.sfdx-hardis.<branchName>.yml`).\n- **Salesforce CLI Execution:** Executes Salesforce CLI commands programmatically via `execSfdxJson` for org interactions.\n- **SSL Certificate Generation:** Calls `generateSSLCertificate` to create necessary SSL certificates for JWT-based authentication.\n- **WebSocket Communication:** Uses `WebSocketClient` for potential communication with external tools or processes, such as restarting the command in VS Code.\n- **Dependency Check:** Ensures the presence of `openssl` on the system, which is required for SSL certificate generation.\n",
|
|
11181
|
+
"examples": [
|
|
11182
|
+
"$ sf hardis:project:configure:auth"
|
|
11183
|
+
],
|
|
11184
|
+
"flags": {
|
|
11185
|
+
"json": {
|
|
11186
|
+
"description": "Format output as json.",
|
|
11187
|
+
"helpGroup": "GLOBAL",
|
|
11188
|
+
"name": "json",
|
|
11189
|
+
"allowNo": false,
|
|
11190
|
+
"type": "boolean"
|
|
11191
|
+
},
|
|
11192
|
+
"flags-dir": {
|
|
11193
|
+
"helpGroup": "GLOBAL",
|
|
11194
|
+
"name": "flags-dir",
|
|
11195
|
+
"summary": "Import flag values from a directory.",
|
|
11196
|
+
"hasDynamicHelp": false,
|
|
11197
|
+
"multiple": false,
|
|
11198
|
+
"type": "option"
|
|
11199
|
+
},
|
|
11200
|
+
"devhub": {
|
|
11201
|
+
"char": "b",
|
|
11202
|
+
"description": "Configure project DevHub",
|
|
11203
|
+
"name": "devhub",
|
|
11204
|
+
"allowNo": false,
|
|
11205
|
+
"type": "boolean"
|
|
11206
|
+
},
|
|
11207
|
+
"debug": {
|
|
11208
|
+
"char": "d",
|
|
11209
|
+
"description": "Activate debug mode (more logs)",
|
|
11210
|
+
"name": "debug",
|
|
11211
|
+
"allowNo": false,
|
|
11212
|
+
"type": "boolean"
|
|
11213
|
+
},
|
|
11214
|
+
"websocket": {
|
|
11215
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11216
|
+
"name": "websocket",
|
|
11217
|
+
"hasDynamicHelp": false,
|
|
11218
|
+
"multiple": false,
|
|
11219
|
+
"type": "option"
|
|
11220
|
+
},
|
|
11221
|
+
"skipauth": {
|
|
11222
|
+
"description": "Skip authentication check when a default username is required",
|
|
11223
|
+
"name": "skipauth",
|
|
11224
|
+
"allowNo": false,
|
|
11225
|
+
"type": "boolean"
|
|
11226
|
+
},
|
|
11227
|
+
"target-org": {
|
|
11228
|
+
"aliases": [
|
|
11229
|
+
"targetusername",
|
|
11230
|
+
"u"
|
|
11231
|
+
],
|
|
11232
|
+
"char": "o",
|
|
11233
|
+
"deprecateAliases": true,
|
|
11234
|
+
"name": "target-org",
|
|
11235
|
+
"noCacheDefault": true,
|
|
11236
|
+
"summary": "Username or alias of the target org.",
|
|
11237
|
+
"hasDynamicHelp": true,
|
|
11238
|
+
"multiple": false,
|
|
11239
|
+
"type": "option"
|
|
11240
|
+
},
|
|
11241
|
+
"target-dev-hub": {
|
|
11242
|
+
"aliases": [
|
|
11243
|
+
"targetdevhubusername"
|
|
11244
|
+
],
|
|
11245
|
+
"char": "v",
|
|
11246
|
+
"deprecateAliases": true,
|
|
11247
|
+
"name": "target-dev-hub",
|
|
11248
|
+
"noCacheDefault": true,
|
|
11249
|
+
"required": false,
|
|
11250
|
+
"summary": "Username or alias of the Dev Hub org.",
|
|
11251
|
+
"hasDynamicHelp": true,
|
|
11252
|
+
"multiple": false,
|
|
11253
|
+
"type": "option"
|
|
11254
|
+
}
|
|
11255
|
+
},
|
|
11256
|
+
"hasDynamicHelp": true,
|
|
11257
|
+
"hiddenAliases": [],
|
|
11258
|
+
"id": "hardis:project:configure:auth",
|
|
11259
|
+
"pluginAlias": "sfdx-hardis",
|
|
11260
|
+
"pluginName": "sfdx-hardis",
|
|
11261
|
+
"pluginType": "core",
|
|
11262
|
+
"strict": true,
|
|
11263
|
+
"enableJsonFlag": true,
|
|
11264
|
+
"title": "Configure authentication",
|
|
11265
|
+
"requiresProject": false,
|
|
11266
|
+
"requiresDependencies": [
|
|
11267
|
+
"openssl"
|
|
11268
|
+
],
|
|
11269
|
+
"isESM": true,
|
|
11270
|
+
"relativePath": [
|
|
11271
|
+
"lib",
|
|
11272
|
+
"commands",
|
|
11273
|
+
"hardis",
|
|
11274
|
+
"project",
|
|
11275
|
+
"configure",
|
|
11276
|
+
"auth.js"
|
|
11277
|
+
],
|
|
11278
|
+
"aliasPermutations": [],
|
|
11279
|
+
"permutations": [
|
|
11280
|
+
"hardis:project:configure:auth",
|
|
11281
|
+
"project:hardis:configure:auth",
|
|
11282
|
+
"project:configure:hardis:auth",
|
|
11283
|
+
"project:configure:auth:hardis",
|
|
11284
|
+
"hardis:configure:project:auth",
|
|
11285
|
+
"configure:hardis:project:auth",
|
|
11286
|
+
"configure:project:hardis:auth",
|
|
11287
|
+
"configure:project:auth:hardis",
|
|
11288
|
+
"hardis:configure:auth:project",
|
|
11289
|
+
"configure:hardis:auth:project",
|
|
11290
|
+
"configure:auth:hardis:project",
|
|
11291
|
+
"configure:auth:project:hardis",
|
|
11292
|
+
"hardis:project:auth:configure",
|
|
11293
|
+
"project:hardis:auth:configure",
|
|
11294
|
+
"project:auth:hardis:configure",
|
|
11295
|
+
"project:auth:configure:hardis",
|
|
11296
|
+
"hardis:auth:project:configure",
|
|
11297
|
+
"auth:hardis:project:configure",
|
|
11298
|
+
"auth:project:hardis:configure",
|
|
11299
|
+
"auth:project:configure:hardis",
|
|
11300
|
+
"hardis:auth:configure:project",
|
|
11301
|
+
"auth:hardis:configure:project",
|
|
11302
|
+
"auth:configure:hardis:project",
|
|
11303
|
+
"auth:configure:project:hardis"
|
|
11304
|
+
]
|
|
11305
|
+
},
|
|
11306
11306
|
"hardis:project:convert:profilestopermsets": {
|
|
11307
11307
|
"aliases": [],
|
|
11308
11308
|
"args": {},
|
|
@@ -11406,12 +11406,14 @@
|
|
|
11406
11406
|
"profilestopermsets:convert:project:hardis"
|
|
11407
11407
|
]
|
|
11408
11408
|
},
|
|
11409
|
-
"hardis:project:
|
|
11409
|
+
"hardis:project:deploy:notify": {
|
|
11410
11410
|
"aliases": [],
|
|
11411
11411
|
"args": {},
|
|
11412
|
-
"description": "
|
|
11412
|
+
"description": "Post notifications related to:\n\n- **Deployment simulation** _(use with --check-only)_\n\n- **Deployment process** _(to call only if your deployment is successful)_\n\n### Integrations\n\nAccording to the [integrations you configured](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-setup-integrations-home/), notifications can contain deployment information and [Flow Visual Git Diff](https://sfdx-hardis.cloudity.com/salesforce-deployment-assistant-home/#flow-visual-git-diff)\n\n - GitHub, Gitlab, Azure DevOps, Bitbucket comments on Pull Requests (including Flows Visual Git Diff)\n\n - Slack, Microsoft Teams, Email deployment summary after a successful deployment\n\n - JIRA tags and comments on tickets that just has been deployed\n\n\n\n\n\n### Flows Visual Git Diff\n\n- Visually show you the differences on a diagram\n\n- Display the update details without having to open any XML !\n\n🟩 = added\n\n🟥 = removed\n\n🟧 = updated\n\n\n\n\n\n### In custom CI/CD workflow\n\nExample of usage in a custom CI/CD pipeline:\n\n```bash\n# Disable exit-on-error temporarily\nset +e\n\n# Run the deploy command\nsf project deploy start [....]\nRET_CODE=$?\n\n# Re-enable exit-on-error\nset -e\n\n# Determine MYSTATUS based on return code\nif [ $RET_CODE -eq 0 ]; then\n MYSTATUS=\"valid\"\nelse\n MYSTATUS=\"invalid\"\nfi\n\n# Run the notify command with MYSTATUS\nsf hardis:project:deploy:notify --check-only --deploy-status \"$MYSTATUS\"\n```\n\n### Other usages\n\nThis command is for custom SF Cli pipelines, if you are a sfdx-hardis user, it is already embedded in sf hardis:deploy:smart.\n\nYou can also use [sfdx-hardis wrapper commands of SF deployment commands](https://sfdx-hardis.cloudity.com/salesforce-deployment-assistant-setup/#using-custom-cicd-pipeline)\n",
|
|
11413
11413
|
"examples": [
|
|
11414
|
-
"$ sf hardis:project:
|
|
11414
|
+
"$ sf hardis:project:deploy:notify --check-only --deploy-status valid --message \"This deployment check is valid\\n\\nYahooo !!\"",
|
|
11415
|
+
"$ sf hardis:project:deploy:notify --check-only --deploy-status invalid --message \"This deployment check has failed !\\n\\Oh no !!\"",
|
|
11416
|
+
"$ sf hardis:project:deploy:notify --deploy-status valid --message \"This deployment has been processed !\\n\\nYahooo !!\""
|
|
11415
11417
|
],
|
|
11416
11418
|
"flags": {
|
|
11417
11419
|
"json": {
|
|
@@ -11429,11 +11431,32 @@
|
|
|
11429
11431
|
"multiple": false,
|
|
11430
11432
|
"type": "option"
|
|
11431
11433
|
},
|
|
11432
|
-
"
|
|
11433
|
-
"char": "
|
|
11434
|
-
"description": "
|
|
11435
|
-
"name": "
|
|
11436
|
-
"
|
|
11434
|
+
"check-only": {
|
|
11435
|
+
"char": "c",
|
|
11436
|
+
"description": "Use this option to send notifications from a Deployment simulation job",
|
|
11437
|
+
"name": "check-only",
|
|
11438
|
+
"allowNo": false,
|
|
11439
|
+
"type": "boolean"
|
|
11440
|
+
},
|
|
11441
|
+
"deploy-status": {
|
|
11442
|
+
"char": "s",
|
|
11443
|
+
"description": "Send success, failure or unknown (default) to indicate if the deployment or deployment simulation is in success or not",
|
|
11444
|
+
"name": "deploy-status",
|
|
11445
|
+
"default": "unknown",
|
|
11446
|
+
"hasDynamicHelp": false,
|
|
11447
|
+
"multiple": false,
|
|
11448
|
+
"options": [
|
|
11449
|
+
"valid",
|
|
11450
|
+
"invalid",
|
|
11451
|
+
"unknown"
|
|
11452
|
+
],
|
|
11453
|
+
"type": "option"
|
|
11454
|
+
},
|
|
11455
|
+
"message": {
|
|
11456
|
+
"char": "m",
|
|
11457
|
+
"description": "Custom message that you want to be added in notifications (string or markdown format)",
|
|
11458
|
+
"name": "message",
|
|
11459
|
+
"default": "",
|
|
11437
11460
|
"hasDynamicHelp": false,
|
|
11438
11461
|
"multiple": false,
|
|
11439
11462
|
"type": "option"
|
|
@@ -11476,13 +11499,13 @@
|
|
|
11476
11499
|
},
|
|
11477
11500
|
"hasDynamicHelp": true,
|
|
11478
11501
|
"hiddenAliases": [],
|
|
11479
|
-
"id": "hardis:project:
|
|
11502
|
+
"id": "hardis:project:deploy:notify",
|
|
11480
11503
|
"pluginAlias": "sfdx-hardis",
|
|
11481
11504
|
"pluginName": "sfdx-hardis",
|
|
11482
11505
|
"pluginType": "core",
|
|
11483
11506
|
"strict": true,
|
|
11484
11507
|
"enableJsonFlag": true,
|
|
11485
|
-
"title": "
|
|
11508
|
+
"title": "Deployment Notifications",
|
|
11486
11509
|
"requiresProject": true,
|
|
11487
11510
|
"isESM": true,
|
|
11488
11511
|
"relativePath": [
|
|
@@ -11490,246 +11513,8 @@
|
|
|
11490
11513
|
"commands",
|
|
11491
11514
|
"hardis",
|
|
11492
11515
|
"project",
|
|
11493
|
-
"
|
|
11494
|
-
"
|
|
11495
|
-
],
|
|
11496
|
-
"aliasPermutations": [],
|
|
11497
|
-
"permutations": [
|
|
11498
|
-
"hardis:project:fix:profiletabs",
|
|
11499
|
-
"project:hardis:fix:profiletabs",
|
|
11500
|
-
"project:fix:hardis:profiletabs",
|
|
11501
|
-
"project:fix:profiletabs:hardis",
|
|
11502
|
-
"hardis:fix:project:profiletabs",
|
|
11503
|
-
"fix:hardis:project:profiletabs",
|
|
11504
|
-
"fix:project:hardis:profiletabs",
|
|
11505
|
-
"fix:project:profiletabs:hardis",
|
|
11506
|
-
"hardis:fix:profiletabs:project",
|
|
11507
|
-
"fix:hardis:profiletabs:project",
|
|
11508
|
-
"fix:profiletabs:hardis:project",
|
|
11509
|
-
"fix:profiletabs:project:hardis",
|
|
11510
|
-
"hardis:project:profiletabs:fix",
|
|
11511
|
-
"project:hardis:profiletabs:fix",
|
|
11512
|
-
"project:profiletabs:hardis:fix",
|
|
11513
|
-
"project:profiletabs:fix:hardis",
|
|
11514
|
-
"hardis:profiletabs:project:fix",
|
|
11515
|
-
"profiletabs:hardis:project:fix",
|
|
11516
|
-
"profiletabs:project:hardis:fix",
|
|
11517
|
-
"profiletabs:project:fix:hardis",
|
|
11518
|
-
"hardis:profiletabs:fix:project",
|
|
11519
|
-
"profiletabs:hardis:fix:project",
|
|
11520
|
-
"profiletabs:fix:hardis:project",
|
|
11521
|
-
"profiletabs:fix:project:hardis"
|
|
11522
|
-
]
|
|
11523
|
-
},
|
|
11524
|
-
"hardis:project:fix:v53flexipages": {
|
|
11525
|
-
"aliases": [],
|
|
11526
|
-
"args": {},
|
|
11527
|
-
"description": "\n## Command Behavior\n\n**Fixes Salesforce FlexiPages for compatibility with API Version 53.0 (Winter '22 release) by adding missing identifiers to component instances.**\n\nSalesforce introduced a change in API Version 53.0 that requires `identifier` tags within `componentInstance` and `fieldInstance` elements in FlexiPage metadata. If these identifiers are missing, deployments to orgs with API version 53.0 or higher will fail. This command automates the process of adding these missing identifiers, ensuring your FlexiPages remain deployable.\n\nKey functionalities:\n\n- **Targeted FlexiPage Processing:** Scans all .flexipage-meta.xml files within the specified root folder (defaults to current working directory).\n- **Identifier Injection:** Inserts a unique `identifier` tag (e.g., `SFDX_HARDIS_REPLACEMENT_ID`) into `componentInstance` and `fieldInstance` elements that lack one.\n\n**Important Note:** After running this command, ensure you update your `apiVersion` to `53.0` (or higher) in your `package.xml` and `sfdx-project.json` files.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **File Discovery:** Uses `glob` to find all .flexipage-meta.xml files.\n- **Content Reading:** Reads the XML content of each FlexiPage file.\n- **Regular Expression Replacement:** Employs a set of regular expressions to identify specific XML patterns (componentName.../componentName.../componentInstance, componentName.../componentName.../visibilityRule, fieldItem.../fieldItem.../fieldInstance) that are missing the `identifier` tag.\n- **Dynamic ID Generation:** For each match, it generates a unique identifier (e.g., `sfdxHardisIdX`) and injects it into the XML structure.\n- **File Writing:** If changes are made, the modified XML content is written back to the FlexiPage file using `fs.writeFile`.\n- **Logging:** Provides messages about which FlexiPages are being processed and a summary of the total number of identifiers added.\n</details>\n",
|
|
11528
|
-
"examples": [
|
|
11529
|
-
"$ sf hardis:project:fix:v53flexipages"
|
|
11530
|
-
],
|
|
11531
|
-
"flags": {
|
|
11532
|
-
"json": {
|
|
11533
|
-
"description": "Format output as json.",
|
|
11534
|
-
"helpGroup": "GLOBAL",
|
|
11535
|
-
"name": "json",
|
|
11536
|
-
"allowNo": false,
|
|
11537
|
-
"type": "boolean"
|
|
11538
|
-
},
|
|
11539
|
-
"flags-dir": {
|
|
11540
|
-
"helpGroup": "GLOBAL",
|
|
11541
|
-
"name": "flags-dir",
|
|
11542
|
-
"summary": "Import flag values from a directory.",
|
|
11543
|
-
"hasDynamicHelp": false,
|
|
11544
|
-
"multiple": false,
|
|
11545
|
-
"type": "option"
|
|
11546
|
-
},
|
|
11547
|
-
"path": {
|
|
11548
|
-
"char": "p",
|
|
11549
|
-
"description": "Root folder",
|
|
11550
|
-
"name": "path",
|
|
11551
|
-
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
11552
|
-
"hasDynamicHelp": false,
|
|
11553
|
-
"multiple": false,
|
|
11554
|
-
"type": "option"
|
|
11555
|
-
},
|
|
11556
|
-
"debug": {
|
|
11557
|
-
"char": "d",
|
|
11558
|
-
"description": "Activate debug mode (more logs)",
|
|
11559
|
-
"name": "debug",
|
|
11560
|
-
"allowNo": false,
|
|
11561
|
-
"type": "boolean"
|
|
11562
|
-
},
|
|
11563
|
-
"websocket": {
|
|
11564
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11565
|
-
"name": "websocket",
|
|
11566
|
-
"hasDynamicHelp": false,
|
|
11567
|
-
"multiple": false,
|
|
11568
|
-
"type": "option"
|
|
11569
|
-
},
|
|
11570
|
-
"skipauth": {
|
|
11571
|
-
"description": "Skip authentication check when a default username is required",
|
|
11572
|
-
"name": "skipauth",
|
|
11573
|
-
"allowNo": false,
|
|
11574
|
-
"type": "boolean"
|
|
11575
|
-
}
|
|
11576
|
-
},
|
|
11577
|
-
"hasDynamicHelp": false,
|
|
11578
|
-
"hiddenAliases": [],
|
|
11579
|
-
"id": "hardis:project:fix:v53flexipages",
|
|
11580
|
-
"pluginAlias": "sfdx-hardis",
|
|
11581
|
-
"pluginName": "sfdx-hardis",
|
|
11582
|
-
"pluginType": "core",
|
|
11583
|
-
"strict": true,
|
|
11584
|
-
"enableJsonFlag": true,
|
|
11585
|
-
"title": "Fix flexipages for v53",
|
|
11586
|
-
"requiresProject": true,
|
|
11587
|
-
"isESM": true,
|
|
11588
|
-
"relativePath": [
|
|
11589
|
-
"lib",
|
|
11590
|
-
"commands",
|
|
11591
|
-
"hardis",
|
|
11592
|
-
"project",
|
|
11593
|
-
"fix",
|
|
11594
|
-
"v53flexipages.js"
|
|
11595
|
-
],
|
|
11596
|
-
"aliasPermutations": [],
|
|
11597
|
-
"permutations": [
|
|
11598
|
-
"hardis:project:fix:v53flexipages",
|
|
11599
|
-
"project:hardis:fix:v53flexipages",
|
|
11600
|
-
"project:fix:hardis:v53flexipages",
|
|
11601
|
-
"project:fix:v53flexipages:hardis",
|
|
11602
|
-
"hardis:fix:project:v53flexipages",
|
|
11603
|
-
"fix:hardis:project:v53flexipages",
|
|
11604
|
-
"fix:project:hardis:v53flexipages",
|
|
11605
|
-
"fix:project:v53flexipages:hardis",
|
|
11606
|
-
"hardis:fix:v53flexipages:project",
|
|
11607
|
-
"fix:hardis:v53flexipages:project",
|
|
11608
|
-
"fix:v53flexipages:hardis:project",
|
|
11609
|
-
"fix:v53flexipages:project:hardis",
|
|
11610
|
-
"hardis:project:v53flexipages:fix",
|
|
11611
|
-
"project:hardis:v53flexipages:fix",
|
|
11612
|
-
"project:v53flexipages:hardis:fix",
|
|
11613
|
-
"project:v53flexipages:fix:hardis",
|
|
11614
|
-
"hardis:v53flexipages:project:fix",
|
|
11615
|
-
"v53flexipages:hardis:project:fix",
|
|
11616
|
-
"v53flexipages:project:hardis:fix",
|
|
11617
|
-
"v53flexipages:project:fix:hardis",
|
|
11618
|
-
"hardis:v53flexipages:fix:project",
|
|
11619
|
-
"v53flexipages:hardis:fix:project",
|
|
11620
|
-
"v53flexipages:fix:hardis:project",
|
|
11621
|
-
"v53flexipages:fix:project:hardis"
|
|
11622
|
-
]
|
|
11623
|
-
},
|
|
11624
|
-
"hardis:project:deploy:notify": {
|
|
11625
|
-
"aliases": [],
|
|
11626
|
-
"args": {},
|
|
11627
|
-
"description": "Post notifications related to:\n\n- **Deployment simulation** _(use with --check-only)_\n\n- **Deployment process** _(to call only if your deployment is successful)_\n\n### Integrations\n\nAccording to the [integrations you configured](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-setup-integrations-home/), notifications can contain deployment information and [Flow Visual Git Diff](https://sfdx-hardis.cloudity.com/salesforce-deployment-assistant-home/#flow-visual-git-diff)\n\n - GitHub, Gitlab, Azure DevOps, Bitbucket comments on Pull Requests (including Flows Visual Git Diff)\n\n - Slack, Microsoft Teams, Email deployment summary after a successful deployment\n\n - JIRA tags and comments on tickets that just has been deployed\n\n\n\n\n\n### Flows Visual Git Diff\n\n- Visually show you the differences on a diagram\n\n- Display the update details without having to open any XML !\n\n🟩 = added\n\n🟥 = removed\n\n🟧 = updated\n\n\n\n\n\n### In custom CI/CD workflow\n\nExample of usage in a custom CI/CD pipeline:\n\n```bash\n# Disable exit-on-error temporarily\nset +e\n\n# Run the deploy command\nsf project deploy start [....]\nRET_CODE=$?\n\n# Re-enable exit-on-error\nset -e\n\n# Determine MYSTATUS based on return code\nif [ $RET_CODE -eq 0 ]; then\n MYSTATUS=\"valid\"\nelse\n MYSTATUS=\"invalid\"\nfi\n\n# Run the notify command with MYSTATUS\nsf hardis:project:deploy:notify --check-only --deploy-status \"$MYSTATUS\"\n```\n\n### Other usages\n\nThis command is for custom SF Cli pipelines, if you are a sfdx-hardis user, it is already embedded in sf hardis:deploy:smart.\n\nYou can also use [sfdx-hardis wrapper commands of SF deployment commands](https://sfdx-hardis.cloudity.com/salesforce-deployment-assistant-setup/#using-custom-cicd-pipeline)\n",
|
|
11628
|
-
"examples": [
|
|
11629
|
-
"$ sf hardis:project:deploy:notify --check-only --deploy-status valid --message \"This deployment check is valid\\n\\nYahooo !!\"",
|
|
11630
|
-
"$ sf hardis:project:deploy:notify --check-only --deploy-status invalid --message \"This deployment check has failed !\\n\\Oh no !!\"",
|
|
11631
|
-
"$ sf hardis:project:deploy:notify --deploy-status valid --message \"This deployment has been processed !\\n\\nYahooo !!\""
|
|
11632
|
-
],
|
|
11633
|
-
"flags": {
|
|
11634
|
-
"json": {
|
|
11635
|
-
"description": "Format output as json.",
|
|
11636
|
-
"helpGroup": "GLOBAL",
|
|
11637
|
-
"name": "json",
|
|
11638
|
-
"allowNo": false,
|
|
11639
|
-
"type": "boolean"
|
|
11640
|
-
},
|
|
11641
|
-
"flags-dir": {
|
|
11642
|
-
"helpGroup": "GLOBAL",
|
|
11643
|
-
"name": "flags-dir",
|
|
11644
|
-
"summary": "Import flag values from a directory.",
|
|
11645
|
-
"hasDynamicHelp": false,
|
|
11646
|
-
"multiple": false,
|
|
11647
|
-
"type": "option"
|
|
11648
|
-
},
|
|
11649
|
-
"check-only": {
|
|
11650
|
-
"char": "c",
|
|
11651
|
-
"description": "Use this option to send notifications from a Deployment simulation job",
|
|
11652
|
-
"name": "check-only",
|
|
11653
|
-
"allowNo": false,
|
|
11654
|
-
"type": "boolean"
|
|
11655
|
-
},
|
|
11656
|
-
"deploy-status": {
|
|
11657
|
-
"char": "s",
|
|
11658
|
-
"description": "Send success, failure or unknown (default) to indicate if the deployment or deployment simulation is in success or not",
|
|
11659
|
-
"name": "deploy-status",
|
|
11660
|
-
"default": "unknown",
|
|
11661
|
-
"hasDynamicHelp": false,
|
|
11662
|
-
"multiple": false,
|
|
11663
|
-
"options": [
|
|
11664
|
-
"valid",
|
|
11665
|
-
"invalid",
|
|
11666
|
-
"unknown"
|
|
11667
|
-
],
|
|
11668
|
-
"type": "option"
|
|
11669
|
-
},
|
|
11670
|
-
"message": {
|
|
11671
|
-
"char": "m",
|
|
11672
|
-
"description": "Custom message that you want to be added in notifications (string or markdown format)",
|
|
11673
|
-
"name": "message",
|
|
11674
|
-
"default": "",
|
|
11675
|
-
"hasDynamicHelp": false,
|
|
11676
|
-
"multiple": false,
|
|
11677
|
-
"type": "option"
|
|
11678
|
-
},
|
|
11679
|
-
"debug": {
|
|
11680
|
-
"char": "d",
|
|
11681
|
-
"description": "Activate debug mode (more logs)",
|
|
11682
|
-
"name": "debug",
|
|
11683
|
-
"allowNo": false,
|
|
11684
|
-
"type": "boolean"
|
|
11685
|
-
},
|
|
11686
|
-
"websocket": {
|
|
11687
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11688
|
-
"name": "websocket",
|
|
11689
|
-
"hasDynamicHelp": false,
|
|
11690
|
-
"multiple": false,
|
|
11691
|
-
"type": "option"
|
|
11692
|
-
},
|
|
11693
|
-
"skipauth": {
|
|
11694
|
-
"description": "Skip authentication check when a default username is required",
|
|
11695
|
-
"name": "skipauth",
|
|
11696
|
-
"allowNo": false,
|
|
11697
|
-
"type": "boolean"
|
|
11698
|
-
},
|
|
11699
|
-
"target-org": {
|
|
11700
|
-
"aliases": [
|
|
11701
|
-
"targetusername",
|
|
11702
|
-
"u"
|
|
11703
|
-
],
|
|
11704
|
-
"char": "o",
|
|
11705
|
-
"deprecateAliases": true,
|
|
11706
|
-
"name": "target-org",
|
|
11707
|
-
"noCacheDefault": true,
|
|
11708
|
-
"required": true,
|
|
11709
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
11710
|
-
"hasDynamicHelp": true,
|
|
11711
|
-
"multiple": false,
|
|
11712
|
-
"type": "option"
|
|
11713
|
-
}
|
|
11714
|
-
},
|
|
11715
|
-
"hasDynamicHelp": true,
|
|
11716
|
-
"hiddenAliases": [],
|
|
11717
|
-
"id": "hardis:project:deploy:notify",
|
|
11718
|
-
"pluginAlias": "sfdx-hardis",
|
|
11719
|
-
"pluginName": "sfdx-hardis",
|
|
11720
|
-
"pluginType": "core",
|
|
11721
|
-
"strict": true,
|
|
11722
|
-
"enableJsonFlag": true,
|
|
11723
|
-
"title": "Deployment Notifications",
|
|
11724
|
-
"requiresProject": true,
|
|
11725
|
-
"isESM": true,
|
|
11726
|
-
"relativePath": [
|
|
11727
|
-
"lib",
|
|
11728
|
-
"commands",
|
|
11729
|
-
"hardis",
|
|
11730
|
-
"project",
|
|
11731
|
-
"deploy",
|
|
11732
|
-
"notify.js"
|
|
11516
|
+
"deploy",
|
|
11517
|
+
"notify.js"
|
|
11733
11518
|
],
|
|
11734
11519
|
"aliasPermutations": [],
|
|
11735
11520
|
"permutations": [
|
|
@@ -12796,6 +12581,221 @@
|
|
|
12796
12581
|
"validate:deploy:project:hardis"
|
|
12797
12582
|
]
|
|
12798
12583
|
},
|
|
12584
|
+
"hardis:project:fix:profiletabs": {
|
|
12585
|
+
"aliases": [],
|
|
12586
|
+
"args": {},
|
|
12587
|
+
"description": "\n## Command Behavior\n\n**Interactively updates tab visibility settings in Salesforce profiles, addressing a common issue where tab visibilities are not correctly retrieved by `sf project retrieve start`.**\n\nThis command provides a user-friendly interface to manage tab settings within your profile XML files, ensuring that your local project accurately reflects the intended tab configurations in your Salesforce org.\n\nKey functionalities:\n\n- **Interactive Tab Selection:** Displays a multi-select menu of all available tabs in your org, allowing you to choose which tabs to update.\n- **Visibility Control:** Lets you set the visibility for the selected tabs to either `DefaultOn` (Visible) or `Hidden`.\n- **Profile Selection:** Presents a multi-select menu of all .profile-meta.xml files in your project, allowing you to apply the tab visibility changes to specific profiles.\n- **XML Updates:** Modifies the <tabVisibilities> section of the selected profile XML files to reflect the chosen tab settings. If a tab visibility setting already exists for a selected tab, it will be updated; otherwise, a new one will be added.\n- **Sorted Output:** The <tabVisibilities> in the updated profile XML files are sorted alphabetically for consistency and readability.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **SOQL Queries (Tooling API):** It queries the `TabDefinition` object using `soqlQueryTooling` to retrieve a list of all available tabs in the target org.\n- **File Discovery:** Uses `glob` to find all .profile-meta.xml files within the specified project path.\n- **Interactive Prompts:** Leverages the `prompts` library to create interactive menus for selecting tabs, visibility settings, and profiles.\n- **XML Parsing and Manipulation:** Uses `parseXmlFile` to read the content of profile XML files and `writeXmlFile` to write the modified content back. It manipulates the `tabVisibilities` array within the parsed XML to add or update tab settings.\n- **Array Sorting:** Employs the `sort-array` library to sort the `tabVisibilities` alphabetically by tab name.\n- **Logging:** Provides feedback to the user about which profiles have been updated and a summary of the changes.\n</details>\n",
|
|
12588
|
+
"examples": [
|
|
12589
|
+
"$ sf hardis:project:fix:profiletabs"
|
|
12590
|
+
],
|
|
12591
|
+
"flags": {
|
|
12592
|
+
"json": {
|
|
12593
|
+
"description": "Format output as json.",
|
|
12594
|
+
"helpGroup": "GLOBAL",
|
|
12595
|
+
"name": "json",
|
|
12596
|
+
"allowNo": false,
|
|
12597
|
+
"type": "boolean"
|
|
12598
|
+
},
|
|
12599
|
+
"flags-dir": {
|
|
12600
|
+
"helpGroup": "GLOBAL",
|
|
12601
|
+
"name": "flags-dir",
|
|
12602
|
+
"summary": "Import flag values from a directory.",
|
|
12603
|
+
"hasDynamicHelp": false,
|
|
12604
|
+
"multiple": false,
|
|
12605
|
+
"type": "option"
|
|
12606
|
+
},
|
|
12607
|
+
"path": {
|
|
12608
|
+
"char": "p",
|
|
12609
|
+
"description": "Root folder",
|
|
12610
|
+
"name": "path",
|
|
12611
|
+
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
12612
|
+
"hasDynamicHelp": false,
|
|
12613
|
+
"multiple": false,
|
|
12614
|
+
"type": "option"
|
|
12615
|
+
},
|
|
12616
|
+
"debug": {
|
|
12617
|
+
"char": "d",
|
|
12618
|
+
"description": "Activate debug mode (more logs)",
|
|
12619
|
+
"name": "debug",
|
|
12620
|
+
"allowNo": false,
|
|
12621
|
+
"type": "boolean"
|
|
12622
|
+
},
|
|
12623
|
+
"websocket": {
|
|
12624
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
12625
|
+
"name": "websocket",
|
|
12626
|
+
"hasDynamicHelp": false,
|
|
12627
|
+
"multiple": false,
|
|
12628
|
+
"type": "option"
|
|
12629
|
+
},
|
|
12630
|
+
"skipauth": {
|
|
12631
|
+
"description": "Skip authentication check when a default username is required",
|
|
12632
|
+
"name": "skipauth",
|
|
12633
|
+
"allowNo": false,
|
|
12634
|
+
"type": "boolean"
|
|
12635
|
+
},
|
|
12636
|
+
"target-org": {
|
|
12637
|
+
"aliases": [
|
|
12638
|
+
"targetusername",
|
|
12639
|
+
"u"
|
|
12640
|
+
],
|
|
12641
|
+
"char": "o",
|
|
12642
|
+
"deprecateAliases": true,
|
|
12643
|
+
"name": "target-org",
|
|
12644
|
+
"noCacheDefault": true,
|
|
12645
|
+
"required": true,
|
|
12646
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
12647
|
+
"hasDynamicHelp": true,
|
|
12648
|
+
"multiple": false,
|
|
12649
|
+
"type": "option"
|
|
12650
|
+
}
|
|
12651
|
+
},
|
|
12652
|
+
"hasDynamicHelp": true,
|
|
12653
|
+
"hiddenAliases": [],
|
|
12654
|
+
"id": "hardis:project:fix:profiletabs",
|
|
12655
|
+
"pluginAlias": "sfdx-hardis",
|
|
12656
|
+
"pluginName": "sfdx-hardis",
|
|
12657
|
+
"pluginType": "core",
|
|
12658
|
+
"strict": true,
|
|
12659
|
+
"enableJsonFlag": true,
|
|
12660
|
+
"title": "Fix profiles to add tabs that are not retrieved by SF CLI",
|
|
12661
|
+
"requiresProject": true,
|
|
12662
|
+
"isESM": true,
|
|
12663
|
+
"relativePath": [
|
|
12664
|
+
"lib",
|
|
12665
|
+
"commands",
|
|
12666
|
+
"hardis",
|
|
12667
|
+
"project",
|
|
12668
|
+
"fix",
|
|
12669
|
+
"profiletabs.js"
|
|
12670
|
+
],
|
|
12671
|
+
"aliasPermutations": [],
|
|
12672
|
+
"permutations": [
|
|
12673
|
+
"hardis:project:fix:profiletabs",
|
|
12674
|
+
"project:hardis:fix:profiletabs",
|
|
12675
|
+
"project:fix:hardis:profiletabs",
|
|
12676
|
+
"project:fix:profiletabs:hardis",
|
|
12677
|
+
"hardis:fix:project:profiletabs",
|
|
12678
|
+
"fix:hardis:project:profiletabs",
|
|
12679
|
+
"fix:project:hardis:profiletabs",
|
|
12680
|
+
"fix:project:profiletabs:hardis",
|
|
12681
|
+
"hardis:fix:profiletabs:project",
|
|
12682
|
+
"fix:hardis:profiletabs:project",
|
|
12683
|
+
"fix:profiletabs:hardis:project",
|
|
12684
|
+
"fix:profiletabs:project:hardis",
|
|
12685
|
+
"hardis:project:profiletabs:fix",
|
|
12686
|
+
"project:hardis:profiletabs:fix",
|
|
12687
|
+
"project:profiletabs:hardis:fix",
|
|
12688
|
+
"project:profiletabs:fix:hardis",
|
|
12689
|
+
"hardis:profiletabs:project:fix",
|
|
12690
|
+
"profiletabs:hardis:project:fix",
|
|
12691
|
+
"profiletabs:project:hardis:fix",
|
|
12692
|
+
"profiletabs:project:fix:hardis",
|
|
12693
|
+
"hardis:profiletabs:fix:project",
|
|
12694
|
+
"profiletabs:hardis:fix:project",
|
|
12695
|
+
"profiletabs:fix:hardis:project",
|
|
12696
|
+
"profiletabs:fix:project:hardis"
|
|
12697
|
+
]
|
|
12698
|
+
},
|
|
12699
|
+
"hardis:project:fix:v53flexipages": {
|
|
12700
|
+
"aliases": [],
|
|
12701
|
+
"args": {},
|
|
12702
|
+
"description": "\n## Command Behavior\n\n**Fixes Salesforce FlexiPages for compatibility with API Version 53.0 (Winter '22 release) by adding missing identifiers to component instances.**\n\nSalesforce introduced a change in API Version 53.0 that requires `identifier` tags within `componentInstance` and `fieldInstance` elements in FlexiPage metadata. If these identifiers are missing, deployments to orgs with API version 53.0 or higher will fail. This command automates the process of adding these missing identifiers, ensuring your FlexiPages remain deployable.\n\nKey functionalities:\n\n- **Targeted FlexiPage Processing:** Scans all .flexipage-meta.xml files within the specified root folder (defaults to current working directory).\n- **Identifier Injection:** Inserts a unique `identifier` tag (e.g., `SFDX_HARDIS_REPLACEMENT_ID`) into `componentInstance` and `fieldInstance` elements that lack one.\n\n**Important Note:** After running this command, ensure you update your `apiVersion` to `53.0` (or higher) in your `package.xml` and `sfdx-project.json` files.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **File Discovery:** Uses `glob` to find all .flexipage-meta.xml files.\n- **Content Reading:** Reads the XML content of each FlexiPage file.\n- **Regular Expression Replacement:** Employs a set of regular expressions to identify specific XML patterns (componentName.../componentName.../componentInstance, componentName.../componentName.../visibilityRule, fieldItem.../fieldItem.../fieldInstance) that are missing the `identifier` tag.\n- **Dynamic ID Generation:** For each match, it generates a unique identifier (e.g., `sfdxHardisIdX`) and injects it into the XML structure.\n- **File Writing:** If changes are made, the modified XML content is written back to the FlexiPage file using `fs.writeFile`.\n- **Logging:** Provides messages about which FlexiPages are being processed and a summary of the total number of identifiers added.\n</details>\n",
|
|
12703
|
+
"examples": [
|
|
12704
|
+
"$ sf hardis:project:fix:v53flexipages"
|
|
12705
|
+
],
|
|
12706
|
+
"flags": {
|
|
12707
|
+
"json": {
|
|
12708
|
+
"description": "Format output as json.",
|
|
12709
|
+
"helpGroup": "GLOBAL",
|
|
12710
|
+
"name": "json",
|
|
12711
|
+
"allowNo": false,
|
|
12712
|
+
"type": "boolean"
|
|
12713
|
+
},
|
|
12714
|
+
"flags-dir": {
|
|
12715
|
+
"helpGroup": "GLOBAL",
|
|
12716
|
+
"name": "flags-dir",
|
|
12717
|
+
"summary": "Import flag values from a directory.",
|
|
12718
|
+
"hasDynamicHelp": false,
|
|
12719
|
+
"multiple": false,
|
|
12720
|
+
"type": "option"
|
|
12721
|
+
},
|
|
12722
|
+
"path": {
|
|
12723
|
+
"char": "p",
|
|
12724
|
+
"description": "Root folder",
|
|
12725
|
+
"name": "path",
|
|
12726
|
+
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
12727
|
+
"hasDynamicHelp": false,
|
|
12728
|
+
"multiple": false,
|
|
12729
|
+
"type": "option"
|
|
12730
|
+
},
|
|
12731
|
+
"debug": {
|
|
12732
|
+
"char": "d",
|
|
12733
|
+
"description": "Activate debug mode (more logs)",
|
|
12734
|
+
"name": "debug",
|
|
12735
|
+
"allowNo": false,
|
|
12736
|
+
"type": "boolean"
|
|
12737
|
+
},
|
|
12738
|
+
"websocket": {
|
|
12739
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
12740
|
+
"name": "websocket",
|
|
12741
|
+
"hasDynamicHelp": false,
|
|
12742
|
+
"multiple": false,
|
|
12743
|
+
"type": "option"
|
|
12744
|
+
},
|
|
12745
|
+
"skipauth": {
|
|
12746
|
+
"description": "Skip authentication check when a default username is required",
|
|
12747
|
+
"name": "skipauth",
|
|
12748
|
+
"allowNo": false,
|
|
12749
|
+
"type": "boolean"
|
|
12750
|
+
}
|
|
12751
|
+
},
|
|
12752
|
+
"hasDynamicHelp": false,
|
|
12753
|
+
"hiddenAliases": [],
|
|
12754
|
+
"id": "hardis:project:fix:v53flexipages",
|
|
12755
|
+
"pluginAlias": "sfdx-hardis",
|
|
12756
|
+
"pluginName": "sfdx-hardis",
|
|
12757
|
+
"pluginType": "core",
|
|
12758
|
+
"strict": true,
|
|
12759
|
+
"enableJsonFlag": true,
|
|
12760
|
+
"title": "Fix flexipages for v53",
|
|
12761
|
+
"requiresProject": true,
|
|
12762
|
+
"isESM": true,
|
|
12763
|
+
"relativePath": [
|
|
12764
|
+
"lib",
|
|
12765
|
+
"commands",
|
|
12766
|
+
"hardis",
|
|
12767
|
+
"project",
|
|
12768
|
+
"fix",
|
|
12769
|
+
"v53flexipages.js"
|
|
12770
|
+
],
|
|
12771
|
+
"aliasPermutations": [],
|
|
12772
|
+
"permutations": [
|
|
12773
|
+
"hardis:project:fix:v53flexipages",
|
|
12774
|
+
"project:hardis:fix:v53flexipages",
|
|
12775
|
+
"project:fix:hardis:v53flexipages",
|
|
12776
|
+
"project:fix:v53flexipages:hardis",
|
|
12777
|
+
"hardis:fix:project:v53flexipages",
|
|
12778
|
+
"fix:hardis:project:v53flexipages",
|
|
12779
|
+
"fix:project:hardis:v53flexipages",
|
|
12780
|
+
"fix:project:v53flexipages:hardis",
|
|
12781
|
+
"hardis:fix:v53flexipages:project",
|
|
12782
|
+
"fix:hardis:v53flexipages:project",
|
|
12783
|
+
"fix:v53flexipages:hardis:project",
|
|
12784
|
+
"fix:v53flexipages:project:hardis",
|
|
12785
|
+
"hardis:project:v53flexipages:fix",
|
|
12786
|
+
"project:hardis:v53flexipages:fix",
|
|
12787
|
+
"project:v53flexipages:hardis:fix",
|
|
12788
|
+
"project:v53flexipages:fix:hardis",
|
|
12789
|
+
"hardis:v53flexipages:project:fix",
|
|
12790
|
+
"v53flexipages:hardis:project:fix",
|
|
12791
|
+
"v53flexipages:project:hardis:fix",
|
|
12792
|
+
"v53flexipages:project:fix:hardis",
|
|
12793
|
+
"hardis:v53flexipages:fix:project",
|
|
12794
|
+
"v53flexipages:hardis:fix:project",
|
|
12795
|
+
"v53flexipages:fix:hardis:project",
|
|
12796
|
+
"v53flexipages:fix:project:hardis"
|
|
12797
|
+
]
|
|
12798
|
+
},
|
|
12799
12799
|
"hardis:project:generate:bypass": {
|
|
12800
12800
|
"aliases": [],
|
|
12801
12801
|
"args": {},
|
|
@@ -13194,7 +13194,7 @@
|
|
|
13194
13194
|
"hardis:project:metadata:activate-decomposed": {
|
|
13195
13195
|
"aliases": [],
|
|
13196
13196
|
"args": {},
|
|
13197
|
-
"description": "\n## Command Behavior\n\n**Activate decomposed metadata types in Salesforce DX projects.**\n\nThis command helps manage decomposed metadata types that can be split into multiple files in source format. It automatically decomposes all supported metadata types that exist in your project.\n\nSupported metadata types (Beta):\n- CustomLabels\n- PermissionSet\n- ExternalServiceRegistration\n- SharingRules\n- Workflow\n\nSee [Salesforce documentation on decomposed metadata](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_decomposed_md_types.htm)\n\nKey features:\n- Automatically detects and decomposes all applicable metadata types\n- Decomposes only metadata types that exist in your project\n- Interactive confirmation for decomposition operations\n- Handles all confirmation prompts automatically\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThis command utilizes Salesforce CLI's decomposed metadata feature to split complex metadata types into smaller, more manageable components:\n\n- **CustomLabels**: Each custom label becomes a separate file, making it easier to track changes and manage translations.\n- **PermissionSets**: Permission sets are decomposed into multiple files based on the permissions they contain (field permissions, object permissions, etc.).\n- **ExternalServiceRegistration**: Decomposes external service registrations.\n- **SharingRules**: Decomposes sharing rules into individual components.\n- **Workflow**: Decomposes workflow rules into individual components.\n\nThe command wraps the underlying Salesforce CLI functionality and provides a more user-friendly interface with additional validation and error handling.\n\nNote: All decomposed metadata features are currently in Beta in Salesforce CLI.\n</details>\n",
|
|
13197
|
+
"description": "\n## Command Behavior\n\n**Activate decomposed metadata types in Salesforce DX projects.**\n\nThis command helps manage decomposed metadata types that can be split into multiple files in source format. It automatically decomposes all supported metadata types that exist in your project.\n\nSupported metadata types (Beta):\n\n- CustomLabels\n- PermissionSet\n- ExternalServiceRegistration\n- SharingRules\n- Workflow\n\nSee [Salesforce documentation on decomposed metadata](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_decomposed_md_types.htm)\n\nKey features:\n\n- Automatically detects and decomposes all applicable metadata types\n- Decomposes only metadata types that exist in your project\n- Interactive confirmation for decomposition operations\n- Handles all confirmation prompts automatically\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThis command utilizes Salesforce CLI's decomposed metadata feature to split complex metadata types into smaller, more manageable components:\n\n- **CustomLabels**: Each custom label becomes a separate file, making it easier to track changes and manage translations.\n- **PermissionSets**: Permission sets are decomposed into multiple files based on the permissions they contain (field permissions, object permissions, etc.).\n- **ExternalServiceRegistration**: Decomposes external service registrations.\n- **SharingRules**: Decomposes sharing rules into individual components.\n- **Workflow**: Decomposes workflow rules into individual components.\n\nThe command wraps the underlying Salesforce CLI functionality and provides a more user-friendly interface with additional validation and error handling.\n\nNote: All decomposed metadata features are currently in Beta in Salesforce CLI.\n</details>\n",
|
|
13198
13198
|
"examples": [
|
|
13199
13199
|
"$ sf hardis:project:metadata:activate-decomposed",
|
|
13200
13200
|
"$ sf hardis:project:metadata:activate-decomposed --debug"
|
|
@@ -15369,5 +15369,5 @@
|
|
|
15369
15369
|
]
|
|
15370
15370
|
}
|
|
15371
15371
|
},
|
|
15372
|
-
"version": "6.7.
|
|
15372
|
+
"version": "6.7.1"
|
|
15373
15373
|
}
|