sfdx-hardis 6.8.0 → 6.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/lib/commands/hardis/auth/login.js +1 -1
- package/lib/commands/hardis/auth/login.js.map +1 -1
- package/lib/commands/hardis/misc/servicenow-report.d.ts +6 -2
- package/lib/commands/hardis/misc/servicenow-report.js +172 -53
- package/lib/commands/hardis/misc/servicenow-report.js.map +1 -1
- package/lib/common/metadata-utils/metadataList.d.ts +19 -6
- package/lib/common/metadata-utils/metadataList.js +2259 -1754
- package/lib/common/metadata-utils/metadataList.js.map +1 -1
- package/lib/common/notifProvider/index.d.ts +1 -1
- package/lib/common/notifProvider/index.js.map +1 -1
- package/lib/common/notifProvider/teamsProvider.d.ts +7 -0
- package/lib/common/notifProvider/teamsProvider.js +146 -6
- package/lib/common/notifProvider/teamsProvider.js.map +1 -1
- package/oclif.manifest.json +191 -190
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -57,12 +57,13 @@
|
|
|
57
57
|
"world:hello"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
-
"hardis:
|
|
60
|
+
"hardis:auth:login": {
|
|
61
61
|
"aliases": [],
|
|
62
62
|
"args": {},
|
|
63
|
-
"description": "\n## Command Behavior\n\n**
|
|
63
|
+
"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",
|
|
64
64
|
"examples": [
|
|
65
|
-
"$ sf hardis:
|
|
65
|
+
"$ sf hardis:auth:login",
|
|
66
|
+
"CI=true CI_COMMIT_REF_NAME=monitoring_myclient sf hardis:auth:login"
|
|
66
67
|
],
|
|
67
68
|
"flags": {
|
|
68
69
|
"json": {
|
|
@@ -80,6 +81,28 @@
|
|
|
80
81
|
"multiple": false,
|
|
81
82
|
"type": "option"
|
|
82
83
|
},
|
|
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
|
+
},
|
|
83
106
|
"debug": {
|
|
84
107
|
"char": "d",
|
|
85
108
|
"description": "Activate debug mode (more logs)",
|
|
@@ -103,41 +126,38 @@
|
|
|
103
126
|
},
|
|
104
127
|
"hasDynamicHelp": false,
|
|
105
128
|
"hiddenAliases": [],
|
|
106
|
-
"id": "hardis:
|
|
129
|
+
"id": "hardis:auth:login",
|
|
107
130
|
"pluginAlias": "sfdx-hardis",
|
|
108
131
|
"pluginName": "sfdx-hardis",
|
|
109
132
|
"pluginType": "core",
|
|
110
133
|
"strict": true,
|
|
111
134
|
"enableJsonFlag": true,
|
|
112
|
-
"title": "
|
|
113
|
-
"uiConfig": {
|
|
114
|
-
"hide": true
|
|
115
|
-
},
|
|
135
|
+
"title": "Login",
|
|
116
136
|
"requiresProject": false,
|
|
117
137
|
"isESM": true,
|
|
118
138
|
"relativePath": [
|
|
119
139
|
"lib",
|
|
120
140
|
"commands",
|
|
121
141
|
"hardis",
|
|
122
|
-
"
|
|
123
|
-
"
|
|
142
|
+
"auth",
|
|
143
|
+
"login.js"
|
|
124
144
|
],
|
|
125
145
|
"aliasPermutations": [],
|
|
126
146
|
"permutations": [
|
|
127
|
-
"hardis:
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"hardis:
|
|
131
|
-
"
|
|
132
|
-
"
|
|
147
|
+
"hardis:auth:login",
|
|
148
|
+
"auth:hardis:login",
|
|
149
|
+
"auth:login:hardis",
|
|
150
|
+
"hardis:login:auth",
|
|
151
|
+
"login:hardis:auth",
|
|
152
|
+
"login:auth:hardis"
|
|
133
153
|
]
|
|
134
154
|
},
|
|
135
|
-
"hardis:
|
|
155
|
+
"hardis:cache:clear": {
|
|
136
156
|
"aliases": [],
|
|
137
157
|
"args": {},
|
|
138
|
-
"description": "\n## Command Behavior\n\n**
|
|
158
|
+
"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",
|
|
139
159
|
"examples": [
|
|
140
|
-
"$ sf hardis:
|
|
160
|
+
"$ sf hardis:cache:clear"
|
|
141
161
|
],
|
|
142
162
|
"flags": {
|
|
143
163
|
"json": {
|
|
@@ -155,20 +175,6 @@
|
|
|
155
175
|
"multiple": false,
|
|
156
176
|
"type": "option"
|
|
157
177
|
},
|
|
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
|
-
},
|
|
172
178
|
"debug": {
|
|
173
179
|
"char": "d",
|
|
174
180
|
"description": "Activate debug mode (more logs)",
|
|
@@ -192,39 +198,41 @@
|
|
|
192
198
|
},
|
|
193
199
|
"hasDynamicHelp": false,
|
|
194
200
|
"hiddenAliases": [],
|
|
195
|
-
"id": "hardis:
|
|
201
|
+
"id": "hardis:cache:clear",
|
|
196
202
|
"pluginAlias": "sfdx-hardis",
|
|
197
203
|
"pluginName": "sfdx-hardis",
|
|
198
204
|
"pluginType": "core",
|
|
199
205
|
"strict": true,
|
|
200
206
|
"enableJsonFlag": true,
|
|
201
|
-
"title": "
|
|
207
|
+
"title": "Clear sfdx-hardis cache",
|
|
208
|
+
"uiConfig": {
|
|
209
|
+
"hide": true
|
|
210
|
+
},
|
|
202
211
|
"requiresProject": false,
|
|
203
212
|
"isESM": true,
|
|
204
213
|
"relativePath": [
|
|
205
214
|
"lib",
|
|
206
215
|
"commands",
|
|
207
216
|
"hardis",
|
|
208
|
-
"
|
|
209
|
-
"
|
|
217
|
+
"cache",
|
|
218
|
+
"clear.js"
|
|
210
219
|
],
|
|
211
220
|
"aliasPermutations": [],
|
|
212
221
|
"permutations": [
|
|
213
|
-
"hardis:
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
"hardis:
|
|
217
|
-
"
|
|
218
|
-
"
|
|
222
|
+
"hardis:cache:clear",
|
|
223
|
+
"cache:hardis:clear",
|
|
224
|
+
"cache:clear:hardis",
|
|
225
|
+
"hardis:clear:cache",
|
|
226
|
+
"clear:hardis:cache",
|
|
227
|
+
"clear:cache: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": {
|
|
@@ -1791,9 +1791,10 @@
|
|
|
1791
1791
|
"hardis:misc:servicenow-report": {
|
|
1792
1792
|
"aliases": [],
|
|
1793
1793
|
"args": {},
|
|
1794
|
-
"description": "This command retrieves user stories from Salesforce and enriches them with data from ServiceNow.\n\nDefine the following environment variables (in CICD variables or locally in a **.env** file):\n\n- SERVICENOW_URL: The base URL of the ServiceNow API (ex: https://your-instance.service-now.com/)\n- SERVICENOW_USERNAME: The username for ServiceNow API authentication.\n- SERVICENOW_PASSWORD: The password for ServiceNow API authentication.\n\nYou also need to define JSON configuration file(e) in folder **config/user-stories/**\n\nExample:\n\n```json\n{\n \"userStoriesConfig\": {\n \"fields\": [\n \"Id\",\n \"Name\",\n \"Ticket_Number__c\",\n \"copado__User_Story_Title__c\",\n \"CreatedBy.Name\",\n \"copado__Release__r.Name\",\n \"copado__Environment__r.Name\"\n ],\n \"table\": \"copado__User_Story__c\",\n \"where\": \"copado__Environment__r.Name ='UAT'\",\n \"whereChoices\": {\n \"UAT all\": \"copado__Environment__r.Name ='UAT'\",\n \"UAT postponed\": \"copado__Environment__r.Name ='UAT' AND copado__Release__r.Name = 'postponed'\",\n \"UAT in progress\": \"copado__Environment__r.Name ='UAT' AND copado__Release__r.Name != 'postponed' AND copado__Release__r.Name != 'cancelled'\"\n },\n \"orderBy\": \"Ticket_Number__c ASC\",\n \"ticketField\": \"Ticket_Number__c\",\n \"reportFields\": [\n { \"key\": \"US Name\", \"path\": \"Name\" },\n { \"key\": \"US SN Identifier\", \"path\": \"Ticket_Number__c\" },\n { \"key\": \"US Title\", \"path\": \"copado__User_Story_Title__c\" },\n { \"key\": \"US Created By\", \"path\": \"CreatedBy.Name\" },\n { \"key\": \"US Environment\", \"path\": \"copado__Environment__r.Name\" },\n { \"key\": \"US Release\", \"path\": \"copado__Release__r.Name\" },\n { \"key\": \"SN Identifier\", \"path\": \"serviceNowInfo.number\", \"default\": \"NOT FOUND\" },\n { \"key\": \"SN Title\", \"path\": \"serviceNowInfo.short_description\", \"default\": \"NOT FOUND\" },\n { \"key\": \"SN Status\", \"path\": \"serviceNowInfo.state\", \"default\": \"NOT FOUND\" },\n { \"key\": \"SN Created By\", \"path\": \"serviceNowInfo.sys_created_by\", \"default\": \"NOT FOUND\" },\n { \"key\": \"SN URL\", \"special\": \"serviceNowTicketUrl\" }\n ]\n },\n \"serviceNowConfig\": {\n \"tables\": [\n { \"tableName\": \"
|
|
1794
|
+
"description": "This command retrieves user stories from Salesforce and enriches them with data from ServiceNow.\n\nDefine the following environment variables (in CICD variables or locally in a **.env** file):\n\n- SERVICENOW_URL: The base URL of the ServiceNow API (ex: https://your-instance.service-now.com/)\n- SERVICENOW_USERNAME: The username for ServiceNow API authentication.\n- SERVICENOW_PASSWORD: The password for ServiceNow API authentication.\n\nYou also need to define JSON configuration file(e) in folder **config/user-stories/**\n\nExample:\n\n```json\n{\n \"userStoriesConfig\": {\n \"fields\": [\n \"Id\",\n \"Name\",\n \"Ticket_Number__c\",\n \"copado__User_Story_Title__c\",\n \"CreatedBy.Name\",\n \"copado__Release__r.Name\",\n \"copado__Environment__r.Name\"\n ],\n \"table\": \"copado__User_Story__c\",\n \"where\": \"copado__Environment__r.Name ='UAT'\",\n \"whereChoices\": {\n \"UAT all\": \"copado__Environment__r.Name ='UAT'\",\n \"UAT postponed\": \"copado__Environment__r.Name ='UAT' AND copado__Release__r.Name = 'postponed'\",\n \"UAT in progress\": \"copado__Environment__r.Name ='UAT' AND copado__Release__r.Name != 'postponed' AND copado__Release__r.Name != 'cancelled'\"\n },\n \"orderBy\": \"Ticket_Number__c ASC\",\n \"ticketField\": \"Ticket_Number__c\",\n \"reportFields\": [\n { \"key\": \"US Name\", \"path\": \"Name\" },\n { \"key\": \"US SN Identifier\", \"path\": \"Ticket_Number__c\" },\n { \"key\": \"US Title\", \"path\": \"copado__User_Story_Title__c\" },\n { \"key\": \"US Created By\", \"path\": \"CreatedBy.Name\" },\n { \"key\": \"US Environment\", \"path\": \"copado__Environment__r.Name\" },\n { \"key\": \"US Release\", \"path\": \"copado__Release__r.Name\" },\n { \"key\": \"SN Identifier\", \"path\": \"serviceNowInfo.number\", \"default\": \"NOT FOUND\" },\n { \"key\": \"SN Title\", \"path\": \"serviceNowInfo.short_description\", \"default\": \"NOT FOUND\" },\n { \"key\": \"SN Status\", \"path\": \"serviceNowInfo.state\", \"default\": \"NOT FOUND\" },\n { \"key\": \"SN Created By\", \"path\": \"serviceNowInfo.sys_created_by\", \"default\": \"NOT FOUND\" },\n { \"key\": \"SN URL\", \"special\": \"serviceNowTicketUrl\" }\n ]\n },\n \"serviceNowConfig\": {\n \"tables\": [\n { \"tableName\": \"dmn_demand\" },\n { \"tableName\": \"incident\" }\n ]\n }\n}\n```\n ",
|
|
1795
1795
|
"examples": [
|
|
1796
|
-
"$ sf hardis:misc:servicenow-report"
|
|
1796
|
+
"$ sf hardis:misc:servicenow-report",
|
|
1797
|
+
"$ sf hardis:misc:servicenow-report --config config/user-stories/my-config.json --where-choice \"UAT all\""
|
|
1797
1798
|
],
|
|
1798
1799
|
"flags": {
|
|
1799
1800
|
"json": {
|
|
@@ -9689,12 +9690,12 @@
|
|
|
9689
9690
|
"remotesites:audit:project:hardis"
|
|
9690
9691
|
]
|
|
9691
9692
|
},
|
|
9692
|
-
"hardis:project:
|
|
9693
|
+
"hardis:project:configure:auth": {
|
|
9693
9694
|
"aliases": [],
|
|
9694
9695
|
"args": {},
|
|
9695
|
-
"description": "\n## Command Behavior\n\n**
|
|
9696
|
+
"description": "\n## Command Behavior\n\n**Configures authentication between a Git branch and a target Salesforce org for CI/CD deployments.**\n\nThis command facilitates the setup of automated CI/CD pipelines, enabling seamless deployments from specific Git branches to designated Salesforce orgs. It supports both standard Salesforce orgs and Dev Hub configurations, catering to various enterprise deployment workflows.\n\nKey functionalities include:\n\n- **Org Selection/Login:** Guides the user to select an existing Salesforce org or log in to a new one.\n- **Git Branch Association:** Allows associating a specific Git branch with the chosen Salesforce org.\n- **Merge Target Definition:** Enables defining target Git branches into which the configured branch can merge, ensuring controlled deployment flows.\n- **Salesforce Username Configuration:** Prompts for the Salesforce username to be used by the CI server for deployments.\n- **SSL Certificate Generation:** Automatically generates an SSL certificate for secure authentication.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's implementation involves several key technical aspects:\n\n- **SF CLI Integration:** Utilizes \n@salesforce/sf-plugins-core\n for command structure and flag parsing.\n- **Interactive Prompts:** Employs the \nprompts\n library for interactive user input, guiding the configuration process.\n- **Git Integration:** Interacts with Git to retrieve branch information using \n`git().branch([\"--list\", \"-r\"])`\n.\n- **Configuration Management:** Leverages internal utilities (`checkConfig`, `getConfig`, `setConfig`, `setInConfigFile`) to read from and write to project-specific configuration files (e.g., `.sfdx-hardis.<branchName>.yml`).\n- **Salesforce CLI Execution:** Executes Salesforce CLI commands programmatically via `execSfdxJson` for org interactions.\n- **SSL Certificate Generation:** Calls `generateSSLCertificate` to create necessary SSL certificates for JWT-based authentication.\n- **WebSocket Communication:** Uses `WebSocketClient` for potential communication with external tools or processes, such as restarting the command in VS Code.\n- **Dependency Check:** Ensures the presence of `openssl` on the system, which is required for SSL certificate generation.\n",
|
|
9696
9697
|
"examples": [
|
|
9697
|
-
"$ sf hardis:project:
|
|
9698
|
+
"$ sf hardis:project:configure:auth"
|
|
9698
9699
|
],
|
|
9699
9700
|
"flags": {
|
|
9700
9701
|
"json": {
|
|
@@ -9712,14 +9713,12 @@
|
|
|
9712
9713
|
"multiple": false,
|
|
9713
9714
|
"type": "option"
|
|
9714
9715
|
},
|
|
9715
|
-
"
|
|
9716
|
-
"char": "
|
|
9717
|
-
"description": "
|
|
9718
|
-
"name": "
|
|
9719
|
-
"
|
|
9720
|
-
"
|
|
9721
|
-
"multiple": true,
|
|
9722
|
-
"type": "option"
|
|
9716
|
+
"devhub": {
|
|
9717
|
+
"char": "b",
|
|
9718
|
+
"description": "Configure project DevHub",
|
|
9719
|
+
"name": "devhub",
|
|
9720
|
+
"allowNo": false,
|
|
9721
|
+
"type": "boolean"
|
|
9723
9722
|
},
|
|
9724
9723
|
"debug": {
|
|
9725
9724
|
"char": "d",
|
|
@@ -9740,20 +9739,48 @@
|
|
|
9740
9739
|
"name": "skipauth",
|
|
9741
9740
|
"allowNo": false,
|
|
9742
9741
|
"type": "boolean"
|
|
9742
|
+
},
|
|
9743
|
+
"target-org": {
|
|
9744
|
+
"aliases": [
|
|
9745
|
+
"targetusername",
|
|
9746
|
+
"u"
|
|
9747
|
+
],
|
|
9748
|
+
"char": "o",
|
|
9749
|
+
"deprecateAliases": true,
|
|
9750
|
+
"name": "target-org",
|
|
9751
|
+
"noCacheDefault": true,
|
|
9752
|
+
"summary": "Username or alias of the target org.",
|
|
9753
|
+
"hasDynamicHelp": true,
|
|
9754
|
+
"multiple": false,
|
|
9755
|
+
"type": "option"
|
|
9756
|
+
},
|
|
9757
|
+
"target-dev-hub": {
|
|
9758
|
+
"aliases": [
|
|
9759
|
+
"targetdevhubusername"
|
|
9760
|
+
],
|
|
9761
|
+
"char": "v",
|
|
9762
|
+
"deprecateAliases": true,
|
|
9763
|
+
"name": "target-dev-hub",
|
|
9764
|
+
"noCacheDefault": true,
|
|
9765
|
+
"required": false,
|
|
9766
|
+
"summary": "Username or alias of the Dev Hub org.",
|
|
9767
|
+
"hasDynamicHelp": true,
|
|
9768
|
+
"multiple": false,
|
|
9769
|
+
"type": "option"
|
|
9743
9770
|
}
|
|
9744
9771
|
},
|
|
9745
|
-
"hasDynamicHelp":
|
|
9772
|
+
"hasDynamicHelp": true,
|
|
9746
9773
|
"hiddenAliases": [],
|
|
9747
|
-
"id": "hardis:project:
|
|
9774
|
+
"id": "hardis:project:configure:auth",
|
|
9748
9775
|
"pluginAlias": "sfdx-hardis",
|
|
9749
9776
|
"pluginName": "sfdx-hardis",
|
|
9750
9777
|
"pluginType": "core",
|
|
9751
9778
|
"strict": true,
|
|
9752
9779
|
"enableJsonFlag": true,
|
|
9753
|
-
"title": "
|
|
9754
|
-
"requiresProject":
|
|
9755
|
-
"
|
|
9756
|
-
"
|
|
9780
|
+
"title": "Configure authentication",
|
|
9781
|
+
"requiresProject": false,
|
|
9782
|
+
"requiresDependencies": [
|
|
9783
|
+
"openssl"
|
|
9757
9784
|
],
|
|
9758
9785
|
"isESM": true,
|
|
9759
9786
|
"relativePath": [
|
|
@@ -9761,35 +9788,35 @@
|
|
|
9761
9788
|
"commands",
|
|
9762
9789
|
"hardis",
|
|
9763
9790
|
"project",
|
|
9764
|
-
"
|
|
9765
|
-
"
|
|
9791
|
+
"configure",
|
|
9792
|
+
"auth.js"
|
|
9766
9793
|
],
|
|
9767
9794
|
"aliasPermutations": [],
|
|
9768
9795
|
"permutations": [
|
|
9769
|
-
"hardis:project:
|
|
9770
|
-
"project:hardis:
|
|
9771
|
-
"project:
|
|
9772
|
-
"project:
|
|
9773
|
-
"hardis:
|
|
9774
|
-
"
|
|
9775
|
-
"
|
|
9776
|
-
"
|
|
9777
|
-
"hardis:
|
|
9778
|
-
"
|
|
9779
|
-
"
|
|
9780
|
-
"
|
|
9781
|
-
"hardis:project:
|
|
9782
|
-
"project:hardis:
|
|
9783
|
-
"project:
|
|
9784
|
-
"project:
|
|
9785
|
-
"hardis:
|
|
9786
|
-
"
|
|
9787
|
-
"
|
|
9788
|
-
"
|
|
9789
|
-
"hardis:
|
|
9790
|
-
"
|
|
9791
|
-
"
|
|
9792
|
-
"
|
|
9796
|
+
"hardis:project:configure:auth",
|
|
9797
|
+
"project:hardis:configure:auth",
|
|
9798
|
+
"project:configure:hardis:auth",
|
|
9799
|
+
"project:configure:auth:hardis",
|
|
9800
|
+
"hardis:configure:project:auth",
|
|
9801
|
+
"configure:hardis:project:auth",
|
|
9802
|
+
"configure:project:hardis:auth",
|
|
9803
|
+
"configure:project:auth:hardis",
|
|
9804
|
+
"hardis:configure:auth:project",
|
|
9805
|
+
"configure:hardis:auth:project",
|
|
9806
|
+
"configure:auth:hardis:project",
|
|
9807
|
+
"configure:auth:project:hardis",
|
|
9808
|
+
"hardis:project:auth:configure",
|
|
9809
|
+
"project:hardis:auth:configure",
|
|
9810
|
+
"project:auth:hardis:configure",
|
|
9811
|
+
"project:auth:configure:hardis",
|
|
9812
|
+
"hardis:auth:project:configure",
|
|
9813
|
+
"auth:hardis:project:configure",
|
|
9814
|
+
"auth:project:hardis:configure",
|
|
9815
|
+
"auth:project:configure:hardis",
|
|
9816
|
+
"hardis:auth:configure:project",
|
|
9817
|
+
"auth:hardis:configure:project",
|
|
9818
|
+
"auth:configure:hardis:project",
|
|
9819
|
+
"auth:configure:project:hardis"
|
|
9793
9820
|
]
|
|
9794
9821
|
},
|
|
9795
9822
|
"hardis:project:clean:emptyitems": {
|
|
@@ -11277,12 +11304,12 @@
|
|
|
11277
11304
|
"xml:clean:project:hardis"
|
|
11278
11305
|
]
|
|
11279
11306
|
},
|
|
11280
|
-
"hardis:project:
|
|
11307
|
+
"hardis:project:convert:profilestopermsets": {
|
|
11281
11308
|
"aliases": [],
|
|
11282
11309
|
"args": {},
|
|
11283
|
-
"description": "\n## Command Behavior\n\n**
|
|
11310
|
+
"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",
|
|
11284
11311
|
"examples": [
|
|
11285
|
-
"$ sf hardis:project:
|
|
11312
|
+
"$ sf hardis:project:convert:profilestopermsets"
|
|
11286
11313
|
],
|
|
11287
11314
|
"flags": {
|
|
11288
11315
|
"json": {
|
|
@@ -11300,12 +11327,14 @@
|
|
|
11300
11327
|
"multiple": false,
|
|
11301
11328
|
"type": "option"
|
|
11302
11329
|
},
|
|
11303
|
-
"
|
|
11304
|
-
"char": "
|
|
11305
|
-
"description": "
|
|
11306
|
-
"name": "
|
|
11307
|
-
"
|
|
11308
|
-
"
|
|
11330
|
+
"except": {
|
|
11331
|
+
"char": "e",
|
|
11332
|
+
"description": "List of filters",
|
|
11333
|
+
"name": "except",
|
|
11334
|
+
"default": [],
|
|
11335
|
+
"hasDynamicHelp": false,
|
|
11336
|
+
"multiple": true,
|
|
11337
|
+
"type": "option"
|
|
11309
11338
|
},
|
|
11310
11339
|
"debug": {
|
|
11311
11340
|
"char": "d",
|
|
@@ -11326,48 +11355,20 @@
|
|
|
11326
11355
|
"name": "skipauth",
|
|
11327
11356
|
"allowNo": false,
|
|
11328
11357
|
"type": "boolean"
|
|
11329
|
-
},
|
|
11330
|
-
"target-org": {
|
|
11331
|
-
"aliases": [
|
|
11332
|
-
"targetusername",
|
|
11333
|
-
"u"
|
|
11334
|
-
],
|
|
11335
|
-
"char": "o",
|
|
11336
|
-
"deprecateAliases": true,
|
|
11337
|
-
"name": "target-org",
|
|
11338
|
-
"noCacheDefault": true,
|
|
11339
|
-
"summary": "Username or alias of the target org.",
|
|
11340
|
-
"hasDynamicHelp": true,
|
|
11341
|
-
"multiple": false,
|
|
11342
|
-
"type": "option"
|
|
11343
|
-
},
|
|
11344
|
-
"target-dev-hub": {
|
|
11345
|
-
"aliases": [
|
|
11346
|
-
"targetdevhubusername"
|
|
11347
|
-
],
|
|
11348
|
-
"char": "v",
|
|
11349
|
-
"deprecateAliases": true,
|
|
11350
|
-
"name": "target-dev-hub",
|
|
11351
|
-
"noCacheDefault": true,
|
|
11352
|
-
"required": false,
|
|
11353
|
-
"summary": "Username or alias of the Dev Hub org.",
|
|
11354
|
-
"hasDynamicHelp": true,
|
|
11355
|
-
"multiple": false,
|
|
11356
|
-
"type": "option"
|
|
11357
11358
|
}
|
|
11358
11359
|
},
|
|
11359
|
-
"hasDynamicHelp":
|
|
11360
|
+
"hasDynamicHelp": false,
|
|
11360
11361
|
"hiddenAliases": [],
|
|
11361
|
-
"id": "hardis:project:
|
|
11362
|
+
"id": "hardis:project:convert:profilestopermsets",
|
|
11362
11363
|
"pluginAlias": "sfdx-hardis",
|
|
11363
11364
|
"pluginName": "sfdx-hardis",
|
|
11364
11365
|
"pluginType": "core",
|
|
11365
11366
|
"strict": true,
|
|
11366
11367
|
"enableJsonFlag": true,
|
|
11367
|
-
"title": "
|
|
11368
|
-
"requiresProject":
|
|
11369
|
-
"
|
|
11370
|
-
"
|
|
11368
|
+
"title": "Convert Profiles into Permission Sets",
|
|
11369
|
+
"requiresProject": true,
|
|
11370
|
+
"requiresSfdxPlugins": [
|
|
11371
|
+
"shane-sfdx-plugins"
|
|
11371
11372
|
],
|
|
11372
11373
|
"isESM": true,
|
|
11373
11374
|
"relativePath": [
|
|
@@ -11375,35 +11376,35 @@
|
|
|
11375
11376
|
"commands",
|
|
11376
11377
|
"hardis",
|
|
11377
11378
|
"project",
|
|
11378
|
-
"
|
|
11379
|
-
"
|
|
11379
|
+
"convert",
|
|
11380
|
+
"profilestopermsets.js"
|
|
11380
11381
|
],
|
|
11381
11382
|
"aliasPermutations": [],
|
|
11382
11383
|
"permutations": [
|
|
11383
|
-
"hardis:project:
|
|
11384
|
-
"project:hardis:
|
|
11385
|
-
"project:
|
|
11386
|
-
"project:
|
|
11387
|
-
"hardis:
|
|
11388
|
-
"
|
|
11389
|
-
"
|
|
11390
|
-
"
|
|
11391
|
-
"hardis:
|
|
11392
|
-
"
|
|
11393
|
-
"
|
|
11394
|
-
"
|
|
11395
|
-
"hardis:project:
|
|
11396
|
-
"project:hardis:
|
|
11397
|
-
"project:
|
|
11398
|
-
"project:
|
|
11399
|
-
"hardis:
|
|
11400
|
-
"
|
|
11401
|
-
"
|
|
11402
|
-
"
|
|
11403
|
-
"hardis:
|
|
11404
|
-
"
|
|
11405
|
-
"
|
|
11406
|
-
"
|
|
11384
|
+
"hardis:project:convert:profilestopermsets",
|
|
11385
|
+
"project:hardis:convert:profilestopermsets",
|
|
11386
|
+
"project:convert:hardis:profilestopermsets",
|
|
11387
|
+
"project:convert:profilestopermsets:hardis",
|
|
11388
|
+
"hardis:convert:project:profilestopermsets",
|
|
11389
|
+
"convert:hardis:project:profilestopermsets",
|
|
11390
|
+
"convert:project:hardis:profilestopermsets",
|
|
11391
|
+
"convert:project:profilestopermsets:hardis",
|
|
11392
|
+
"hardis:convert:profilestopermsets:project",
|
|
11393
|
+
"convert:hardis:profilestopermsets:project",
|
|
11394
|
+
"convert:profilestopermsets:hardis:project",
|
|
11395
|
+
"convert:profilestopermsets:project:hardis",
|
|
11396
|
+
"hardis:project:profilestopermsets:convert",
|
|
11397
|
+
"project:hardis:profilestopermsets:convert",
|
|
11398
|
+
"project:profilestopermsets:hardis:convert",
|
|
11399
|
+
"project:profilestopermsets:convert:hardis",
|
|
11400
|
+
"hardis:profilestopermsets:project:convert",
|
|
11401
|
+
"profilestopermsets:hardis:project:convert",
|
|
11402
|
+
"profilestopermsets:project:hardis:convert",
|
|
11403
|
+
"profilestopermsets:project:convert:hardis",
|
|
11404
|
+
"hardis:profilestopermsets:convert:project",
|
|
11405
|
+
"profilestopermsets:hardis:convert:project",
|
|
11406
|
+
"profilestopermsets:convert:hardis:project",
|
|
11407
|
+
"profilestopermsets:convert:project:hardis"
|
|
11407
11408
|
]
|
|
11408
11409
|
},
|
|
11409
11410
|
"hardis:project:deploy:notify": {
|
|
@@ -15369,5 +15370,5 @@
|
|
|
15369
15370
|
]
|
|
15370
15371
|
}
|
|
15371
15372
|
},
|
|
15372
|
-
"version": "6.
|
|
15373
|
+
"version": "6.9.0"
|
|
15373
15374
|
}
|