sfdx-hardis 6.0.2-beta202508111754.0 → 6.0.4-beta202508121754.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
CHANGED
|
@@ -132,12 +132,13 @@
|
|
|
132
132
|
"clear:cache:hardis"
|
|
133
133
|
]
|
|
134
134
|
},
|
|
135
|
-
"hardis:
|
|
135
|
+
"hardis:auth:login": {
|
|
136
136
|
"aliases": [],
|
|
137
137
|
"args": {},
|
|
138
|
-
"description": "\n## Command Behavior\n\n**
|
|
138
|
+
"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## Technical explanations\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",
|
|
139
139
|
"examples": [
|
|
140
|
-
"$ sf hardis:
|
|
140
|
+
"$ sf hardis:auth:login",
|
|
141
|
+
"CI=true sf hardis:auth:login"
|
|
141
142
|
],
|
|
142
143
|
"flags": {
|
|
143
144
|
"json": {
|
|
@@ -155,20 +156,28 @@
|
|
|
155
156
|
"multiple": false,
|
|
156
157
|
"type": "option"
|
|
157
158
|
},
|
|
158
|
-
"
|
|
159
|
-
"char": "
|
|
160
|
-
"description": "
|
|
161
|
-
"name": "
|
|
162
|
-
"default": "project",
|
|
159
|
+
"instanceurl": {
|
|
160
|
+
"char": "r",
|
|
161
|
+
"description": "URL of org instance",
|
|
162
|
+
"name": "instanceurl",
|
|
163
163
|
"hasDynamicHelp": false,
|
|
164
164
|
"multiple": false,
|
|
165
|
-
"options": [
|
|
166
|
-
"project",
|
|
167
|
-
"branch",
|
|
168
|
-
"user"
|
|
169
|
-
],
|
|
170
165
|
"type": "option"
|
|
171
166
|
},
|
|
167
|
+
"devhub": {
|
|
168
|
+
"char": "h",
|
|
169
|
+
"description": "Also connect associated DevHub",
|
|
170
|
+
"name": "devhub",
|
|
171
|
+
"allowNo": false,
|
|
172
|
+
"type": "boolean"
|
|
173
|
+
},
|
|
174
|
+
"scratchorg": {
|
|
175
|
+
"char": "s",
|
|
176
|
+
"description": "Scratch org",
|
|
177
|
+
"name": "scratchorg",
|
|
178
|
+
"allowNo": false,
|
|
179
|
+
"type": "boolean"
|
|
180
|
+
},
|
|
172
181
|
"debug": {
|
|
173
182
|
"char": "d",
|
|
174
183
|
"description": "Activate debug mode (more logs)",
|
|
@@ -192,39 +201,38 @@
|
|
|
192
201
|
},
|
|
193
202
|
"hasDynamicHelp": false,
|
|
194
203
|
"hiddenAliases": [],
|
|
195
|
-
"id": "hardis:
|
|
204
|
+
"id": "hardis:auth:login",
|
|
196
205
|
"pluginAlias": "sfdx-hardis",
|
|
197
206
|
"pluginName": "sfdx-hardis",
|
|
198
207
|
"pluginType": "core",
|
|
199
208
|
"strict": true,
|
|
200
209
|
"enableJsonFlag": true,
|
|
201
|
-
"title": "
|
|
210
|
+
"title": "Login",
|
|
202
211
|
"requiresProject": false,
|
|
203
212
|
"isESM": true,
|
|
204
213
|
"relativePath": [
|
|
205
214
|
"lib",
|
|
206
215
|
"commands",
|
|
207
216
|
"hardis",
|
|
208
|
-
"
|
|
209
|
-
"
|
|
217
|
+
"auth",
|
|
218
|
+
"login.js"
|
|
210
219
|
],
|
|
211
220
|
"aliasPermutations": [],
|
|
212
221
|
"permutations": [
|
|
213
|
-
"hardis:
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
"hardis:
|
|
217
|
-
"
|
|
218
|
-
"
|
|
222
|
+
"hardis:auth:login",
|
|
223
|
+
"auth:hardis:login",
|
|
224
|
+
"auth:login:hardis",
|
|
225
|
+
"hardis:login:auth",
|
|
226
|
+
"login:hardis:auth",
|
|
227
|
+
"login:auth:hardis"
|
|
219
228
|
]
|
|
220
229
|
},
|
|
221
|
-
"hardis:
|
|
230
|
+
"hardis:config:get": {
|
|
222
231
|
"aliases": [],
|
|
223
232
|
"args": {},
|
|
224
|
-
"description": "\n## Command Behavior\n\n**
|
|
233
|
+
"description": "\n## Command Behavior\n\n**Retrieves and displays the sfdx-hardis configuration for a specified level.**\n\nThis command allows you to inspect the configuration that is currently in effect for your project, which is useful for debugging and understanding how sfdx-hardis will behave.\n\n- **Configuration levels:** It can retrieve configuration from three different levels:\n - **Project:** The configuration defined in the project's `.sfdx-hardis.yml` file.\n - **Branch:** The configuration defined in a branch-specific configuration file (e.g., `.sfdx-hardis.production.yml`).\n - **User:** The global user-level configuration.\n\n## Technical explanations\n\nThe command's logic is straightforward:\n\n- **`getConfig` function:** It calls the `getConfig` utility function, passing the desired configuration level as an argument.\n- **Configuration loading:** The `getConfig` function is responsible for finding the appropriate configuration file, reading its contents, and parsing it as YAML or JSON.\n- **Output:** The retrieved configuration is then displayed to the user as a JSON string.\n",
|
|
225
234
|
"examples": [
|
|
226
|
-
"$ sf hardis:
|
|
227
|
-
"CI=true sf hardis:auth:login"
|
|
235
|
+
"$ sf hardis:project:deploy:sources:metadata"
|
|
228
236
|
],
|
|
229
237
|
"flags": {
|
|
230
238
|
"json": {
|
|
@@ -242,28 +250,20 @@
|
|
|
242
250
|
"multiple": false,
|
|
243
251
|
"type": "option"
|
|
244
252
|
},
|
|
245
|
-
"
|
|
246
|
-
"char": "
|
|
247
|
-
"description": "
|
|
248
|
-
"name": "
|
|
253
|
+
"level": {
|
|
254
|
+
"char": "l",
|
|
255
|
+
"description": "project,branch or user",
|
|
256
|
+
"name": "level",
|
|
257
|
+
"default": "project",
|
|
249
258
|
"hasDynamicHelp": false,
|
|
250
259
|
"multiple": false,
|
|
260
|
+
"options": [
|
|
261
|
+
"project",
|
|
262
|
+
"branch",
|
|
263
|
+
"user"
|
|
264
|
+
],
|
|
251
265
|
"type": "option"
|
|
252
266
|
},
|
|
253
|
-
"devhub": {
|
|
254
|
-
"char": "h",
|
|
255
|
-
"description": "Also connect associated DevHub",
|
|
256
|
-
"name": "devhub",
|
|
257
|
-
"allowNo": false,
|
|
258
|
-
"type": "boolean"
|
|
259
|
-
},
|
|
260
|
-
"scratchorg": {
|
|
261
|
-
"char": "s",
|
|
262
|
-
"description": "Scratch org",
|
|
263
|
-
"name": "scratchorg",
|
|
264
|
-
"allowNo": false,
|
|
265
|
-
"type": "boolean"
|
|
266
|
-
},
|
|
267
267
|
"debug": {
|
|
268
268
|
"char": "d",
|
|
269
269
|
"description": "Activate debug mode (more logs)",
|
|
@@ -287,30 +287,30 @@
|
|
|
287
287
|
},
|
|
288
288
|
"hasDynamicHelp": false,
|
|
289
289
|
"hiddenAliases": [],
|
|
290
|
-
"id": "hardis:
|
|
290
|
+
"id": "hardis:config:get",
|
|
291
291
|
"pluginAlias": "sfdx-hardis",
|
|
292
292
|
"pluginName": "sfdx-hardis",
|
|
293
293
|
"pluginType": "core",
|
|
294
294
|
"strict": true,
|
|
295
295
|
"enableJsonFlag": true,
|
|
296
|
-
"title": "
|
|
296
|
+
"title": "Deploy metadata sources to org",
|
|
297
297
|
"requiresProject": false,
|
|
298
298
|
"isESM": true,
|
|
299
299
|
"relativePath": [
|
|
300
300
|
"lib",
|
|
301
301
|
"commands",
|
|
302
302
|
"hardis",
|
|
303
|
-
"
|
|
304
|
-
"
|
|
303
|
+
"config",
|
|
304
|
+
"get.js"
|
|
305
305
|
],
|
|
306
306
|
"aliasPermutations": [],
|
|
307
307
|
"permutations": [
|
|
308
|
-
"hardis:
|
|
309
|
-
"
|
|
310
|
-
"
|
|
311
|
-
"hardis:
|
|
312
|
-
"
|
|
313
|
-
"
|
|
308
|
+
"hardis:config:get",
|
|
309
|
+
"config:hardis:get",
|
|
310
|
+
"config:get:hardis",
|
|
311
|
+
"hardis:get:config",
|
|
312
|
+
"get:hardis:config",
|
|
313
|
+
"get:config:hardis"
|
|
314
314
|
]
|
|
315
315
|
},
|
|
316
316
|
"hardis:doc:fieldusage": {
|
|
@@ -4719,6 +4719,117 @@
|
|
|
4719
4719
|
"extract:pull-requests:git:hardis"
|
|
4720
4720
|
]
|
|
4721
4721
|
},
|
|
4722
|
+
"hardis:org:community:update": {
|
|
4723
|
+
"aliases": [],
|
|
4724
|
+
"args": {},
|
|
4725
|
+
"description": "\n## Command Behavior\n\n**Updates the status of one or more Salesforce Experience Cloud (Community) networks.**\n\nThis command provides a way to programmatically change the status of your Salesforce Communities, allowing you to manage their availability. This is particularly useful for:\n\n- **Maintenance:** Taking communities offline for planned maintenance (`DownForMaintenance`).\n- **Activation/Deactivation:** Bringing communities online or offline (`Live`, `DownForMaintenance`).\n- **Automation:** Integrating community status changes into CI/CD pipelines or scheduled jobs.\n\nKey functionalities:\n\n- **Network Selection:** You can specify one or more community network names (separated by commas) using the `--name` flag.\n- **Status Update:** You can set the new status for the selected communities using the `--status` flag. Supported values are `Live` and `DownForMaintenance`.\n- **Confirmation Prompt:** In non-CI environments, it provides a confirmation prompt before executing the update, ensuring intentional changes.\n\n## Technical explanations\n\nThe command's technical implementation involves:\n\n- **Salesforce SOQL Query:** It first queries the Salesforce `Network` object using SOQL to retrieve the `Id`, `Name`, and `Status` of the specified communities. This ensures that only existing communities are targeted.\n- **SObject Update:** It then constructs an array of `Network` sObjects with their `Id` and the new `Status` and performs a DML update operation using `conn.sobject(\"Network\").update()`. The `allOrNone: false` option is used to allow partial success in case some updates fail.\n- **Error Handling and Reporting:** It iterates through the update results, logging success or failure for each community. It also provides a summary of successful and erroneous updates.\n- **User Interaction:** Uses `prompts` to confirm the update action with the user when not running in a CI environment.\n- **Salesforce Connection:** Establishes a connection to the target Salesforce org using the `target-org` flag.\n",
|
|
4726
|
+
"examples": [
|
|
4727
|
+
"$ sf hardis:org:community:update --name 'MyNetworkName' --status DownForMaintenance",
|
|
4728
|
+
"$ sf hardis:org:community:update --name 'MyNetworkName,MySecondNetworkName' --status Live"
|
|
4729
|
+
],
|
|
4730
|
+
"flags": {
|
|
4731
|
+
"json": {
|
|
4732
|
+
"description": "Format output as json.",
|
|
4733
|
+
"helpGroup": "GLOBAL",
|
|
4734
|
+
"name": "json",
|
|
4735
|
+
"allowNo": false,
|
|
4736
|
+
"type": "boolean"
|
|
4737
|
+
},
|
|
4738
|
+
"flags-dir": {
|
|
4739
|
+
"helpGroup": "GLOBAL",
|
|
4740
|
+
"name": "flags-dir",
|
|
4741
|
+
"summary": "Import flag values from a directory.",
|
|
4742
|
+
"hasDynamicHelp": false,
|
|
4743
|
+
"multiple": false,
|
|
4744
|
+
"type": "option"
|
|
4745
|
+
},
|
|
4746
|
+
"name": {
|
|
4747
|
+
"char": "n",
|
|
4748
|
+
"description": "List of Networks Names that you want to update, separated by comma",
|
|
4749
|
+
"name": "name",
|
|
4750
|
+
"required": true,
|
|
4751
|
+
"hasDynamicHelp": false,
|
|
4752
|
+
"multiple": false,
|
|
4753
|
+
"type": "option"
|
|
4754
|
+
},
|
|
4755
|
+
"status": {
|
|
4756
|
+
"char": "s",
|
|
4757
|
+
"description": "New status for the community, available values are: Live, DownForMaintenance",
|
|
4758
|
+
"name": "status",
|
|
4759
|
+
"required": true,
|
|
4760
|
+
"hasDynamicHelp": false,
|
|
4761
|
+
"multiple": false,
|
|
4762
|
+
"type": "option"
|
|
4763
|
+
},
|
|
4764
|
+
"debug": {
|
|
4765
|
+
"char": "d",
|
|
4766
|
+
"description": "Activate debug mode (more logs)",
|
|
4767
|
+
"name": "debug",
|
|
4768
|
+
"allowNo": false,
|
|
4769
|
+
"type": "boolean"
|
|
4770
|
+
},
|
|
4771
|
+
"target-org": {
|
|
4772
|
+
"aliases": [
|
|
4773
|
+
"targetusername",
|
|
4774
|
+
"u"
|
|
4775
|
+
],
|
|
4776
|
+
"char": "o",
|
|
4777
|
+
"deprecateAliases": true,
|
|
4778
|
+
"name": "target-org",
|
|
4779
|
+
"noCacheDefault": true,
|
|
4780
|
+
"required": true,
|
|
4781
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
4782
|
+
"hasDynamicHelp": true,
|
|
4783
|
+
"multiple": false,
|
|
4784
|
+
"type": "option"
|
|
4785
|
+
}
|
|
4786
|
+
},
|
|
4787
|
+
"hasDynamicHelp": true,
|
|
4788
|
+
"hiddenAliases": [],
|
|
4789
|
+
"id": "hardis:org:community:update",
|
|
4790
|
+
"pluginAlias": "sfdx-hardis",
|
|
4791
|
+
"pluginName": "sfdx-hardis",
|
|
4792
|
+
"pluginType": "core",
|
|
4793
|
+
"strict": true,
|
|
4794
|
+
"summary": "Update a community status.",
|
|
4795
|
+
"enableJsonFlag": true,
|
|
4796
|
+
"isESM": true,
|
|
4797
|
+
"relativePath": [
|
|
4798
|
+
"lib",
|
|
4799
|
+
"commands",
|
|
4800
|
+
"hardis",
|
|
4801
|
+
"org",
|
|
4802
|
+
"community",
|
|
4803
|
+
"update.js"
|
|
4804
|
+
],
|
|
4805
|
+
"aliasPermutations": [],
|
|
4806
|
+
"permutations": [
|
|
4807
|
+
"hardis:org:community:update",
|
|
4808
|
+
"org:hardis:community:update",
|
|
4809
|
+
"org:community:hardis:update",
|
|
4810
|
+
"org:community:update:hardis",
|
|
4811
|
+
"hardis:community:org:update",
|
|
4812
|
+
"community:hardis:org:update",
|
|
4813
|
+
"community:org:hardis:update",
|
|
4814
|
+
"community:org:update:hardis",
|
|
4815
|
+
"hardis:community:update:org",
|
|
4816
|
+
"community:hardis:update:org",
|
|
4817
|
+
"community:update:hardis:org",
|
|
4818
|
+
"community:update:org:hardis",
|
|
4819
|
+
"hardis:org:update:community",
|
|
4820
|
+
"org:hardis:update:community",
|
|
4821
|
+
"org:update:hardis:community",
|
|
4822
|
+
"org:update:community:hardis",
|
|
4823
|
+
"hardis:update:org:community",
|
|
4824
|
+
"update:hardis:org:community",
|
|
4825
|
+
"update:org:hardis:community",
|
|
4826
|
+
"update:org:community:hardis",
|
|
4827
|
+
"hardis:update:community:org",
|
|
4828
|
+
"update:hardis:community:org",
|
|
4829
|
+
"update:community:hardis:org",
|
|
4830
|
+
"update:community:org:hardis"
|
|
4831
|
+
]
|
|
4832
|
+
},
|
|
4722
4833
|
"hardis:org:configure:data": {
|
|
4723
4834
|
"aliases": [],
|
|
4724
4835
|
"args": {},
|
|
@@ -5020,13 +5131,12 @@
|
|
|
5020
5131
|
"monitoring:configure:org:hardis"
|
|
5021
5132
|
]
|
|
5022
5133
|
},
|
|
5023
|
-
"hardis:org:
|
|
5134
|
+
"hardis:org:data:delete": {
|
|
5024
5135
|
"aliases": [],
|
|
5025
5136
|
"args": {},
|
|
5026
|
-
"description": "\n## Command Behavior\n\n**
|
|
5137
|
+
"description": "\n## Command Behavior\n\n**Deletes records in multiple Salesforce objects using an SFDMU (Salesforce Data Migration Utility) workspace.**\n\nThis command provides a powerful and controlled way to remove data from your Salesforce orgs based on configurations defined in an SFDMU workspace. It's particularly useful for:\n\n- **Data Cleanup:** Removing test data, obsolete records, or sensitive information.\n- **Environment Reset:** Preparing sandboxes for new development cycles by clearing specific data sets.\n- **Compliance:** Deleting data to meet regulatory requirements.\n\n**Important Considerations for Production Environments:**\n\nIf you intend to run this command in a production environment, you must:\n\n- Set `runnableInProduction` to `true` in your `export.json` file within the SFDMU workspace.\n- Define `sfdmuCanModify: YOUR_INSTANCE_URL` in your branch-specific configuration file (e.g., `config/branches/.sfdx-hardis.YOUR_BRANCH.yml`) to explicitly authorize data modification for that instance.\n\n## Technical explanations\n\nThe command's technical implementation relies heavily on the SFDMU plugin:\n\n- **SFDMU Integration:** It leverages the `sfdmu` plugin to perform the actual data deletion operations. The command acts as a wrapper, providing an assisted interface for SFDMU execution.\n- **Workspace Selection:** If the SFDMU workspace path is not provided via the `--path` flag, it interactively prompts the user to select a data workspace using `selectDataWorkspace`.\n- **Org Selection:** It ensures that a target Salesforce org is selected (either via the `--target-org` flag or through an interactive prompt using `promptOrgUsernameDefault`) to specify where the data deletion will occur.\n- **`deleteData` Utility:** The core logic for executing the SFDMU deletion process is encapsulated within the `deleteData` utility function, which takes the SFDMU workspace path and the target username as arguments.\n- **Environment Awareness:** It 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",
|
|
5027
5138
|
"examples": [
|
|
5028
|
-
"$ sf hardis:org:
|
|
5029
|
-
"$ sf hardis:org:community:update --name 'MyNetworkName,MySecondNetworkName' --status Live"
|
|
5139
|
+
"$ sf hardis:org:data:delete"
|
|
5030
5140
|
],
|
|
5031
5141
|
"flags": {
|
|
5032
5142
|
"json": {
|
|
@@ -5044,120 +5154,10 @@
|
|
|
5044
5154
|
"multiple": false,
|
|
5045
5155
|
"type": "option"
|
|
5046
5156
|
},
|
|
5047
|
-
"
|
|
5048
|
-
"char": "
|
|
5049
|
-
"description": "
|
|
5050
|
-
"name": "
|
|
5051
|
-
"required": true,
|
|
5052
|
-
"hasDynamicHelp": false,
|
|
5053
|
-
"multiple": false,
|
|
5054
|
-
"type": "option"
|
|
5055
|
-
},
|
|
5056
|
-
"status": {
|
|
5057
|
-
"char": "s",
|
|
5058
|
-
"description": "New status for the community, available values are: Live, DownForMaintenance",
|
|
5059
|
-
"name": "status",
|
|
5060
|
-
"required": true,
|
|
5061
|
-
"hasDynamicHelp": false,
|
|
5062
|
-
"multiple": false,
|
|
5063
|
-
"type": "option"
|
|
5064
|
-
},
|
|
5065
|
-
"debug": {
|
|
5066
|
-
"char": "d",
|
|
5067
|
-
"description": "Activate debug mode (more logs)",
|
|
5068
|
-
"name": "debug",
|
|
5069
|
-
"allowNo": false,
|
|
5070
|
-
"type": "boolean"
|
|
5071
|
-
},
|
|
5072
|
-
"target-org": {
|
|
5073
|
-
"aliases": [
|
|
5074
|
-
"targetusername",
|
|
5075
|
-
"u"
|
|
5076
|
-
],
|
|
5077
|
-
"char": "o",
|
|
5078
|
-
"deprecateAliases": true,
|
|
5079
|
-
"name": "target-org",
|
|
5080
|
-
"noCacheDefault": true,
|
|
5081
|
-
"required": true,
|
|
5082
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5083
|
-
"hasDynamicHelp": true,
|
|
5084
|
-
"multiple": false,
|
|
5085
|
-
"type": "option"
|
|
5086
|
-
}
|
|
5087
|
-
},
|
|
5088
|
-
"hasDynamicHelp": true,
|
|
5089
|
-
"hiddenAliases": [],
|
|
5090
|
-
"id": "hardis:org:community:update",
|
|
5091
|
-
"pluginAlias": "sfdx-hardis",
|
|
5092
|
-
"pluginName": "sfdx-hardis",
|
|
5093
|
-
"pluginType": "core",
|
|
5094
|
-
"strict": true,
|
|
5095
|
-
"summary": "Update a community status.",
|
|
5096
|
-
"enableJsonFlag": true,
|
|
5097
|
-
"isESM": true,
|
|
5098
|
-
"relativePath": [
|
|
5099
|
-
"lib",
|
|
5100
|
-
"commands",
|
|
5101
|
-
"hardis",
|
|
5102
|
-
"org",
|
|
5103
|
-
"community",
|
|
5104
|
-
"update.js"
|
|
5105
|
-
],
|
|
5106
|
-
"aliasPermutations": [],
|
|
5107
|
-
"permutations": [
|
|
5108
|
-
"hardis:org:community:update",
|
|
5109
|
-
"org:hardis:community:update",
|
|
5110
|
-
"org:community:hardis:update",
|
|
5111
|
-
"org:community:update:hardis",
|
|
5112
|
-
"hardis:community:org:update",
|
|
5113
|
-
"community:hardis:org:update",
|
|
5114
|
-
"community:org:hardis:update",
|
|
5115
|
-
"community:org:update:hardis",
|
|
5116
|
-
"hardis:community:update:org",
|
|
5117
|
-
"community:hardis:update:org",
|
|
5118
|
-
"community:update:hardis:org",
|
|
5119
|
-
"community:update:org:hardis",
|
|
5120
|
-
"hardis:org:update:community",
|
|
5121
|
-
"org:hardis:update:community",
|
|
5122
|
-
"org:update:hardis:community",
|
|
5123
|
-
"org:update:community:hardis",
|
|
5124
|
-
"hardis:update:org:community",
|
|
5125
|
-
"update:hardis:org:community",
|
|
5126
|
-
"update:org:hardis:community",
|
|
5127
|
-
"update:org:community:hardis",
|
|
5128
|
-
"hardis:update:community:org",
|
|
5129
|
-
"update:hardis:community:org",
|
|
5130
|
-
"update:community:hardis:org",
|
|
5131
|
-
"update:community:org:hardis"
|
|
5132
|
-
]
|
|
5133
|
-
},
|
|
5134
|
-
"hardis:org:data:delete": {
|
|
5135
|
-
"aliases": [],
|
|
5136
|
-
"args": {},
|
|
5137
|
-
"description": "\n## Command Behavior\n\n**Deletes records in multiple Salesforce objects using an SFDMU (Salesforce Data Migration Utility) workspace.**\n\nThis command provides a powerful and controlled way to remove data from your Salesforce orgs based on configurations defined in an SFDMU workspace. It's particularly useful for:\n\n- **Data Cleanup:** Removing test data, obsolete records, or sensitive information.\n- **Environment Reset:** Preparing sandboxes for new development cycles by clearing specific data sets.\n- **Compliance:** Deleting data to meet regulatory requirements.\n\n**Important Considerations for Production Environments:**\n\nIf you intend to run this command in a production environment, you must:\n\n- Set `runnableInProduction` to `true` in your `export.json` file within the SFDMU workspace.\n- Define `sfdmuCanModify: YOUR_INSTANCE_URL` in your branch-specific configuration file (e.g., `config/branches/.sfdx-hardis.YOUR_BRANCH.yml`) to explicitly authorize data modification for that instance.\n\n## Technical explanations\n\nThe command's technical implementation relies heavily on the SFDMU plugin:\n\n- **SFDMU Integration:** It leverages the `sfdmu` plugin to perform the actual data deletion operations. The command acts as a wrapper, providing an assisted interface for SFDMU execution.\n- **Workspace Selection:** If the SFDMU workspace path is not provided via the `--path` flag, it interactively prompts the user to select a data workspace using `selectDataWorkspace`.\n- **Org Selection:** It ensures that a target Salesforce org is selected (either via the `--target-org` flag or through an interactive prompt using `promptOrgUsernameDefault`) to specify where the data deletion will occur.\n- **`deleteData` Utility:** The core logic for executing the SFDMU deletion process is encapsulated within the `deleteData` utility function, which takes the SFDMU workspace path and the target username as arguments.\n- **Environment Awareness:** It 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",
|
|
5138
|
-
"examples": [
|
|
5139
|
-
"$ sf hardis:org:data:delete"
|
|
5140
|
-
],
|
|
5141
|
-
"flags": {
|
|
5142
|
-
"json": {
|
|
5143
|
-
"description": "Format output as json.",
|
|
5144
|
-
"helpGroup": "GLOBAL",
|
|
5145
|
-
"name": "json",
|
|
5146
|
-
"allowNo": false,
|
|
5147
|
-
"type": "boolean"
|
|
5148
|
-
},
|
|
5149
|
-
"flags-dir": {
|
|
5150
|
-
"helpGroup": "GLOBAL",
|
|
5151
|
-
"name": "flags-dir",
|
|
5152
|
-
"summary": "Import flag values from a directory.",
|
|
5153
|
-
"hasDynamicHelp": false,
|
|
5154
|
-
"multiple": false,
|
|
5155
|
-
"type": "option"
|
|
5156
|
-
},
|
|
5157
|
-
"path": {
|
|
5158
|
-
"char": "p",
|
|
5159
|
-
"description": "Path to the sfdmu workspace folder",
|
|
5160
|
-
"name": "path",
|
|
5157
|
+
"path": {
|
|
5158
|
+
"char": "p",
|
|
5159
|
+
"description": "Path to the sfdmu workspace folder",
|
|
5160
|
+
"name": "path",
|
|
5161
5161
|
"hasDynamicHelp": false,
|
|
5162
5162
|
"multiple": false,
|
|
5163
5163
|
"type": "option"
|
|
@@ -5744,6 +5744,121 @@
|
|
|
5744
5744
|
"import:files:org:hardis"
|
|
5745
5745
|
]
|
|
5746
5746
|
},
|
|
5747
|
+
"hardis:org:fix:listviewmine": {
|
|
5748
|
+
"aliases": [],
|
|
5749
|
+
"args": {},
|
|
5750
|
+
"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",
|
|
5751
|
+
"examples": [
|
|
5752
|
+
"$ sf hardis:org:fix:listviewmine",
|
|
5753
|
+
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
5754
|
+
],
|
|
5755
|
+
"flags": {
|
|
5756
|
+
"json": {
|
|
5757
|
+
"description": "Format output as json.",
|
|
5758
|
+
"helpGroup": "GLOBAL",
|
|
5759
|
+
"name": "json",
|
|
5760
|
+
"allowNo": false,
|
|
5761
|
+
"type": "boolean"
|
|
5762
|
+
},
|
|
5763
|
+
"flags-dir": {
|
|
5764
|
+
"helpGroup": "GLOBAL",
|
|
5765
|
+
"name": "flags-dir",
|
|
5766
|
+
"summary": "Import flag values from a directory.",
|
|
5767
|
+
"hasDynamicHelp": false,
|
|
5768
|
+
"multiple": false,
|
|
5769
|
+
"type": "option"
|
|
5770
|
+
},
|
|
5771
|
+
"listviews": {
|
|
5772
|
+
"char": "l",
|
|
5773
|
+
"description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
|
|
5774
|
+
"name": "listviews",
|
|
5775
|
+
"hasDynamicHelp": false,
|
|
5776
|
+
"multiple": false,
|
|
5777
|
+
"type": "option"
|
|
5778
|
+
},
|
|
5779
|
+
"debug": {
|
|
5780
|
+
"char": "d",
|
|
5781
|
+
"description": "Activate debug mode (more logs)",
|
|
5782
|
+
"name": "debug",
|
|
5783
|
+
"allowNo": false,
|
|
5784
|
+
"type": "boolean"
|
|
5785
|
+
},
|
|
5786
|
+
"websocket": {
|
|
5787
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
5788
|
+
"name": "websocket",
|
|
5789
|
+
"hasDynamicHelp": false,
|
|
5790
|
+
"multiple": false,
|
|
5791
|
+
"type": "option"
|
|
5792
|
+
},
|
|
5793
|
+
"skipauth": {
|
|
5794
|
+
"description": "Skip authentication check when a default username is required",
|
|
5795
|
+
"name": "skipauth",
|
|
5796
|
+
"allowNo": false,
|
|
5797
|
+
"type": "boolean"
|
|
5798
|
+
},
|
|
5799
|
+
"target-org": {
|
|
5800
|
+
"aliases": [
|
|
5801
|
+
"targetusername",
|
|
5802
|
+
"u"
|
|
5803
|
+
],
|
|
5804
|
+
"char": "o",
|
|
5805
|
+
"deprecateAliases": true,
|
|
5806
|
+
"name": "target-org",
|
|
5807
|
+
"noCacheDefault": true,
|
|
5808
|
+
"required": true,
|
|
5809
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5810
|
+
"hasDynamicHelp": true,
|
|
5811
|
+
"multiple": false,
|
|
5812
|
+
"type": "option"
|
|
5813
|
+
}
|
|
5814
|
+
},
|
|
5815
|
+
"hasDynamicHelp": true,
|
|
5816
|
+
"hiddenAliases": [],
|
|
5817
|
+
"id": "hardis:org:fix:listviewmine",
|
|
5818
|
+
"pluginAlias": "sfdx-hardis",
|
|
5819
|
+
"pluginName": "sfdx-hardis",
|
|
5820
|
+
"pluginType": "core",
|
|
5821
|
+
"strict": true,
|
|
5822
|
+
"enableJsonFlag": true,
|
|
5823
|
+
"title": "Fix listviews with ",
|
|
5824
|
+
"requiresProject": true,
|
|
5825
|
+
"isESM": true,
|
|
5826
|
+
"relativePath": [
|
|
5827
|
+
"lib",
|
|
5828
|
+
"commands",
|
|
5829
|
+
"hardis",
|
|
5830
|
+
"org",
|
|
5831
|
+
"fix",
|
|
5832
|
+
"listviewmine.js"
|
|
5833
|
+
],
|
|
5834
|
+
"aliasPermutations": [],
|
|
5835
|
+
"permutations": [
|
|
5836
|
+
"hardis:org:fix:listviewmine",
|
|
5837
|
+
"org:hardis:fix:listviewmine",
|
|
5838
|
+
"org:fix:hardis:listviewmine",
|
|
5839
|
+
"org:fix:listviewmine:hardis",
|
|
5840
|
+
"hardis:fix:org:listviewmine",
|
|
5841
|
+
"fix:hardis:org:listviewmine",
|
|
5842
|
+
"fix:org:hardis:listviewmine",
|
|
5843
|
+
"fix:org:listviewmine:hardis",
|
|
5844
|
+
"hardis:fix:listviewmine:org",
|
|
5845
|
+
"fix:hardis:listviewmine:org",
|
|
5846
|
+
"fix:listviewmine:hardis:org",
|
|
5847
|
+
"fix:listviewmine:org:hardis",
|
|
5848
|
+
"hardis:org:listviewmine:fix",
|
|
5849
|
+
"org:hardis:listviewmine:fix",
|
|
5850
|
+
"org:listviewmine:hardis:fix",
|
|
5851
|
+
"org:listviewmine:fix:hardis",
|
|
5852
|
+
"hardis:listviewmine:org:fix",
|
|
5853
|
+
"listviewmine:hardis:org:fix",
|
|
5854
|
+
"listviewmine:org:hardis:fix",
|
|
5855
|
+
"listviewmine:org:fix:hardis",
|
|
5856
|
+
"hardis:listviewmine:fix:org",
|
|
5857
|
+
"listviewmine:hardis:fix:org",
|
|
5858
|
+
"listviewmine:fix:hardis:org",
|
|
5859
|
+
"listviewmine:fix:org:hardis"
|
|
5860
|
+
]
|
|
5861
|
+
},
|
|
5747
5862
|
"hardis:org:diagnose:audittrail": {
|
|
5748
5863
|
"aliases": [],
|
|
5749
5864
|
"args": {},
|
|
@@ -6862,150 +6977,35 @@
|
|
|
6862
6977
|
"commands",
|
|
6863
6978
|
"hardis",
|
|
6864
6979
|
"org",
|
|
6865
|
-
"diagnose",
|
|
6866
|
-
"unusedusers.js"
|
|
6867
|
-
],
|
|
6868
|
-
"aliasPermutations": [],
|
|
6869
|
-
"permutations": [
|
|
6870
|
-
"hardis:org:diagnose:unusedusers",
|
|
6871
|
-
"org:hardis:diagnose:unusedusers",
|
|
6872
|
-
"org:diagnose:hardis:unusedusers",
|
|
6873
|
-
"org:diagnose:unusedusers:hardis",
|
|
6874
|
-
"hardis:diagnose:org:unusedusers",
|
|
6875
|
-
"diagnose:hardis:org:unusedusers",
|
|
6876
|
-
"diagnose:org:hardis:unusedusers",
|
|
6877
|
-
"diagnose:org:unusedusers:hardis",
|
|
6878
|
-
"hardis:diagnose:unusedusers:org",
|
|
6879
|
-
"diagnose:hardis:unusedusers:org",
|
|
6880
|
-
"diagnose:unusedusers:hardis:org",
|
|
6881
|
-
"diagnose:unusedusers:org:hardis",
|
|
6882
|
-
"hardis:org:unusedusers:diagnose",
|
|
6883
|
-
"org:hardis:unusedusers:diagnose",
|
|
6884
|
-
"org:unusedusers:hardis:diagnose",
|
|
6885
|
-
"org:unusedusers:diagnose:hardis",
|
|
6886
|
-
"hardis:unusedusers:org:diagnose",
|
|
6887
|
-
"unusedusers:hardis:org:diagnose",
|
|
6888
|
-
"unusedusers:org:hardis:diagnose",
|
|
6889
|
-
"unusedusers:org:diagnose:hardis",
|
|
6890
|
-
"hardis:unusedusers:diagnose:org",
|
|
6891
|
-
"unusedusers:hardis:diagnose:org",
|
|
6892
|
-
"unusedusers:diagnose:hardis:org",
|
|
6893
|
-
"unusedusers:diagnose:org:hardis"
|
|
6894
|
-
]
|
|
6895
|
-
},
|
|
6896
|
-
"hardis:org:fix:listviewmine": {
|
|
6897
|
-
"aliases": [],
|
|
6898
|
-
"args": {},
|
|
6899
|
-
"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",
|
|
6900
|
-
"examples": [
|
|
6901
|
-
"$ sf hardis:org:fix:listviewmine",
|
|
6902
|
-
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
6903
|
-
],
|
|
6904
|
-
"flags": {
|
|
6905
|
-
"json": {
|
|
6906
|
-
"description": "Format output as json.",
|
|
6907
|
-
"helpGroup": "GLOBAL",
|
|
6908
|
-
"name": "json",
|
|
6909
|
-
"allowNo": false,
|
|
6910
|
-
"type": "boolean"
|
|
6911
|
-
},
|
|
6912
|
-
"flags-dir": {
|
|
6913
|
-
"helpGroup": "GLOBAL",
|
|
6914
|
-
"name": "flags-dir",
|
|
6915
|
-
"summary": "Import flag values from a directory.",
|
|
6916
|
-
"hasDynamicHelp": false,
|
|
6917
|
-
"multiple": false,
|
|
6918
|
-
"type": "option"
|
|
6919
|
-
},
|
|
6920
|
-
"listviews": {
|
|
6921
|
-
"char": "l",
|
|
6922
|
-
"description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
|
|
6923
|
-
"name": "listviews",
|
|
6924
|
-
"hasDynamicHelp": false,
|
|
6925
|
-
"multiple": false,
|
|
6926
|
-
"type": "option"
|
|
6927
|
-
},
|
|
6928
|
-
"debug": {
|
|
6929
|
-
"char": "d",
|
|
6930
|
-
"description": "Activate debug mode (more logs)",
|
|
6931
|
-
"name": "debug",
|
|
6932
|
-
"allowNo": false,
|
|
6933
|
-
"type": "boolean"
|
|
6934
|
-
},
|
|
6935
|
-
"websocket": {
|
|
6936
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
6937
|
-
"name": "websocket",
|
|
6938
|
-
"hasDynamicHelp": false,
|
|
6939
|
-
"multiple": false,
|
|
6940
|
-
"type": "option"
|
|
6941
|
-
},
|
|
6942
|
-
"skipauth": {
|
|
6943
|
-
"description": "Skip authentication check when a default username is required",
|
|
6944
|
-
"name": "skipauth",
|
|
6945
|
-
"allowNo": false,
|
|
6946
|
-
"type": "boolean"
|
|
6947
|
-
},
|
|
6948
|
-
"target-org": {
|
|
6949
|
-
"aliases": [
|
|
6950
|
-
"targetusername",
|
|
6951
|
-
"u"
|
|
6952
|
-
],
|
|
6953
|
-
"char": "o",
|
|
6954
|
-
"deprecateAliases": true,
|
|
6955
|
-
"name": "target-org",
|
|
6956
|
-
"noCacheDefault": true,
|
|
6957
|
-
"required": true,
|
|
6958
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
6959
|
-
"hasDynamicHelp": true,
|
|
6960
|
-
"multiple": false,
|
|
6961
|
-
"type": "option"
|
|
6962
|
-
}
|
|
6963
|
-
},
|
|
6964
|
-
"hasDynamicHelp": true,
|
|
6965
|
-
"hiddenAliases": [],
|
|
6966
|
-
"id": "hardis:org:fix:listviewmine",
|
|
6967
|
-
"pluginAlias": "sfdx-hardis",
|
|
6968
|
-
"pluginName": "sfdx-hardis",
|
|
6969
|
-
"pluginType": "core",
|
|
6970
|
-
"strict": true,
|
|
6971
|
-
"enableJsonFlag": true,
|
|
6972
|
-
"title": "Fix listviews with ",
|
|
6973
|
-
"requiresProject": true,
|
|
6974
|
-
"isESM": true,
|
|
6975
|
-
"relativePath": [
|
|
6976
|
-
"lib",
|
|
6977
|
-
"commands",
|
|
6978
|
-
"hardis",
|
|
6979
|
-
"org",
|
|
6980
|
-
"fix",
|
|
6981
|
-
"listviewmine.js"
|
|
6980
|
+
"diagnose",
|
|
6981
|
+
"unusedusers.js"
|
|
6982
6982
|
],
|
|
6983
6983
|
"aliasPermutations": [],
|
|
6984
6984
|
"permutations": [
|
|
6985
|
-
"hardis:org:
|
|
6986
|
-
"org:hardis:
|
|
6987
|
-
"org:
|
|
6988
|
-
"org:
|
|
6989
|
-
"hardis:
|
|
6990
|
-
"
|
|
6991
|
-
"
|
|
6992
|
-
"
|
|
6993
|
-
"hardis:
|
|
6994
|
-
"
|
|
6995
|
-
"
|
|
6996
|
-
"
|
|
6997
|
-
"hardis:org:
|
|
6998
|
-
"org:hardis:
|
|
6999
|
-
"org:
|
|
7000
|
-
"org:
|
|
7001
|
-
"hardis:
|
|
7002
|
-
"
|
|
7003
|
-
"
|
|
7004
|
-
"
|
|
7005
|
-
"hardis:
|
|
7006
|
-
"
|
|
7007
|
-
"
|
|
7008
|
-
"
|
|
6985
|
+
"hardis:org:diagnose:unusedusers",
|
|
6986
|
+
"org:hardis:diagnose:unusedusers",
|
|
6987
|
+
"org:diagnose:hardis:unusedusers",
|
|
6988
|
+
"org:diagnose:unusedusers:hardis",
|
|
6989
|
+
"hardis:diagnose:org:unusedusers",
|
|
6990
|
+
"diagnose:hardis:org:unusedusers",
|
|
6991
|
+
"diagnose:org:hardis:unusedusers",
|
|
6992
|
+
"diagnose:org:unusedusers:hardis",
|
|
6993
|
+
"hardis:diagnose:unusedusers:org",
|
|
6994
|
+
"diagnose:hardis:unusedusers:org",
|
|
6995
|
+
"diagnose:unusedusers:hardis:org",
|
|
6996
|
+
"diagnose:unusedusers:org:hardis",
|
|
6997
|
+
"hardis:org:unusedusers:diagnose",
|
|
6998
|
+
"org:hardis:unusedusers:diagnose",
|
|
6999
|
+
"org:unusedusers:hardis:diagnose",
|
|
7000
|
+
"org:unusedusers:diagnose:hardis",
|
|
7001
|
+
"hardis:unusedusers:org:diagnose",
|
|
7002
|
+
"unusedusers:hardis:org:diagnose",
|
|
7003
|
+
"unusedusers:org:hardis:diagnose",
|
|
7004
|
+
"unusedusers:org:diagnose:hardis",
|
|
7005
|
+
"hardis:unusedusers:diagnose:org",
|
|
7006
|
+
"unusedusers:hardis:diagnose:org",
|
|
7007
|
+
"unusedusers:diagnose:hardis:org",
|
|
7008
|
+
"unusedusers:diagnose:org:hardis"
|
|
7009
7009
|
]
|
|
7010
7010
|
},
|
|
7011
7011
|
"hardis:org:generate:packagexmlfull": {
|
|
@@ -9396,109 +9396,6 @@
|
|
|
9396
9396
|
"auth:configure:project:hardis"
|
|
9397
9397
|
]
|
|
9398
9398
|
},
|
|
9399
|
-
"hardis:project:convert:profilestopermsets": {
|
|
9400
|
-
"aliases": [],
|
|
9401
|
-
"args": {},
|
|
9402
|
-
"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## Technical explanations\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",
|
|
9403
|
-
"examples": [
|
|
9404
|
-
"$ sf hardis:project:convert:profilestopermsets"
|
|
9405
|
-
],
|
|
9406
|
-
"flags": {
|
|
9407
|
-
"json": {
|
|
9408
|
-
"description": "Format output as json.",
|
|
9409
|
-
"helpGroup": "GLOBAL",
|
|
9410
|
-
"name": "json",
|
|
9411
|
-
"allowNo": false,
|
|
9412
|
-
"type": "boolean"
|
|
9413
|
-
},
|
|
9414
|
-
"flags-dir": {
|
|
9415
|
-
"helpGroup": "GLOBAL",
|
|
9416
|
-
"name": "flags-dir",
|
|
9417
|
-
"summary": "Import flag values from a directory.",
|
|
9418
|
-
"hasDynamicHelp": false,
|
|
9419
|
-
"multiple": false,
|
|
9420
|
-
"type": "option"
|
|
9421
|
-
},
|
|
9422
|
-
"except": {
|
|
9423
|
-
"char": "e",
|
|
9424
|
-
"description": "List of filters",
|
|
9425
|
-
"name": "except",
|
|
9426
|
-
"default": [],
|
|
9427
|
-
"hasDynamicHelp": false,
|
|
9428
|
-
"multiple": true,
|
|
9429
|
-
"type": "option"
|
|
9430
|
-
},
|
|
9431
|
-
"debug": {
|
|
9432
|
-
"char": "d",
|
|
9433
|
-
"description": "Activate debug mode (more logs)",
|
|
9434
|
-
"name": "debug",
|
|
9435
|
-
"allowNo": false,
|
|
9436
|
-
"type": "boolean"
|
|
9437
|
-
},
|
|
9438
|
-
"websocket": {
|
|
9439
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
9440
|
-
"name": "websocket",
|
|
9441
|
-
"hasDynamicHelp": false,
|
|
9442
|
-
"multiple": false,
|
|
9443
|
-
"type": "option"
|
|
9444
|
-
},
|
|
9445
|
-
"skipauth": {
|
|
9446
|
-
"description": "Skip authentication check when a default username is required",
|
|
9447
|
-
"name": "skipauth",
|
|
9448
|
-
"allowNo": false,
|
|
9449
|
-
"type": "boolean"
|
|
9450
|
-
}
|
|
9451
|
-
},
|
|
9452
|
-
"hasDynamicHelp": false,
|
|
9453
|
-
"hiddenAliases": [],
|
|
9454
|
-
"id": "hardis:project:convert:profilestopermsets",
|
|
9455
|
-
"pluginAlias": "sfdx-hardis",
|
|
9456
|
-
"pluginName": "sfdx-hardis",
|
|
9457
|
-
"pluginType": "core",
|
|
9458
|
-
"strict": true,
|
|
9459
|
-
"enableJsonFlag": true,
|
|
9460
|
-
"title": "Convert Profiles into Permission Sets",
|
|
9461
|
-
"requiresProject": true,
|
|
9462
|
-
"requiresSfdxPlugins": [
|
|
9463
|
-
"shane-sfdx-plugins"
|
|
9464
|
-
],
|
|
9465
|
-
"isESM": true,
|
|
9466
|
-
"relativePath": [
|
|
9467
|
-
"lib",
|
|
9468
|
-
"commands",
|
|
9469
|
-
"hardis",
|
|
9470
|
-
"project",
|
|
9471
|
-
"convert",
|
|
9472
|
-
"profilestopermsets.js"
|
|
9473
|
-
],
|
|
9474
|
-
"aliasPermutations": [],
|
|
9475
|
-
"permutations": [
|
|
9476
|
-
"hardis:project:convert:profilestopermsets",
|
|
9477
|
-
"project:hardis:convert:profilestopermsets",
|
|
9478
|
-
"project:convert:hardis:profilestopermsets",
|
|
9479
|
-
"project:convert:profilestopermsets:hardis",
|
|
9480
|
-
"hardis:convert:project:profilestopermsets",
|
|
9481
|
-
"convert:hardis:project:profilestopermsets",
|
|
9482
|
-
"convert:project:hardis:profilestopermsets",
|
|
9483
|
-
"convert:project:profilestopermsets:hardis",
|
|
9484
|
-
"hardis:convert:profilestopermsets:project",
|
|
9485
|
-
"convert:hardis:profilestopermsets:project",
|
|
9486
|
-
"convert:profilestopermsets:hardis:project",
|
|
9487
|
-
"convert:profilestopermsets:project:hardis",
|
|
9488
|
-
"hardis:project:profilestopermsets:convert",
|
|
9489
|
-
"project:hardis:profilestopermsets:convert",
|
|
9490
|
-
"project:profilestopermsets:hardis:convert",
|
|
9491
|
-
"project:profilestopermsets:convert:hardis",
|
|
9492
|
-
"hardis:profilestopermsets:project:convert",
|
|
9493
|
-
"profilestopermsets:hardis:project:convert",
|
|
9494
|
-
"profilestopermsets:project:hardis:convert",
|
|
9495
|
-
"profilestopermsets:project:convert:hardis",
|
|
9496
|
-
"hardis:profilestopermsets:convert:project",
|
|
9497
|
-
"profilestopermsets:hardis:convert:project",
|
|
9498
|
-
"profilestopermsets:convert:hardis:project",
|
|
9499
|
-
"profilestopermsets:convert:project:hardis"
|
|
9500
|
-
]
|
|
9501
|
-
},
|
|
9502
9399
|
"hardis:project:clean:emptyitems": {
|
|
9503
9400
|
"aliases": [],
|
|
9504
9401
|
"args": {},
|
|
@@ -10984,6 +10881,109 @@
|
|
|
10984
10881
|
"xml:clean:project:hardis"
|
|
10985
10882
|
]
|
|
10986
10883
|
},
|
|
10884
|
+
"hardis:project:convert:profilestopermsets": {
|
|
10885
|
+
"aliases": [],
|
|
10886
|
+
"args": {},
|
|
10887
|
+
"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## Technical explanations\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",
|
|
10888
|
+
"examples": [
|
|
10889
|
+
"$ sf hardis:project:convert:profilestopermsets"
|
|
10890
|
+
],
|
|
10891
|
+
"flags": {
|
|
10892
|
+
"json": {
|
|
10893
|
+
"description": "Format output as json.",
|
|
10894
|
+
"helpGroup": "GLOBAL",
|
|
10895
|
+
"name": "json",
|
|
10896
|
+
"allowNo": false,
|
|
10897
|
+
"type": "boolean"
|
|
10898
|
+
},
|
|
10899
|
+
"flags-dir": {
|
|
10900
|
+
"helpGroup": "GLOBAL",
|
|
10901
|
+
"name": "flags-dir",
|
|
10902
|
+
"summary": "Import flag values from a directory.",
|
|
10903
|
+
"hasDynamicHelp": false,
|
|
10904
|
+
"multiple": false,
|
|
10905
|
+
"type": "option"
|
|
10906
|
+
},
|
|
10907
|
+
"except": {
|
|
10908
|
+
"char": "e",
|
|
10909
|
+
"description": "List of filters",
|
|
10910
|
+
"name": "except",
|
|
10911
|
+
"default": [],
|
|
10912
|
+
"hasDynamicHelp": false,
|
|
10913
|
+
"multiple": true,
|
|
10914
|
+
"type": "option"
|
|
10915
|
+
},
|
|
10916
|
+
"debug": {
|
|
10917
|
+
"char": "d",
|
|
10918
|
+
"description": "Activate debug mode (more logs)",
|
|
10919
|
+
"name": "debug",
|
|
10920
|
+
"allowNo": false,
|
|
10921
|
+
"type": "boolean"
|
|
10922
|
+
},
|
|
10923
|
+
"websocket": {
|
|
10924
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
10925
|
+
"name": "websocket",
|
|
10926
|
+
"hasDynamicHelp": false,
|
|
10927
|
+
"multiple": false,
|
|
10928
|
+
"type": "option"
|
|
10929
|
+
},
|
|
10930
|
+
"skipauth": {
|
|
10931
|
+
"description": "Skip authentication check when a default username is required",
|
|
10932
|
+
"name": "skipauth",
|
|
10933
|
+
"allowNo": false,
|
|
10934
|
+
"type": "boolean"
|
|
10935
|
+
}
|
|
10936
|
+
},
|
|
10937
|
+
"hasDynamicHelp": false,
|
|
10938
|
+
"hiddenAliases": [],
|
|
10939
|
+
"id": "hardis:project:convert:profilestopermsets",
|
|
10940
|
+
"pluginAlias": "sfdx-hardis",
|
|
10941
|
+
"pluginName": "sfdx-hardis",
|
|
10942
|
+
"pluginType": "core",
|
|
10943
|
+
"strict": true,
|
|
10944
|
+
"enableJsonFlag": true,
|
|
10945
|
+
"title": "Convert Profiles into Permission Sets",
|
|
10946
|
+
"requiresProject": true,
|
|
10947
|
+
"requiresSfdxPlugins": [
|
|
10948
|
+
"shane-sfdx-plugins"
|
|
10949
|
+
],
|
|
10950
|
+
"isESM": true,
|
|
10951
|
+
"relativePath": [
|
|
10952
|
+
"lib",
|
|
10953
|
+
"commands",
|
|
10954
|
+
"hardis",
|
|
10955
|
+
"project",
|
|
10956
|
+
"convert",
|
|
10957
|
+
"profilestopermsets.js"
|
|
10958
|
+
],
|
|
10959
|
+
"aliasPermutations": [],
|
|
10960
|
+
"permutations": [
|
|
10961
|
+
"hardis:project:convert:profilestopermsets",
|
|
10962
|
+
"project:hardis:convert:profilestopermsets",
|
|
10963
|
+
"project:convert:hardis:profilestopermsets",
|
|
10964
|
+
"project:convert:profilestopermsets:hardis",
|
|
10965
|
+
"hardis:convert:project:profilestopermsets",
|
|
10966
|
+
"convert:hardis:project:profilestopermsets",
|
|
10967
|
+
"convert:project:hardis:profilestopermsets",
|
|
10968
|
+
"convert:project:profilestopermsets:hardis",
|
|
10969
|
+
"hardis:convert:profilestopermsets:project",
|
|
10970
|
+
"convert:hardis:profilestopermsets:project",
|
|
10971
|
+
"convert:profilestopermsets:hardis:project",
|
|
10972
|
+
"convert:profilestopermsets:project:hardis",
|
|
10973
|
+
"hardis:project:profilestopermsets:convert",
|
|
10974
|
+
"project:hardis:profilestopermsets:convert",
|
|
10975
|
+
"project:profilestopermsets:hardis:convert",
|
|
10976
|
+
"project:profilestopermsets:convert:hardis",
|
|
10977
|
+
"hardis:profilestopermsets:project:convert",
|
|
10978
|
+
"profilestopermsets:hardis:project:convert",
|
|
10979
|
+
"profilestopermsets:project:hardis:convert",
|
|
10980
|
+
"profilestopermsets:project:convert:hardis",
|
|
10981
|
+
"hardis:profilestopermsets:convert:project",
|
|
10982
|
+
"profilestopermsets:hardis:convert:project",
|
|
10983
|
+
"profilestopermsets:convert:hardis:project",
|
|
10984
|
+
"profilestopermsets:convert:project:hardis"
|
|
10985
|
+
]
|
|
10986
|
+
},
|
|
10987
10987
|
"hardis:project:deploy:notify": {
|
|
10988
10988
|
"aliases": [],
|
|
10989
10989
|
"args": {},
|
|
@@ -14856,5 +14856,5 @@
|
|
|
14856
14856
|
]
|
|
14857
14857
|
}
|
|
14858
14858
|
},
|
|
14859
|
-
"version": "6.0.
|
|
14859
|
+
"version": "6.0.4-beta202508121754.0"
|
|
14860
14860
|
}
|