sfdx-hardis 6.15.0 → 6.15.1-beta202512081818.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/oclif.manifest.json +1564 -1564
- 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 CI_COMMIT_REF_NAME=monitoring_myclient 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 CI_COMMIT_REF_NAME=monitoring_myclient 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": {
|
|
@@ -3035,12 +3035,12 @@
|
|
|
3035
3035
|
"lint:project:hardis"
|
|
3036
3036
|
]
|
|
3037
3037
|
},
|
|
3038
|
-
"hardis:
|
|
3038
|
+
"hardis:source:deploy": {
|
|
3039
3039
|
"aliases": [],
|
|
3040
3040
|
"args": {},
|
|
3041
|
-
"description": "
|
|
3041
|
+
"description": "sfdx-hardis wrapper for sfdx force:source:deploy that displays tips to solve deployment errors.\n\nAdditional to the base command wrapper: If using **--checkonly**, add options **--checkcoverage** and **--coverageformatters json-summary** to check that org coverage is > 75% (or value defined in .sfdx-hardis.yml property **apexTestsMinCoverageOrgWide**)\n\n### Deployment results\n\nYou can also have deployment results as pull request comments, on:\n\n- GitHub (see [GitHub Pull Requests comments config](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-setup-integration-github/))\n- Gitlab (see [Gitlab integration configuration](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-setup-integration-gitlab/))\n- Azure DevOps (see [Azure integration configuration](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-setup-integration-azure/))\n\n\n[](https://nicolas.vuillamy.fr/assisted-solving-of-salesforce-deployments-errors-47f3666a9ed0)\n\n### Deployment pre or post commands\n\nYou can define command lines to run before or after a deployment, with parameters:\n\n- **id**: Unique Id for the command\n- **label**: Human readable label for the command\n- **skipIfError**: If defined to \"true\", the post-command won't be run if there is a deployment failure\n- **context**: Defines the context where the command will be run. Can be **all** (default), **check-deployment-only** or **process-deployment-only**\n- **runOnlyOnceByOrg**: If set to true, the command will be run only one time per org. A record of SfdxHardisTrace__c is stored to make that possible (it needs to be existing in target org)\n\nIf the commands are not the same depending on the target org, you can define them into **config/branches/.sfdx-hardis-BRANCHNAME.yml** instead of root **config/.sfdx-hardis.yml**\n\nExample:\n\n```yaml\ncommandsPreDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to the deployment user\n command: sf data update record --sobject User --where \"Username='deploy.github@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n\ncommandsPostDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to desired username\n command: sf data update record --sobject User --where \"Username='admin-yser@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n - id: someActionToRunJustOneTime\n label: And to run only if deployment is success\n command: sf sfdmu:run ...\n skipIfError: true\n context: process-deployment-only\n runOnlyOnceByOrg: true\n```\n\nNotes:\n\n- You can disable coloring of errors in red by defining env variable SFDX_HARDIS_DEPLOY_ERR_COLORS=false\n\n[See documentation of Salesforce command](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_source.htm#cli_reference_force_source_deploy)\n",
|
|
3042
3042
|
"examples": [
|
|
3043
|
-
"$ sf hardis:
|
|
3043
|
+
"$ sf hardis:source:deploy -x manifest/package.xml --wait 60 --ignorewarnings --testlevel RunLocalTests --postdestructivechanges ./manifest/destructiveChanges.xml --target-org nicolas.vuillamy@cloudity.com.sfdxhardis --checkonly --checkcoverage --verbose --coverageformatters json-summary"
|
|
3044
3044
|
],
|
|
3045
3045
|
"flags": {
|
|
3046
3046
|
"json": {
|
|
@@ -3058,138 +3058,216 @@
|
|
|
3058
3058
|
"multiple": false,
|
|
3059
3059
|
"type": "option"
|
|
3060
3060
|
},
|
|
3061
|
-
"
|
|
3062
|
-
"char": "
|
|
3063
|
-
"description": "
|
|
3064
|
-
"name": "
|
|
3061
|
+
"checkonly": {
|
|
3062
|
+
"char": "c",
|
|
3063
|
+
"description": "checkonly",
|
|
3064
|
+
"name": "checkonly",
|
|
3065
3065
|
"allowNo": false,
|
|
3066
3066
|
"type": "boolean"
|
|
3067
3067
|
},
|
|
3068
|
-
"
|
|
3069
|
-
"description": "
|
|
3070
|
-
"name": "
|
|
3068
|
+
"soapdeploy": {
|
|
3069
|
+
"description": "soapDeploy",
|
|
3070
|
+
"name": "soapdeploy",
|
|
3071
3071
|
"allowNo": false,
|
|
3072
3072
|
"type": "boolean"
|
|
3073
3073
|
},
|
|
3074
|
-
"
|
|
3075
|
-
"char": "
|
|
3076
|
-
"description": "
|
|
3077
|
-
"name": "
|
|
3078
|
-
"
|
|
3079
|
-
"
|
|
3074
|
+
"wait": {
|
|
3075
|
+
"char": "w",
|
|
3076
|
+
"description": "wait",
|
|
3077
|
+
"name": "wait",
|
|
3078
|
+
"default": 60,
|
|
3079
|
+
"hasDynamicHelp": false,
|
|
3080
|
+
"multiple": false,
|
|
3081
|
+
"type": "option"
|
|
3080
3082
|
},
|
|
3081
|
-
"
|
|
3082
|
-
"
|
|
3083
|
-
"
|
|
3083
|
+
"testlevel": {
|
|
3084
|
+
"char": "l",
|
|
3085
|
+
"description": "testlevel",
|
|
3086
|
+
"name": "testlevel",
|
|
3087
|
+
"default": "NoTestRun",
|
|
3084
3088
|
"hasDynamicHelp": false,
|
|
3085
3089
|
"multiple": false,
|
|
3090
|
+
"options": [
|
|
3091
|
+
"NoTestRun",
|
|
3092
|
+
"RunSpecifiedTests",
|
|
3093
|
+
"RunLocalTests",
|
|
3094
|
+
"RunAllTestsInOrg"
|
|
3095
|
+
],
|
|
3086
3096
|
"type": "option"
|
|
3087
3097
|
},
|
|
3088
|
-
"
|
|
3089
|
-
"
|
|
3090
|
-
"
|
|
3098
|
+
"runtests": {
|
|
3099
|
+
"char": "r",
|
|
3100
|
+
"description": "runTests",
|
|
3101
|
+
"name": "runtests",
|
|
3102
|
+
"default": [],
|
|
3103
|
+
"hasDynamicHelp": false,
|
|
3104
|
+
"multiple": true,
|
|
3105
|
+
"type": "option"
|
|
3106
|
+
},
|
|
3107
|
+
"ignoreerrors": {
|
|
3108
|
+
"description": "ignoreErrors",
|
|
3109
|
+
"name": "ignoreerrors",
|
|
3091
3110
|
"allowNo": false,
|
|
3092
3111
|
"type": "boolean"
|
|
3093
3112
|
},
|
|
3094
|
-
"
|
|
3095
|
-
"
|
|
3096
|
-
|
|
3113
|
+
"ignorewarnings": {
|
|
3114
|
+
"char": "g",
|
|
3115
|
+
"description": "ignoreWarnings",
|
|
3116
|
+
"name": "ignorewarnings",
|
|
3117
|
+
"allowNo": false,
|
|
3118
|
+
"type": "boolean"
|
|
3119
|
+
},
|
|
3120
|
+
"validateddeployrequestid": {
|
|
3121
|
+
"char": "q",
|
|
3122
|
+
"description": "validateDeployRequestId",
|
|
3123
|
+
"exclusive": [
|
|
3124
|
+
"manifest",
|
|
3125
|
+
"metadata",
|
|
3126
|
+
"sourcepath",
|
|
3127
|
+
"checkonly",
|
|
3128
|
+
"testlevel",
|
|
3129
|
+
"runtests",
|
|
3130
|
+
"ignoreerrors",
|
|
3131
|
+
"ignorewarnings"
|
|
3097
3132
|
],
|
|
3098
|
-
"
|
|
3099
|
-
"
|
|
3100
|
-
"name": "target-dev-hub",
|
|
3101
|
-
"noCacheDefault": true,
|
|
3102
|
-
"required": true,
|
|
3103
|
-
"summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
|
|
3104
|
-
"hasDynamicHelp": true,
|
|
3133
|
+
"name": "validateddeployrequestid",
|
|
3134
|
+
"hasDynamicHelp": false,
|
|
3105
3135
|
"multiple": false,
|
|
3106
3136
|
"type": "option"
|
|
3107
|
-
}
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
"id": "hardis:scratch:create",
|
|
3112
|
-
"pluginAlias": "sfdx-hardis",
|
|
3113
|
-
"pluginName": "sfdx-hardis",
|
|
3114
|
-
"pluginType": "core",
|
|
3115
|
-
"strict": true,
|
|
3116
|
-
"enableJsonFlag": true,
|
|
3117
|
-
"title": "Create and initialize scratch org",
|
|
3118
|
-
"requiresProject": true,
|
|
3119
|
-
"requiresSfdxPlugins": [
|
|
3120
|
-
"sfdmu"
|
|
3121
|
-
],
|
|
3122
|
-
"isESM": true,
|
|
3123
|
-
"relativePath": [
|
|
3124
|
-
"lib",
|
|
3125
|
-
"commands",
|
|
3126
|
-
"hardis",
|
|
3127
|
-
"scratch",
|
|
3128
|
-
"create.js"
|
|
3129
|
-
],
|
|
3130
|
-
"aliasPermutations": [],
|
|
3131
|
-
"permutations": [
|
|
3132
|
-
"hardis:scratch:create",
|
|
3133
|
-
"scratch:hardis:create",
|
|
3134
|
-
"scratch:create:hardis",
|
|
3135
|
-
"hardis:create:scratch",
|
|
3136
|
-
"create:hardis:scratch",
|
|
3137
|
-
"create:scratch:hardis"
|
|
3138
|
-
]
|
|
3139
|
-
},
|
|
3140
|
-
"hardis:scratch:delete": {
|
|
3141
|
-
"aliases": [],
|
|
3142
|
-
"args": {},
|
|
3143
|
-
"description": "## Command Behavior\n\n**Provides an assisted menu to delete Salesforce scratch orgs associated with a Dev Hub.**\n\nThis command simplifies the process of cleaning up your Salesforce development environments by allowing you to easily select and delete multiple scratch orgs. This is crucial for managing your scratch org limits and ensuring that you don't accumulate unnecessary or expired orgs.\n\nKey functionalities:\n\n- **Interactive Scratch Org Selection:** Displays a list of all active scratch orgs linked to your Dev Hub, including their usernames, instance URLs, and last used dates.\n- **Multi-Selection:** Allows you to select multiple scratch orgs for deletion.\n- **Confirmation Prompt:** Prompts for confirmation before proceeding with the deletion, ensuring that you don't accidentally delete important orgs.\n- **Dev Hub Integration:** Works with your configured Dev Hub to manage scratch orgs.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce CLI Integration:** It executes the `sf org list` command to retrieve a list of all scratch orgs associated with the current Dev Hub. It then filters this list to show only active orgs.\n- **Interactive Prompts:** Uses the `prompts` library to present a multi-select menu of scratch orgs to the user.\n- **Scratch Org Deletion:** For each selected scratch org, it executes the `sf org delete scratch --no-prompt` command to perform the deletion.\n- **Error Handling:** Includes basic error handling for Salesforce CLI commands.\n- **Data Sorting:** Sorts the list of scratch orgs by username, alias, and instance URL for better readability in the interactive menu.\n</details>\n",
|
|
3144
|
-
"examples": [
|
|
3145
|
-
"$ sf hardis:scratch:delete"
|
|
3146
|
-
],
|
|
3147
|
-
"flags": {
|
|
3148
|
-
"json": {
|
|
3149
|
-
"description": "Format output as json.",
|
|
3150
|
-
"helpGroup": "GLOBAL",
|
|
3151
|
-
"name": "json",
|
|
3137
|
+
},
|
|
3138
|
+
"verbose": {
|
|
3139
|
+
"description": "verbose",
|
|
3140
|
+
"name": "verbose",
|
|
3152
3141
|
"allowNo": false,
|
|
3153
3142
|
"type": "boolean"
|
|
3154
3143
|
},
|
|
3155
|
-
"
|
|
3156
|
-
"
|
|
3157
|
-
"
|
|
3158
|
-
"
|
|
3144
|
+
"metadata": {
|
|
3145
|
+
"char": "m",
|
|
3146
|
+
"description": "metadata",
|
|
3147
|
+
"exclusive": [
|
|
3148
|
+
"manifest",
|
|
3149
|
+
"sourcepath"
|
|
3150
|
+
],
|
|
3151
|
+
"name": "metadata",
|
|
3152
|
+
"hasDynamicHelp": false,
|
|
3153
|
+
"multiple": true,
|
|
3154
|
+
"type": "option"
|
|
3155
|
+
},
|
|
3156
|
+
"sourcepath": {
|
|
3157
|
+
"char": "p",
|
|
3158
|
+
"description": "sourcePath",
|
|
3159
|
+
"exclusive": [
|
|
3160
|
+
"manifest",
|
|
3161
|
+
"metadata"
|
|
3162
|
+
],
|
|
3163
|
+
"name": "sourcepath",
|
|
3164
|
+
"hasDynamicHelp": false,
|
|
3165
|
+
"multiple": true,
|
|
3166
|
+
"type": "option"
|
|
3167
|
+
},
|
|
3168
|
+
"manifest": {
|
|
3169
|
+
"char": "x",
|
|
3170
|
+
"description": "flagsLong.manifest",
|
|
3171
|
+
"exclusive": [
|
|
3172
|
+
"metadata",
|
|
3173
|
+
"sourcepath"
|
|
3174
|
+
],
|
|
3175
|
+
"name": "manifest",
|
|
3176
|
+
"hasDynamicHelp": false,
|
|
3177
|
+
"multiple": false,
|
|
3178
|
+
"type": "option"
|
|
3179
|
+
},
|
|
3180
|
+
"predestructivechanges": {
|
|
3181
|
+
"dependsOn": [
|
|
3182
|
+
"manifest"
|
|
3183
|
+
],
|
|
3184
|
+
"description": "predestructivechanges",
|
|
3185
|
+
"name": "predestructivechanges",
|
|
3186
|
+
"hasDynamicHelp": false,
|
|
3187
|
+
"multiple": false,
|
|
3188
|
+
"type": "option"
|
|
3189
|
+
},
|
|
3190
|
+
"postdestructivechanges": {
|
|
3191
|
+
"dependsOn": [
|
|
3192
|
+
"manifest"
|
|
3193
|
+
],
|
|
3194
|
+
"description": "postdestructivechanges",
|
|
3195
|
+
"name": "postdestructivechanges",
|
|
3196
|
+
"hasDynamicHelp": false,
|
|
3197
|
+
"multiple": false,
|
|
3198
|
+
"type": "option"
|
|
3199
|
+
},
|
|
3200
|
+
"tracksource": {
|
|
3201
|
+
"char": "t",
|
|
3202
|
+
"description": "tracksource",
|
|
3203
|
+
"exclusive": [
|
|
3204
|
+
"checkonly",
|
|
3205
|
+
"validateddeployrequestid"
|
|
3206
|
+
],
|
|
3207
|
+
"name": "tracksource",
|
|
3208
|
+
"allowNo": false,
|
|
3209
|
+
"type": "boolean"
|
|
3210
|
+
},
|
|
3211
|
+
"forceoverwrite": {
|
|
3212
|
+
"char": "f",
|
|
3213
|
+
"dependsOn": [
|
|
3214
|
+
"tracksource"
|
|
3215
|
+
],
|
|
3216
|
+
"description": "forceoverwrite",
|
|
3217
|
+
"name": "forceoverwrite",
|
|
3218
|
+
"allowNo": false,
|
|
3219
|
+
"type": "boolean"
|
|
3220
|
+
},
|
|
3221
|
+
"resultsdir": {
|
|
3222
|
+
"description": "resultsdir",
|
|
3223
|
+
"name": "resultsdir",
|
|
3159
3224
|
"hasDynamicHelp": false,
|
|
3160
3225
|
"multiple": false,
|
|
3161
3226
|
"type": "option"
|
|
3162
3227
|
},
|
|
3228
|
+
"coverageformatters": {
|
|
3229
|
+
"description": "coverageformatters",
|
|
3230
|
+
"name": "coverageformatters",
|
|
3231
|
+
"hasDynamicHelp": false,
|
|
3232
|
+
"multiple": true,
|
|
3233
|
+
"type": "option"
|
|
3234
|
+
},
|
|
3235
|
+
"junit": {
|
|
3236
|
+
"description": "junit",
|
|
3237
|
+
"name": "junit",
|
|
3238
|
+
"allowNo": false,
|
|
3239
|
+
"type": "boolean"
|
|
3240
|
+
},
|
|
3241
|
+
"checkcoverage": {
|
|
3242
|
+
"description": "Check Apex org coverage",
|
|
3243
|
+
"name": "checkcoverage",
|
|
3244
|
+
"allowNo": false,
|
|
3245
|
+
"type": "boolean"
|
|
3246
|
+
},
|
|
3163
3247
|
"debug": {
|
|
3164
|
-
"
|
|
3165
|
-
"description": "Activate debug mode (more logs)",
|
|
3248
|
+
"description": "debug",
|
|
3166
3249
|
"name": "debug",
|
|
3167
3250
|
"allowNo": false,
|
|
3168
3251
|
"type": "boolean"
|
|
3169
3252
|
},
|
|
3170
3253
|
"websocket": {
|
|
3171
|
-
"description": "
|
|
3254
|
+
"description": "websocket",
|
|
3172
3255
|
"name": "websocket",
|
|
3173
3256
|
"hasDynamicHelp": false,
|
|
3174
3257
|
"multiple": false,
|
|
3175
3258
|
"type": "option"
|
|
3176
3259
|
},
|
|
3177
|
-
"
|
|
3178
|
-
"description": "Skip authentication check when a default username is required",
|
|
3179
|
-
"name": "skipauth",
|
|
3180
|
-
"allowNo": false,
|
|
3181
|
-
"type": "boolean"
|
|
3182
|
-
},
|
|
3183
|
-
"target-dev-hub": {
|
|
3260
|
+
"target-org": {
|
|
3184
3261
|
"aliases": [
|
|
3185
|
-
"
|
|
3262
|
+
"targetusername",
|
|
3263
|
+
"u"
|
|
3186
3264
|
],
|
|
3187
|
-
"char": "
|
|
3265
|
+
"char": "o",
|
|
3188
3266
|
"deprecateAliases": true,
|
|
3189
|
-
"name": "target-
|
|
3267
|
+
"name": "target-org",
|
|
3190
3268
|
"noCacheDefault": true,
|
|
3191
3269
|
"required": true,
|
|
3192
|
-
"summary": "Username or alias of the
|
|
3270
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
3193
3271
|
"hasDynamicHelp": true,
|
|
3194
3272
|
"multiple": false,
|
|
3195
3273
|
"type": "option"
|
|
@@ -3197,38 +3275,35 @@
|
|
|
3197
3275
|
},
|
|
3198
3276
|
"hasDynamicHelp": true,
|
|
3199
3277
|
"hiddenAliases": [],
|
|
3200
|
-
"id": "hardis:
|
|
3278
|
+
"id": "hardis:source:deploy",
|
|
3201
3279
|
"pluginAlias": "sfdx-hardis",
|
|
3202
3280
|
"pluginName": "sfdx-hardis",
|
|
3203
3281
|
"pluginType": "core",
|
|
3204
3282
|
"strict": true,
|
|
3205
3283
|
"enableJsonFlag": true,
|
|
3206
|
-
"
|
|
3284
|
+
"requiresProject": true,
|
|
3207
3285
|
"isESM": true,
|
|
3208
3286
|
"relativePath": [
|
|
3209
3287
|
"lib",
|
|
3210
3288
|
"commands",
|
|
3211
3289
|
"hardis",
|
|
3212
|
-
"
|
|
3213
|
-
"
|
|
3290
|
+
"source",
|
|
3291
|
+
"deploy.js"
|
|
3214
3292
|
],
|
|
3215
3293
|
"aliasPermutations": [],
|
|
3216
3294
|
"permutations": [
|
|
3217
|
-
"hardis:
|
|
3218
|
-
"
|
|
3219
|
-
"
|
|
3220
|
-
"hardis:
|
|
3221
|
-
"
|
|
3222
|
-
"
|
|
3295
|
+
"hardis:source:deploy",
|
|
3296
|
+
"source:hardis:deploy",
|
|
3297
|
+
"source:deploy:hardis",
|
|
3298
|
+
"hardis:deploy:source",
|
|
3299
|
+
"deploy:hardis:source",
|
|
3300
|
+
"deploy:source:hardis"
|
|
3223
3301
|
]
|
|
3224
3302
|
},
|
|
3225
|
-
"hardis:
|
|
3303
|
+
"hardis:source:push": {
|
|
3226
3304
|
"aliases": [],
|
|
3227
3305
|
"args": {},
|
|
3228
|
-
"description": "
|
|
3229
|
-
"examples": [
|
|
3230
|
-
"$ sf hardis:scratch:pull"
|
|
3231
|
-
],
|
|
3306
|
+
"description": "sfdx-hardis wrapper for sfdx force:source:push that displays tips to solve deployment errors.\n\n[](https://nicolas.vuillamy.fr/assisted-solving-of-salesforce-deployments-errors-47f3666a9ed0)\n\n[See documentation of Salesforce command](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_source.htm#cli_reference_force_source_push)\n",
|
|
3232
3307
|
"flags": {
|
|
3233
3308
|
"json": {
|
|
3234
3309
|
"description": "Format output as json.",
|
|
@@ -3245,26 +3320,48 @@
|
|
|
3245
3320
|
"multiple": false,
|
|
3246
3321
|
"type": "option"
|
|
3247
3322
|
},
|
|
3323
|
+
"forceoverwrite": {
|
|
3324
|
+
"char": "f",
|
|
3325
|
+
"description": "forceoverwrite",
|
|
3326
|
+
"name": "forceoverwrite",
|
|
3327
|
+
"allowNo": false,
|
|
3328
|
+
"type": "boolean"
|
|
3329
|
+
},
|
|
3330
|
+
"wait": {
|
|
3331
|
+
"char": "w",
|
|
3332
|
+
"description": "wait",
|
|
3333
|
+
"name": "wait",
|
|
3334
|
+
"default": 60,
|
|
3335
|
+
"hasDynamicHelp": false,
|
|
3336
|
+
"multiple": false,
|
|
3337
|
+
"type": "option"
|
|
3338
|
+
},
|
|
3339
|
+
"ignorewarnings": {
|
|
3340
|
+
"char": "g",
|
|
3341
|
+
"description": "ignorewarnings",
|
|
3342
|
+
"name": "ignorewarnings",
|
|
3343
|
+
"allowNo": false,
|
|
3344
|
+
"type": "boolean"
|
|
3345
|
+
},
|
|
3346
|
+
"quiet": {
|
|
3347
|
+
"description": "quiet",
|
|
3348
|
+
"name": "quiet",
|
|
3349
|
+
"allowNo": false,
|
|
3350
|
+
"type": "boolean"
|
|
3351
|
+
},
|
|
3248
3352
|
"debug": {
|
|
3249
|
-
"
|
|
3250
|
-
"description": "Activate debug mode (more logs)",
|
|
3353
|
+
"description": "debug",
|
|
3251
3354
|
"name": "debug",
|
|
3252
3355
|
"allowNo": false,
|
|
3253
3356
|
"type": "boolean"
|
|
3254
3357
|
},
|
|
3255
3358
|
"websocket": {
|
|
3256
|
-
"description": "
|
|
3359
|
+
"description": "websocket",
|
|
3257
3360
|
"name": "websocket",
|
|
3258
3361
|
"hasDynamicHelp": false,
|
|
3259
3362
|
"multiple": false,
|
|
3260
3363
|
"type": "option"
|
|
3261
3364
|
},
|
|
3262
|
-
"skipauth": {
|
|
3263
|
-
"description": "Skip authentication check when a default username is required",
|
|
3264
|
-
"name": "skipauth",
|
|
3265
|
-
"allowNo": false,
|
|
3266
|
-
"type": "boolean"
|
|
3267
|
-
},
|
|
3268
3365
|
"target-org": {
|
|
3269
3366
|
"aliases": [
|
|
3270
3367
|
"targetusername",
|
|
@@ -3283,39 +3380,36 @@
|
|
|
3283
3380
|
},
|
|
3284
3381
|
"hasDynamicHelp": true,
|
|
3285
3382
|
"hiddenAliases": [],
|
|
3286
|
-
"id": "hardis:
|
|
3383
|
+
"id": "hardis:source:push",
|
|
3287
3384
|
"pluginAlias": "sfdx-hardis",
|
|
3288
3385
|
"pluginName": "sfdx-hardis",
|
|
3289
3386
|
"pluginType": "core",
|
|
3290
3387
|
"strict": true,
|
|
3291
3388
|
"enableJsonFlag": true,
|
|
3292
|
-
"title": "Scratch PULL",
|
|
3293
3389
|
"requiresProject": true,
|
|
3294
3390
|
"isESM": true,
|
|
3295
3391
|
"relativePath": [
|
|
3296
3392
|
"lib",
|
|
3297
3393
|
"commands",
|
|
3298
3394
|
"hardis",
|
|
3299
|
-
"
|
|
3300
|
-
"
|
|
3395
|
+
"source",
|
|
3396
|
+
"push.js"
|
|
3301
3397
|
],
|
|
3302
3398
|
"aliasPermutations": [],
|
|
3303
3399
|
"permutations": [
|
|
3304
|
-
"hardis:
|
|
3305
|
-
"
|
|
3306
|
-
"
|
|
3307
|
-
"hardis:
|
|
3308
|
-
"
|
|
3309
|
-
"
|
|
3400
|
+
"hardis:source:push",
|
|
3401
|
+
"source:hardis:push",
|
|
3402
|
+
"source:push:hardis",
|
|
3403
|
+
"hardis:push:source",
|
|
3404
|
+
"push:hardis:source",
|
|
3405
|
+
"push:source:hardis"
|
|
3310
3406
|
]
|
|
3311
3407
|
},
|
|
3312
|
-
"hardis:
|
|
3408
|
+
"hardis:source:retrieve": {
|
|
3313
3409
|
"aliases": [],
|
|
3314
3410
|
"args": {},
|
|
3315
|
-
"description": "## Command Behavior\n\n**
|
|
3316
|
-
"examples": [
|
|
3317
|
-
"$ sf hardis:scratch:push"
|
|
3318
|
-
],
|
|
3411
|
+
"description": "\n## Command Behavior\n\n**A wrapper command for Salesforce CLI's `sf project retrieve start` (formerly `sfdx force:source:retrieve`), with enhanced interactive features.**\n\nThis command facilitates the retrieval of metadata from a Salesforce org into your local project. It provides an assisted experience, especially when no specific retrieval constraints are provided.\n\nKey features:\n\n- **Assisted Metadata Selection:** If no `sourcepath`, `manifest`, `metadata`, or `packagenames` flags are specified, an interactive menu will prompt you to select the metadata types you wish to retrieve.\n- **Assisted Org Selection:** If no target org is specified, an interactive menu will guide you to choose an org for the retrieval operation.\n- **Backward Compatibility:** While this command wraps the newer `sf project retrieve start`, it maintains compatibility with the older `sfdx force:source:retrieve` flags.\n\n**Important Note:** The underlying Salesforce CLI command `sfdx force:source:retrieve` is being deprecated by Salesforce in November 2024. It is recommended to migrate to `sf project retrieve start` for future compatibility. See [Salesforce CLI Migration Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_mig_deploy_retrieve.htm) for more information.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThis command acts as an intelligent wrapper around the Salesforce CLI's source retrieval functionality:\n\n- **Command Wrapping:** It uses the `wrapSfdxCoreCommand` utility to execute the `sfdx force:source:retrieve` (or its equivalent `sf project retrieve start`) command, passing through all relevant flags and arguments.\n- **Interactive Prompts:** It leverages `MetadataUtils.promptMetadataTypes()` and `promptOrgUsernameDefault()` to provide interactive menus for metadata and org selection when the user does not provide them as flags.\n- **Argument Transformation:** It dynamically constructs the command-line arguments for the underlying Salesforce CLI command based on user selections and provided flags.\n- **Error Handling:** It includes basic error handling, such as prompting the user to re-select an org if an issue occurs during org selection.\n- **Deprecation Warning:** It explicitly logs warnings about the deprecation of `sfdx force:source:retrieve` to inform users about upcoming changes.\n</details>\n",
|
|
3412
|
+
"examples": [],
|
|
3319
3413
|
"flags": {
|
|
3320
3414
|
"json": {
|
|
3321
3415
|
"description": "Format output as json.",
|
|
@@ -3332,15 +3426,98 @@
|
|
|
3332
3426
|
"multiple": false,
|
|
3333
3427
|
"type": "option"
|
|
3334
3428
|
},
|
|
3429
|
+
"apiversion": {
|
|
3430
|
+
"char": "a",
|
|
3431
|
+
"description": "Override the api version used for api requests made by this command",
|
|
3432
|
+
"name": "apiversion",
|
|
3433
|
+
"hasDynamicHelp": false,
|
|
3434
|
+
"multiple": false,
|
|
3435
|
+
"type": "option"
|
|
3436
|
+
},
|
|
3437
|
+
"sourcepath": {
|
|
3438
|
+
"char": "p",
|
|
3439
|
+
"description": "sourcePath",
|
|
3440
|
+
"exclusive": [
|
|
3441
|
+
"manifest",
|
|
3442
|
+
"metadata"
|
|
3443
|
+
],
|
|
3444
|
+
"name": "sourcepath",
|
|
3445
|
+
"hasDynamicHelp": false,
|
|
3446
|
+
"multiple": true,
|
|
3447
|
+
"type": "option"
|
|
3448
|
+
},
|
|
3449
|
+
"wait": {
|
|
3450
|
+
"char": "w",
|
|
3451
|
+
"description": "wait",
|
|
3452
|
+
"name": "wait",
|
|
3453
|
+
"hasDynamicHelp": false,
|
|
3454
|
+
"multiple": false,
|
|
3455
|
+
"type": "option"
|
|
3456
|
+
},
|
|
3457
|
+
"manifest": {
|
|
3458
|
+
"char": "x",
|
|
3459
|
+
"description": "manifest",
|
|
3460
|
+
"exclusive": [
|
|
3461
|
+
"metadata",
|
|
3462
|
+
"sourcepath"
|
|
3463
|
+
],
|
|
3464
|
+
"name": "manifest",
|
|
3465
|
+
"hasDynamicHelp": false,
|
|
3466
|
+
"multiple": false,
|
|
3467
|
+
"type": "option"
|
|
3468
|
+
},
|
|
3469
|
+
"metadata": {
|
|
3470
|
+
"char": "m",
|
|
3471
|
+
"description": "metadata",
|
|
3472
|
+
"exclusive": [
|
|
3473
|
+
"manifest",
|
|
3474
|
+
"sourcepath"
|
|
3475
|
+
],
|
|
3476
|
+
"name": "metadata",
|
|
3477
|
+
"hasDynamicHelp": false,
|
|
3478
|
+
"multiple": true,
|
|
3479
|
+
"type": "option"
|
|
3480
|
+
},
|
|
3481
|
+
"packagenames": {
|
|
3482
|
+
"char": "n",
|
|
3483
|
+
"description": "packagenames",
|
|
3484
|
+
"name": "packagenames",
|
|
3485
|
+
"hasDynamicHelp": false,
|
|
3486
|
+
"multiple": true,
|
|
3487
|
+
"type": "option"
|
|
3488
|
+
},
|
|
3489
|
+
"tracksource": {
|
|
3490
|
+
"char": "t",
|
|
3491
|
+
"description": "tracksource",
|
|
3492
|
+
"name": "tracksource",
|
|
3493
|
+
"allowNo": false,
|
|
3494
|
+
"type": "boolean"
|
|
3495
|
+
},
|
|
3496
|
+
"forceoverwrite": {
|
|
3497
|
+
"char": "f",
|
|
3498
|
+
"dependsOn": [
|
|
3499
|
+
"tracksource"
|
|
3500
|
+
],
|
|
3501
|
+
"description": "forceoverwrite",
|
|
3502
|
+
"name": "forceoverwrite",
|
|
3503
|
+
"allowNo": false,
|
|
3504
|
+
"type": "boolean"
|
|
3505
|
+
},
|
|
3506
|
+
"verbose": {
|
|
3507
|
+
"description": "verbose",
|
|
3508
|
+
"name": "verbose",
|
|
3509
|
+
"allowNo": false,
|
|
3510
|
+
"type": "boolean"
|
|
3511
|
+
},
|
|
3335
3512
|
"debug": {
|
|
3336
3513
|
"char": "d",
|
|
3337
|
-
"description": "
|
|
3514
|
+
"description": "debugMode",
|
|
3338
3515
|
"name": "debug",
|
|
3339
3516
|
"allowNo": false,
|
|
3340
3517
|
"type": "boolean"
|
|
3341
3518
|
},
|
|
3342
3519
|
"websocket": {
|
|
3343
|
-
"description": "
|
|
3520
|
+
"description": "websocket",
|
|
3344
3521
|
"name": "websocket",
|
|
3345
3522
|
"hasDynamicHelp": false,
|
|
3346
3523
|
"multiple": false,
|
|
@@ -3370,38 +3547,37 @@
|
|
|
3370
3547
|
},
|
|
3371
3548
|
"hasDynamicHelp": true,
|
|
3372
3549
|
"hiddenAliases": [],
|
|
3373
|
-
"id": "hardis:
|
|
3550
|
+
"id": "hardis:source:retrieve",
|
|
3374
3551
|
"pluginAlias": "sfdx-hardis",
|
|
3375
3552
|
"pluginName": "sfdx-hardis",
|
|
3376
3553
|
"pluginType": "core",
|
|
3377
3554
|
"strict": true,
|
|
3378
3555
|
"enableJsonFlag": true,
|
|
3379
|
-
"title": "Scratch PUSH",
|
|
3380
3556
|
"requiresProject": true,
|
|
3381
3557
|
"isESM": true,
|
|
3382
3558
|
"relativePath": [
|
|
3383
3559
|
"lib",
|
|
3384
3560
|
"commands",
|
|
3385
3561
|
"hardis",
|
|
3386
|
-
"
|
|
3387
|
-
"
|
|
3562
|
+
"source",
|
|
3563
|
+
"retrieve.js"
|
|
3388
3564
|
],
|
|
3389
3565
|
"aliasPermutations": [],
|
|
3390
3566
|
"permutations": [
|
|
3391
|
-
"hardis:
|
|
3392
|
-
"
|
|
3393
|
-
"
|
|
3394
|
-
"hardis:
|
|
3395
|
-
"
|
|
3396
|
-
"
|
|
3567
|
+
"hardis:source:retrieve",
|
|
3568
|
+
"source:hardis:retrieve",
|
|
3569
|
+
"source:retrieve:hardis",
|
|
3570
|
+
"hardis:retrieve:source",
|
|
3571
|
+
"retrieve:hardis:source",
|
|
3572
|
+
"retrieve:source:hardis"
|
|
3397
3573
|
]
|
|
3398
3574
|
},
|
|
3399
|
-
"hardis:
|
|
3575
|
+
"hardis:scratch:create": {
|
|
3400
3576
|
"aliases": [],
|
|
3401
3577
|
"args": {},
|
|
3402
|
-
"description": "
|
|
3578
|
+
"description": "\n## Command Behavior\n\n**Creates and fully initializes a Salesforce scratch org with complete development environment setup.**\n\nThis command is a comprehensive scratch org provisioning tool that automates the entire process of creating, configuring, and initializing a Salesforce scratch org for development work. It handles everything from basic org creation to advanced configuration including package installation, metadata deployment, and data initialization.\n\nKey functionalities:\n\n- **Intelligent Org Management:** Automatically generates unique scratch org aliases based on username, git branch, and timestamp, with options to reuse existing orgs or force creation of new ones.\n- **Scratch Org Pool Integration:** Supports fetching pre-configured scratch orgs from pools for faster development cycles and CI/CD optimization.\n- **Custom Scratch Definition:** Dynamically builds project-scratch-def.json files with user-specific configurations including email, username patterns, and org shape settings (set variable **SCRATCH_ORG_SHAPE** to use org shapes).\n- **Package Installation:** Automatically installs all configured packages defined in `installedPackages` configuration property.\n- **Metadata Deployment:** Pushes source code and deploys metadata using optimized deployment strategies for scratch org environments.\n- **Permission Set Assignment:** Assigns specified permission sets defined in `initPermissionSets` configuration to the scratch org user.\n- **Apex Script Execution:** Runs custom Apex initialization scripts defined in `scratchOrgInitApexScripts` for org-specific setup.\n- **Data Loading:** Loads initial data using SFDMU data packages from `dataPackages` configuration for realistic development environments.\n- **User Configuration:** Automatically configures the scratch org admin user with proper names, email, country settings, and marketing user permissions.\n- **Password Generation:** Creates and stores secure passwords for easy scratch org access during development.\n- **CI/CD Integration:** Provides specialized handling for continuous integration environments including automated cleanup and pool management.\n- **Error Handling:** Comprehensive error recovery including scratch org cleanup on failure and detailed troubleshooting messages.\n\nThe command configuration can be customized using:\n\n- `config/.sfdx-hardis.yml` file with properties like `installedPackages`, `initPermissionSets`, `scratchOrgInitApexScripts`, and `dataPackages`.\n- Environment variable **SCRATCH_ORG_SHAPE** with shape org id, if you want to use org shapes\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Configuration Management:** Loads hierarchical configuration from `.sfdx-hardis.yml`, branch-specific, and user-specific configuration files using `getConfig('user')`.\n- **Alias Generation Logic:** Creates intelligent scratch org aliases using username, git branch, timestamp patterns with CI and pool prefixes for different environments.\n- **Scratch Org Definition Building:** Dynamically constructs `project-scratch-def.json` with user email, custom usernames, org shapes, and feature flags like StateAndCountryPicklist and MarketingUser.\n- **Pool Integration:** Implements scratch org pool fetching using `fetchScratchOrg` for rapid org provisioning in development and CI environments.\n- **Salesforce CLI Integration:** Executes `sf org create scratch` commands with proper parameter handling including wait times, duration, and dev hub targeting.\n- **Package Installation Pipeline:** Uses `installPackages` utility to install managed and unmanaged packages with dependency resolution and error handling.\n- **Metadata Deployment:** Leverages `initOrgMetadatas` for optimized source pushing and metadata deployment specific to scratch org environments.\n- **Permission Set Assignment:** Implements `initPermissionSetAssignments` for automated permission set assignment to scratch org users.\n- **Apex Script Execution:** Runs custom Apex initialization scripts using `initApexScripts` for org-specific configuration and setup.\n- **Data Loading Integration:** Uses SFDMU integration through `initOrgData` for comprehensive data loading from configured data packages.\n- **User Management:** Performs SOQL queries and DML operations to configure scratch org users with proper names, emails, country codes, and permission flags.\n- **Authentication Management:** Handles SFDX auth URL generation and storage for CI/CD environments and scratch org pool management.\n- **Error Recovery:** Implements comprehensive error handling with scratch org cleanup, pool management, and detailed error messaging for troubleshooting.\n- **WebSocket Integration:** Provides real-time status updates and file reporting through WebSocket connections for VS Code extension integration.\n</details>\n",
|
|
3403
3579
|
"examples": [
|
|
3404
|
-
"$ sf hardis:
|
|
3580
|
+
"$ sf hardis:scratch:create"
|
|
3405
3581
|
],
|
|
3406
3582
|
"flags": {
|
|
3407
3583
|
"json": {
|
|
@@ -3419,216 +3595,138 @@
|
|
|
3419
3595
|
"multiple": false,
|
|
3420
3596
|
"type": "option"
|
|
3421
3597
|
},
|
|
3422
|
-
"
|
|
3423
|
-
"char": "
|
|
3424
|
-
"description": "
|
|
3425
|
-
"name": "
|
|
3426
|
-
"allowNo": false,
|
|
3427
|
-
"type": "boolean"
|
|
3428
|
-
},
|
|
3429
|
-
"soapdeploy": {
|
|
3430
|
-
"description": "soapDeploy",
|
|
3431
|
-
"name": "soapdeploy",
|
|
3598
|
+
"forcenew": {
|
|
3599
|
+
"char": "n",
|
|
3600
|
+
"description": "If an existing scratch org exists, do not reuse it but create a new one",
|
|
3601
|
+
"name": "forcenew",
|
|
3432
3602
|
"allowNo": false,
|
|
3433
3603
|
"type": "boolean"
|
|
3434
3604
|
},
|
|
3435
|
-
"
|
|
3436
|
-
"
|
|
3437
|
-
"
|
|
3438
|
-
"name": "wait",
|
|
3439
|
-
"default": 60,
|
|
3440
|
-
"hasDynamicHelp": false,
|
|
3441
|
-
"multiple": false,
|
|
3442
|
-
"type": "option"
|
|
3443
|
-
},
|
|
3444
|
-
"testlevel": {
|
|
3445
|
-
"char": "l",
|
|
3446
|
-
"description": "testlevel",
|
|
3447
|
-
"name": "testlevel",
|
|
3448
|
-
"default": "NoTestRun",
|
|
3449
|
-
"hasDynamicHelp": false,
|
|
3450
|
-
"multiple": false,
|
|
3451
|
-
"options": [
|
|
3452
|
-
"NoTestRun",
|
|
3453
|
-
"RunSpecifiedTests",
|
|
3454
|
-
"RunLocalTests",
|
|
3455
|
-
"RunAllTestsInOrg"
|
|
3456
|
-
],
|
|
3457
|
-
"type": "option"
|
|
3458
|
-
},
|
|
3459
|
-
"runtests": {
|
|
3460
|
-
"char": "r",
|
|
3461
|
-
"description": "runTests",
|
|
3462
|
-
"name": "runtests",
|
|
3463
|
-
"default": [],
|
|
3464
|
-
"hasDynamicHelp": false,
|
|
3465
|
-
"multiple": true,
|
|
3466
|
-
"type": "option"
|
|
3467
|
-
},
|
|
3468
|
-
"ignoreerrors": {
|
|
3469
|
-
"description": "ignoreErrors",
|
|
3470
|
-
"name": "ignoreerrors",
|
|
3605
|
+
"pool": {
|
|
3606
|
+
"description": "Creates the scratch org for a scratch org pool",
|
|
3607
|
+
"name": "pool",
|
|
3471
3608
|
"allowNo": false,
|
|
3472
3609
|
"type": "boolean"
|
|
3473
3610
|
},
|
|
3474
|
-
"
|
|
3475
|
-
"char": "
|
|
3476
|
-
"description": "
|
|
3477
|
-
"name": "
|
|
3611
|
+
"debug": {
|
|
3612
|
+
"char": "d",
|
|
3613
|
+
"description": "Activate debug mode (more logs)",
|
|
3614
|
+
"name": "debug",
|
|
3478
3615
|
"allowNo": false,
|
|
3479
3616
|
"type": "boolean"
|
|
3480
3617
|
},
|
|
3481
|
-
"
|
|
3482
|
-
"
|
|
3483
|
-
"
|
|
3484
|
-
"exclusive": [
|
|
3485
|
-
"manifest",
|
|
3486
|
-
"metadata",
|
|
3487
|
-
"sourcepath",
|
|
3488
|
-
"checkonly",
|
|
3489
|
-
"testlevel",
|
|
3490
|
-
"runtests",
|
|
3491
|
-
"ignoreerrors",
|
|
3492
|
-
"ignorewarnings"
|
|
3493
|
-
],
|
|
3494
|
-
"name": "validateddeployrequestid",
|
|
3618
|
+
"websocket": {
|
|
3619
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
3620
|
+
"name": "websocket",
|
|
3495
3621
|
"hasDynamicHelp": false,
|
|
3496
3622
|
"multiple": false,
|
|
3497
3623
|
"type": "option"
|
|
3498
3624
|
},
|
|
3499
|
-
"
|
|
3500
|
-
"description": "
|
|
3501
|
-
"name": "
|
|
3625
|
+
"skipauth": {
|
|
3626
|
+
"description": "Skip authentication check when a default username is required",
|
|
3627
|
+
"name": "skipauth",
|
|
3502
3628
|
"allowNo": false,
|
|
3503
3629
|
"type": "boolean"
|
|
3504
3630
|
},
|
|
3505
|
-
"
|
|
3506
|
-
"
|
|
3507
|
-
|
|
3508
|
-
"exclusive": [
|
|
3509
|
-
"manifest",
|
|
3510
|
-
"sourcepath"
|
|
3511
|
-
],
|
|
3512
|
-
"name": "metadata",
|
|
3513
|
-
"hasDynamicHelp": false,
|
|
3514
|
-
"multiple": true,
|
|
3515
|
-
"type": "option"
|
|
3516
|
-
},
|
|
3517
|
-
"sourcepath": {
|
|
3518
|
-
"char": "p",
|
|
3519
|
-
"description": "sourcePath",
|
|
3520
|
-
"exclusive": [
|
|
3521
|
-
"manifest",
|
|
3522
|
-
"metadata"
|
|
3523
|
-
],
|
|
3524
|
-
"name": "sourcepath",
|
|
3525
|
-
"hasDynamicHelp": false,
|
|
3526
|
-
"multiple": true,
|
|
3527
|
-
"type": "option"
|
|
3528
|
-
},
|
|
3529
|
-
"manifest": {
|
|
3530
|
-
"char": "x",
|
|
3531
|
-
"description": "flagsLong.manifest",
|
|
3532
|
-
"exclusive": [
|
|
3533
|
-
"metadata",
|
|
3534
|
-
"sourcepath"
|
|
3535
|
-
],
|
|
3536
|
-
"name": "manifest",
|
|
3537
|
-
"hasDynamicHelp": false,
|
|
3538
|
-
"multiple": false,
|
|
3539
|
-
"type": "option"
|
|
3540
|
-
},
|
|
3541
|
-
"predestructivechanges": {
|
|
3542
|
-
"dependsOn": [
|
|
3543
|
-
"manifest"
|
|
3544
|
-
],
|
|
3545
|
-
"description": "predestructivechanges",
|
|
3546
|
-
"name": "predestructivechanges",
|
|
3547
|
-
"hasDynamicHelp": false,
|
|
3548
|
-
"multiple": false,
|
|
3549
|
-
"type": "option"
|
|
3550
|
-
},
|
|
3551
|
-
"postdestructivechanges": {
|
|
3552
|
-
"dependsOn": [
|
|
3553
|
-
"manifest"
|
|
3631
|
+
"target-dev-hub": {
|
|
3632
|
+
"aliases": [
|
|
3633
|
+
"targetdevhubusername"
|
|
3554
3634
|
],
|
|
3555
|
-
"
|
|
3556
|
-
"
|
|
3557
|
-
"
|
|
3635
|
+
"char": "v",
|
|
3636
|
+
"deprecateAliases": true,
|
|
3637
|
+
"name": "target-dev-hub",
|
|
3638
|
+
"noCacheDefault": true,
|
|
3639
|
+
"required": true,
|
|
3640
|
+
"summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
|
|
3641
|
+
"hasDynamicHelp": true,
|
|
3558
3642
|
"multiple": false,
|
|
3559
3643
|
"type": "option"
|
|
3560
|
-
}
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3644
|
+
}
|
|
3645
|
+
},
|
|
3646
|
+
"hasDynamicHelp": true,
|
|
3647
|
+
"hiddenAliases": [],
|
|
3648
|
+
"id": "hardis:scratch:create",
|
|
3649
|
+
"pluginAlias": "sfdx-hardis",
|
|
3650
|
+
"pluginName": "sfdx-hardis",
|
|
3651
|
+
"pluginType": "core",
|
|
3652
|
+
"strict": true,
|
|
3653
|
+
"enableJsonFlag": true,
|
|
3654
|
+
"title": "Create and initialize scratch org",
|
|
3655
|
+
"requiresProject": true,
|
|
3656
|
+
"requiresSfdxPlugins": [
|
|
3657
|
+
"sfdmu"
|
|
3658
|
+
],
|
|
3659
|
+
"isESM": true,
|
|
3660
|
+
"relativePath": [
|
|
3661
|
+
"lib",
|
|
3662
|
+
"commands",
|
|
3663
|
+
"hardis",
|
|
3664
|
+
"scratch",
|
|
3665
|
+
"create.js"
|
|
3666
|
+
],
|
|
3667
|
+
"aliasPermutations": [],
|
|
3668
|
+
"permutations": [
|
|
3669
|
+
"hardis:scratch:create",
|
|
3670
|
+
"scratch:hardis:create",
|
|
3671
|
+
"scratch:create:hardis",
|
|
3672
|
+
"hardis:create:scratch",
|
|
3673
|
+
"create:hardis:scratch",
|
|
3674
|
+
"create:scratch:hardis"
|
|
3675
|
+
]
|
|
3676
|
+
},
|
|
3677
|
+
"hardis:scratch:delete": {
|
|
3678
|
+
"aliases": [],
|
|
3679
|
+
"args": {},
|
|
3680
|
+
"description": "## Command Behavior\n\n**Provides an assisted menu to delete Salesforce scratch orgs associated with a Dev Hub.**\n\nThis command simplifies the process of cleaning up your Salesforce development environments by allowing you to easily select and delete multiple scratch orgs. This is crucial for managing your scratch org limits and ensuring that you don't accumulate unnecessary or expired orgs.\n\nKey functionalities:\n\n- **Interactive Scratch Org Selection:** Displays a list of all active scratch orgs linked to your Dev Hub, including their usernames, instance URLs, and last used dates.\n- **Multi-Selection:** Allows you to select multiple scratch orgs for deletion.\n- **Confirmation Prompt:** Prompts for confirmation before proceeding with the deletion, ensuring that you don't accidentally delete important orgs.\n- **Dev Hub Integration:** Works with your configured Dev Hub to manage scratch orgs.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce CLI Integration:** It executes the `sf org list` command to retrieve a list of all scratch orgs associated with the current Dev Hub. It then filters this list to show only active orgs.\n- **Interactive Prompts:** Uses the `prompts` library to present a multi-select menu of scratch orgs to the user.\n- **Scratch Org Deletion:** For each selected scratch org, it executes the `sf org delete scratch --no-prompt` command to perform the deletion.\n- **Error Handling:** Includes basic error handling for Salesforce CLI commands.\n- **Data Sorting:** Sorts the list of scratch orgs by username, alias, and instance URL for better readability in the interactive menu.\n</details>\n",
|
|
3681
|
+
"examples": [
|
|
3682
|
+
"$ sf hardis:scratch:delete"
|
|
3683
|
+
],
|
|
3684
|
+
"flags": {
|
|
3685
|
+
"json": {
|
|
3686
|
+
"description": "Format output as json.",
|
|
3687
|
+
"helpGroup": "GLOBAL",
|
|
3688
|
+
"name": "json",
|
|
3579
3689
|
"allowNo": false,
|
|
3580
3690
|
"type": "boolean"
|
|
3581
3691
|
},
|
|
3582
|
-
"
|
|
3583
|
-
"
|
|
3584
|
-
"name": "
|
|
3692
|
+
"flags-dir": {
|
|
3693
|
+
"helpGroup": "GLOBAL",
|
|
3694
|
+
"name": "flags-dir",
|
|
3695
|
+
"summary": "Import flag values from a directory.",
|
|
3585
3696
|
"hasDynamicHelp": false,
|
|
3586
3697
|
"multiple": false,
|
|
3587
3698
|
"type": "option"
|
|
3588
3699
|
},
|
|
3589
|
-
"coverageformatters": {
|
|
3590
|
-
"description": "coverageformatters",
|
|
3591
|
-
"name": "coverageformatters",
|
|
3592
|
-
"hasDynamicHelp": false,
|
|
3593
|
-
"multiple": true,
|
|
3594
|
-
"type": "option"
|
|
3595
|
-
},
|
|
3596
|
-
"junit": {
|
|
3597
|
-
"description": "junit",
|
|
3598
|
-
"name": "junit",
|
|
3599
|
-
"allowNo": false,
|
|
3600
|
-
"type": "boolean"
|
|
3601
|
-
},
|
|
3602
|
-
"checkcoverage": {
|
|
3603
|
-
"description": "Check Apex org coverage",
|
|
3604
|
-
"name": "checkcoverage",
|
|
3605
|
-
"allowNo": false,
|
|
3606
|
-
"type": "boolean"
|
|
3607
|
-
},
|
|
3608
3700
|
"debug": {
|
|
3609
|
-
"
|
|
3701
|
+
"char": "d",
|
|
3702
|
+
"description": "Activate debug mode (more logs)",
|
|
3610
3703
|
"name": "debug",
|
|
3611
3704
|
"allowNo": false,
|
|
3612
3705
|
"type": "boolean"
|
|
3613
3706
|
},
|
|
3614
3707
|
"websocket": {
|
|
3615
|
-
"description": "
|
|
3708
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
3616
3709
|
"name": "websocket",
|
|
3617
3710
|
"hasDynamicHelp": false,
|
|
3618
3711
|
"multiple": false,
|
|
3619
3712
|
"type": "option"
|
|
3620
3713
|
},
|
|
3621
|
-
"
|
|
3714
|
+
"skipauth": {
|
|
3715
|
+
"description": "Skip authentication check when a default username is required",
|
|
3716
|
+
"name": "skipauth",
|
|
3717
|
+
"allowNo": false,
|
|
3718
|
+
"type": "boolean"
|
|
3719
|
+
},
|
|
3720
|
+
"target-dev-hub": {
|
|
3622
3721
|
"aliases": [
|
|
3623
|
-
"
|
|
3624
|
-
"u"
|
|
3722
|
+
"targetdevhubusername"
|
|
3625
3723
|
],
|
|
3626
|
-
"char": "
|
|
3724
|
+
"char": "v",
|
|
3627
3725
|
"deprecateAliases": true,
|
|
3628
|
-
"name": "target-
|
|
3726
|
+
"name": "target-dev-hub",
|
|
3629
3727
|
"noCacheDefault": true,
|
|
3630
3728
|
"required": true,
|
|
3631
|
-
"summary": "Username or alias of the
|
|
3729
|
+
"summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
|
|
3632
3730
|
"hasDynamicHelp": true,
|
|
3633
3731
|
"multiple": false,
|
|
3634
3732
|
"type": "option"
|
|
@@ -3636,35 +3734,38 @@
|
|
|
3636
3734
|
},
|
|
3637
3735
|
"hasDynamicHelp": true,
|
|
3638
3736
|
"hiddenAliases": [],
|
|
3639
|
-
"id": "hardis:
|
|
3737
|
+
"id": "hardis:scratch:delete",
|
|
3640
3738
|
"pluginAlias": "sfdx-hardis",
|
|
3641
3739
|
"pluginName": "sfdx-hardis",
|
|
3642
3740
|
"pluginType": "core",
|
|
3643
3741
|
"strict": true,
|
|
3644
3742
|
"enableJsonFlag": true,
|
|
3645
|
-
"
|
|
3743
|
+
"title": "Delete scratch orgs(s)",
|
|
3646
3744
|
"isESM": true,
|
|
3647
3745
|
"relativePath": [
|
|
3648
3746
|
"lib",
|
|
3649
3747
|
"commands",
|
|
3650
3748
|
"hardis",
|
|
3651
|
-
"
|
|
3652
|
-
"
|
|
3749
|
+
"scratch",
|
|
3750
|
+
"delete.js"
|
|
3653
3751
|
],
|
|
3654
3752
|
"aliasPermutations": [],
|
|
3655
3753
|
"permutations": [
|
|
3656
|
-
"hardis:
|
|
3657
|
-
"
|
|
3658
|
-
"
|
|
3659
|
-
"hardis:
|
|
3660
|
-
"
|
|
3661
|
-
"
|
|
3754
|
+
"hardis:scratch:delete",
|
|
3755
|
+
"scratch:hardis:delete",
|
|
3756
|
+
"scratch:delete:hardis",
|
|
3757
|
+
"hardis:delete:scratch",
|
|
3758
|
+
"delete:hardis:scratch",
|
|
3759
|
+
"delete:scratch:hardis"
|
|
3662
3760
|
]
|
|
3663
3761
|
},
|
|
3664
|
-
"hardis:
|
|
3762
|
+
"hardis:scratch:pull": {
|
|
3665
3763
|
"aliases": [],
|
|
3666
3764
|
"args": {},
|
|
3667
|
-
"description": "
|
|
3765
|
+
"description": "\n## Command Behavior\n\n**Pulls metadata changes from your scratch org or source-tracked sandbox into your local project files.**\n\nThis command is essential for synchronizing your local development environment with the changes you've made directly in your Salesforce org. After pulling, you can then stage and commit the relevant files to your version control system.\n\nKey features and considerations:\n\n- **Underlying Command:** Internally, this command executes `sf project retrieve start` to fetch the metadata.\n- **Error Handling:** If the pull operation encounters errors, it offers to automatically add the problematic items to your `.forceignore` file and then attempts to pull again, helping you resolve conflicts and ignore unwanted metadata.\n- **Missing Updates:** If you don't see certain updated items in the pull results, you might need to manually retrieve them using the Salesforce Extension's **Org Browser** or the **Salesforce CLI** directly. Refer to the [Retrieve Metadatas documentation](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-publish-task/#retrieve-metadatas) for more details.\n- **Automatic Retrieval:** You can configure the `autoRetrieveWhenPull` property in your `.sfdx-hardis.yml` file to always retrieve specific metadata types (e.g., `CustomApplication`) that might not always be detected as updates by `project:retrieve:start`.\n\nExample `.sfdx-hardis.yml` configuration for `autoRetrieveWhenPull`:\n```yaml\nautoRetrieveWhenPull:\n - CustomApplication:MyCustomApplication\n - CustomApplication:MyOtherCustomApplication\n - CustomApplication:MyThirdCustomApp\n```\n\nFor a visual explanation of the process, watch this video:\n\n<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/Ik6whtflmfY\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation focuses on robust metadata synchronization:\n\n- **Salesforce CLI Wrapper:** It acts as a wrapper around the standard Salesforce CLI `sf project retrieve start` command, providing enhanced error handling and configuration options.\n- **Force Source Pull Utility:** The core logic resides in the `forceSourcePull` utility function, which orchestrates the retrieval process, including handling `.forceignore` updates.\n- **Configuration Integration:** It reads the `autoRetrieveWhenPull` setting from the project's `.sfdx-hardis.yml` to determine additional metadata to retrieve automatically.\n- **User Feedback:** Provides clear messages to the user regarding the pull status and guidance for troubleshooting.\n</details>\n",
|
|
3766
|
+
"examples": [
|
|
3767
|
+
"$ sf hardis:scratch:pull"
|
|
3768
|
+
],
|
|
3668
3769
|
"flags": {
|
|
3669
3770
|
"json": {
|
|
3670
3771
|
"description": "Format output as json.",
|
|
@@ -3681,48 +3782,26 @@
|
|
|
3681
3782
|
"multiple": false,
|
|
3682
3783
|
"type": "option"
|
|
3683
3784
|
},
|
|
3684
|
-
"forceoverwrite": {
|
|
3685
|
-
"char": "f",
|
|
3686
|
-
"description": "forceoverwrite",
|
|
3687
|
-
"name": "forceoverwrite",
|
|
3688
|
-
"allowNo": false,
|
|
3689
|
-
"type": "boolean"
|
|
3690
|
-
},
|
|
3691
|
-
"wait": {
|
|
3692
|
-
"char": "w",
|
|
3693
|
-
"description": "wait",
|
|
3694
|
-
"name": "wait",
|
|
3695
|
-
"default": 60,
|
|
3696
|
-
"hasDynamicHelp": false,
|
|
3697
|
-
"multiple": false,
|
|
3698
|
-
"type": "option"
|
|
3699
|
-
},
|
|
3700
|
-
"ignorewarnings": {
|
|
3701
|
-
"char": "g",
|
|
3702
|
-
"description": "ignorewarnings",
|
|
3703
|
-
"name": "ignorewarnings",
|
|
3704
|
-
"allowNo": false,
|
|
3705
|
-
"type": "boolean"
|
|
3706
|
-
},
|
|
3707
|
-
"quiet": {
|
|
3708
|
-
"description": "quiet",
|
|
3709
|
-
"name": "quiet",
|
|
3710
|
-
"allowNo": false,
|
|
3711
|
-
"type": "boolean"
|
|
3712
|
-
},
|
|
3713
3785
|
"debug": {
|
|
3714
|
-
"
|
|
3786
|
+
"char": "d",
|
|
3787
|
+
"description": "Activate debug mode (more logs)",
|
|
3715
3788
|
"name": "debug",
|
|
3716
3789
|
"allowNo": false,
|
|
3717
3790
|
"type": "boolean"
|
|
3718
3791
|
},
|
|
3719
3792
|
"websocket": {
|
|
3720
|
-
"description": "
|
|
3793
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
3721
3794
|
"name": "websocket",
|
|
3722
3795
|
"hasDynamicHelp": false,
|
|
3723
3796
|
"multiple": false,
|
|
3724
3797
|
"type": "option"
|
|
3725
3798
|
},
|
|
3799
|
+
"skipauth": {
|
|
3800
|
+
"description": "Skip authentication check when a default username is required",
|
|
3801
|
+
"name": "skipauth",
|
|
3802
|
+
"allowNo": false,
|
|
3803
|
+
"type": "boolean"
|
|
3804
|
+
},
|
|
3726
3805
|
"target-org": {
|
|
3727
3806
|
"aliases": [
|
|
3728
3807
|
"targetusername",
|
|
@@ -3741,36 +3820,39 @@
|
|
|
3741
3820
|
},
|
|
3742
3821
|
"hasDynamicHelp": true,
|
|
3743
3822
|
"hiddenAliases": [],
|
|
3744
|
-
"id": "hardis:
|
|
3823
|
+
"id": "hardis:scratch:pull",
|
|
3745
3824
|
"pluginAlias": "sfdx-hardis",
|
|
3746
3825
|
"pluginName": "sfdx-hardis",
|
|
3747
3826
|
"pluginType": "core",
|
|
3748
3827
|
"strict": true,
|
|
3749
3828
|
"enableJsonFlag": true,
|
|
3829
|
+
"title": "Scratch PULL",
|
|
3750
3830
|
"requiresProject": true,
|
|
3751
3831
|
"isESM": true,
|
|
3752
3832
|
"relativePath": [
|
|
3753
3833
|
"lib",
|
|
3754
3834
|
"commands",
|
|
3755
3835
|
"hardis",
|
|
3756
|
-
"
|
|
3757
|
-
"
|
|
3836
|
+
"scratch",
|
|
3837
|
+
"pull.js"
|
|
3758
3838
|
],
|
|
3759
3839
|
"aliasPermutations": [],
|
|
3760
3840
|
"permutations": [
|
|
3761
|
-
"hardis:
|
|
3762
|
-
"
|
|
3763
|
-
"
|
|
3764
|
-
"hardis:
|
|
3765
|
-
"
|
|
3766
|
-
"
|
|
3841
|
+
"hardis:scratch:pull",
|
|
3842
|
+
"scratch:hardis:pull",
|
|
3843
|
+
"scratch:pull:hardis",
|
|
3844
|
+
"hardis:pull:scratch",
|
|
3845
|
+
"pull:hardis:scratch",
|
|
3846
|
+
"pull:scratch:hardis"
|
|
3767
3847
|
]
|
|
3768
3848
|
},
|
|
3769
|
-
"hardis:
|
|
3849
|
+
"hardis:scratch:push": {
|
|
3770
3850
|
"aliases": [],
|
|
3771
3851
|
"args": {},
|
|
3772
|
-
"description": "
|
|
3773
|
-
"examples": [
|
|
3852
|
+
"description": "## Command Behavior\n\n**Pushes local Salesforce DX source files to a scratch org or source-tracked sandbox.**\n\nThis command is a fundamental operation in Salesforce DX development, allowing developers to synchronize their local codebase with their development org. It ensures that changes made locally are reflected in the scratch org, enabling testing and validation.\n\nKey functionalities:\n\n- **Source Synchronization:** Deploys all local changes (metadata and code) to the target scratch org.\n- **Underlying Command:** Internally, this command executes `sf project deploy start` to perform the push operation.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce CLI Wrapper:** It acts as a wrapper around the standard Salesforce CLI `sf project deploy start` command.\n- **`forceSourcePush` Utility:** The core logic resides in the `forceSourcePush` utility function, which orchestrates the deployment process.\n- **Connection Handling:** It uses the connection to the target org to perform the push operation.\n</details>\n",
|
|
3853
|
+
"examples": [
|
|
3854
|
+
"$ sf hardis:scratch:push"
|
|
3855
|
+
],
|
|
3774
3856
|
"flags": {
|
|
3775
3857
|
"json": {
|
|
3776
3858
|
"description": "Format output as json.",
|
|
@@ -3787,98 +3869,15 @@
|
|
|
3787
3869
|
"multiple": false,
|
|
3788
3870
|
"type": "option"
|
|
3789
3871
|
},
|
|
3790
|
-
"apiversion": {
|
|
3791
|
-
"char": "a",
|
|
3792
|
-
"description": "Override the api version used for api requests made by this command",
|
|
3793
|
-
"name": "apiversion",
|
|
3794
|
-
"hasDynamicHelp": false,
|
|
3795
|
-
"multiple": false,
|
|
3796
|
-
"type": "option"
|
|
3797
|
-
},
|
|
3798
|
-
"sourcepath": {
|
|
3799
|
-
"char": "p",
|
|
3800
|
-
"description": "sourcePath",
|
|
3801
|
-
"exclusive": [
|
|
3802
|
-
"manifest",
|
|
3803
|
-
"metadata"
|
|
3804
|
-
],
|
|
3805
|
-
"name": "sourcepath",
|
|
3806
|
-
"hasDynamicHelp": false,
|
|
3807
|
-
"multiple": true,
|
|
3808
|
-
"type": "option"
|
|
3809
|
-
},
|
|
3810
|
-
"wait": {
|
|
3811
|
-
"char": "w",
|
|
3812
|
-
"description": "wait",
|
|
3813
|
-
"name": "wait",
|
|
3814
|
-
"hasDynamicHelp": false,
|
|
3815
|
-
"multiple": false,
|
|
3816
|
-
"type": "option"
|
|
3817
|
-
},
|
|
3818
|
-
"manifest": {
|
|
3819
|
-
"char": "x",
|
|
3820
|
-
"description": "manifest",
|
|
3821
|
-
"exclusive": [
|
|
3822
|
-
"metadata",
|
|
3823
|
-
"sourcepath"
|
|
3824
|
-
],
|
|
3825
|
-
"name": "manifest",
|
|
3826
|
-
"hasDynamicHelp": false,
|
|
3827
|
-
"multiple": false,
|
|
3828
|
-
"type": "option"
|
|
3829
|
-
},
|
|
3830
|
-
"metadata": {
|
|
3831
|
-
"char": "m",
|
|
3832
|
-
"description": "metadata",
|
|
3833
|
-
"exclusive": [
|
|
3834
|
-
"manifest",
|
|
3835
|
-
"sourcepath"
|
|
3836
|
-
],
|
|
3837
|
-
"name": "metadata",
|
|
3838
|
-
"hasDynamicHelp": false,
|
|
3839
|
-
"multiple": true,
|
|
3840
|
-
"type": "option"
|
|
3841
|
-
},
|
|
3842
|
-
"packagenames": {
|
|
3843
|
-
"char": "n",
|
|
3844
|
-
"description": "packagenames",
|
|
3845
|
-
"name": "packagenames",
|
|
3846
|
-
"hasDynamicHelp": false,
|
|
3847
|
-
"multiple": true,
|
|
3848
|
-
"type": "option"
|
|
3849
|
-
},
|
|
3850
|
-
"tracksource": {
|
|
3851
|
-
"char": "t",
|
|
3852
|
-
"description": "tracksource",
|
|
3853
|
-
"name": "tracksource",
|
|
3854
|
-
"allowNo": false,
|
|
3855
|
-
"type": "boolean"
|
|
3856
|
-
},
|
|
3857
|
-
"forceoverwrite": {
|
|
3858
|
-
"char": "f",
|
|
3859
|
-
"dependsOn": [
|
|
3860
|
-
"tracksource"
|
|
3861
|
-
],
|
|
3862
|
-
"description": "forceoverwrite",
|
|
3863
|
-
"name": "forceoverwrite",
|
|
3864
|
-
"allowNo": false,
|
|
3865
|
-
"type": "boolean"
|
|
3866
|
-
},
|
|
3867
|
-
"verbose": {
|
|
3868
|
-
"description": "verbose",
|
|
3869
|
-
"name": "verbose",
|
|
3870
|
-
"allowNo": false,
|
|
3871
|
-
"type": "boolean"
|
|
3872
|
-
},
|
|
3873
3872
|
"debug": {
|
|
3874
3873
|
"char": "d",
|
|
3875
|
-
"description": "
|
|
3874
|
+
"description": "Activate debug mode (more logs)",
|
|
3876
3875
|
"name": "debug",
|
|
3877
3876
|
"allowNo": false,
|
|
3878
3877
|
"type": "boolean"
|
|
3879
3878
|
},
|
|
3880
3879
|
"websocket": {
|
|
3881
|
-
"description": "
|
|
3880
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
3882
3881
|
"name": "websocket",
|
|
3883
3882
|
"hasDynamicHelp": false,
|
|
3884
3883
|
"multiple": false,
|
|
@@ -3908,29 +3907,30 @@
|
|
|
3908
3907
|
},
|
|
3909
3908
|
"hasDynamicHelp": true,
|
|
3910
3909
|
"hiddenAliases": [],
|
|
3911
|
-
"id": "hardis:
|
|
3910
|
+
"id": "hardis:scratch:push",
|
|
3912
3911
|
"pluginAlias": "sfdx-hardis",
|
|
3913
3912
|
"pluginName": "sfdx-hardis",
|
|
3914
3913
|
"pluginType": "core",
|
|
3915
3914
|
"strict": true,
|
|
3916
3915
|
"enableJsonFlag": true,
|
|
3916
|
+
"title": "Scratch PUSH",
|
|
3917
3917
|
"requiresProject": true,
|
|
3918
3918
|
"isESM": true,
|
|
3919
3919
|
"relativePath": [
|
|
3920
3920
|
"lib",
|
|
3921
3921
|
"commands",
|
|
3922
3922
|
"hardis",
|
|
3923
|
-
"
|
|
3924
|
-
"
|
|
3923
|
+
"scratch",
|
|
3924
|
+
"push.js"
|
|
3925
3925
|
],
|
|
3926
3926
|
"aliasPermutations": [],
|
|
3927
3927
|
"permutations": [
|
|
3928
|
-
"hardis:
|
|
3929
|
-
"
|
|
3930
|
-
"
|
|
3931
|
-
"hardis:
|
|
3932
|
-
"
|
|
3933
|
-
"
|
|
3928
|
+
"hardis:scratch:push",
|
|
3929
|
+
"scratch:hardis:push",
|
|
3930
|
+
"scratch:push:hardis",
|
|
3931
|
+
"hardis:push:scratch",
|
|
3932
|
+
"push:hardis:scratch",
|
|
3933
|
+
"push:scratch:hardis"
|
|
3934
3934
|
]
|
|
3935
3935
|
},
|
|
3936
3936
|
"hardis:work:new": {
|
|
@@ -5222,13 +5222,282 @@
|
|
|
5222
5222
|
},
|
|
5223
5223
|
"hasDynamicHelp": true,
|
|
5224
5224
|
"hiddenAliases": [],
|
|
5225
|
-
"id": "hardis:org:data:delete",
|
|
5225
|
+
"id": "hardis:org:data:delete",
|
|
5226
|
+
"pluginAlias": "sfdx-hardis",
|
|
5227
|
+
"pluginName": "sfdx-hardis",
|
|
5228
|
+
"pluginType": "core",
|
|
5229
|
+
"strict": true,
|
|
5230
|
+
"enableJsonFlag": true,
|
|
5231
|
+
"title": "Delete data",
|
|
5232
|
+
"requiresProject": false,
|
|
5233
|
+
"requiresSfdxPlugins": [
|
|
5234
|
+
"sfdmu"
|
|
5235
|
+
],
|
|
5236
|
+
"isESM": true,
|
|
5237
|
+
"relativePath": [
|
|
5238
|
+
"lib",
|
|
5239
|
+
"commands",
|
|
5240
|
+
"hardis",
|
|
5241
|
+
"org",
|
|
5242
|
+
"data",
|
|
5243
|
+
"delete.js"
|
|
5244
|
+
],
|
|
5245
|
+
"aliasPermutations": [],
|
|
5246
|
+
"permutations": [
|
|
5247
|
+
"hardis:org:data:delete",
|
|
5248
|
+
"org:hardis:data:delete",
|
|
5249
|
+
"org:data:hardis:delete",
|
|
5250
|
+
"org:data:delete:hardis",
|
|
5251
|
+
"hardis:data:org:delete",
|
|
5252
|
+
"data:hardis:org:delete",
|
|
5253
|
+
"data:org:hardis:delete",
|
|
5254
|
+
"data:org:delete:hardis",
|
|
5255
|
+
"hardis:data:delete:org",
|
|
5256
|
+
"data:hardis:delete:org",
|
|
5257
|
+
"data:delete:hardis:org",
|
|
5258
|
+
"data:delete:org:hardis",
|
|
5259
|
+
"hardis:org:delete:data",
|
|
5260
|
+
"org:hardis:delete:data",
|
|
5261
|
+
"org:delete:hardis:data",
|
|
5262
|
+
"org:delete:data:hardis",
|
|
5263
|
+
"hardis:delete:org:data",
|
|
5264
|
+
"delete:hardis:org:data",
|
|
5265
|
+
"delete:org:hardis:data",
|
|
5266
|
+
"delete:org:data:hardis",
|
|
5267
|
+
"hardis:delete:data:org",
|
|
5268
|
+
"delete:hardis:data:org",
|
|
5269
|
+
"delete:data:hardis:org",
|
|
5270
|
+
"delete:data:org:hardis"
|
|
5271
|
+
]
|
|
5272
|
+
},
|
|
5273
|
+
"hardis:org:data:export": {
|
|
5274
|
+
"aliases": [],
|
|
5275
|
+
"args": {},
|
|
5276
|
+
"description": "\n## Command Behavior\n\n**Exports data from a Salesforce org using an SFDMU (Salesforce Data Migration Utility) project.**\n\nThis command facilitates the extraction of data from your Salesforce environments based on configurations defined in an SFDMU workspace. It's a powerful tool for various data-related tasks, including:\n\n- **Data Backup:** Creating snapshots of your Salesforce data.\n- **Data Migration:** Extracting data for transfer to another Salesforce org or external system.\n- **Reporting and Analysis:** Exporting specific datasets for detailed analysis outside of Salesforce.\n- **Data Seeding:** Preparing data for import into other environments.\n\nKey functionalities:\n\n- **SFDMU Workspace Integration:** Leverages an existing SFDMU workspace (defined by an `export.json` file) to determine which objects and records to export, along with any filtering or transformation rules.\n- **Interactive Workspace Selection:** If the SFDMU workspace path is not provided via the `--path` flag, it interactively prompts the user to select one.\n- **Org Selection:** Ensures that a target Salesforce org is selected (either via the `--target-org` flag or through an interactive prompt) to specify the source of the data export.\n\nSee this article for a practical example:\n\n[](https://nicolas.vuillamy.fr/how-to-detect-bad-words-in-salesforce-records-using-sfdx-data-loader-and-sfdx-hardis-171db40a9bac)\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation relies heavily on the SFDMU plugin:\n\n- **SFDMU Integration:** It acts as a wrapper around the `sfdmu` plugin, which performs the actual data export operations. The command provides an assisted interface for SFDMU execution.\n- **`exportData` Utility:** The core logic for executing the SFDMU export process is encapsulated within the `exportData` utility function, which takes the SFDMU workspace path and the source username as arguments.\n- **Interactive Prompts:** Uses `selectDataWorkspace` to allow the user to choose an SFDMU project and `promptOrgUsernameDefault` for selecting the source Salesforce org when not running in a CI environment.\n- **Environment Awareness:** Checks the `isCI` flag to determine whether to run in an interactive mode (prompting for user input) or a non-interactive mode (relying solely on command-line flags).\n- **Required Plugin:** It explicitly lists `sfdmu` as a required plugin, ensuring that the necessary dependency is in place before execution.\n</details>\n",
|
|
5277
|
+
"examples": [
|
|
5278
|
+
"$ sf hardis:org:data:export",
|
|
5279
|
+
"$ sf hardis:org:data:export --project-name MyDataProject --target-org my-org@example.com",
|
|
5280
|
+
"$ sf hardis:org:data:export --path ./scripts/data/MyDataProject --no-prompt --target-org my-org@example.com"
|
|
5281
|
+
],
|
|
5282
|
+
"flags": {
|
|
5283
|
+
"json": {
|
|
5284
|
+
"description": "Format output as json.",
|
|
5285
|
+
"helpGroup": "GLOBAL",
|
|
5286
|
+
"name": "json",
|
|
5287
|
+
"allowNo": false,
|
|
5288
|
+
"type": "boolean"
|
|
5289
|
+
},
|
|
5290
|
+
"flags-dir": {
|
|
5291
|
+
"helpGroup": "GLOBAL",
|
|
5292
|
+
"name": "flags-dir",
|
|
5293
|
+
"summary": "Import flag values from a directory.",
|
|
5294
|
+
"hasDynamicHelp": false,
|
|
5295
|
+
"multiple": false,
|
|
5296
|
+
"type": "option"
|
|
5297
|
+
},
|
|
5298
|
+
"project-name": {
|
|
5299
|
+
"char": "n",
|
|
5300
|
+
"description": "Name of the sfdmu project to use (if not defined, you will be prompted to select one)",
|
|
5301
|
+
"name": "project-name",
|
|
5302
|
+
"hasDynamicHelp": false,
|
|
5303
|
+
"multiple": false,
|
|
5304
|
+
"type": "option"
|
|
5305
|
+
},
|
|
5306
|
+
"path": {
|
|
5307
|
+
"char": "p",
|
|
5308
|
+
"description": "Path to the sfdmu workspace folder",
|
|
5309
|
+
"name": "path",
|
|
5310
|
+
"hasDynamicHelp": false,
|
|
5311
|
+
"multiple": false,
|
|
5312
|
+
"type": "option"
|
|
5313
|
+
},
|
|
5314
|
+
"no-prompt": {
|
|
5315
|
+
"char": "r",
|
|
5316
|
+
"description": "Do not prompt for Org, use default org",
|
|
5317
|
+
"name": "no-prompt",
|
|
5318
|
+
"allowNo": false,
|
|
5319
|
+
"type": "boolean"
|
|
5320
|
+
},
|
|
5321
|
+
"debug": {
|
|
5322
|
+
"char": "d",
|
|
5323
|
+
"description": "Activate debug mode (more logs)",
|
|
5324
|
+
"name": "debug",
|
|
5325
|
+
"allowNo": false,
|
|
5326
|
+
"type": "boolean"
|
|
5327
|
+
},
|
|
5328
|
+
"websocket": {
|
|
5329
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
5330
|
+
"name": "websocket",
|
|
5331
|
+
"hasDynamicHelp": false,
|
|
5332
|
+
"multiple": false,
|
|
5333
|
+
"type": "option"
|
|
5334
|
+
},
|
|
5335
|
+
"skipauth": {
|
|
5336
|
+
"description": "Skip authentication check when a default username is required",
|
|
5337
|
+
"name": "skipauth",
|
|
5338
|
+
"allowNo": false,
|
|
5339
|
+
"type": "boolean"
|
|
5340
|
+
},
|
|
5341
|
+
"target-org": {
|
|
5342
|
+
"aliases": [
|
|
5343
|
+
"targetusername",
|
|
5344
|
+
"u"
|
|
5345
|
+
],
|
|
5346
|
+
"char": "o",
|
|
5347
|
+
"deprecateAliases": true,
|
|
5348
|
+
"name": "target-org",
|
|
5349
|
+
"noCacheDefault": true,
|
|
5350
|
+
"required": true,
|
|
5351
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5352
|
+
"hasDynamicHelp": true,
|
|
5353
|
+
"multiple": false,
|
|
5354
|
+
"type": "option"
|
|
5355
|
+
}
|
|
5356
|
+
},
|
|
5357
|
+
"hasDynamicHelp": true,
|
|
5358
|
+
"hiddenAliases": [],
|
|
5359
|
+
"id": "hardis:org:data:export",
|
|
5360
|
+
"pluginAlias": "sfdx-hardis",
|
|
5361
|
+
"pluginName": "sfdx-hardis",
|
|
5362
|
+
"pluginType": "core",
|
|
5363
|
+
"strict": true,
|
|
5364
|
+
"enableJsonFlag": true,
|
|
5365
|
+
"title": "Export data",
|
|
5366
|
+
"requiresProject": false,
|
|
5367
|
+
"requiresSfdxPlugins": [
|
|
5368
|
+
"sfdmu"
|
|
5369
|
+
],
|
|
5370
|
+
"isESM": true,
|
|
5371
|
+
"relativePath": [
|
|
5372
|
+
"lib",
|
|
5373
|
+
"commands",
|
|
5374
|
+
"hardis",
|
|
5375
|
+
"org",
|
|
5376
|
+
"data",
|
|
5377
|
+
"export.js"
|
|
5378
|
+
],
|
|
5379
|
+
"aliasPermutations": [],
|
|
5380
|
+
"permutations": [
|
|
5381
|
+
"hardis:org:data:export",
|
|
5382
|
+
"org:hardis:data:export",
|
|
5383
|
+
"org:data:hardis:export",
|
|
5384
|
+
"org:data:export:hardis",
|
|
5385
|
+
"hardis:data:org:export",
|
|
5386
|
+
"data:hardis:org:export",
|
|
5387
|
+
"data:org:hardis:export",
|
|
5388
|
+
"data:org:export:hardis",
|
|
5389
|
+
"hardis:data:export:org",
|
|
5390
|
+
"data:hardis:export:org",
|
|
5391
|
+
"data:export:hardis:org",
|
|
5392
|
+
"data:export:org:hardis",
|
|
5393
|
+
"hardis:org:export:data",
|
|
5394
|
+
"org:hardis:export:data",
|
|
5395
|
+
"org:export:hardis:data",
|
|
5396
|
+
"org:export:data:hardis",
|
|
5397
|
+
"hardis:export:org:data",
|
|
5398
|
+
"export:hardis:org:data",
|
|
5399
|
+
"export:org:hardis:data",
|
|
5400
|
+
"export:org:data:hardis",
|
|
5401
|
+
"hardis:export:data:org",
|
|
5402
|
+
"export:hardis:data:org",
|
|
5403
|
+
"export:data:hardis:org",
|
|
5404
|
+
"export:data:org:hardis"
|
|
5405
|
+
]
|
|
5406
|
+
},
|
|
5407
|
+
"hardis:org:data:import": {
|
|
5408
|
+
"aliases": [],
|
|
5409
|
+
"args": {},
|
|
5410
|
+
"description": "Import/Load data in an org using a [SFDX Data Loader](https://help.sfdmu.com/) Project\n\nIf you need to run this command in a production org, you need to either:\n\n- Define **sfdmuCanModify** in your .sfdx-hardis.yml config file. (Example: `sfdmuCanModify: prod-instance.my.salesforce.com`)\n- Define an environment variable SFDMU_CAN_MODIFY. (Example: `SFDMU_CAN_MODIFY=prod-instance.my.salesforce.com`)\n\nSee article:\n\n[](https://nicolas.vuillamy.fr/how-to-detect-bad-words-in-salesforce-records-using-sfdx-data-loader-and-sfdx-hardis-171db40a9bac)\n",
|
|
5411
|
+
"examples": [
|
|
5412
|
+
"$ sf hardis:org:data:import",
|
|
5413
|
+
"$ sf hardis:org:data:import --project-name MyDataProject --target-org my-org@example.com",
|
|
5414
|
+
"$ sf hardis:org:data:import --path ./scripts/data/MyDataProject --no-prompt --target-org my-org@example.com",
|
|
5415
|
+
"$ SFDMU_CAN_MODIFY=prod-instance.my.salesforce.com sf hardis:org:data:import --project-name MyDataProject --target-org prod@example.com"
|
|
5416
|
+
],
|
|
5417
|
+
"flags": {
|
|
5418
|
+
"json": {
|
|
5419
|
+
"description": "Format output as json.",
|
|
5420
|
+
"helpGroup": "GLOBAL",
|
|
5421
|
+
"name": "json",
|
|
5422
|
+
"allowNo": false,
|
|
5423
|
+
"type": "boolean"
|
|
5424
|
+
},
|
|
5425
|
+
"flags-dir": {
|
|
5426
|
+
"helpGroup": "GLOBAL",
|
|
5427
|
+
"name": "flags-dir",
|
|
5428
|
+
"summary": "Import flag values from a directory.",
|
|
5429
|
+
"hasDynamicHelp": false,
|
|
5430
|
+
"multiple": false,
|
|
5431
|
+
"type": "option"
|
|
5432
|
+
},
|
|
5433
|
+
"project-name": {
|
|
5434
|
+
"char": "n",
|
|
5435
|
+
"description": "Name of the sfdmu project to use (if not defined, you will be prompted to select one)",
|
|
5436
|
+
"name": "project-name",
|
|
5437
|
+
"hasDynamicHelp": false,
|
|
5438
|
+
"multiple": false,
|
|
5439
|
+
"type": "option"
|
|
5440
|
+
},
|
|
5441
|
+
"path": {
|
|
5442
|
+
"char": "p",
|
|
5443
|
+
"description": "Path to the sfdmu workspace folder",
|
|
5444
|
+
"name": "path",
|
|
5445
|
+
"hasDynamicHelp": false,
|
|
5446
|
+
"multiple": false,
|
|
5447
|
+
"type": "option"
|
|
5448
|
+
},
|
|
5449
|
+
"no-prompt": {
|
|
5450
|
+
"char": "r",
|
|
5451
|
+
"description": "Do not prompt for Org, use default org",
|
|
5452
|
+
"name": "no-prompt",
|
|
5453
|
+
"allowNo": false,
|
|
5454
|
+
"type": "boolean"
|
|
5455
|
+
},
|
|
5456
|
+
"debug": {
|
|
5457
|
+
"char": "d",
|
|
5458
|
+
"description": "Activate debug mode (more logs)",
|
|
5459
|
+
"name": "debug",
|
|
5460
|
+
"allowNo": false,
|
|
5461
|
+
"type": "boolean"
|
|
5462
|
+
},
|
|
5463
|
+
"websocket": {
|
|
5464
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
5465
|
+
"name": "websocket",
|
|
5466
|
+
"hasDynamicHelp": false,
|
|
5467
|
+
"multiple": false,
|
|
5468
|
+
"type": "option"
|
|
5469
|
+
},
|
|
5470
|
+
"skipauth": {
|
|
5471
|
+
"description": "Skip authentication check when a default username is required",
|
|
5472
|
+
"name": "skipauth",
|
|
5473
|
+
"allowNo": false,
|
|
5474
|
+
"type": "boolean"
|
|
5475
|
+
},
|
|
5476
|
+
"target-org": {
|
|
5477
|
+
"aliases": [
|
|
5478
|
+
"targetusername",
|
|
5479
|
+
"u"
|
|
5480
|
+
],
|
|
5481
|
+
"char": "o",
|
|
5482
|
+
"deprecateAliases": true,
|
|
5483
|
+
"name": "target-org",
|
|
5484
|
+
"noCacheDefault": true,
|
|
5485
|
+
"required": true,
|
|
5486
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5487
|
+
"hasDynamicHelp": true,
|
|
5488
|
+
"multiple": false,
|
|
5489
|
+
"type": "option"
|
|
5490
|
+
}
|
|
5491
|
+
},
|
|
5492
|
+
"hasDynamicHelp": true,
|
|
5493
|
+
"hiddenAliases": [],
|
|
5494
|
+
"id": "hardis:org:data:import",
|
|
5226
5495
|
"pluginAlias": "sfdx-hardis",
|
|
5227
5496
|
"pluginName": "sfdx-hardis",
|
|
5228
5497
|
"pluginType": "core",
|
|
5229
5498
|
"strict": true,
|
|
5230
5499
|
"enableJsonFlag": true,
|
|
5231
|
-
"title": "
|
|
5500
|
+
"title": "Import data",
|
|
5232
5501
|
"requiresProject": false,
|
|
5233
5502
|
"requiresSfdxPlugins": [
|
|
5234
5503
|
"sfdmu"
|
|
@@ -5240,44 +5509,42 @@
|
|
|
5240
5509
|
"hardis",
|
|
5241
5510
|
"org",
|
|
5242
5511
|
"data",
|
|
5243
|
-
"
|
|
5512
|
+
"import.js"
|
|
5244
5513
|
],
|
|
5245
5514
|
"aliasPermutations": [],
|
|
5246
5515
|
"permutations": [
|
|
5247
|
-
"hardis:org:data:
|
|
5248
|
-
"org:hardis:data:
|
|
5249
|
-
"org:data:hardis:
|
|
5250
|
-
"org:data:
|
|
5251
|
-
"hardis:data:org:
|
|
5252
|
-
"data:hardis:org:
|
|
5253
|
-
"data:org:hardis:
|
|
5254
|
-
"data:org:
|
|
5255
|
-
"hardis:data:
|
|
5256
|
-
"data:hardis:
|
|
5257
|
-
"data:
|
|
5258
|
-
"data:
|
|
5259
|
-
"hardis:org:
|
|
5260
|
-
"org:hardis:
|
|
5261
|
-
"org:
|
|
5262
|
-
"org:
|
|
5263
|
-
"hardis:
|
|
5264
|
-
"
|
|
5265
|
-
"
|
|
5266
|
-
"
|
|
5267
|
-
"hardis:
|
|
5268
|
-
"
|
|
5269
|
-
"
|
|
5270
|
-
"
|
|
5516
|
+
"hardis:org:data:import",
|
|
5517
|
+
"org:hardis:data:import",
|
|
5518
|
+
"org:data:hardis:import",
|
|
5519
|
+
"org:data:import:hardis",
|
|
5520
|
+
"hardis:data:org:import",
|
|
5521
|
+
"data:hardis:org:import",
|
|
5522
|
+
"data:org:hardis:import",
|
|
5523
|
+
"data:org:import:hardis",
|
|
5524
|
+
"hardis:data:import:org",
|
|
5525
|
+
"data:hardis:import:org",
|
|
5526
|
+
"data:import:hardis:org",
|
|
5527
|
+
"data:import:org:hardis",
|
|
5528
|
+
"hardis:org:import:data",
|
|
5529
|
+
"org:hardis:import:data",
|
|
5530
|
+
"org:import:hardis:data",
|
|
5531
|
+
"org:import:data:hardis",
|
|
5532
|
+
"hardis:import:org:data",
|
|
5533
|
+
"import:hardis:org:data",
|
|
5534
|
+
"import:org:hardis:data",
|
|
5535
|
+
"import:org:data:hardis",
|
|
5536
|
+
"hardis:import:data:org",
|
|
5537
|
+
"import:hardis:data:org",
|
|
5538
|
+
"import:data:hardis:org",
|
|
5539
|
+
"import:data:org:hardis"
|
|
5271
5540
|
]
|
|
5272
5541
|
},
|
|
5273
|
-
"hardis:org:
|
|
5542
|
+
"hardis:org:files:export": {
|
|
5274
5543
|
"aliases": [],
|
|
5275
5544
|
"args": {},
|
|
5276
|
-
"description": "\n## Command Behavior\n\n**Exports
|
|
5545
|
+
"description": "\n## Command Behavior\n\n**Exports file attachments (ContentVersion, Attachment) from a Salesforce org based on a predefined configuration.**\n\nThis command enables the mass download of files associated with Salesforce records, providing a robust solution for backing up files, migrating them to other systems, or integrating them with external document management solutions.\n\nKey functionalities:\n\n- **Configuration-Driven Export:** Relies on an `export.json` file within a designated file export project to define the export criteria, including the SOQL query for parent records, file types to export, output naming conventions, and file size filtering.\n- **File Size Filtering:** Supports minimum file size filtering via the `fileSizeMin` configuration parameter (in KB). Files smaller than the specified size will be skipped during export.\n- **File Validation:** After downloading each file, validates the integrity by:\n - **Checksum Validation:** For ContentVersion files, compares MD5 checksum with Salesforce's stored checksum\n - **Size Validation:** For both ContentVersion and Attachment files, verifies actual file size matches expected size\n - **Status Tracking:** Files are categorized with specific statuses: `success` (valid files), `failed` (download errors), `skipped` (filtered files), `invalid` (downloaded but failed validation)\n - All validation results are logged in the CSV export log for audit purposes\n- **Resume/Restart Capability:** \n - **Resume Mode:** When `--resume` flag is used (default in CI environments), checks existing downloaded files for validity. Valid files are skipped, invalid files are re-downloaded.\n - **Restart Mode:** When resume is disabled, clears the output folder and starts a fresh export.\n - **Interactive Mode:** When existing files are found and `--resume` is not explicitly specified (non-CI environments), prompts the user to choose between resume or restart.\n- **Interactive Project Selection:** If the file export project path is not provided via the `--path` flag, it interactively prompts the user to select one.\n- **Configurable Export Options:** Allows overriding default export settings such as `chunksize` (number of records processed in a batch), `polltimeout` (timeout for Bulk API calls), and `startchunknumber` (to resume a failed export).\n- **Support for ContentVersion and Attachment:** Handles both modern Salesforce Files (ContentVersion) and older Attachments.\n\nSee this article for a practical example:\n\n[](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **FilesExporter Class:** The core logic is encapsulated within the `FilesExporter` class, which orchestrates the entire export process.\n- **SOQL Queries (Bulk API):** It uses Salesforce Bulk API queries to efficiently retrieve large volumes of parent record IDs and file metadata, including checksums and file sizes.\n- **File Download:** Downloads the actual file content from Salesforce.\n- **File Validation:** After each successful download, validates file integrity by comparing checksums (ContentVersion) and file sizes (both ContentVersion and Attachment) against Salesforce metadata.\n- **Resume Logic:** In resume mode, checks for existing files before downloading, validates their integrity, and only re-downloads invalid or missing files. This enables efficient recovery from interrupted exports.\n- **File System Operations:** Writes the downloaded files to the local file system, organizing them into folders based on the configured naming conventions.\n- **Configuration Loading:** Reads the `export.json` file to get the export configuration. It also allows for interactive overriding of these settings.\n- **Interactive Prompts:** Uses `selectFilesWorkspace` to allow the user to choose a file export project, `promptFilesExportConfiguration` for customizing export options, and prompts for resume/restart choice when existing files are found.\n- **Error Handling:** Includes mechanisms to handle potential errors during the export process, such as network issues, API limits, and file validation failures. Each file is assigned a specific status (`success`, `failed`, `skipped`, `invalid`) for comprehensive tracking and troubleshooting.\n</details>\n",
|
|
5277
5546
|
"examples": [
|
|
5278
|
-
"$ sf hardis:org:
|
|
5279
|
-
"$ sf hardis:org:data:export --project-name MyDataProject --target-org my-org@example.com",
|
|
5280
|
-
"$ sf hardis:org:data:export --path ./scripts/data/MyDataProject --no-prompt --target-org my-org@example.com"
|
|
5547
|
+
"$ sf hardis:org:files:export"
|
|
5281
5548
|
],
|
|
5282
5549
|
"flags": {
|
|
5283
5550
|
"json": {
|
|
@@ -5295,26 +5562,45 @@
|
|
|
5295
5562
|
"multiple": false,
|
|
5296
5563
|
"type": "option"
|
|
5297
5564
|
},
|
|
5298
|
-
"
|
|
5299
|
-
"char": "
|
|
5300
|
-
"description": "
|
|
5301
|
-
"name": "
|
|
5565
|
+
"path": {
|
|
5566
|
+
"char": "p",
|
|
5567
|
+
"description": "Path to the file export project",
|
|
5568
|
+
"name": "path",
|
|
5302
5569
|
"hasDynamicHelp": false,
|
|
5303
5570
|
"multiple": false,
|
|
5304
5571
|
"type": "option"
|
|
5305
5572
|
},
|
|
5306
|
-
"
|
|
5307
|
-
"char": "
|
|
5308
|
-
"description": "
|
|
5309
|
-
"name": "
|
|
5573
|
+
"chunksize": {
|
|
5574
|
+
"char": "c",
|
|
5575
|
+
"description": "Number of records to add in a chunk before it is processed",
|
|
5576
|
+
"name": "chunksize",
|
|
5577
|
+
"default": 1000,
|
|
5310
5578
|
"hasDynamicHelp": false,
|
|
5311
5579
|
"multiple": false,
|
|
5312
5580
|
"type": "option"
|
|
5313
5581
|
},
|
|
5314
|
-
"
|
|
5582
|
+
"polltimeout": {
|
|
5583
|
+
"char": "t",
|
|
5584
|
+
"description": "Timeout in MS for Bulk API calls",
|
|
5585
|
+
"name": "polltimeout",
|
|
5586
|
+
"default": 300000,
|
|
5587
|
+
"hasDynamicHelp": false,
|
|
5588
|
+
"multiple": false,
|
|
5589
|
+
"type": "option"
|
|
5590
|
+
},
|
|
5591
|
+
"startchunknumber": {
|
|
5592
|
+
"char": "s",
|
|
5593
|
+
"description": "Chunk number to start from",
|
|
5594
|
+
"name": "startchunknumber",
|
|
5595
|
+
"default": 0,
|
|
5596
|
+
"hasDynamicHelp": false,
|
|
5597
|
+
"multiple": false,
|
|
5598
|
+
"type": "option"
|
|
5599
|
+
},
|
|
5600
|
+
"resume": {
|
|
5315
5601
|
"char": "r",
|
|
5316
|
-
"description": "
|
|
5317
|
-
"name": "
|
|
5602
|
+
"description": "Resume previous export by checking existing files (default in CI)",
|
|
5603
|
+
"name": "resume",
|
|
5318
5604
|
"allowNo": false,
|
|
5319
5605
|
"type": "boolean"
|
|
5320
5606
|
},
|
|
@@ -5356,63 +5642,57 @@
|
|
|
5356
5642
|
},
|
|
5357
5643
|
"hasDynamicHelp": true,
|
|
5358
5644
|
"hiddenAliases": [],
|
|
5359
|
-
"id": "hardis:org:
|
|
5645
|
+
"id": "hardis:org:files:export",
|
|
5360
5646
|
"pluginAlias": "sfdx-hardis",
|
|
5361
5647
|
"pluginName": "sfdx-hardis",
|
|
5362
5648
|
"pluginType": "core",
|
|
5363
5649
|
"strict": true,
|
|
5364
5650
|
"enableJsonFlag": true,
|
|
5365
|
-
"title": "Export
|
|
5651
|
+
"title": "Export files",
|
|
5366
5652
|
"requiresProject": false,
|
|
5367
|
-
"requiresSfdxPlugins": [
|
|
5368
|
-
"sfdmu"
|
|
5369
|
-
],
|
|
5370
5653
|
"isESM": true,
|
|
5371
5654
|
"relativePath": [
|
|
5372
5655
|
"lib",
|
|
5373
5656
|
"commands",
|
|
5374
5657
|
"hardis",
|
|
5375
5658
|
"org",
|
|
5376
|
-
"
|
|
5659
|
+
"files",
|
|
5377
5660
|
"export.js"
|
|
5378
5661
|
],
|
|
5379
5662
|
"aliasPermutations": [],
|
|
5380
5663
|
"permutations": [
|
|
5381
|
-
"hardis:org:
|
|
5382
|
-
"org:hardis:
|
|
5383
|
-
"org:
|
|
5384
|
-
"org:
|
|
5385
|
-
"hardis:
|
|
5386
|
-
"
|
|
5387
|
-
"
|
|
5388
|
-
"
|
|
5389
|
-
"hardis:
|
|
5390
|
-
"
|
|
5391
|
-
"
|
|
5392
|
-
"
|
|
5393
|
-
"hardis:org:export:
|
|
5394
|
-
"org:hardis:export:
|
|
5395
|
-
"org:export:hardis:
|
|
5396
|
-
"org:export:
|
|
5397
|
-
"hardis:export:org:
|
|
5398
|
-
"export:hardis:org:
|
|
5399
|
-
"export:org:hardis:
|
|
5400
|
-
"export:org:
|
|
5401
|
-
"hardis:export:
|
|
5402
|
-
"export:hardis:
|
|
5403
|
-
"export:
|
|
5404
|
-
"export:
|
|
5664
|
+
"hardis:org:files:export",
|
|
5665
|
+
"org:hardis:files:export",
|
|
5666
|
+
"org:files:hardis:export",
|
|
5667
|
+
"org:files:export:hardis",
|
|
5668
|
+
"hardis:files:org:export",
|
|
5669
|
+
"files:hardis:org:export",
|
|
5670
|
+
"files:org:hardis:export",
|
|
5671
|
+
"files:org:export:hardis",
|
|
5672
|
+
"hardis:files:export:org",
|
|
5673
|
+
"files:hardis:export:org",
|
|
5674
|
+
"files:export:hardis:org",
|
|
5675
|
+
"files:export:org:hardis",
|
|
5676
|
+
"hardis:org:export:files",
|
|
5677
|
+
"org:hardis:export:files",
|
|
5678
|
+
"org:export:hardis:files",
|
|
5679
|
+
"org:export:files:hardis",
|
|
5680
|
+
"hardis:export:org:files",
|
|
5681
|
+
"export:hardis:org:files",
|
|
5682
|
+
"export:org:hardis:files",
|
|
5683
|
+
"export:org:files:hardis",
|
|
5684
|
+
"hardis:export:files:org",
|
|
5685
|
+
"export:hardis:files:org",
|
|
5686
|
+
"export:files:hardis:org",
|
|
5687
|
+
"export:files:org:hardis"
|
|
5405
5688
|
]
|
|
5406
5689
|
},
|
|
5407
|
-
"hardis:org:
|
|
5690
|
+
"hardis:org:files:import": {
|
|
5408
5691
|
"aliases": [],
|
|
5409
5692
|
"args": {},
|
|
5410
|
-
"description": "
|
|
5693
|
+
"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",
|
|
5411
5694
|
"examples": [
|
|
5412
|
-
"$ sf hardis:org:
|
|
5413
|
-
"$ sf hardis:org:data:import --project-name MyDataProject --target-org my-org@example.com",
|
|
5414
|
-
"$ sf hardis:org:data:import --path ./scripts/data/MyDataProject --no-prompt --target-org my-org@example.com",
|
|
5415
|
-
"$ SFDMU_CAN_MODIFY=prod-instance.my.salesforce.com sf hardis:org:data:import --project-name MyDataProject --target-org prod@example.com"
|
|
5695
|
+
"$ sf hardis:org:files:import"
|
|
5416
5696
|
],
|
|
5417
5697
|
"flags": {
|
|
5418
5698
|
"json": {
|
|
@@ -5430,26 +5710,18 @@
|
|
|
5430
5710
|
"multiple": false,
|
|
5431
5711
|
"type": "option"
|
|
5432
5712
|
},
|
|
5433
|
-
"project-name": {
|
|
5434
|
-
"char": "n",
|
|
5435
|
-
"description": "Name of the sfdmu project to use (if not defined, you will be prompted to select one)",
|
|
5436
|
-
"name": "project-name",
|
|
5437
|
-
"hasDynamicHelp": false,
|
|
5438
|
-
"multiple": false,
|
|
5439
|
-
"type": "option"
|
|
5440
|
-
},
|
|
5441
5713
|
"path": {
|
|
5442
5714
|
"char": "p",
|
|
5443
|
-
"description": "Path to the
|
|
5715
|
+
"description": "Path to the file export project",
|
|
5444
5716
|
"name": "path",
|
|
5445
5717
|
"hasDynamicHelp": false,
|
|
5446
5718
|
"multiple": false,
|
|
5447
5719
|
"type": "option"
|
|
5448
5720
|
},
|
|
5449
|
-
"
|
|
5450
|
-
"char": "
|
|
5451
|
-
"description": "
|
|
5452
|
-
"name": "
|
|
5721
|
+
"overwrite": {
|
|
5722
|
+
"char": "f",
|
|
5723
|
+
"description": "Override existing files (doubles the number of API calls)",
|
|
5724
|
+
"name": "overwrite",
|
|
5453
5725
|
"allowNo": false,
|
|
5454
5726
|
"type": "boolean"
|
|
5455
5727
|
},
|
|
@@ -5491,52 +5763,49 @@
|
|
|
5491
5763
|
},
|
|
5492
5764
|
"hasDynamicHelp": true,
|
|
5493
5765
|
"hiddenAliases": [],
|
|
5494
|
-
"id": "hardis:org:
|
|
5766
|
+
"id": "hardis:org:files:import",
|
|
5495
5767
|
"pluginAlias": "sfdx-hardis",
|
|
5496
5768
|
"pluginName": "sfdx-hardis",
|
|
5497
5769
|
"pluginType": "core",
|
|
5498
5770
|
"strict": true,
|
|
5499
5771
|
"enableJsonFlag": true,
|
|
5500
|
-
"title": "Import
|
|
5772
|
+
"title": "Import files",
|
|
5501
5773
|
"requiresProject": false,
|
|
5502
|
-
"requiresSfdxPlugins": [
|
|
5503
|
-
"sfdmu"
|
|
5504
|
-
],
|
|
5505
5774
|
"isESM": true,
|
|
5506
5775
|
"relativePath": [
|
|
5507
5776
|
"lib",
|
|
5508
5777
|
"commands",
|
|
5509
5778
|
"hardis",
|
|
5510
5779
|
"org",
|
|
5511
|
-
"
|
|
5780
|
+
"files",
|
|
5512
5781
|
"import.js"
|
|
5513
5782
|
],
|
|
5514
5783
|
"aliasPermutations": [],
|
|
5515
5784
|
"permutations": [
|
|
5516
|
-
"hardis:org:
|
|
5517
|
-
"org:hardis:
|
|
5518
|
-
"org:
|
|
5519
|
-
"org:
|
|
5520
|
-
"hardis:
|
|
5521
|
-
"
|
|
5522
|
-
"
|
|
5523
|
-
"
|
|
5524
|
-
"hardis:
|
|
5525
|
-
"
|
|
5526
|
-
"
|
|
5527
|
-
"
|
|
5528
|
-
"hardis:org:import:
|
|
5529
|
-
"org:hardis:import:
|
|
5530
|
-
"org:import:hardis:
|
|
5531
|
-
"org:import:
|
|
5532
|
-
"hardis:import:org:
|
|
5533
|
-
"import:hardis:org:
|
|
5534
|
-
"import:org:hardis:
|
|
5535
|
-
"import:org:
|
|
5536
|
-
"hardis:import:
|
|
5537
|
-
"import:hardis:
|
|
5538
|
-
"import:
|
|
5539
|
-
"import:
|
|
5785
|
+
"hardis:org:files:import",
|
|
5786
|
+
"org:hardis:files:import",
|
|
5787
|
+
"org:files:hardis:import",
|
|
5788
|
+
"org:files:import:hardis",
|
|
5789
|
+
"hardis:files:org:import",
|
|
5790
|
+
"files:hardis:org:import",
|
|
5791
|
+
"files:org:hardis:import",
|
|
5792
|
+
"files:org:import:hardis",
|
|
5793
|
+
"hardis:files:import:org",
|
|
5794
|
+
"files:hardis:import:org",
|
|
5795
|
+
"files:import:hardis:org",
|
|
5796
|
+
"files:import:org:hardis",
|
|
5797
|
+
"hardis:org:import:files",
|
|
5798
|
+
"org:hardis:import:files",
|
|
5799
|
+
"org:import:hardis:files",
|
|
5800
|
+
"org:import:files:hardis",
|
|
5801
|
+
"hardis:import:org:files",
|
|
5802
|
+
"import:hardis:org:files",
|
|
5803
|
+
"import:org:hardis:files",
|
|
5804
|
+
"import:org:files:hardis",
|
|
5805
|
+
"hardis:import:files:org",
|
|
5806
|
+
"import:hardis:files:org",
|
|
5807
|
+
"import:files:hardis:org",
|
|
5808
|
+
"import:files:org:hardis"
|
|
5540
5809
|
]
|
|
5541
5810
|
},
|
|
5542
5811
|
"hardis:org:diagnose:audittrail": {
|
|
@@ -5948,257 +6217,8 @@
|
|
|
5948
6217
|
"char": "u",
|
|
5949
6218
|
"description": "Filter to have only used licenses",
|
|
5950
6219
|
"name": "usedonly",
|
|
5951
|
-
"allowNo": false,
|
|
5952
|
-
"type": "boolean"
|
|
5953
|
-
},
|
|
5954
|
-
"debug": {
|
|
5955
|
-
"char": "d",
|
|
5956
|
-
"description": "Activate debug mode (more logs)",
|
|
5957
|
-
"name": "debug",
|
|
5958
|
-
"allowNo": false,
|
|
5959
|
-
"type": "boolean"
|
|
5960
|
-
},
|
|
5961
|
-
"websocket": {
|
|
5962
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
5963
|
-
"name": "websocket",
|
|
5964
|
-
"hasDynamicHelp": false,
|
|
5965
|
-
"multiple": false,
|
|
5966
|
-
"type": "option"
|
|
5967
|
-
},
|
|
5968
|
-
"skipauth": {
|
|
5969
|
-
"description": "Skip authentication check when a default username is required",
|
|
5970
|
-
"name": "skipauth",
|
|
5971
|
-
"allowNo": false,
|
|
5972
|
-
"type": "boolean"
|
|
5973
|
-
},
|
|
5974
|
-
"target-org": {
|
|
5975
|
-
"aliases": [
|
|
5976
|
-
"targetusername",
|
|
5977
|
-
"u"
|
|
5978
|
-
],
|
|
5979
|
-
"char": "o",
|
|
5980
|
-
"deprecateAliases": true,
|
|
5981
|
-
"name": "target-org",
|
|
5982
|
-
"noCacheDefault": true,
|
|
5983
|
-
"required": true,
|
|
5984
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5985
|
-
"hasDynamicHelp": true,
|
|
5986
|
-
"multiple": false,
|
|
5987
|
-
"type": "option"
|
|
5988
|
-
}
|
|
5989
|
-
},
|
|
5990
|
-
"hasDynamicHelp": true,
|
|
5991
|
-
"hiddenAliases": [],
|
|
5992
|
-
"id": "hardis:org:diagnose:licenses",
|
|
5993
|
-
"pluginAlias": "sfdx-hardis",
|
|
5994
|
-
"pluginName": "sfdx-hardis",
|
|
5995
|
-
"pluginType": "core",
|
|
5996
|
-
"strict": true,
|
|
5997
|
-
"enableJsonFlag": true,
|
|
5998
|
-
"title": "List licenses subscribed and used in a Salesforce org",
|
|
5999
|
-
"requiresProject": false,
|
|
6000
|
-
"isESM": true,
|
|
6001
|
-
"relativePath": [
|
|
6002
|
-
"lib",
|
|
6003
|
-
"commands",
|
|
6004
|
-
"hardis",
|
|
6005
|
-
"org",
|
|
6006
|
-
"diagnose",
|
|
6007
|
-
"licenses.js"
|
|
6008
|
-
],
|
|
6009
|
-
"aliasPermutations": [],
|
|
6010
|
-
"permutations": [
|
|
6011
|
-
"hardis:org:diagnose:licenses",
|
|
6012
|
-
"org:hardis:diagnose:licenses",
|
|
6013
|
-
"org:diagnose:hardis:licenses",
|
|
6014
|
-
"org:diagnose:licenses:hardis",
|
|
6015
|
-
"hardis:diagnose:org:licenses",
|
|
6016
|
-
"diagnose:hardis:org:licenses",
|
|
6017
|
-
"diagnose:org:hardis:licenses",
|
|
6018
|
-
"diagnose:org:licenses:hardis",
|
|
6019
|
-
"hardis:diagnose:licenses:org",
|
|
6020
|
-
"diagnose:hardis:licenses:org",
|
|
6021
|
-
"diagnose:licenses:hardis:org",
|
|
6022
|
-
"diagnose:licenses:org:hardis",
|
|
6023
|
-
"hardis:org:licenses:diagnose",
|
|
6024
|
-
"org:hardis:licenses:diagnose",
|
|
6025
|
-
"org:licenses:hardis:diagnose",
|
|
6026
|
-
"org:licenses:diagnose:hardis",
|
|
6027
|
-
"hardis:licenses:org:diagnose",
|
|
6028
|
-
"licenses:hardis:org:diagnose",
|
|
6029
|
-
"licenses:org:hardis:diagnose",
|
|
6030
|
-
"licenses:org:diagnose:hardis",
|
|
6031
|
-
"hardis:licenses:diagnose:org",
|
|
6032
|
-
"licenses:hardis:diagnose:org",
|
|
6033
|
-
"licenses:diagnose:hardis:org",
|
|
6034
|
-
"licenses:diagnose:org:hardis"
|
|
6035
|
-
]
|
|
6036
|
-
},
|
|
6037
|
-
"hardis:org:diagnose:releaseupdates": {
|
|
6038
|
-
"aliases": [],
|
|
6039
|
-
"args": {},
|
|
6040
|
-
"description": "Export Release Updates into a CSV file with selected criteria, and highlight Release Updates that should be checked.\n\nBefore publishing **Breaking Changes** ❌, Salesforce announce them in the setup menu [**Release Updates**](https://help.salesforce.com/s/articleView?id=sf.release_updates.htm&type=5)\n\n⚠️ Some of them are very important, because if you don't make the related upgrades in time (ex: before Winter 25) , your production org can crash !\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-release-updates/) and can output Grafana, Slack and MsTeams Notifications.\n",
|
|
6041
|
-
"examples": [
|
|
6042
|
-
"$ sf hardis:org:diagnose:releaseupdates"
|
|
6043
|
-
],
|
|
6044
|
-
"flags": {
|
|
6045
|
-
"json": {
|
|
6046
|
-
"description": "Format output as json.",
|
|
6047
|
-
"helpGroup": "GLOBAL",
|
|
6048
|
-
"name": "json",
|
|
6049
|
-
"allowNo": false,
|
|
6050
|
-
"type": "boolean"
|
|
6051
|
-
},
|
|
6052
|
-
"flags-dir": {
|
|
6053
|
-
"helpGroup": "GLOBAL",
|
|
6054
|
-
"name": "flags-dir",
|
|
6055
|
-
"summary": "Import flag values from a directory.",
|
|
6056
|
-
"hasDynamicHelp": false,
|
|
6057
|
-
"multiple": false,
|
|
6058
|
-
"type": "option"
|
|
6059
|
-
},
|
|
6060
|
-
"outputfile": {
|
|
6061
|
-
"char": "f",
|
|
6062
|
-
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6063
|
-
"name": "outputfile",
|
|
6064
|
-
"hasDynamicHelp": false,
|
|
6065
|
-
"multiple": false,
|
|
6066
|
-
"type": "option"
|
|
6067
|
-
},
|
|
6068
|
-
"debug": {
|
|
6069
|
-
"char": "d",
|
|
6070
|
-
"description": "Activate debug mode (more logs)",
|
|
6071
|
-
"name": "debug",
|
|
6072
|
-
"allowNo": false,
|
|
6073
|
-
"type": "boolean"
|
|
6074
|
-
},
|
|
6075
|
-
"websocket": {
|
|
6076
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
6077
|
-
"name": "websocket",
|
|
6078
|
-
"hasDynamicHelp": false,
|
|
6079
|
-
"multiple": false,
|
|
6080
|
-
"type": "option"
|
|
6081
|
-
},
|
|
6082
|
-
"skipauth": {
|
|
6083
|
-
"description": "Skip authentication check when a default username is required",
|
|
6084
|
-
"name": "skipauth",
|
|
6085
|
-
"allowNo": false,
|
|
6086
|
-
"type": "boolean"
|
|
6087
|
-
},
|
|
6088
|
-
"target-org": {
|
|
6089
|
-
"aliases": [
|
|
6090
|
-
"targetusername",
|
|
6091
|
-
"u"
|
|
6092
|
-
],
|
|
6093
|
-
"char": "o",
|
|
6094
|
-
"deprecateAliases": true,
|
|
6095
|
-
"name": "target-org",
|
|
6096
|
-
"noCacheDefault": true,
|
|
6097
|
-
"required": true,
|
|
6098
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
6099
|
-
"hasDynamicHelp": true,
|
|
6100
|
-
"multiple": false,
|
|
6101
|
-
"type": "option"
|
|
6102
|
-
}
|
|
6103
|
-
},
|
|
6104
|
-
"hasDynamicHelp": true,
|
|
6105
|
-
"hiddenAliases": [],
|
|
6106
|
-
"id": "hardis:org:diagnose:releaseupdates",
|
|
6107
|
-
"pluginAlias": "sfdx-hardis",
|
|
6108
|
-
"pluginName": "sfdx-hardis",
|
|
6109
|
-
"pluginType": "core",
|
|
6110
|
-
"strict": true,
|
|
6111
|
-
"enableJsonFlag": true,
|
|
6112
|
-
"title": "Check Release Updates of an org",
|
|
6113
|
-
"requiresProject": false,
|
|
6114
|
-
"isESM": true,
|
|
6115
|
-
"relativePath": [
|
|
6116
|
-
"lib",
|
|
6117
|
-
"commands",
|
|
6118
|
-
"hardis",
|
|
6119
|
-
"org",
|
|
6120
|
-
"diagnose",
|
|
6121
|
-
"releaseupdates.js"
|
|
6122
|
-
],
|
|
6123
|
-
"aliasPermutations": [],
|
|
6124
|
-
"permutations": [
|
|
6125
|
-
"hardis:org:diagnose:releaseupdates",
|
|
6126
|
-
"org:hardis:diagnose:releaseupdates",
|
|
6127
|
-
"org:diagnose:hardis:releaseupdates",
|
|
6128
|
-
"org:diagnose:releaseupdates:hardis",
|
|
6129
|
-
"hardis:diagnose:org:releaseupdates",
|
|
6130
|
-
"diagnose:hardis:org:releaseupdates",
|
|
6131
|
-
"diagnose:org:hardis:releaseupdates",
|
|
6132
|
-
"diagnose:org:releaseupdates:hardis",
|
|
6133
|
-
"hardis:diagnose:releaseupdates:org",
|
|
6134
|
-
"diagnose:hardis:releaseupdates:org",
|
|
6135
|
-
"diagnose:releaseupdates:hardis:org",
|
|
6136
|
-
"diagnose:releaseupdates:org:hardis",
|
|
6137
|
-
"hardis:org:releaseupdates:diagnose",
|
|
6138
|
-
"org:hardis:releaseupdates:diagnose",
|
|
6139
|
-
"org:releaseupdates:hardis:diagnose",
|
|
6140
|
-
"org:releaseupdates:diagnose:hardis",
|
|
6141
|
-
"hardis:releaseupdates:org:diagnose",
|
|
6142
|
-
"releaseupdates:hardis:org:diagnose",
|
|
6143
|
-
"releaseupdates:org:hardis:diagnose",
|
|
6144
|
-
"releaseupdates:org:diagnose:hardis",
|
|
6145
|
-
"hardis:releaseupdates:diagnose:org",
|
|
6146
|
-
"releaseupdates:hardis:diagnose:org",
|
|
6147
|
-
"releaseupdates:diagnose:hardis:org",
|
|
6148
|
-
"releaseupdates:diagnose:org:hardis"
|
|
6149
|
-
]
|
|
6150
|
-
},
|
|
6151
|
-
"hardis:org:diagnose:storage-stats": {
|
|
6152
|
-
"aliases": [],
|
|
6153
|
-
"args": {},
|
|
6154
|
-
"description": "**Extracts and analyzes Data Storage usage for a Salesforce org, providing detailed per-object breakdowns with flexible grouping options.**\n\nThis command provides a comprehensive overview of your Salesforce data storage consumption. It's particularly useful for:\n\n- **Storage Management:** Understanding which SObjects consume the most storage and how usage has evolved over time.\n- **Cost Optimization:** Identifying storage-heavy objects that could be candidates for data archival or cleanup strategies.\n- **Capacity Planning:** Tracking storage trends to predict when additional capacity will be needed.\n- **Compliance & Governance:** Monitoring data growth patterns to ensure alignment with data retention policies.\n\nKey functionalities:\n\n- **Storage Limits Analysis:** Retrieves and displays org data storage limits, including total capacity, used storage, remaining storage, and percentage used. Detects and alerts on over-usage scenarios.\n- **SObject Discovery & Filtering:** Automatically discovers all SObjects in the org and filters them to focus on production/custom objects (excludes metadata types, platform-only objects, and cached empty objects).\n- **Interactive Selection:** Prompts the user to select which SObjects to analyze and choose breakdown fields (date fields, RecordType, custom fields, or relationship fields).\n- **Flexible Breakdown Field:** Supports grouping by any field including:\n - Date/DateTime fields (`CreatedDate`, `LastModifiedDate`, custom date fields)\n - RecordType (`RecordType.Name`)\n - Custom fields (`Status__c`, picklists, text fields)\n - Nested relationship fields (`SBQQ__Quote__r.RecordType.Name`)\n- **Date Granularity Options:** For date/datetime fields, choose between:\n - Year-based grouping (`CALENDAR_YEAR`)\n - Month-based grouping (`CALENDAR_MONTH`)\n - Day-based grouping (exact date)\n- **WHERE Clause Filtering:** Apply SOQL WHERE conditions to filter records before calculating storage (e.g., only active records, records from the last year).\n- **Storage Estimation:** Estimates storage usage for each object using an average record size heuristic (2 KB per record) and calculates the percentage of org quota consumed.\n- **Dual CSV Reports:** Generates two CSV files: a detailed breakdown by selected field and a totals-per-object summary, both suitable for spreadsheet analysis and reporting.\n- **Empty Objects Cache:** Maintains a per-user cache of objects detected with zero records to optimize subsequent runs by skipping empty tables.\n- **Progress Tracking:** Sends WebSocket progress messages for integration with external UIs and monitoring dashboards.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Limits Retrieval:** Calls `conn.limits()` to retrieve the `DataStorageMB` object containing `Max` and `Remaining` values. Handles negative `Remaining` values (over-usage scenarios) by calculating `overUsageMB` and adjusting display values.\n- **SObject Discovery:** Uses `conn.metadata.list([{ type: 'CustomObject' }])` to get custom objects and `conn.describeGlobal()` to get all SObjects. Filters by object capabilities (`layoutable`, `queryable`, `retrieveable`, `createable`, `updateable`, `deletable`) and excludes metadata types (`__mdt` suffix) and cached empty objects.\n- **User Interaction:** Uses `prompts` for interactive multi-select of SObjects, breakdown field selection, granularity choice (for date fields), and optional WHERE conditions. All objects are pre-selected by default for user convenience.\n- **Field Validation:** Recursively validates breakdown fields including nested relationships (e.g., `SBQQ__Quote__r.RecordType.Name`) by traversing the relationship chain and checking field existence on each related object. Automatically handles special cases like `RecordType` -> `RecordTypeId` and `__r` -> `__c` conversions.\n- **Dynamic Query Generation:** Builds SOQL queries based on field type and granularity:\n - For date fields with year granularity: `SELECT CALENDAR_YEAR(<Field>) breakdown, COUNT(Id) total FROM <SObject> [WHERE ...] GROUP BY CALENDAR_YEAR(<Field>) ORDER BY CALENDAR_YEAR(<Field>)`\n - For date fields with month granularity: `SELECT CALENDAR_YEAR(<Field>) year, CALENDAR_MONTH(<Field>) month, COUNT(Id) total FROM <SObject> [WHERE ...] GROUP BY CALENDAR_YEAR(<Field>), CALENDAR_MONTH(<Field>) ORDER BY CALENDAR_YEAR(<Field>), CALENDAR_MONTH(<Field>)`\n - For non-date fields: `SELECT <Field> breakdown, COUNT(Id) total FROM <SObject> [WHERE ...] GROUP BY <Field> ORDER BY <Field>`\n- **WHERE Clause Support:** Accepts user-provided WHERE conditions via flag (`--where`) or interactive prompt. Injects the condition into all SOQL queries for consistent filtering across all objects.\n- **Storage Calculation:** Applies a conservative average record size of 2 KB (2048 bytes) to estimate storage consumption. Calculates both MB usage and percentage of org quota for each object and breakdown value.\n- **Report Generation:** Uses `generateCsvFile` and `generateReportPath` helpers to create two CSV files in the reports directory:\n - Detailed breakdown: includes all statistics per breakdown value per object (e.g., by year, by month, by RecordType)\n - Totals summary: includes only aggregate totals per object\n - File naming includes breakdown field, granularity (for date fields), and `-filtered` suffix when WHERE clause is applied\n- **Caching Mechanism:** Writes a JSON cache file per authenticated username (sanitized) in the reports directory (`<username>_empty_tables_cache.json`) containing an array of empty object names. The cache is updated after each run with newly detected empty objects.\n- **Progress & UX:** Uses `WebSocketClient` to emit start/step/end progress messages for external monitoring. Outputs summary tables with `uxLogTable` and status messages with `uxLog`.\n- **Return Value:** Returns a JSON object containing `tableStorageInfos` (all rows), `tableStorageInfosTotals` (summary rows), `storageLimits` (org limits object), and `outputFiles` (paths to generated CSV/XLSX reports).\n</details>\n\n\n\n\n",
|
|
6155
|
-
"examples": [
|
|
6156
|
-
"$ sf hardis:org:diagnose:storage-stats",
|
|
6157
|
-
"$ sf hardis:org:diagnose:storage-stats --breakdown-field \"CreatedDate\"",
|
|
6158
|
-
"$ sf hardis:org:diagnose:storage-stats -b \"RecordType.Name\"",
|
|
6159
|
-
"$ sf hardis:org:diagnose:storage-stats --where \"CreatedDate = LAST_N_DAYS:365\"",
|
|
6160
|
-
"$ sf hardis:org:diagnose:storage-stats -w \"Status__c = 'Active'\"",
|
|
6161
|
-
"$ sf hardis:org:diagnose:storage-stats -b \"LastModifiedDate\" -w \"IsDeleted = false\""
|
|
6162
|
-
],
|
|
6163
|
-
"flags": {
|
|
6164
|
-
"json": {
|
|
6165
|
-
"description": "Format output as json.",
|
|
6166
|
-
"helpGroup": "GLOBAL",
|
|
6167
|
-
"name": "json",
|
|
6168
|
-
"allowNo": false,
|
|
6169
|
-
"type": "boolean"
|
|
6170
|
-
},
|
|
6171
|
-
"flags-dir": {
|
|
6172
|
-
"helpGroup": "GLOBAL",
|
|
6173
|
-
"name": "flags-dir",
|
|
6174
|
-
"summary": "Import flag values from a directory.",
|
|
6175
|
-
"hasDynamicHelp": false,
|
|
6176
|
-
"multiple": false,
|
|
6177
|
-
"type": "option"
|
|
6178
|
-
},
|
|
6179
|
-
"outputfile": {
|
|
6180
|
-
"char": "f",
|
|
6181
|
-
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6182
|
-
"name": "outputfile",
|
|
6183
|
-
"hasDynamicHelp": false,
|
|
6184
|
-
"multiple": false,
|
|
6185
|
-
"type": "option"
|
|
6186
|
-
},
|
|
6187
|
-
"breakdown-field": {
|
|
6188
|
-
"char": "b",
|
|
6189
|
-
"description": "Field to use for storage stats breakdown. Example: \"CreatedDate\", \"LastModifiedDate\", \"RecordType.Name\", or custom fields like \"Status__c\"",
|
|
6190
|
-
"name": "breakdown-field",
|
|
6191
|
-
"hasDynamicHelp": false,
|
|
6192
|
-
"multiple": false,
|
|
6193
|
-
"type": "option"
|
|
6194
|
-
},
|
|
6195
|
-
"where": {
|
|
6196
|
-
"char": "w",
|
|
6197
|
-
"description": "WHERE clause to filter records in the query (without the WHERE keyword). Example: \"CreatedDate = LAST_N_DAYS:365\" or \"Status__c = 'Active'\"",
|
|
6198
|
-
"name": "where",
|
|
6199
|
-
"hasDynamicHelp": false,
|
|
6200
|
-
"multiple": false,
|
|
6201
|
-
"type": "option"
|
|
6220
|
+
"allowNo": false,
|
|
6221
|
+
"type": "boolean"
|
|
6202
6222
|
},
|
|
6203
6223
|
"debug": {
|
|
6204
6224
|
"char": "d",
|
|
@@ -6238,14 +6258,14 @@
|
|
|
6238
6258
|
},
|
|
6239
6259
|
"hasDynamicHelp": true,
|
|
6240
6260
|
"hiddenAliases": [],
|
|
6241
|
-
"id": "hardis:org:diagnose:
|
|
6261
|
+
"id": "hardis:org:diagnose:licenses",
|
|
6242
6262
|
"pluginAlias": "sfdx-hardis",
|
|
6243
6263
|
"pluginName": "sfdx-hardis",
|
|
6244
6264
|
"pluginType": "core",
|
|
6245
6265
|
"strict": true,
|
|
6246
6266
|
"enableJsonFlag": true,
|
|
6247
|
-
"title": "
|
|
6248
|
-
"requiresProject":
|
|
6267
|
+
"title": "List licenses subscribed and used in a Salesforce org",
|
|
6268
|
+
"requiresProject": false,
|
|
6249
6269
|
"isESM": true,
|
|
6250
6270
|
"relativePath": [
|
|
6251
6271
|
"lib",
|
|
@@ -6253,42 +6273,42 @@
|
|
|
6253
6273
|
"hardis",
|
|
6254
6274
|
"org",
|
|
6255
6275
|
"diagnose",
|
|
6256
|
-
"
|
|
6276
|
+
"licenses.js"
|
|
6257
6277
|
],
|
|
6258
6278
|
"aliasPermutations": [],
|
|
6259
6279
|
"permutations": [
|
|
6260
|
-
"hardis:org:diagnose:
|
|
6261
|
-
"org:hardis:diagnose:
|
|
6262
|
-
"org:diagnose:hardis:
|
|
6263
|
-
"org:diagnose:
|
|
6264
|
-
"hardis:diagnose:org:
|
|
6265
|
-
"diagnose:hardis:org:
|
|
6266
|
-
"diagnose:org:hardis:
|
|
6267
|
-
"diagnose:org:
|
|
6268
|
-
"hardis:diagnose:
|
|
6269
|
-
"diagnose:hardis:
|
|
6270
|
-
"diagnose:
|
|
6271
|
-
"diagnose:
|
|
6272
|
-
"hardis:org:
|
|
6273
|
-
"org:hardis:
|
|
6274
|
-
"org:
|
|
6275
|
-
"org:
|
|
6276
|
-
"hardis:
|
|
6277
|
-
"
|
|
6278
|
-
"
|
|
6279
|
-
"
|
|
6280
|
-
"hardis:
|
|
6281
|
-
"
|
|
6282
|
-
"
|
|
6283
|
-
"
|
|
6280
|
+
"hardis:org:diagnose:licenses",
|
|
6281
|
+
"org:hardis:diagnose:licenses",
|
|
6282
|
+
"org:diagnose:hardis:licenses",
|
|
6283
|
+
"org:diagnose:licenses:hardis",
|
|
6284
|
+
"hardis:diagnose:org:licenses",
|
|
6285
|
+
"diagnose:hardis:org:licenses",
|
|
6286
|
+
"diagnose:org:hardis:licenses",
|
|
6287
|
+
"diagnose:org:licenses:hardis",
|
|
6288
|
+
"hardis:diagnose:licenses:org",
|
|
6289
|
+
"diagnose:hardis:licenses:org",
|
|
6290
|
+
"diagnose:licenses:hardis:org",
|
|
6291
|
+
"diagnose:licenses:org:hardis",
|
|
6292
|
+
"hardis:org:licenses:diagnose",
|
|
6293
|
+
"org:hardis:licenses:diagnose",
|
|
6294
|
+
"org:licenses:hardis:diagnose",
|
|
6295
|
+
"org:licenses:diagnose:hardis",
|
|
6296
|
+
"hardis:licenses:org:diagnose",
|
|
6297
|
+
"licenses:hardis:org:diagnose",
|
|
6298
|
+
"licenses:org:hardis:diagnose",
|
|
6299
|
+
"licenses:org:diagnose:hardis",
|
|
6300
|
+
"hardis:licenses:diagnose:org",
|
|
6301
|
+
"licenses:hardis:diagnose:org",
|
|
6302
|
+
"licenses:diagnose:hardis:org",
|
|
6303
|
+
"licenses:diagnose:org:hardis"
|
|
6284
6304
|
]
|
|
6285
6305
|
},
|
|
6286
|
-
"hardis:org:diagnose:
|
|
6306
|
+
"hardis:org:diagnose:releaseupdates": {
|
|
6287
6307
|
"aliases": [],
|
|
6288
6308
|
"args": {},
|
|
6289
|
-
"description": "
|
|
6309
|
+
"description": "Export Release Updates into a CSV file with selected criteria, and highlight Release Updates that should be checked.\n\nBefore publishing **Breaking Changes** ❌, Salesforce announce them in the setup menu [**Release Updates**](https://help.salesforce.com/s/articleView?id=sf.release_updates.htm&type=5)\n\n⚠️ Some of them are very important, because if you don't make the related upgrades in time (ex: before Winter 25) , your production org can crash !\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-release-updates/) and can output Grafana, Slack and MsTeams Notifications.\n",
|
|
6290
6310
|
"examples": [
|
|
6291
|
-
"$ sf hardis:org:diagnose:
|
|
6311
|
+
"$ sf hardis:org:diagnose:releaseupdates"
|
|
6292
6312
|
],
|
|
6293
6313
|
"flags": {
|
|
6294
6314
|
"json": {
|
|
@@ -6352,13 +6372,13 @@
|
|
|
6352
6372
|
},
|
|
6353
6373
|
"hasDynamicHelp": true,
|
|
6354
6374
|
"hiddenAliases": [],
|
|
6355
|
-
"id": "hardis:org:diagnose:
|
|
6375
|
+
"id": "hardis:org:diagnose:releaseupdates",
|
|
6356
6376
|
"pluginAlias": "sfdx-hardis",
|
|
6357
6377
|
"pluginName": "sfdx-hardis",
|
|
6358
6378
|
"pluginType": "core",
|
|
6359
6379
|
"strict": true,
|
|
6360
6380
|
"enableJsonFlag": true,
|
|
6361
|
-
"title": "
|
|
6381
|
+
"title": "Check Release Updates of an org",
|
|
6362
6382
|
"requiresProject": false,
|
|
6363
6383
|
"isESM": true,
|
|
6364
6384
|
"relativePath": [
|
|
@@ -6367,43 +6387,47 @@
|
|
|
6367
6387
|
"hardis",
|
|
6368
6388
|
"org",
|
|
6369
6389
|
"diagnose",
|
|
6370
|
-
"
|
|
6390
|
+
"releaseupdates.js"
|
|
6371
6391
|
],
|
|
6372
6392
|
"aliasPermutations": [],
|
|
6373
6393
|
"permutations": [
|
|
6374
|
-
"hardis:org:diagnose:
|
|
6375
|
-
"org:hardis:diagnose:
|
|
6376
|
-
"org:diagnose:hardis:
|
|
6377
|
-
"org:diagnose:
|
|
6378
|
-
"hardis:diagnose:org:
|
|
6379
|
-
"diagnose:hardis:org:
|
|
6380
|
-
"diagnose:org:hardis:
|
|
6381
|
-
"diagnose:org:
|
|
6382
|
-
"hardis:diagnose:
|
|
6383
|
-
"diagnose:hardis:
|
|
6384
|
-
"diagnose:
|
|
6385
|
-
"diagnose:
|
|
6386
|
-
"hardis:org:
|
|
6387
|
-
"org:hardis:
|
|
6388
|
-
"org:
|
|
6389
|
-
"org:
|
|
6390
|
-
"hardis:
|
|
6391
|
-
"
|
|
6392
|
-
"
|
|
6393
|
-
"
|
|
6394
|
-
"hardis:
|
|
6395
|
-
"
|
|
6396
|
-
"
|
|
6397
|
-
"
|
|
6394
|
+
"hardis:org:diagnose:releaseupdates",
|
|
6395
|
+
"org:hardis:diagnose:releaseupdates",
|
|
6396
|
+
"org:diagnose:hardis:releaseupdates",
|
|
6397
|
+
"org:diagnose:releaseupdates:hardis",
|
|
6398
|
+
"hardis:diagnose:org:releaseupdates",
|
|
6399
|
+
"diagnose:hardis:org:releaseupdates",
|
|
6400
|
+
"diagnose:org:hardis:releaseupdates",
|
|
6401
|
+
"diagnose:org:releaseupdates:hardis",
|
|
6402
|
+
"hardis:diagnose:releaseupdates:org",
|
|
6403
|
+
"diagnose:hardis:releaseupdates:org",
|
|
6404
|
+
"diagnose:releaseupdates:hardis:org",
|
|
6405
|
+
"diagnose:releaseupdates:org:hardis",
|
|
6406
|
+
"hardis:org:releaseupdates:diagnose",
|
|
6407
|
+
"org:hardis:releaseupdates:diagnose",
|
|
6408
|
+
"org:releaseupdates:hardis:diagnose",
|
|
6409
|
+
"org:releaseupdates:diagnose:hardis",
|
|
6410
|
+
"hardis:releaseupdates:org:diagnose",
|
|
6411
|
+
"releaseupdates:hardis:org:diagnose",
|
|
6412
|
+
"releaseupdates:org:hardis:diagnose",
|
|
6413
|
+
"releaseupdates:org:diagnose:hardis",
|
|
6414
|
+
"hardis:releaseupdates:diagnose:org",
|
|
6415
|
+
"releaseupdates:hardis:diagnose:org",
|
|
6416
|
+
"releaseupdates:diagnose:hardis:org",
|
|
6417
|
+
"releaseupdates:diagnose:org:hardis"
|
|
6398
6418
|
]
|
|
6399
6419
|
},
|
|
6400
|
-
"hardis:org:diagnose:
|
|
6420
|
+
"hardis:org:diagnose:storage-stats": {
|
|
6401
6421
|
"aliases": [],
|
|
6402
6422
|
"args": {},
|
|
6403
|
-
"description": "
|
|
6423
|
+
"description": "**Extracts and analyzes Data Storage usage for a Salesforce org, providing detailed per-object breakdowns with flexible grouping options.**\n\nThis command provides a comprehensive overview of your Salesforce data storage consumption. It's particularly useful for:\n\n- **Storage Management:** Understanding which SObjects consume the most storage and how usage has evolved over time.\n- **Cost Optimization:** Identifying storage-heavy objects that could be candidates for data archival or cleanup strategies.\n- **Capacity Planning:** Tracking storage trends to predict when additional capacity will be needed.\n- **Compliance & Governance:** Monitoring data growth patterns to ensure alignment with data retention policies.\n\nKey functionalities:\n\n- **Storage Limits Analysis:** Retrieves and displays org data storage limits, including total capacity, used storage, remaining storage, and percentage used. Detects and alerts on over-usage scenarios.\n- **SObject Discovery & Filtering:** Automatically discovers all SObjects in the org and filters them to focus on production/custom objects (excludes metadata types, platform-only objects, and cached empty objects).\n- **Interactive Selection:** Prompts the user to select which SObjects to analyze and choose breakdown fields (date fields, RecordType, custom fields, or relationship fields).\n- **Flexible Breakdown Field:** Supports grouping by any field including:\n - Date/DateTime fields (`CreatedDate`, `LastModifiedDate`, custom date fields)\n - RecordType (`RecordType.Name`)\n - Custom fields (`Status__c`, picklists, text fields)\n - Nested relationship fields (`SBQQ__Quote__r.RecordType.Name`)\n- **Date Granularity Options:** For date/datetime fields, choose between:\n - Year-based grouping (`CALENDAR_YEAR`)\n - Month-based grouping (`CALENDAR_MONTH`)\n - Day-based grouping (exact date)\n- **WHERE Clause Filtering:** Apply SOQL WHERE conditions to filter records before calculating storage (e.g., only active records, records from the last year).\n- **Storage Estimation:** Estimates storage usage for each object using an average record size heuristic (2 KB per record) and calculates the percentage of org quota consumed.\n- **Dual CSV Reports:** Generates two CSV files: a detailed breakdown by selected field and a totals-per-object summary, both suitable for spreadsheet analysis and reporting.\n- **Empty Objects Cache:** Maintains a per-user cache of objects detected with zero records to optimize subsequent runs by skipping empty tables.\n- **Progress Tracking:** Sends WebSocket progress messages for integration with external UIs and monitoring dashboards.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Limits Retrieval:** Calls `conn.limits()` to retrieve the `DataStorageMB` object containing `Max` and `Remaining` values. Handles negative `Remaining` values (over-usage scenarios) by calculating `overUsageMB` and adjusting display values.\n- **SObject Discovery:** Uses `conn.metadata.list([{ type: 'CustomObject' }])` to get custom objects and `conn.describeGlobal()` to get all SObjects. Filters by object capabilities (`layoutable`, `queryable`, `retrieveable`, `createable`, `updateable`, `deletable`) and excludes metadata types (`__mdt` suffix) and cached empty objects.\n- **User Interaction:** Uses `prompts` for interactive multi-select of SObjects, breakdown field selection, granularity choice (for date fields), and optional WHERE conditions. All objects are pre-selected by default for user convenience.\n- **Field Validation:** Recursively validates breakdown fields including nested relationships (e.g., `SBQQ__Quote__r.RecordType.Name`) by traversing the relationship chain and checking field existence on each related object. Automatically handles special cases like `RecordType` -> `RecordTypeId` and `__r` -> `__c` conversions.\n- **Dynamic Query Generation:** Builds SOQL queries based on field type and granularity:\n - For date fields with year granularity: `SELECT CALENDAR_YEAR(<Field>) breakdown, COUNT(Id) total FROM <SObject> [WHERE ...] GROUP BY CALENDAR_YEAR(<Field>) ORDER BY CALENDAR_YEAR(<Field>)`\n - For date fields with month granularity: `SELECT CALENDAR_YEAR(<Field>) year, CALENDAR_MONTH(<Field>) month, COUNT(Id) total FROM <SObject> [WHERE ...] GROUP BY CALENDAR_YEAR(<Field>), CALENDAR_MONTH(<Field>) ORDER BY CALENDAR_YEAR(<Field>), CALENDAR_MONTH(<Field>)`\n - For non-date fields: `SELECT <Field> breakdown, COUNT(Id) total FROM <SObject> [WHERE ...] GROUP BY <Field> ORDER BY <Field>`\n- **WHERE Clause Support:** Accepts user-provided WHERE conditions via flag (`--where`) or interactive prompt. Injects the condition into all SOQL queries for consistent filtering across all objects.\n- **Storage Calculation:** Applies a conservative average record size of 2 KB (2048 bytes) to estimate storage consumption. Calculates both MB usage and percentage of org quota for each object and breakdown value.\n- **Report Generation:** Uses `generateCsvFile` and `generateReportPath` helpers to create two CSV files in the reports directory:\n - Detailed breakdown: includes all statistics per breakdown value per object (e.g., by year, by month, by RecordType)\n - Totals summary: includes only aggregate totals per object\n - File naming includes breakdown field, granularity (for date fields), and `-filtered` suffix when WHERE clause is applied\n- **Caching Mechanism:** Writes a JSON cache file per authenticated username (sanitized) in the reports directory (`<username>_empty_tables_cache.json`) containing an array of empty object names. The cache is updated after each run with newly detected empty objects.\n- **Progress & UX:** Uses `WebSocketClient` to emit start/step/end progress messages for external monitoring. Outputs summary tables with `uxLogTable` and status messages with `uxLog`.\n- **Return Value:** Returns a JSON object containing `tableStorageInfos` (all rows), `tableStorageInfosTotals` (summary rows), `storageLimits` (org limits object), and `outputFiles` (paths to generated CSV/XLSX reports).\n</details>\n\n\n\n\n",
|
|
6404
6424
|
"examples": [
|
|
6405
|
-
"$ sf hardis:org:diagnose:
|
|
6406
|
-
"$ sf hardis:org:diagnose:
|
|
6425
|
+
"$ sf hardis:org:diagnose:storage-stats",
|
|
6426
|
+
"$ sf hardis:org:diagnose:storage-stats --breakdown-field \"CreatedDate\"",
|
|
6427
|
+
"$ sf hardis:org:diagnose:storage-stats -b \"RecordType.Name\"",
|
|
6428
|
+
"$ sf hardis:org:diagnose:storage-stats --where \"CreatedDate = LAST_N_DAYS:365\"",
|
|
6429
|
+
"$ sf hardis:org:diagnose:storage-stats -w \"Status__c = 'Active'\"",
|
|
6430
|
+
"$ sf hardis:org:diagnose:storage-stats -b \"LastModifiedDate\" -w \"IsDeleted = false\""
|
|
6407
6431
|
],
|
|
6408
6432
|
"flags": {
|
|
6409
6433
|
"json": {
|
|
@@ -6429,10 +6453,18 @@
|
|
|
6429
6453
|
"multiple": false,
|
|
6430
6454
|
"type": "option"
|
|
6431
6455
|
},
|
|
6432
|
-
"
|
|
6433
|
-
"char": "
|
|
6434
|
-
"description": "
|
|
6435
|
-
"name": "
|
|
6456
|
+
"breakdown-field": {
|
|
6457
|
+
"char": "b",
|
|
6458
|
+
"description": "Field to use for storage stats breakdown. Example: \"CreatedDate\", \"LastModifiedDate\", \"RecordType.Name\", or custom fields like \"Status__c\"",
|
|
6459
|
+
"name": "breakdown-field",
|
|
6460
|
+
"hasDynamicHelp": false,
|
|
6461
|
+
"multiple": false,
|
|
6462
|
+
"type": "option"
|
|
6463
|
+
},
|
|
6464
|
+
"where": {
|
|
6465
|
+
"char": "w",
|
|
6466
|
+
"description": "WHERE clause to filter records in the query (without the WHERE keyword). Example: \"CreatedDate = LAST_N_DAYS:365\" or \"Status__c = 'Active'\"",
|
|
6467
|
+
"name": "where",
|
|
6436
6468
|
"hasDynamicHelp": false,
|
|
6437
6469
|
"multiple": false,
|
|
6438
6470
|
"type": "option"
|
|
@@ -6475,14 +6507,14 @@
|
|
|
6475
6507
|
},
|
|
6476
6508
|
"hasDynamicHelp": true,
|
|
6477
6509
|
"hiddenAliases": [],
|
|
6478
|
-
"id": "hardis:org:diagnose:
|
|
6510
|
+
"id": "hardis:org:diagnose:storage-stats",
|
|
6479
6511
|
"pluginAlias": "sfdx-hardis",
|
|
6480
6512
|
"pluginName": "sfdx-hardis",
|
|
6481
6513
|
"pluginType": "core",
|
|
6482
6514
|
"strict": true,
|
|
6483
6515
|
"enableJsonFlag": true,
|
|
6484
|
-
"title": "
|
|
6485
|
-
"requiresProject":
|
|
6516
|
+
"title": "Extract Data Storage stats",
|
|
6517
|
+
"requiresProject": true,
|
|
6486
6518
|
"isESM": true,
|
|
6487
6519
|
"relativePath": [
|
|
6488
6520
|
"lib",
|
|
@@ -6490,42 +6522,42 @@
|
|
|
6490
6522
|
"hardis",
|
|
6491
6523
|
"org",
|
|
6492
6524
|
"diagnose",
|
|
6493
|
-
"
|
|
6525
|
+
"storage-stats.js"
|
|
6494
6526
|
],
|
|
6495
6527
|
"aliasPermutations": [],
|
|
6496
6528
|
"permutations": [
|
|
6497
|
-
"hardis:org:diagnose:
|
|
6498
|
-
"org:hardis:diagnose:
|
|
6499
|
-
"org:diagnose:hardis:
|
|
6500
|
-
"org:diagnose:
|
|
6501
|
-
"hardis:diagnose:org:
|
|
6502
|
-
"diagnose:hardis:org:
|
|
6503
|
-
"diagnose:org:hardis:
|
|
6504
|
-
"diagnose:org:
|
|
6505
|
-
"hardis:diagnose:
|
|
6506
|
-
"diagnose:hardis:
|
|
6507
|
-
"diagnose:
|
|
6508
|
-
"diagnose:
|
|
6509
|
-
"hardis:org:
|
|
6510
|
-
"org:hardis:
|
|
6511
|
-
"org:
|
|
6512
|
-
"org:
|
|
6513
|
-
"hardis:
|
|
6514
|
-
"
|
|
6515
|
-
"
|
|
6516
|
-
"
|
|
6517
|
-
"hardis:
|
|
6518
|
-
"
|
|
6519
|
-
"
|
|
6520
|
-
"
|
|
6529
|
+
"hardis:org:diagnose:storage-stats",
|
|
6530
|
+
"org:hardis:diagnose:storage-stats",
|
|
6531
|
+
"org:diagnose:hardis:storage-stats",
|
|
6532
|
+
"org:diagnose:storage-stats:hardis",
|
|
6533
|
+
"hardis:diagnose:org:storage-stats",
|
|
6534
|
+
"diagnose:hardis:org:storage-stats",
|
|
6535
|
+
"diagnose:org:hardis:storage-stats",
|
|
6536
|
+
"diagnose:org:storage-stats:hardis",
|
|
6537
|
+
"hardis:diagnose:storage-stats:org",
|
|
6538
|
+
"diagnose:hardis:storage-stats:org",
|
|
6539
|
+
"diagnose:storage-stats:hardis:org",
|
|
6540
|
+
"diagnose:storage-stats:org:hardis",
|
|
6541
|
+
"hardis:org:storage-stats:diagnose",
|
|
6542
|
+
"org:hardis:storage-stats:diagnose",
|
|
6543
|
+
"org:storage-stats:hardis:diagnose",
|
|
6544
|
+
"org:storage-stats:diagnose:hardis",
|
|
6545
|
+
"hardis:storage-stats:org:diagnose",
|
|
6546
|
+
"storage-stats:hardis:org:diagnose",
|
|
6547
|
+
"storage-stats:org:hardis:diagnose",
|
|
6548
|
+
"storage-stats:org:diagnose:hardis",
|
|
6549
|
+
"hardis:storage-stats:diagnose:org",
|
|
6550
|
+
"storage-stats:hardis:diagnose:org",
|
|
6551
|
+
"storage-stats:diagnose:hardis:org",
|
|
6552
|
+
"storage-stats:diagnose:org:hardis"
|
|
6521
6553
|
]
|
|
6522
6554
|
},
|
|
6523
|
-
"hardis:org:diagnose:
|
|
6555
|
+
"hardis:org:diagnose:unsecure-connected-apps": {
|
|
6524
6556
|
"aliases": [],
|
|
6525
6557
|
"args": {},
|
|
6526
|
-
"description": "\n## Command Behavior\n\n**
|
|
6558
|
+
"description": "\n## Command Behavior\n\n**Detects unsecured Connected Apps in a Salesforce org and generates detailed reports for security analysis.**\n\nThis command is a critical security diagnostic tool that helps administrators identify Connected Apps that may pose security risks due to improper configuration. It provides comprehensive analysis of OAuth tokens and Connected App security settings to ensure proper access control.\n\nKey functionalities:\n\n- **OAuth Token Analysis:** Queries all OAuth tokens in the org using SOQL to retrieve comprehensive token information including app names, users, authorization status, and usage statistics.\n- **Security Status Assessment:** Evaluates each Connected App's security configuration by checking the `IsUsingAdminAuthorization` flag to determine if admin pre-approval is required.\n- **Unsecured App Detection:** Identifies Connected Apps that allow users to authorize themselves without admin approval, which can pose security risks.\n- **Detailed Reporting:** Generates two comprehensive CSV reports:\n - **OAuth Tokens Report:** Lists all OAuth tokens with security status, user information, and usage data\n - **Connected Apps Summary:** Aggregates unsecured Connected Apps with counts of associated OAuth tokens\n- **Visual Indicators:** Uses status icons (❌ for unsecured, ✅ for secured) to provide immediate visual feedback on security status.\n- **Security Recommendations:** Provides actionable guidance on how to secure Connected Apps through proper configuration.\n- **Notifications:** Sends alerts to configured channels (Grafana, Slack, MS Teams) with security findings and attached reports.\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-org-security/) and can output Grafana, Slack and MsTeams Notifications.\n\n<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/jHv8yrSK8Dg\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **SOQL Query Execution:** Executes a comprehensive SOQL query on the `OauthToken` object, joining with `AppMenuItem` and `User` objects to gather complete security context.\n- **Security Analysis Logic:** Analyzes the `AppMenuItem.IsUsingAdminAuthorization` field to determine if a Connected App requires admin pre-approval for user authorization.\n- **Data Transformation:** Processes raw SOQL results to add security status indicators and reorganize data for optimal reporting and analysis.\n- **Aggregation Processing:** Groups OAuth tokens by Connected App name to provide summary statistics and identify the most problematic applications.\n- **Report Generation:** Uses `generateCsvFile` to create structured CSV reports with proper formatting and metadata for easy analysis and sharing.\n- **Notification Integration:** Integrates with the `NotifProvider` to send security alerts with detailed metrics, including the number of unsecured Connected Apps and associated OAuth tokens.\n- **File Management:** Generates multiple output formats (CSV, XLSX) and manages file paths using `generateReportPath` for consistent report organization.\n- **Connection Management:** Uses `setConnectionVariables` to ensure proper authentication context for notification providers that require org connection details.\n</details>\n",
|
|
6527
6559
|
"examples": [
|
|
6528
|
-
"$ sf hardis:org:diagnose:
|
|
6560
|
+
"$ sf hardis:org:diagnose:unsecure-connected-apps"
|
|
6529
6561
|
],
|
|
6530
6562
|
"flags": {
|
|
6531
6563
|
"json": {
|
|
@@ -6589,30 +6621,13 @@
|
|
|
6589
6621
|
},
|
|
6590
6622
|
"hasDynamicHelp": true,
|
|
6591
6623
|
"hiddenAliases": [],
|
|
6592
|
-
"id": "hardis:org:diagnose:
|
|
6624
|
+
"id": "hardis:org:diagnose:unsecure-connected-apps",
|
|
6593
6625
|
"pluginAlias": "sfdx-hardis",
|
|
6594
6626
|
"pluginName": "sfdx-hardis",
|
|
6595
6627
|
"pluginType": "core",
|
|
6596
6628
|
"strict": true,
|
|
6597
6629
|
"enableJsonFlag": true,
|
|
6598
|
-
"title": "
|
|
6599
|
-
"allowedInactiveConnectedApps": [
|
|
6600
|
-
"Ant Migration Tool",
|
|
6601
|
-
"Chatter Desktop",
|
|
6602
|
-
"Chatter Mobile for BlackBerry",
|
|
6603
|
-
"Force.com IDE",
|
|
6604
|
-
"OIQ_Integration",
|
|
6605
|
-
"Salesforce CLI",
|
|
6606
|
-
"Salesforce Files",
|
|
6607
|
-
"Salesforce Mobile Dashboards",
|
|
6608
|
-
"Salesforce Touch",
|
|
6609
|
-
"Salesforce for Outlook",
|
|
6610
|
-
"SalesforceA",
|
|
6611
|
-
"SalesforceA for Android",
|
|
6612
|
-
"SalesforceA for iOS",
|
|
6613
|
-
"SalesforceDX Namespace Registry",
|
|
6614
|
-
"SalesforceIQ"
|
|
6615
|
-
],
|
|
6630
|
+
"title": "Detect Unsecured Connected Apps",
|
|
6616
6631
|
"requiresProject": false,
|
|
6617
6632
|
"isESM": true,
|
|
6618
6633
|
"relativePath": [
|
|
@@ -6621,43 +6636,43 @@
|
|
|
6621
6636
|
"hardis",
|
|
6622
6637
|
"org",
|
|
6623
6638
|
"diagnose",
|
|
6624
|
-
"
|
|
6639
|
+
"unsecure-connected-apps.js"
|
|
6625
6640
|
],
|
|
6626
6641
|
"aliasPermutations": [],
|
|
6627
6642
|
"permutations": [
|
|
6628
|
-
"hardis:org:diagnose:
|
|
6629
|
-
"org:hardis:diagnose:
|
|
6630
|
-
"org:diagnose:hardis:
|
|
6631
|
-
"org:diagnose:
|
|
6632
|
-
"hardis:diagnose:org:
|
|
6633
|
-
"diagnose:hardis:org:
|
|
6634
|
-
"diagnose:org:hardis:
|
|
6635
|
-
"diagnose:org:
|
|
6636
|
-
"hardis:diagnose:
|
|
6637
|
-
"diagnose:hardis:
|
|
6638
|
-
"diagnose:
|
|
6639
|
-
"diagnose:
|
|
6640
|
-
"hardis:org:
|
|
6641
|
-
"org:hardis:
|
|
6642
|
-
"org:
|
|
6643
|
-
"org:
|
|
6644
|
-
"hardis:
|
|
6645
|
-
"
|
|
6646
|
-
"
|
|
6647
|
-
"
|
|
6648
|
-
"hardis:
|
|
6649
|
-
"
|
|
6650
|
-
"
|
|
6651
|
-
"
|
|
6643
|
+
"hardis:org:diagnose:unsecure-connected-apps",
|
|
6644
|
+
"org:hardis:diagnose:unsecure-connected-apps",
|
|
6645
|
+
"org:diagnose:hardis:unsecure-connected-apps",
|
|
6646
|
+
"org:diagnose:unsecure-connected-apps:hardis",
|
|
6647
|
+
"hardis:diagnose:org:unsecure-connected-apps",
|
|
6648
|
+
"diagnose:hardis:org:unsecure-connected-apps",
|
|
6649
|
+
"diagnose:org:hardis:unsecure-connected-apps",
|
|
6650
|
+
"diagnose:org:unsecure-connected-apps:hardis",
|
|
6651
|
+
"hardis:diagnose:unsecure-connected-apps:org",
|
|
6652
|
+
"diagnose:hardis:unsecure-connected-apps:org",
|
|
6653
|
+
"diagnose:unsecure-connected-apps:hardis:org",
|
|
6654
|
+
"diagnose:unsecure-connected-apps:org:hardis",
|
|
6655
|
+
"hardis:org:unsecure-connected-apps:diagnose",
|
|
6656
|
+
"org:hardis:unsecure-connected-apps:diagnose",
|
|
6657
|
+
"org:unsecure-connected-apps:hardis:diagnose",
|
|
6658
|
+
"org:unsecure-connected-apps:diagnose:hardis",
|
|
6659
|
+
"hardis:unsecure-connected-apps:org:diagnose",
|
|
6660
|
+
"unsecure-connected-apps:hardis:org:diagnose",
|
|
6661
|
+
"unsecure-connected-apps:org:hardis:diagnose",
|
|
6662
|
+
"unsecure-connected-apps:org:diagnose:hardis",
|
|
6663
|
+
"hardis:unsecure-connected-apps:diagnose:org",
|
|
6664
|
+
"unsecure-connected-apps:hardis:diagnose:org",
|
|
6665
|
+
"unsecure-connected-apps:diagnose:hardis:org",
|
|
6666
|
+
"unsecure-connected-apps:diagnose:org:hardis"
|
|
6652
6667
|
]
|
|
6653
6668
|
},
|
|
6654
|
-
"hardis:org:diagnose:
|
|
6669
|
+
"hardis:org:diagnose:unused-apex-classes": {
|
|
6655
6670
|
"aliases": [],
|
|
6656
6671
|
"args": {},
|
|
6657
|
-
"description": "
|
|
6672
|
+
"description": "List all async Apex classes (Batch,Queueable,Schedulable) that has not been called for more than 365 days.\n \nThe result class list probably can be removed from the project, and that will improve your test classes performances 😊\n\nThe number of unused day is overridable using --days option. \n\nThe command uses queries on AsyncApexJob and CronTrigger technical tables to build the result.\n\nApex Classes CreatedBy and CreatedOn fields are calculated from MIN(date from git, date from org)\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-unused-apex-classes/) and can output Grafana, Slack and MsTeams Notifications.\n\n\n",
|
|
6658
6673
|
"examples": [
|
|
6659
|
-
"$ sf hardis:org:diagnose:
|
|
6660
|
-
"$ sf hardis:org:diagnose:
|
|
6674
|
+
"$ sf hardis:org:diagnose:unused-apex-classes",
|
|
6675
|
+
"$ sf hardis:org:diagnose:unused-apex-classes --days 700"
|
|
6661
6676
|
],
|
|
6662
6677
|
"flags": {
|
|
6663
6678
|
"json": {
|
|
@@ -6683,6 +6698,14 @@
|
|
|
6683
6698
|
"multiple": false,
|
|
6684
6699
|
"type": "option"
|
|
6685
6700
|
},
|
|
6701
|
+
"days": {
|
|
6702
|
+
"char": "t",
|
|
6703
|
+
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
6704
|
+
"name": "days",
|
|
6705
|
+
"hasDynamicHelp": false,
|
|
6706
|
+
"multiple": false,
|
|
6707
|
+
"type": "option"
|
|
6708
|
+
},
|
|
6686
6709
|
"debug": {
|
|
6687
6710
|
"char": "d",
|
|
6688
6711
|
"description": "Activate debug mode (more logs)",
|
|
@@ -6721,32 +6744,14 @@
|
|
|
6721
6744
|
},
|
|
6722
6745
|
"hasDynamicHelp": true,
|
|
6723
6746
|
"hiddenAliases": [],
|
|
6724
|
-
"id": "hardis:org:diagnose:
|
|
6747
|
+
"id": "hardis:org:diagnose:unused-apex-classes",
|
|
6725
6748
|
"pluginAlias": "sfdx-hardis",
|
|
6726
6749
|
"pluginName": "sfdx-hardis",
|
|
6727
6750
|
"pluginType": "core",
|
|
6728
6751
|
"strict": true,
|
|
6729
6752
|
"enableJsonFlag": true,
|
|
6730
|
-
"title": "Detect unused
|
|
6753
|
+
"title": "Detect unused Apex classes in an org",
|
|
6731
6754
|
"requiresProject": false,
|
|
6732
|
-
"additionalPermissionSetsToAlwaysGet": [
|
|
6733
|
-
"Sales_User"
|
|
6734
|
-
],
|
|
6735
|
-
"permSetsPermSetLicenses": [
|
|
6736
|
-
{
|
|
6737
|
-
"permSet": "Sales_User",
|
|
6738
|
-
"permSetLicense": "SalesUserPsl"
|
|
6739
|
-
}
|
|
6740
|
-
],
|
|
6741
|
-
"profilesPermissionSetLicenses": [
|
|
6742
|
-
{
|
|
6743
|
-
"profile": "Salesforce API Only",
|
|
6744
|
-
"permSetLicense": "SalesforceAPIIntegrationPsl"
|
|
6745
|
-
}
|
|
6746
|
-
],
|
|
6747
|
-
"alwaysExcludeForActiveUsersPermissionSetLicenses": [
|
|
6748
|
-
"IdentityConnect"
|
|
6749
|
-
],
|
|
6750
6755
|
"isESM": true,
|
|
6751
6756
|
"relativePath": [
|
|
6752
6757
|
"lib",
|
|
@@ -6754,46 +6759,42 @@
|
|
|
6754
6759
|
"hardis",
|
|
6755
6760
|
"org",
|
|
6756
6761
|
"diagnose",
|
|
6757
|
-
"
|
|
6762
|
+
"unused-apex-classes.js"
|
|
6758
6763
|
],
|
|
6759
6764
|
"aliasPermutations": [],
|
|
6760
6765
|
"permutations": [
|
|
6761
|
-
"hardis:org:diagnose:
|
|
6762
|
-
"org:hardis:diagnose:
|
|
6763
|
-
"org:diagnose:hardis:
|
|
6764
|
-
"org:diagnose:
|
|
6765
|
-
"hardis:diagnose:org:
|
|
6766
|
-
"diagnose:hardis:org:
|
|
6767
|
-
"diagnose:org:hardis:
|
|
6768
|
-
"diagnose:org:
|
|
6769
|
-
"hardis:diagnose:
|
|
6770
|
-
"diagnose:hardis:
|
|
6771
|
-
"diagnose:
|
|
6772
|
-
"diagnose:
|
|
6773
|
-
"hardis:org:
|
|
6774
|
-
"org:hardis:
|
|
6775
|
-
"org:
|
|
6776
|
-
"org:
|
|
6777
|
-
"hardis:
|
|
6778
|
-
"
|
|
6779
|
-
"
|
|
6780
|
-
"
|
|
6781
|
-
"hardis:
|
|
6782
|
-
"
|
|
6783
|
-
"
|
|
6784
|
-
"
|
|
6766
|
+
"hardis:org:diagnose:unused-apex-classes",
|
|
6767
|
+
"org:hardis:diagnose:unused-apex-classes",
|
|
6768
|
+
"org:diagnose:hardis:unused-apex-classes",
|
|
6769
|
+
"org:diagnose:unused-apex-classes:hardis",
|
|
6770
|
+
"hardis:diagnose:org:unused-apex-classes",
|
|
6771
|
+
"diagnose:hardis:org:unused-apex-classes",
|
|
6772
|
+
"diagnose:org:hardis:unused-apex-classes",
|
|
6773
|
+
"diagnose:org:unused-apex-classes:hardis",
|
|
6774
|
+
"hardis:diagnose:unused-apex-classes:org",
|
|
6775
|
+
"diagnose:hardis:unused-apex-classes:org",
|
|
6776
|
+
"diagnose:unused-apex-classes:hardis:org",
|
|
6777
|
+
"diagnose:unused-apex-classes:org:hardis",
|
|
6778
|
+
"hardis:org:unused-apex-classes:diagnose",
|
|
6779
|
+
"org:hardis:unused-apex-classes:diagnose",
|
|
6780
|
+
"org:unused-apex-classes:hardis:diagnose",
|
|
6781
|
+
"org:unused-apex-classes:diagnose:hardis",
|
|
6782
|
+
"hardis:unused-apex-classes:org:diagnose",
|
|
6783
|
+
"unused-apex-classes:hardis:org:diagnose",
|
|
6784
|
+
"unused-apex-classes:org:hardis:diagnose",
|
|
6785
|
+
"unused-apex-classes:org:diagnose:hardis",
|
|
6786
|
+
"hardis:unused-apex-classes:diagnose:org",
|
|
6787
|
+
"unused-apex-classes:hardis:diagnose:org",
|
|
6788
|
+
"unused-apex-classes:diagnose:hardis:org",
|
|
6789
|
+
"unused-apex-classes:diagnose:org:hardis"
|
|
6785
6790
|
]
|
|
6786
6791
|
},
|
|
6787
|
-
"hardis:org:diagnose:
|
|
6792
|
+
"hardis:org:diagnose:unused-connected-apps": {
|
|
6788
6793
|
"aliases": [],
|
|
6789
6794
|
"args": {},
|
|
6790
|
-
"description": "\n## Command Behavior\n\n**
|
|
6795
|
+
"description": "\n## Command Behavior\n\n**Identifies and reports on potentially unused Connected Apps in a Salesforce org, suggesting candidates for deletion or deactivation.**\n\nThis command helps improve org security and reduce technical debt by pinpointing Connected Apps that are no longer actively used. Connected Apps can pose security risks if left unmonitored, and cleaning them up contributes to a healthier Salesforce environment.\n\nKey functionalities:\n\n- **Connected App Data Collection:** Gathers information about all Connected Apps in the org, including creation and last modified dates, and associated users.\n- **Usage Analysis:** Analyzes `LoginHistory` and `OAuthToken` records to determine the last usage date of each Connected App.\n- **Inactivity Detection:** Flags Connected Apps as potentially unused if they have no recent login history or OAuth token usage.\n- **Accessibility Check:** Examines Connected App metadata to identify if they are accessible (e.g., if they require admin approval and have no profiles or permission sets assigned).\n- **Ignored Apps:** Automatically ignores a predefined list of common Salesforce Connected Apps (e.g., `Salesforce CLI`, `Salesforce Mobile Dashboards`). You can extend this list by defining the `ALLOWED_INACTIVE_CONNECTED_APPS` environment variable.\n- **CSV Report Generation:** Generates a CSV file containing details of all analyzed Connected Apps, including their usage status, last usage date, and reasons for being flagged as potentially unused.\n- **Notifications:** Sends notifications to configured channels (Grafana, Slack, MS Teams) with a summary of potentially unused Connected Apps.\n\n**Default Ignored Connected Apps:**\n\n- Ant Migration Tool\n- Chatter Desktop\n- Chatter Mobile for BlackBerry\n- Force.com IDE\n- OIQ_Integration\n- Salesforce CLI\n- Salesforce Files\n- Salesforce Mobile Dashboards\n- Salesforce Touch\n- Salesforce for Outlook\n- SalesforceA\n- SalesforceA for Android\n- SalesforceA for iOS\n- SalesforceDX Namespace Registry\n- SalesforceIQ\n\nYou can add more ignored apps by defining a comma-separated list of names in the `ALLOWED_INACTIVE_CONNECTED_APPS` environment variable.\n\n_Example: \nALLOWED_INACTIVE_CONNECTED_APPS=My App 1,My App 2, My App 3_\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-unused-connected-apps/) and can output Grafana, Slack and MsTeams Notifications.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce SOQL Queries:** It performs SOQL queries against `ConnectedApplication`, `LoginHistory`, and `OAuthToken` objects to gather comprehensive data about Connected Apps and their usage.\n- **Temporary SFDX Project:** It creates a temporary SFDX project to retrieve Connected App metadata, allowing for local parsing and analysis of their XML files.\n- **Metadata Parsing:** It parses the `connectedApp-meta.xml` files to check for `isAdminApproved` and the presence of `profileName` or `permissionsetName` to determine accessibility.\n- **Data Correlation:** It correlates data from various Salesforce objects to build a complete picture of each Connected App's usage and status.\n- **Date Calculation:** Uses `moment` to calculate the time since the last OAuth token usage.\n- **Report Generation:** It uses `generateCsvFile` to create the CSV report of unused Connected Apps.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including attachments of the generated CSV report and metrics for monitoring dashboards.\n- **File System Operations:** Uses `fs-extra` for creating and removing temporary directories and files.\n- **Environment Variable Reading:** Reads the `ALLOWED_INACTIVE_CONNECTED_APPS` environment variable to customize the list of ignored Connected Apps.\n</details>\n",
|
|
6791
6796
|
"examples": [
|
|
6792
|
-
"$ sf hardis:org:diagnose:
|
|
6793
|
-
"$ sf hardis:org:diagnose:unusedusers --days 365",
|
|
6794
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm",
|
|
6795
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licenseidentifiers SFDC,AUL,AUL1",
|
|
6796
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm --returnactiveusers"
|
|
6797
|
+
"$ sf hardis:org:diagnose:unused-connected-apps"
|
|
6797
6798
|
],
|
|
6798
6799
|
"flags": {
|
|
6799
6800
|
"json": {
|
|
@@ -6819,41 +6820,6 @@
|
|
|
6819
6820
|
"multiple": false,
|
|
6820
6821
|
"type": "option"
|
|
6821
6822
|
},
|
|
6822
|
-
"days": {
|
|
6823
|
-
"char": "t",
|
|
6824
|
-
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
6825
|
-
"name": "days",
|
|
6826
|
-
"hasDynamicHelp": false,
|
|
6827
|
-
"multiple": false,
|
|
6828
|
-
"type": "option"
|
|
6829
|
-
},
|
|
6830
|
-
"licensetypes": {
|
|
6831
|
-
"char": "l",
|
|
6832
|
-
"description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
|
|
6833
|
-
"name": "licensetypes",
|
|
6834
|
-
"hasDynamicHelp": false,
|
|
6835
|
-
"multiple": false,
|
|
6836
|
-
"options": [
|
|
6837
|
-
"all",
|
|
6838
|
-
"all-crm",
|
|
6839
|
-
"all-paying"
|
|
6840
|
-
],
|
|
6841
|
-
"type": "option"
|
|
6842
|
-
},
|
|
6843
|
-
"licenseidentifiers": {
|
|
6844
|
-
"char": "i",
|
|
6845
|
-
"description": "Comma-separated list of license identifiers, in case licensetypes is not used.. Identifiers available at https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userlicense.htm",
|
|
6846
|
-
"name": "licenseidentifiers",
|
|
6847
|
-
"hasDynamicHelp": false,
|
|
6848
|
-
"multiple": false,
|
|
6849
|
-
"type": "option"
|
|
6850
|
-
},
|
|
6851
|
-
"returnactiveusers": {
|
|
6852
|
-
"description": "Inverts the command by returning the active users",
|
|
6853
|
-
"name": "returnactiveusers",
|
|
6854
|
-
"allowNo": false,
|
|
6855
|
-
"type": "boolean"
|
|
6856
|
-
},
|
|
6857
6823
|
"debug": {
|
|
6858
6824
|
"char": "d",
|
|
6859
6825
|
"description": "Activate debug mode (more logs)",
|
|
@@ -6892,13 +6858,30 @@
|
|
|
6892
6858
|
},
|
|
6893
6859
|
"hasDynamicHelp": true,
|
|
6894
6860
|
"hiddenAliases": [],
|
|
6895
|
-
"id": "hardis:org:diagnose:
|
|
6861
|
+
"id": "hardis:org:diagnose:unused-connected-apps",
|
|
6896
6862
|
"pluginAlias": "sfdx-hardis",
|
|
6897
6863
|
"pluginName": "sfdx-hardis",
|
|
6898
6864
|
"pluginType": "core",
|
|
6899
6865
|
"strict": true,
|
|
6900
6866
|
"enableJsonFlag": true,
|
|
6901
|
-
"title": "
|
|
6867
|
+
"title": "Unused Connected Apps in an org",
|
|
6868
|
+
"allowedInactiveConnectedApps": [
|
|
6869
|
+
"Ant Migration Tool",
|
|
6870
|
+
"Chatter Desktop",
|
|
6871
|
+
"Chatter Mobile for BlackBerry",
|
|
6872
|
+
"Force.com IDE",
|
|
6873
|
+
"OIQ_Integration",
|
|
6874
|
+
"Salesforce CLI",
|
|
6875
|
+
"Salesforce Files",
|
|
6876
|
+
"Salesforce Mobile Dashboards",
|
|
6877
|
+
"Salesforce Touch",
|
|
6878
|
+
"Salesforce for Outlook",
|
|
6879
|
+
"SalesforceA",
|
|
6880
|
+
"SalesforceA for Android",
|
|
6881
|
+
"SalesforceA for iOS",
|
|
6882
|
+
"SalesforceDX Namespace Registry",
|
|
6883
|
+
"SalesforceIQ"
|
|
6884
|
+
],
|
|
6902
6885
|
"requiresProject": false,
|
|
6903
6886
|
"isESM": true,
|
|
6904
6887
|
"relativePath": [
|
|
@@ -6907,43 +6890,43 @@
|
|
|
6907
6890
|
"hardis",
|
|
6908
6891
|
"org",
|
|
6909
6892
|
"diagnose",
|
|
6910
|
-
"
|
|
6893
|
+
"unused-connected-apps.js"
|
|
6911
6894
|
],
|
|
6912
6895
|
"aliasPermutations": [],
|
|
6913
6896
|
"permutations": [
|
|
6914
|
-
"hardis:org:diagnose:
|
|
6915
|
-
"org:hardis:diagnose:
|
|
6916
|
-
"org:diagnose:hardis:
|
|
6917
|
-
"org:diagnose:
|
|
6918
|
-
"hardis:diagnose:org:
|
|
6919
|
-
"diagnose:hardis:org:
|
|
6920
|
-
"diagnose:org:hardis:
|
|
6921
|
-
"diagnose:org:
|
|
6922
|
-
"hardis:diagnose:
|
|
6923
|
-
"diagnose:hardis:
|
|
6924
|
-
"diagnose:
|
|
6925
|
-
"diagnose:
|
|
6926
|
-
"hardis:org:
|
|
6927
|
-
"org:hardis:
|
|
6928
|
-
"org:
|
|
6929
|
-
"org:
|
|
6930
|
-
"hardis:
|
|
6931
|
-
"
|
|
6932
|
-
"
|
|
6933
|
-
"
|
|
6934
|
-
"hardis:
|
|
6935
|
-
"
|
|
6936
|
-
"
|
|
6937
|
-
"
|
|
6897
|
+
"hardis:org:diagnose:unused-connected-apps",
|
|
6898
|
+
"org:hardis:diagnose:unused-connected-apps",
|
|
6899
|
+
"org:diagnose:hardis:unused-connected-apps",
|
|
6900
|
+
"org:diagnose:unused-connected-apps:hardis",
|
|
6901
|
+
"hardis:diagnose:org:unused-connected-apps",
|
|
6902
|
+
"diagnose:hardis:org:unused-connected-apps",
|
|
6903
|
+
"diagnose:org:hardis:unused-connected-apps",
|
|
6904
|
+
"diagnose:org:unused-connected-apps:hardis",
|
|
6905
|
+
"hardis:diagnose:unused-connected-apps:org",
|
|
6906
|
+
"diagnose:hardis:unused-connected-apps:org",
|
|
6907
|
+
"diagnose:unused-connected-apps:hardis:org",
|
|
6908
|
+
"diagnose:unused-connected-apps:org:hardis",
|
|
6909
|
+
"hardis:org:unused-connected-apps:diagnose",
|
|
6910
|
+
"org:hardis:unused-connected-apps:diagnose",
|
|
6911
|
+
"org:unused-connected-apps:hardis:diagnose",
|
|
6912
|
+
"org:unused-connected-apps:diagnose:hardis",
|
|
6913
|
+
"hardis:unused-connected-apps:org:diagnose",
|
|
6914
|
+
"unused-connected-apps:hardis:org:diagnose",
|
|
6915
|
+
"unused-connected-apps:org:hardis:diagnose",
|
|
6916
|
+
"unused-connected-apps:org:diagnose:hardis",
|
|
6917
|
+
"hardis:unused-connected-apps:diagnose:org",
|
|
6918
|
+
"unused-connected-apps:hardis:diagnose:org",
|
|
6919
|
+
"unused-connected-apps:diagnose:hardis:org",
|
|
6920
|
+
"unused-connected-apps:diagnose:org:hardis"
|
|
6938
6921
|
]
|
|
6939
6922
|
},
|
|
6940
|
-
"hardis:org:
|
|
6923
|
+
"hardis:org:diagnose:unusedlicenses": {
|
|
6941
6924
|
"aliases": [],
|
|
6942
6925
|
"args": {},
|
|
6943
|
-
"description": "
|
|
6926
|
+
"description": "\n## Command Behavior\n\n**Detects and suggests the deletion of unused Permission Set License Assignments in a Salesforce org.**\n\nWhen a Permission Set (PS) linked to a Permission Set License (PSL) is assigned to a user, a Permission Set License Assignment (PSLA) is automatically created. However, when that PS is unassigned from the user, the PSLA is *not* automatically deleted. This can lead to organizations being charged for unused PSLAs, representing a hidden cost and technical debt.\n\nThis command identifies such useless PSLAs and provides options to delete them, helping to optimize license usage and reduce unnecessary expenses.\n\nKey functionalities:\n\n- **PSLA Detection:** Queries the Salesforce org to find all active PSLAs.\n- **Usage Verification:** Correlates PSLAs with actual Permission Set Assignments and Permission Set Group Assignments to determine if the underlying Permission Sets are still assigned to the user.\n- **Special Case Handling:** Accounts for specific scenarios where profiles might implicitly assign PSLAs (e.g., `Salesforce API Only` profile assigning `SalesforceAPIIntegrationPsl`) and allows for always excluding certain PSLAs from the unused check.\n- **Reporting:** Generates a CSV report of all identified unused PSLAs, including the user and the associated Permission Set License.\n- **Notifications:** Sends notifications to configured channels (Grafana, Slack, MS Teams) with a summary of unused PSLAs.\n- **Interactive Deletion:** In non-CI environments, it offers an interactive prompt to bulk delete the identified unused PSLAs.\n\nMany thanks to [Vincent Finet](https://www.linkedin.com/in/vincentfinet/) for the inspiration during his great speaker session at [French Touch Dreamin '23](https://frenchtouchdreamin.com/), and his kind agreement for reusing such inspiration in this command 😊\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-unused-licenses/) and can output Grafana, Slack and MsTeams Notifications.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves extensive querying of Salesforce objects and data correlation:\n\n- **SOQL Queries (Bulk API):** It uses `bulkQuery` and `bulkQueryChunksIn` to efficiently retrieve large volumes of data from `PermissionSetLicenseAssign`, `PermissionSetLicense`, `PermissionSet`, `PermissionSetGroupComponent`, and `PermissionSetAssignment` objects.\n- **Data Correlation:** It meticulously correlates data across these objects to determine if a `PermissionSetLicenseAssign` record has a corresponding active assignment to a Permission Set or Permission Set Group for the same user.\n- **Filtering Logic:** It applies complex filtering logic to exclude PSLAs that are genuinely in use or are part of predefined exceptions (e.g., `alwaysExcludeForActiveUsersPermissionSetLicenses`).\n- **Bulk Deletion:** If the user opts to delete unused PSLAs, it uses `bulkUpdate` with the `delete` operation to efficiently remove multiple records.\n- **Report Generation:** It uses `generateCsvFile` to create the CSV report of unused PSLAs.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including attachments of the generated CSV report and metrics for monitoring dashboards.\n- **User Interaction:** Uses `prompts` for interactive confirmation before performing deletion operations.\n</details>\n",
|
|
6944
6927
|
"examples": [
|
|
6945
|
-
"$ sf hardis:org:
|
|
6946
|
-
"$ sf hardis:org:
|
|
6928
|
+
"$ sf hardis:org:diagnose:unusedlicenses",
|
|
6929
|
+
"$ sf hardis:org:diagnose:unusedlicenses --fix"
|
|
6947
6930
|
],
|
|
6948
6931
|
"flags": {
|
|
6949
6932
|
"json": {
|
|
@@ -6961,10 +6944,10 @@
|
|
|
6961
6944
|
"multiple": false,
|
|
6962
6945
|
"type": "option"
|
|
6963
6946
|
},
|
|
6964
|
-
"
|
|
6965
|
-
"char": "
|
|
6966
|
-
"description": "
|
|
6967
|
-
"name": "
|
|
6947
|
+
"outputfile": {
|
|
6948
|
+
"char": "f",
|
|
6949
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6950
|
+
"name": "outputfile",
|
|
6968
6951
|
"hasDynamicHelp": false,
|
|
6969
6952
|
"multiple": false,
|
|
6970
6953
|
"type": "option"
|
|
@@ -7007,57 +6990,79 @@
|
|
|
7007
6990
|
},
|
|
7008
6991
|
"hasDynamicHelp": true,
|
|
7009
6992
|
"hiddenAliases": [],
|
|
7010
|
-
"id": "hardis:org:
|
|
6993
|
+
"id": "hardis:org:diagnose:unusedlicenses",
|
|
7011
6994
|
"pluginAlias": "sfdx-hardis",
|
|
7012
6995
|
"pluginName": "sfdx-hardis",
|
|
7013
6996
|
"pluginType": "core",
|
|
7014
6997
|
"strict": true,
|
|
7015
6998
|
"enableJsonFlag": true,
|
|
7016
|
-
"title": "
|
|
7017
|
-
"requiresProject":
|
|
6999
|
+
"title": "Detect unused Permission Set Licenses (beta)",
|
|
7000
|
+
"requiresProject": false,
|
|
7001
|
+
"additionalPermissionSetsToAlwaysGet": [
|
|
7002
|
+
"Sales_User"
|
|
7003
|
+
],
|
|
7004
|
+
"permSetsPermSetLicenses": [
|
|
7005
|
+
{
|
|
7006
|
+
"permSet": "Sales_User",
|
|
7007
|
+
"permSetLicense": "SalesUserPsl"
|
|
7008
|
+
}
|
|
7009
|
+
],
|
|
7010
|
+
"profilesPermissionSetLicenses": [
|
|
7011
|
+
{
|
|
7012
|
+
"profile": "Salesforce API Only",
|
|
7013
|
+
"permSetLicense": "SalesforceAPIIntegrationPsl"
|
|
7014
|
+
}
|
|
7015
|
+
],
|
|
7016
|
+
"alwaysExcludeForActiveUsersPermissionSetLicenses": [
|
|
7017
|
+
"IdentityConnect"
|
|
7018
|
+
],
|
|
7018
7019
|
"isESM": true,
|
|
7019
7020
|
"relativePath": [
|
|
7020
7021
|
"lib",
|
|
7021
7022
|
"commands",
|
|
7022
7023
|
"hardis",
|
|
7023
7024
|
"org",
|
|
7024
|
-
"
|
|
7025
|
-
"
|
|
7025
|
+
"diagnose",
|
|
7026
|
+
"unusedlicenses.js"
|
|
7026
7027
|
],
|
|
7027
7028
|
"aliasPermutations": [],
|
|
7028
7029
|
"permutations": [
|
|
7029
|
-
"hardis:org:
|
|
7030
|
-
"org:hardis:
|
|
7031
|
-
"org:
|
|
7032
|
-
"org:
|
|
7033
|
-
"hardis:
|
|
7034
|
-
"
|
|
7035
|
-
"
|
|
7036
|
-
"
|
|
7037
|
-
"hardis:
|
|
7038
|
-
"
|
|
7039
|
-
"
|
|
7040
|
-
"
|
|
7041
|
-
"hardis:org:
|
|
7042
|
-
"org:hardis:
|
|
7043
|
-
"org:
|
|
7044
|
-
"org:
|
|
7045
|
-
"hardis:
|
|
7046
|
-
"
|
|
7047
|
-
"
|
|
7048
|
-
"
|
|
7049
|
-
"hardis:
|
|
7050
|
-
"
|
|
7051
|
-
"
|
|
7052
|
-
"
|
|
7030
|
+
"hardis:org:diagnose:unusedlicenses",
|
|
7031
|
+
"org:hardis:diagnose:unusedlicenses",
|
|
7032
|
+
"org:diagnose:hardis:unusedlicenses",
|
|
7033
|
+
"org:diagnose:unusedlicenses:hardis",
|
|
7034
|
+
"hardis:diagnose:org:unusedlicenses",
|
|
7035
|
+
"diagnose:hardis:org:unusedlicenses",
|
|
7036
|
+
"diagnose:org:hardis:unusedlicenses",
|
|
7037
|
+
"diagnose:org:unusedlicenses:hardis",
|
|
7038
|
+
"hardis:diagnose:unusedlicenses:org",
|
|
7039
|
+
"diagnose:hardis:unusedlicenses:org",
|
|
7040
|
+
"diagnose:unusedlicenses:hardis:org",
|
|
7041
|
+
"diagnose:unusedlicenses:org:hardis",
|
|
7042
|
+
"hardis:org:unusedlicenses:diagnose",
|
|
7043
|
+
"org:hardis:unusedlicenses:diagnose",
|
|
7044
|
+
"org:unusedlicenses:hardis:diagnose",
|
|
7045
|
+
"org:unusedlicenses:diagnose:hardis",
|
|
7046
|
+
"hardis:unusedlicenses:org:diagnose",
|
|
7047
|
+
"unusedlicenses:hardis:org:diagnose",
|
|
7048
|
+
"unusedlicenses:org:hardis:diagnose",
|
|
7049
|
+
"unusedlicenses:org:diagnose:hardis",
|
|
7050
|
+
"hardis:unusedlicenses:diagnose:org",
|
|
7051
|
+
"unusedlicenses:hardis:diagnose:org",
|
|
7052
|
+
"unusedlicenses:diagnose:hardis:org",
|
|
7053
|
+
"unusedlicenses:diagnose:org:hardis"
|
|
7053
7054
|
]
|
|
7054
7055
|
},
|
|
7055
|
-
"hardis:org:
|
|
7056
|
+
"hardis:org:diagnose:unusedusers": {
|
|
7056
7057
|
"aliases": [],
|
|
7057
7058
|
"args": {},
|
|
7058
|
-
"description": "\n## Command Behavior\n\n**
|
|
7059
|
+
"description": "\n## Command Behavior\n\n**Detects and reports on inactive or unused Salesforce user accounts, helping to optimize license usage and enhance security.**\n\nEfficient user management is vital in Salesforce to ensure resources are optimized and costs are controlled. However, inactive or unused user accounts can often go unnoticed, leading to wasted licenses and potential security risks. This tool addresses this challenge by enabling administrators to identify users who haven't logged in within a specified period.\n\nBy analyzing user login activity and last login timestamps, this feature highlights inactive user accounts, allowing administrators to take appropriate action. Whether it's deactivating dormant accounts, freeing up licenses, or ensuring compliance with security policies, this functionality empowers administrators to maintain a lean and secure Salesforce environment.\n\nKey functionalities:\n\n- **Inactivity Detection:** Identifies users who have not logged in for a specified number of days (`--days` flag, default 180 days in CI, 365 days otherwise).\n- **License Type Filtering:** Allows filtering users by license type using `--licensetypes` (e.g., `all-crm`, `all-paying`) or specific license identifiers using `--licenseidentifiers`.\n - `all-crm`: Includes `SFDC`, `AUL`, `AUL1`, `AULL_IGHT` licenses.\n - `all-paying`: Includes `SFDC`, `AUL`, `AUL1`, `AULL_IGHT`, `PID_Customer_Community`, `PID_Customer_Community_Login`, `PID_Partner_Community`, `PID_Partner_Community_Login` licenses.\n - Note: You can see the full list of available license identifiers in [Salesforce Documentation](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/sfdx_cli_reference/sforce_api_objects_userlicense.htm).\n- **Active User Retrieval:** The `--returnactiveusers` flag inverts the command, allowing you to retrieve active users who *have* logged in during the specified period.\n- **CSV Report Generation:** Generates a CSV file containing details of all identified users (inactive or active), including their last login date, profile, and license information.\n- **Notifications:** Sends notifications to configured channels (Grafana, Slack, MS Teams) with a summary of inactive or active users.\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-inactive-users/) and can output Grafana, Slack and MsTeams Notifications.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **SOQL Query (Bulk API):** It uses `bulkQuery` to efficiently retrieve user records from the Salesforce `User` object. The SOQL query dynamically constructs its WHERE clause based on the `--days`, `--licensetypes`, `--licenseidentifiers`, and `--returnactiveusers` flags.\n- **Interactive Prompts:** Uses `prompts` to interactively ask the user for the number of inactive days and license types if not provided via flags.\n- **License Mapping:** Internally maps common license type aliases (e.g., `all-crm`) to their corresponding Salesforce `LicenseDefinitionKey` values.\n- **Report Generation:** It uses `generateCsvFile` to create the CSV report of users.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including attachments of the generated CSV report and metrics for monitoring dashboards.\n- **User Feedback:** Provides a summary of the findings in the console, indicating the number of inactive or active users found.\n</details>",
|
|
7059
7060
|
"examples": [
|
|
7060
|
-
"$ sf hardis:org:
|
|
7061
|
+
"$ sf hardis:org:diagnose:unusedusers",
|
|
7062
|
+
"$ sf hardis:org:diagnose:unusedusers --days 365",
|
|
7063
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm",
|
|
7064
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licenseidentifiers SFDC,AUL,AUL1",
|
|
7065
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm --returnactiveusers"
|
|
7061
7066
|
],
|
|
7062
7067
|
"flags": {
|
|
7063
7068
|
"json": {
|
|
@@ -7075,45 +7080,46 @@
|
|
|
7075
7080
|
"multiple": false,
|
|
7076
7081
|
"type": "option"
|
|
7077
7082
|
},
|
|
7078
|
-
"
|
|
7079
|
-
"char": "
|
|
7080
|
-
"description": "
|
|
7081
|
-
"name": "
|
|
7083
|
+
"outputfile": {
|
|
7084
|
+
"char": "f",
|
|
7085
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
7086
|
+
"name": "outputfile",
|
|
7082
7087
|
"hasDynamicHelp": false,
|
|
7083
7088
|
"multiple": false,
|
|
7084
7089
|
"type": "option"
|
|
7085
7090
|
},
|
|
7086
|
-
"
|
|
7087
|
-
"char": "
|
|
7088
|
-
"description": "
|
|
7089
|
-
"name": "
|
|
7090
|
-
"default": 1000,
|
|
7091
|
+
"days": {
|
|
7092
|
+
"char": "t",
|
|
7093
|
+
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
7094
|
+
"name": "days",
|
|
7091
7095
|
"hasDynamicHelp": false,
|
|
7092
7096
|
"multiple": false,
|
|
7093
7097
|
"type": "option"
|
|
7094
7098
|
},
|
|
7095
|
-
"
|
|
7096
|
-
"char": "
|
|
7097
|
-
"description": "
|
|
7098
|
-
"name": "
|
|
7099
|
-
"default": 300000,
|
|
7099
|
+
"licensetypes": {
|
|
7100
|
+
"char": "l",
|
|
7101
|
+
"description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
|
|
7102
|
+
"name": "licensetypes",
|
|
7100
7103
|
"hasDynamicHelp": false,
|
|
7101
7104
|
"multiple": false,
|
|
7105
|
+
"options": [
|
|
7106
|
+
"all",
|
|
7107
|
+
"all-crm",
|
|
7108
|
+
"all-paying"
|
|
7109
|
+
],
|
|
7102
7110
|
"type": "option"
|
|
7103
7111
|
},
|
|
7104
|
-
"
|
|
7105
|
-
"char": "
|
|
7106
|
-
"description": "
|
|
7107
|
-
"name": "
|
|
7108
|
-
"default": 0,
|
|
7112
|
+
"licenseidentifiers": {
|
|
7113
|
+
"char": "i",
|
|
7114
|
+
"description": "Comma-separated list of license identifiers, in case licensetypes is not used.. Identifiers available at https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userlicense.htm",
|
|
7115
|
+
"name": "licenseidentifiers",
|
|
7109
7116
|
"hasDynamicHelp": false,
|
|
7110
7117
|
"multiple": false,
|
|
7111
7118
|
"type": "option"
|
|
7112
7119
|
},
|
|
7113
|
-
"
|
|
7114
|
-
"
|
|
7115
|
-
"
|
|
7116
|
-
"name": "resume",
|
|
7120
|
+
"returnactiveusers": {
|
|
7121
|
+
"description": "Inverts the command by returning the active users",
|
|
7122
|
+
"name": "returnactiveusers",
|
|
7117
7123
|
"allowNo": false,
|
|
7118
7124
|
"type": "boolean"
|
|
7119
7125
|
},
|
|
@@ -7155,13 +7161,13 @@
|
|
|
7155
7161
|
},
|
|
7156
7162
|
"hasDynamicHelp": true,
|
|
7157
7163
|
"hiddenAliases": [],
|
|
7158
|
-
"id": "hardis:org:
|
|
7164
|
+
"id": "hardis:org:diagnose:unusedusers",
|
|
7159
7165
|
"pluginAlias": "sfdx-hardis",
|
|
7160
7166
|
"pluginName": "sfdx-hardis",
|
|
7161
7167
|
"pluginType": "core",
|
|
7162
7168
|
"strict": true,
|
|
7163
7169
|
"enableJsonFlag": true,
|
|
7164
|
-
"title": "
|
|
7170
|
+
"title": "Detect unused Users in Salesforce",
|
|
7165
7171
|
"requiresProject": false,
|
|
7166
7172
|
"isESM": true,
|
|
7167
7173
|
"relativePath": [
|
|
@@ -7169,43 +7175,44 @@
|
|
|
7169
7175
|
"commands",
|
|
7170
7176
|
"hardis",
|
|
7171
7177
|
"org",
|
|
7172
|
-
"
|
|
7173
|
-
"
|
|
7178
|
+
"diagnose",
|
|
7179
|
+
"unusedusers.js"
|
|
7174
7180
|
],
|
|
7175
7181
|
"aliasPermutations": [],
|
|
7176
7182
|
"permutations": [
|
|
7177
|
-
"hardis:org:
|
|
7178
|
-
"org:hardis:
|
|
7179
|
-
"org:
|
|
7180
|
-
"org:
|
|
7181
|
-
"hardis:
|
|
7182
|
-
"
|
|
7183
|
-
"
|
|
7184
|
-
"
|
|
7185
|
-
"hardis:
|
|
7186
|
-
"
|
|
7187
|
-
"
|
|
7188
|
-
"
|
|
7189
|
-
"hardis:org:
|
|
7190
|
-
"org:hardis:
|
|
7191
|
-
"org:
|
|
7192
|
-
"org:
|
|
7193
|
-
"hardis:
|
|
7194
|
-
"
|
|
7195
|
-
"
|
|
7196
|
-
"
|
|
7197
|
-
"hardis:
|
|
7198
|
-
"
|
|
7199
|
-
"
|
|
7200
|
-
"
|
|
7183
|
+
"hardis:org:diagnose:unusedusers",
|
|
7184
|
+
"org:hardis:diagnose:unusedusers",
|
|
7185
|
+
"org:diagnose:hardis:unusedusers",
|
|
7186
|
+
"org:diagnose:unusedusers:hardis",
|
|
7187
|
+
"hardis:diagnose:org:unusedusers",
|
|
7188
|
+
"diagnose:hardis:org:unusedusers",
|
|
7189
|
+
"diagnose:org:hardis:unusedusers",
|
|
7190
|
+
"diagnose:org:unusedusers:hardis",
|
|
7191
|
+
"hardis:diagnose:unusedusers:org",
|
|
7192
|
+
"diagnose:hardis:unusedusers:org",
|
|
7193
|
+
"diagnose:unusedusers:hardis:org",
|
|
7194
|
+
"diagnose:unusedusers:org:hardis",
|
|
7195
|
+
"hardis:org:unusedusers:diagnose",
|
|
7196
|
+
"org:hardis:unusedusers:diagnose",
|
|
7197
|
+
"org:unusedusers:hardis:diagnose",
|
|
7198
|
+
"org:unusedusers:diagnose:hardis",
|
|
7199
|
+
"hardis:unusedusers:org:diagnose",
|
|
7200
|
+
"unusedusers:hardis:org:diagnose",
|
|
7201
|
+
"unusedusers:org:hardis:diagnose",
|
|
7202
|
+
"unusedusers:org:diagnose:hardis",
|
|
7203
|
+
"hardis:unusedusers:diagnose:org",
|
|
7204
|
+
"unusedusers:hardis:diagnose:org",
|
|
7205
|
+
"unusedusers:diagnose:hardis:org",
|
|
7206
|
+
"unusedusers:diagnose:org:hardis"
|
|
7201
7207
|
]
|
|
7202
7208
|
},
|
|
7203
|
-
"hardis:org:
|
|
7209
|
+
"hardis:org:fix:listviewmine": {
|
|
7204
7210
|
"aliases": [],
|
|
7205
7211
|
"args": {},
|
|
7206
|
-
"description": "
|
|
7212
|
+
"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",
|
|
7207
7213
|
"examples": [
|
|
7208
|
-
"$ sf hardis:org:
|
|
7214
|
+
"$ sf hardis:org:fix:listviewmine",
|
|
7215
|
+
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
7209
7216
|
],
|
|
7210
7217
|
"flags": {
|
|
7211
7218
|
"json": {
|
|
@@ -7223,21 +7230,14 @@
|
|
|
7223
7230
|
"multiple": false,
|
|
7224
7231
|
"type": "option"
|
|
7225
7232
|
},
|
|
7226
|
-
"
|
|
7227
|
-
"char": "
|
|
7228
|
-
"description": "
|
|
7229
|
-
"name": "
|
|
7233
|
+
"listviews": {
|
|
7234
|
+
"char": "l",
|
|
7235
|
+
"description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
|
|
7236
|
+
"name": "listviews",
|
|
7230
7237
|
"hasDynamicHelp": false,
|
|
7231
7238
|
"multiple": false,
|
|
7232
7239
|
"type": "option"
|
|
7233
7240
|
},
|
|
7234
|
-
"overwrite": {
|
|
7235
|
-
"char": "f",
|
|
7236
|
-
"description": "Override existing files (doubles the number of API calls)",
|
|
7237
|
-
"name": "overwrite",
|
|
7238
|
-
"allowNo": false,
|
|
7239
|
-
"type": "boolean"
|
|
7240
|
-
},
|
|
7241
7241
|
"debug": {
|
|
7242
7242
|
"char": "d",
|
|
7243
7243
|
"description": "Activate debug mode (more logs)",
|
|
@@ -7276,49 +7276,49 @@
|
|
|
7276
7276
|
},
|
|
7277
7277
|
"hasDynamicHelp": true,
|
|
7278
7278
|
"hiddenAliases": [],
|
|
7279
|
-
"id": "hardis:org:
|
|
7279
|
+
"id": "hardis:org:fix:listviewmine",
|
|
7280
7280
|
"pluginAlias": "sfdx-hardis",
|
|
7281
7281
|
"pluginName": "sfdx-hardis",
|
|
7282
7282
|
"pluginType": "core",
|
|
7283
7283
|
"strict": true,
|
|
7284
7284
|
"enableJsonFlag": true,
|
|
7285
|
-
"title": "
|
|
7286
|
-
"requiresProject":
|
|
7285
|
+
"title": "Fix listviews with ",
|
|
7286
|
+
"requiresProject": true,
|
|
7287
7287
|
"isESM": true,
|
|
7288
7288
|
"relativePath": [
|
|
7289
7289
|
"lib",
|
|
7290
7290
|
"commands",
|
|
7291
7291
|
"hardis",
|
|
7292
7292
|
"org",
|
|
7293
|
-
"
|
|
7294
|
-
"
|
|
7293
|
+
"fix",
|
|
7294
|
+
"listviewmine.js"
|
|
7295
7295
|
],
|
|
7296
7296
|
"aliasPermutations": [],
|
|
7297
7297
|
"permutations": [
|
|
7298
|
-
"hardis:org:
|
|
7299
|
-
"org:hardis:
|
|
7300
|
-
"org:
|
|
7301
|
-
"org:
|
|
7302
|
-
"hardis:
|
|
7303
|
-
"
|
|
7304
|
-
"
|
|
7305
|
-
"
|
|
7306
|
-
"hardis:
|
|
7307
|
-
"
|
|
7308
|
-
"
|
|
7309
|
-
"
|
|
7310
|
-
"hardis:org:
|
|
7311
|
-
"org:hardis:
|
|
7312
|
-
"org:
|
|
7313
|
-
"org:
|
|
7314
|
-
"hardis:
|
|
7315
|
-
"
|
|
7316
|
-
"
|
|
7317
|
-
"
|
|
7318
|
-
"hardis:
|
|
7319
|
-
"
|
|
7320
|
-
"
|
|
7321
|
-
"
|
|
7298
|
+
"hardis:org:fix:listviewmine",
|
|
7299
|
+
"org:hardis:fix:listviewmine",
|
|
7300
|
+
"org:fix:hardis:listviewmine",
|
|
7301
|
+
"org:fix:listviewmine:hardis",
|
|
7302
|
+
"hardis:fix:org:listviewmine",
|
|
7303
|
+
"fix:hardis:org:listviewmine",
|
|
7304
|
+
"fix:org:hardis:listviewmine",
|
|
7305
|
+
"fix:org:listviewmine:hardis",
|
|
7306
|
+
"hardis:fix:listviewmine:org",
|
|
7307
|
+
"fix:hardis:listviewmine:org",
|
|
7308
|
+
"fix:listviewmine:hardis:org",
|
|
7309
|
+
"fix:listviewmine:org:hardis",
|
|
7310
|
+
"hardis:org:listviewmine:fix",
|
|
7311
|
+
"org:hardis:listviewmine:fix",
|
|
7312
|
+
"org:listviewmine:hardis:fix",
|
|
7313
|
+
"org:listviewmine:fix:hardis",
|
|
7314
|
+
"hardis:listviewmine:org:fix",
|
|
7315
|
+
"listviewmine:hardis:org:fix",
|
|
7316
|
+
"listviewmine:org:hardis:fix",
|
|
7317
|
+
"listviewmine:org:fix:hardis",
|
|
7318
|
+
"hardis:listviewmine:fix:org",
|
|
7319
|
+
"listviewmine:hardis:fix:org",
|
|
7320
|
+
"listviewmine:fix:hardis:org",
|
|
7321
|
+
"listviewmine:fix:org:hardis"
|
|
7322
7322
|
]
|
|
7323
7323
|
},
|
|
7324
7324
|
"hardis:org:generate:packagexmlfull": {
|
|
@@ -10068,6 +10068,109 @@
|
|
|
10068
10068
|
"auth:configure:project:hardis"
|
|
10069
10069
|
]
|
|
10070
10070
|
},
|
|
10071
|
+
"hardis:project:convert:profilestopermsets": {
|
|
10072
|
+
"aliases": [],
|
|
10073
|
+
"args": {},
|
|
10074
|
+
"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",
|
|
10075
|
+
"examples": [
|
|
10076
|
+
"$ sf hardis:project:convert:profilestopermsets"
|
|
10077
|
+
],
|
|
10078
|
+
"flags": {
|
|
10079
|
+
"json": {
|
|
10080
|
+
"description": "Format output as json.",
|
|
10081
|
+
"helpGroup": "GLOBAL",
|
|
10082
|
+
"name": "json",
|
|
10083
|
+
"allowNo": false,
|
|
10084
|
+
"type": "boolean"
|
|
10085
|
+
},
|
|
10086
|
+
"flags-dir": {
|
|
10087
|
+
"helpGroup": "GLOBAL",
|
|
10088
|
+
"name": "flags-dir",
|
|
10089
|
+
"summary": "Import flag values from a directory.",
|
|
10090
|
+
"hasDynamicHelp": false,
|
|
10091
|
+
"multiple": false,
|
|
10092
|
+
"type": "option"
|
|
10093
|
+
},
|
|
10094
|
+
"except": {
|
|
10095
|
+
"char": "e",
|
|
10096
|
+
"description": "List of filters",
|
|
10097
|
+
"name": "except",
|
|
10098
|
+
"default": [],
|
|
10099
|
+
"hasDynamicHelp": false,
|
|
10100
|
+
"multiple": true,
|
|
10101
|
+
"type": "option"
|
|
10102
|
+
},
|
|
10103
|
+
"debug": {
|
|
10104
|
+
"char": "d",
|
|
10105
|
+
"description": "Activate debug mode (more logs)",
|
|
10106
|
+
"name": "debug",
|
|
10107
|
+
"allowNo": false,
|
|
10108
|
+
"type": "boolean"
|
|
10109
|
+
},
|
|
10110
|
+
"websocket": {
|
|
10111
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
10112
|
+
"name": "websocket",
|
|
10113
|
+
"hasDynamicHelp": false,
|
|
10114
|
+
"multiple": false,
|
|
10115
|
+
"type": "option"
|
|
10116
|
+
},
|
|
10117
|
+
"skipauth": {
|
|
10118
|
+
"description": "Skip authentication check when a default username is required",
|
|
10119
|
+
"name": "skipauth",
|
|
10120
|
+
"allowNo": false,
|
|
10121
|
+
"type": "boolean"
|
|
10122
|
+
}
|
|
10123
|
+
},
|
|
10124
|
+
"hasDynamicHelp": false,
|
|
10125
|
+
"hiddenAliases": [],
|
|
10126
|
+
"id": "hardis:project:convert:profilestopermsets",
|
|
10127
|
+
"pluginAlias": "sfdx-hardis",
|
|
10128
|
+
"pluginName": "sfdx-hardis",
|
|
10129
|
+
"pluginType": "core",
|
|
10130
|
+
"strict": true,
|
|
10131
|
+
"enableJsonFlag": true,
|
|
10132
|
+
"title": "Convert Profiles into Permission Sets",
|
|
10133
|
+
"requiresProject": true,
|
|
10134
|
+
"requiresSfdxPlugins": [
|
|
10135
|
+
"shane-sfdx-plugins"
|
|
10136
|
+
],
|
|
10137
|
+
"isESM": true,
|
|
10138
|
+
"relativePath": [
|
|
10139
|
+
"lib",
|
|
10140
|
+
"commands",
|
|
10141
|
+
"hardis",
|
|
10142
|
+
"project",
|
|
10143
|
+
"convert",
|
|
10144
|
+
"profilestopermsets.js"
|
|
10145
|
+
],
|
|
10146
|
+
"aliasPermutations": [],
|
|
10147
|
+
"permutations": [
|
|
10148
|
+
"hardis:project:convert:profilestopermsets",
|
|
10149
|
+
"project:hardis:convert:profilestopermsets",
|
|
10150
|
+
"project:convert:hardis:profilestopermsets",
|
|
10151
|
+
"project:convert:profilestopermsets:hardis",
|
|
10152
|
+
"hardis:convert:project:profilestopermsets",
|
|
10153
|
+
"convert:hardis:project:profilestopermsets",
|
|
10154
|
+
"convert:project:hardis:profilestopermsets",
|
|
10155
|
+
"convert:project:profilestopermsets:hardis",
|
|
10156
|
+
"hardis:convert:profilestopermsets:project",
|
|
10157
|
+
"convert:hardis:profilestopermsets:project",
|
|
10158
|
+
"convert:profilestopermsets:hardis:project",
|
|
10159
|
+
"convert:profilestopermsets:project:hardis",
|
|
10160
|
+
"hardis:project:profilestopermsets:convert",
|
|
10161
|
+
"project:hardis:profilestopermsets:convert",
|
|
10162
|
+
"project:profilestopermsets:hardis:convert",
|
|
10163
|
+
"project:profilestopermsets:convert:hardis",
|
|
10164
|
+
"hardis:profilestopermsets:project:convert",
|
|
10165
|
+
"profilestopermsets:hardis:project:convert",
|
|
10166
|
+
"profilestopermsets:project:hardis:convert",
|
|
10167
|
+
"profilestopermsets:project:convert:hardis",
|
|
10168
|
+
"hardis:profilestopermsets:convert:project",
|
|
10169
|
+
"profilestopermsets:hardis:convert:project",
|
|
10170
|
+
"profilestopermsets:convert:hardis:project",
|
|
10171
|
+
"profilestopermsets:convert:project:hardis"
|
|
10172
|
+
]
|
|
10173
|
+
},
|
|
10071
10174
|
"hardis:project:clean:emptyitems": {
|
|
10072
10175
|
"aliases": [],
|
|
10073
10176
|
"args": {},
|
|
@@ -11654,12 +11757,12 @@
|
|
|
11654
11757
|
"xml:clean:project:hardis"
|
|
11655
11758
|
]
|
|
11656
11759
|
},
|
|
11657
|
-
"hardis:project:
|
|
11760
|
+
"hardis:project:fix:profiletabs": {
|
|
11658
11761
|
"aliases": [],
|
|
11659
11762
|
"args": {},
|
|
11660
|
-
"description": "\n## Command Behavior\n\n**
|
|
11763
|
+
"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",
|
|
11661
11764
|
"examples": [
|
|
11662
|
-
"$ sf hardis:project:
|
|
11765
|
+
"$ sf hardis:project:fix:profiletabs"
|
|
11663
11766
|
],
|
|
11664
11767
|
"flags": {
|
|
11665
11768
|
"json": {
|
|
@@ -11677,13 +11780,13 @@
|
|
|
11677
11780
|
"multiple": false,
|
|
11678
11781
|
"type": "option"
|
|
11679
11782
|
},
|
|
11680
|
-
"
|
|
11681
|
-
"char": "
|
|
11682
|
-
"description": "
|
|
11683
|
-
"name": "
|
|
11684
|
-
"default":
|
|
11783
|
+
"path": {
|
|
11784
|
+
"char": "p",
|
|
11785
|
+
"description": "Root folder",
|
|
11786
|
+
"name": "path",
|
|
11787
|
+
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
11685
11788
|
"hasDynamicHelp": false,
|
|
11686
|
-
"multiple":
|
|
11789
|
+
"multiple": false,
|
|
11687
11790
|
"type": "option"
|
|
11688
11791
|
},
|
|
11689
11792
|
"debug": {
|
|
@@ -11705,56 +11808,168 @@
|
|
|
11705
11808
|
"name": "skipauth",
|
|
11706
11809
|
"allowNo": false,
|
|
11707
11810
|
"type": "boolean"
|
|
11811
|
+
},
|
|
11812
|
+
"target-org": {
|
|
11813
|
+
"aliases": [
|
|
11814
|
+
"targetusername",
|
|
11815
|
+
"u"
|
|
11816
|
+
],
|
|
11817
|
+
"char": "o",
|
|
11818
|
+
"deprecateAliases": true,
|
|
11819
|
+
"name": "target-org",
|
|
11820
|
+
"noCacheDefault": true,
|
|
11821
|
+
"required": true,
|
|
11822
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
11823
|
+
"hasDynamicHelp": true,
|
|
11824
|
+
"multiple": false,
|
|
11825
|
+
"type": "option"
|
|
11708
11826
|
}
|
|
11709
11827
|
},
|
|
11710
|
-
"hasDynamicHelp":
|
|
11828
|
+
"hasDynamicHelp": true,
|
|
11711
11829
|
"hiddenAliases": [],
|
|
11712
|
-
"id": "hardis:project:
|
|
11830
|
+
"id": "hardis:project:fix:profiletabs",
|
|
11713
11831
|
"pluginAlias": "sfdx-hardis",
|
|
11714
11832
|
"pluginName": "sfdx-hardis",
|
|
11715
11833
|
"pluginType": "core",
|
|
11716
11834
|
"strict": true,
|
|
11717
11835
|
"enableJsonFlag": true,
|
|
11718
|
-
"title": "
|
|
11836
|
+
"title": "Fix profiles to add tabs that are not retrieved by SF CLI",
|
|
11719
11837
|
"requiresProject": true,
|
|
11720
|
-
"requiresSfdxPlugins": [
|
|
11721
|
-
"shane-sfdx-plugins"
|
|
11722
|
-
],
|
|
11723
11838
|
"isESM": true,
|
|
11724
11839
|
"relativePath": [
|
|
11725
11840
|
"lib",
|
|
11726
11841
|
"commands",
|
|
11727
11842
|
"hardis",
|
|
11728
11843
|
"project",
|
|
11729
|
-
"
|
|
11730
|
-
"
|
|
11844
|
+
"fix",
|
|
11845
|
+
"profiletabs.js"
|
|
11731
11846
|
],
|
|
11732
11847
|
"aliasPermutations": [],
|
|
11733
11848
|
"permutations": [
|
|
11734
|
-
"hardis:project:
|
|
11735
|
-
"project:hardis:
|
|
11736
|
-
"project:
|
|
11737
|
-
"project:
|
|
11738
|
-
"hardis:
|
|
11739
|
-
"
|
|
11740
|
-
"
|
|
11741
|
-
"
|
|
11742
|
-
"hardis:
|
|
11743
|
-
"
|
|
11744
|
-
"
|
|
11745
|
-
"
|
|
11746
|
-
"hardis:project:
|
|
11747
|
-
"project:hardis:
|
|
11748
|
-
"project:
|
|
11749
|
-
"project:
|
|
11750
|
-
"hardis:
|
|
11751
|
-
"
|
|
11752
|
-
"
|
|
11753
|
-
"
|
|
11754
|
-
"hardis:
|
|
11755
|
-
"
|
|
11756
|
-
"
|
|
11757
|
-
"
|
|
11849
|
+
"hardis:project:fix:profiletabs",
|
|
11850
|
+
"project:hardis:fix:profiletabs",
|
|
11851
|
+
"project:fix:hardis:profiletabs",
|
|
11852
|
+
"project:fix:profiletabs:hardis",
|
|
11853
|
+
"hardis:fix:project:profiletabs",
|
|
11854
|
+
"fix:hardis:project:profiletabs",
|
|
11855
|
+
"fix:project:hardis:profiletabs",
|
|
11856
|
+
"fix:project:profiletabs:hardis",
|
|
11857
|
+
"hardis:fix:profiletabs:project",
|
|
11858
|
+
"fix:hardis:profiletabs:project",
|
|
11859
|
+
"fix:profiletabs:hardis:project",
|
|
11860
|
+
"fix:profiletabs:project:hardis",
|
|
11861
|
+
"hardis:project:profiletabs:fix",
|
|
11862
|
+
"project:hardis:profiletabs:fix",
|
|
11863
|
+
"project:profiletabs:hardis:fix",
|
|
11864
|
+
"project:profiletabs:fix:hardis",
|
|
11865
|
+
"hardis:profiletabs:project:fix",
|
|
11866
|
+
"profiletabs:hardis:project:fix",
|
|
11867
|
+
"profiletabs:project:hardis:fix",
|
|
11868
|
+
"profiletabs:project:fix:hardis",
|
|
11869
|
+
"hardis:profiletabs:fix:project",
|
|
11870
|
+
"profiletabs:hardis:fix:project",
|
|
11871
|
+
"profiletabs:fix:hardis:project",
|
|
11872
|
+
"profiletabs:fix:project:hardis"
|
|
11873
|
+
]
|
|
11874
|
+
},
|
|
11875
|
+
"hardis:project:fix:v53flexipages": {
|
|
11876
|
+
"aliases": [],
|
|
11877
|
+
"args": {},
|
|
11878
|
+
"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",
|
|
11879
|
+
"examples": [
|
|
11880
|
+
"$ sf hardis:project:fix:v53flexipages"
|
|
11881
|
+
],
|
|
11882
|
+
"flags": {
|
|
11883
|
+
"json": {
|
|
11884
|
+
"description": "Format output as json.",
|
|
11885
|
+
"helpGroup": "GLOBAL",
|
|
11886
|
+
"name": "json",
|
|
11887
|
+
"allowNo": false,
|
|
11888
|
+
"type": "boolean"
|
|
11889
|
+
},
|
|
11890
|
+
"flags-dir": {
|
|
11891
|
+
"helpGroup": "GLOBAL",
|
|
11892
|
+
"name": "flags-dir",
|
|
11893
|
+
"summary": "Import flag values from a directory.",
|
|
11894
|
+
"hasDynamicHelp": false,
|
|
11895
|
+
"multiple": false,
|
|
11896
|
+
"type": "option"
|
|
11897
|
+
},
|
|
11898
|
+
"path": {
|
|
11899
|
+
"char": "p",
|
|
11900
|
+
"description": "Root folder",
|
|
11901
|
+
"name": "path",
|
|
11902
|
+
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
11903
|
+
"hasDynamicHelp": false,
|
|
11904
|
+
"multiple": false,
|
|
11905
|
+
"type": "option"
|
|
11906
|
+
},
|
|
11907
|
+
"debug": {
|
|
11908
|
+
"char": "d",
|
|
11909
|
+
"description": "Activate debug mode (more logs)",
|
|
11910
|
+
"name": "debug",
|
|
11911
|
+
"allowNo": false,
|
|
11912
|
+
"type": "boolean"
|
|
11913
|
+
},
|
|
11914
|
+
"websocket": {
|
|
11915
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11916
|
+
"name": "websocket",
|
|
11917
|
+
"hasDynamicHelp": false,
|
|
11918
|
+
"multiple": false,
|
|
11919
|
+
"type": "option"
|
|
11920
|
+
},
|
|
11921
|
+
"skipauth": {
|
|
11922
|
+
"description": "Skip authentication check when a default username is required",
|
|
11923
|
+
"name": "skipauth",
|
|
11924
|
+
"allowNo": false,
|
|
11925
|
+
"type": "boolean"
|
|
11926
|
+
}
|
|
11927
|
+
},
|
|
11928
|
+
"hasDynamicHelp": false,
|
|
11929
|
+
"hiddenAliases": [],
|
|
11930
|
+
"id": "hardis:project:fix:v53flexipages",
|
|
11931
|
+
"pluginAlias": "sfdx-hardis",
|
|
11932
|
+
"pluginName": "sfdx-hardis",
|
|
11933
|
+
"pluginType": "core",
|
|
11934
|
+
"strict": true,
|
|
11935
|
+
"enableJsonFlag": true,
|
|
11936
|
+
"title": "Fix flexipages for v53",
|
|
11937
|
+
"requiresProject": true,
|
|
11938
|
+
"isESM": true,
|
|
11939
|
+
"relativePath": [
|
|
11940
|
+
"lib",
|
|
11941
|
+
"commands",
|
|
11942
|
+
"hardis",
|
|
11943
|
+
"project",
|
|
11944
|
+
"fix",
|
|
11945
|
+
"v53flexipages.js"
|
|
11946
|
+
],
|
|
11947
|
+
"aliasPermutations": [],
|
|
11948
|
+
"permutations": [
|
|
11949
|
+
"hardis:project:fix:v53flexipages",
|
|
11950
|
+
"project:hardis:fix:v53flexipages",
|
|
11951
|
+
"project:fix:hardis:v53flexipages",
|
|
11952
|
+
"project:fix:v53flexipages:hardis",
|
|
11953
|
+
"hardis:fix:project:v53flexipages",
|
|
11954
|
+
"fix:hardis:project:v53flexipages",
|
|
11955
|
+
"fix:project:hardis:v53flexipages",
|
|
11956
|
+
"fix:project:v53flexipages:hardis",
|
|
11957
|
+
"hardis:fix:v53flexipages:project",
|
|
11958
|
+
"fix:hardis:v53flexipages:project",
|
|
11959
|
+
"fix:v53flexipages:hardis:project",
|
|
11960
|
+
"fix:v53flexipages:project:hardis",
|
|
11961
|
+
"hardis:project:v53flexipages:fix",
|
|
11962
|
+
"project:hardis:v53flexipages:fix",
|
|
11963
|
+
"project:v53flexipages:hardis:fix",
|
|
11964
|
+
"project:v53flexipages:fix:hardis",
|
|
11965
|
+
"hardis:v53flexipages:project:fix",
|
|
11966
|
+
"v53flexipages:hardis:project:fix",
|
|
11967
|
+
"v53flexipages:project:hardis:fix",
|
|
11968
|
+
"v53flexipages:project:fix:hardis",
|
|
11969
|
+
"hardis:v53flexipages:fix:project",
|
|
11970
|
+
"v53flexipages:hardis:fix:project",
|
|
11971
|
+
"v53flexipages:fix:hardis:project",
|
|
11972
|
+
"v53flexipages:fix:project:hardis"
|
|
11758
11973
|
]
|
|
11759
11974
|
},
|
|
11760
11975
|
"hardis:project:deploy:notify": {
|
|
@@ -12931,221 +13146,6 @@
|
|
|
12931
13146
|
"validate:deploy:project:hardis"
|
|
12932
13147
|
]
|
|
12933
13148
|
},
|
|
12934
|
-
"hardis:project:fix:profiletabs": {
|
|
12935
|
-
"aliases": [],
|
|
12936
|
-
"args": {},
|
|
12937
|
-
"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",
|
|
12938
|
-
"examples": [
|
|
12939
|
-
"$ sf hardis:project:fix:profiletabs"
|
|
12940
|
-
],
|
|
12941
|
-
"flags": {
|
|
12942
|
-
"json": {
|
|
12943
|
-
"description": "Format output as json.",
|
|
12944
|
-
"helpGroup": "GLOBAL",
|
|
12945
|
-
"name": "json",
|
|
12946
|
-
"allowNo": false,
|
|
12947
|
-
"type": "boolean"
|
|
12948
|
-
},
|
|
12949
|
-
"flags-dir": {
|
|
12950
|
-
"helpGroup": "GLOBAL",
|
|
12951
|
-
"name": "flags-dir",
|
|
12952
|
-
"summary": "Import flag values from a directory.",
|
|
12953
|
-
"hasDynamicHelp": false,
|
|
12954
|
-
"multiple": false,
|
|
12955
|
-
"type": "option"
|
|
12956
|
-
},
|
|
12957
|
-
"path": {
|
|
12958
|
-
"char": "p",
|
|
12959
|
-
"description": "Root folder",
|
|
12960
|
-
"name": "path",
|
|
12961
|
-
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
12962
|
-
"hasDynamicHelp": false,
|
|
12963
|
-
"multiple": false,
|
|
12964
|
-
"type": "option"
|
|
12965
|
-
},
|
|
12966
|
-
"debug": {
|
|
12967
|
-
"char": "d",
|
|
12968
|
-
"description": "Activate debug mode (more logs)",
|
|
12969
|
-
"name": "debug",
|
|
12970
|
-
"allowNo": false,
|
|
12971
|
-
"type": "boolean"
|
|
12972
|
-
},
|
|
12973
|
-
"websocket": {
|
|
12974
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
12975
|
-
"name": "websocket",
|
|
12976
|
-
"hasDynamicHelp": false,
|
|
12977
|
-
"multiple": false,
|
|
12978
|
-
"type": "option"
|
|
12979
|
-
},
|
|
12980
|
-
"skipauth": {
|
|
12981
|
-
"description": "Skip authentication check when a default username is required",
|
|
12982
|
-
"name": "skipauth",
|
|
12983
|
-
"allowNo": false,
|
|
12984
|
-
"type": "boolean"
|
|
12985
|
-
},
|
|
12986
|
-
"target-org": {
|
|
12987
|
-
"aliases": [
|
|
12988
|
-
"targetusername",
|
|
12989
|
-
"u"
|
|
12990
|
-
],
|
|
12991
|
-
"char": "o",
|
|
12992
|
-
"deprecateAliases": true,
|
|
12993
|
-
"name": "target-org",
|
|
12994
|
-
"noCacheDefault": true,
|
|
12995
|
-
"required": true,
|
|
12996
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
12997
|
-
"hasDynamicHelp": true,
|
|
12998
|
-
"multiple": false,
|
|
12999
|
-
"type": "option"
|
|
13000
|
-
}
|
|
13001
|
-
},
|
|
13002
|
-
"hasDynamicHelp": true,
|
|
13003
|
-
"hiddenAliases": [],
|
|
13004
|
-
"id": "hardis:project:fix:profiletabs",
|
|
13005
|
-
"pluginAlias": "sfdx-hardis",
|
|
13006
|
-
"pluginName": "sfdx-hardis",
|
|
13007
|
-
"pluginType": "core",
|
|
13008
|
-
"strict": true,
|
|
13009
|
-
"enableJsonFlag": true,
|
|
13010
|
-
"title": "Fix profiles to add tabs that are not retrieved by SF CLI",
|
|
13011
|
-
"requiresProject": true,
|
|
13012
|
-
"isESM": true,
|
|
13013
|
-
"relativePath": [
|
|
13014
|
-
"lib",
|
|
13015
|
-
"commands",
|
|
13016
|
-
"hardis",
|
|
13017
|
-
"project",
|
|
13018
|
-
"fix",
|
|
13019
|
-
"profiletabs.js"
|
|
13020
|
-
],
|
|
13021
|
-
"aliasPermutations": [],
|
|
13022
|
-
"permutations": [
|
|
13023
|
-
"hardis:project:fix:profiletabs",
|
|
13024
|
-
"project:hardis:fix:profiletabs",
|
|
13025
|
-
"project:fix:hardis:profiletabs",
|
|
13026
|
-
"project:fix:profiletabs:hardis",
|
|
13027
|
-
"hardis:fix:project:profiletabs",
|
|
13028
|
-
"fix:hardis:project:profiletabs",
|
|
13029
|
-
"fix:project:hardis:profiletabs",
|
|
13030
|
-
"fix:project:profiletabs:hardis",
|
|
13031
|
-
"hardis:fix:profiletabs:project",
|
|
13032
|
-
"fix:hardis:profiletabs:project",
|
|
13033
|
-
"fix:profiletabs:hardis:project",
|
|
13034
|
-
"fix:profiletabs:project:hardis",
|
|
13035
|
-
"hardis:project:profiletabs:fix",
|
|
13036
|
-
"project:hardis:profiletabs:fix",
|
|
13037
|
-
"project:profiletabs:hardis:fix",
|
|
13038
|
-
"project:profiletabs:fix:hardis",
|
|
13039
|
-
"hardis:profiletabs:project:fix",
|
|
13040
|
-
"profiletabs:hardis:project:fix",
|
|
13041
|
-
"profiletabs:project:hardis:fix",
|
|
13042
|
-
"profiletabs:project:fix:hardis",
|
|
13043
|
-
"hardis:profiletabs:fix:project",
|
|
13044
|
-
"profiletabs:hardis:fix:project",
|
|
13045
|
-
"profiletabs:fix:hardis:project",
|
|
13046
|
-
"profiletabs:fix:project:hardis"
|
|
13047
|
-
]
|
|
13048
|
-
},
|
|
13049
|
-
"hardis:project:fix:v53flexipages": {
|
|
13050
|
-
"aliases": [],
|
|
13051
|
-
"args": {},
|
|
13052
|
-
"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",
|
|
13053
|
-
"examples": [
|
|
13054
|
-
"$ sf hardis:project:fix:v53flexipages"
|
|
13055
|
-
],
|
|
13056
|
-
"flags": {
|
|
13057
|
-
"json": {
|
|
13058
|
-
"description": "Format output as json.",
|
|
13059
|
-
"helpGroup": "GLOBAL",
|
|
13060
|
-
"name": "json",
|
|
13061
|
-
"allowNo": false,
|
|
13062
|
-
"type": "boolean"
|
|
13063
|
-
},
|
|
13064
|
-
"flags-dir": {
|
|
13065
|
-
"helpGroup": "GLOBAL",
|
|
13066
|
-
"name": "flags-dir",
|
|
13067
|
-
"summary": "Import flag values from a directory.",
|
|
13068
|
-
"hasDynamicHelp": false,
|
|
13069
|
-
"multiple": false,
|
|
13070
|
-
"type": "option"
|
|
13071
|
-
},
|
|
13072
|
-
"path": {
|
|
13073
|
-
"char": "p",
|
|
13074
|
-
"description": "Root folder",
|
|
13075
|
-
"name": "path",
|
|
13076
|
-
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
13077
|
-
"hasDynamicHelp": false,
|
|
13078
|
-
"multiple": false,
|
|
13079
|
-
"type": "option"
|
|
13080
|
-
},
|
|
13081
|
-
"debug": {
|
|
13082
|
-
"char": "d",
|
|
13083
|
-
"description": "Activate debug mode (more logs)",
|
|
13084
|
-
"name": "debug",
|
|
13085
|
-
"allowNo": false,
|
|
13086
|
-
"type": "boolean"
|
|
13087
|
-
},
|
|
13088
|
-
"websocket": {
|
|
13089
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
13090
|
-
"name": "websocket",
|
|
13091
|
-
"hasDynamicHelp": false,
|
|
13092
|
-
"multiple": false,
|
|
13093
|
-
"type": "option"
|
|
13094
|
-
},
|
|
13095
|
-
"skipauth": {
|
|
13096
|
-
"description": "Skip authentication check when a default username is required",
|
|
13097
|
-
"name": "skipauth",
|
|
13098
|
-
"allowNo": false,
|
|
13099
|
-
"type": "boolean"
|
|
13100
|
-
}
|
|
13101
|
-
},
|
|
13102
|
-
"hasDynamicHelp": false,
|
|
13103
|
-
"hiddenAliases": [],
|
|
13104
|
-
"id": "hardis:project:fix:v53flexipages",
|
|
13105
|
-
"pluginAlias": "sfdx-hardis",
|
|
13106
|
-
"pluginName": "sfdx-hardis",
|
|
13107
|
-
"pluginType": "core",
|
|
13108
|
-
"strict": true,
|
|
13109
|
-
"enableJsonFlag": true,
|
|
13110
|
-
"title": "Fix flexipages for v53",
|
|
13111
|
-
"requiresProject": true,
|
|
13112
|
-
"isESM": true,
|
|
13113
|
-
"relativePath": [
|
|
13114
|
-
"lib",
|
|
13115
|
-
"commands",
|
|
13116
|
-
"hardis",
|
|
13117
|
-
"project",
|
|
13118
|
-
"fix",
|
|
13119
|
-
"v53flexipages.js"
|
|
13120
|
-
],
|
|
13121
|
-
"aliasPermutations": [],
|
|
13122
|
-
"permutations": [
|
|
13123
|
-
"hardis:project:fix:v53flexipages",
|
|
13124
|
-
"project:hardis:fix:v53flexipages",
|
|
13125
|
-
"project:fix:hardis:v53flexipages",
|
|
13126
|
-
"project:fix:v53flexipages:hardis",
|
|
13127
|
-
"hardis:fix:project:v53flexipages",
|
|
13128
|
-
"fix:hardis:project:v53flexipages",
|
|
13129
|
-
"fix:project:hardis:v53flexipages",
|
|
13130
|
-
"fix:project:v53flexipages:hardis",
|
|
13131
|
-
"hardis:fix:v53flexipages:project",
|
|
13132
|
-
"fix:hardis:v53flexipages:project",
|
|
13133
|
-
"fix:v53flexipages:hardis:project",
|
|
13134
|
-
"fix:v53flexipages:project:hardis",
|
|
13135
|
-
"hardis:project:v53flexipages:fix",
|
|
13136
|
-
"project:hardis:v53flexipages:fix",
|
|
13137
|
-
"project:v53flexipages:hardis:fix",
|
|
13138
|
-
"project:v53flexipages:fix:hardis",
|
|
13139
|
-
"hardis:v53flexipages:project:fix",
|
|
13140
|
-
"v53flexipages:hardis:project:fix",
|
|
13141
|
-
"v53flexipages:project:hardis:fix",
|
|
13142
|
-
"v53flexipages:project:fix:hardis",
|
|
13143
|
-
"hardis:v53flexipages:fix:project",
|
|
13144
|
-
"v53flexipages:hardis:fix:project",
|
|
13145
|
-
"v53flexipages:fix:hardis:project",
|
|
13146
|
-
"v53flexipages:fix:project:hardis"
|
|
13147
|
-
]
|
|
13148
|
-
},
|
|
13149
13149
|
"hardis:project:generate:bypass": {
|
|
13150
13150
|
"aliases": [],
|
|
13151
13151
|
"args": {},
|
|
@@ -15719,5 +15719,5 @@
|
|
|
15719
15719
|
]
|
|
15720
15720
|
}
|
|
15721
15721
|
},
|
|
15722
|
-
"version": "6.15.0"
|
|
15722
|
+
"version": "6.15.1-beta202512081818.0"
|
|
15723
15723
|
}
|