sfdx-hardis 6.3.3 → 6.4.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 +6 -0
- package/README.md +1 -0
- package/lib/commands/hardis/project/deploy/smart.js +6 -0
- package/lib/commands/hardis/project/deploy/smart.js.map +1 -1
- package/lib/common/utils/deltaUtils.d.ts +1 -0
- package/lib/common/utils/deltaUtils.js +138 -0
- package/lib/common/utils/deltaUtils.js.map +1 -0
- package/oclif.manifest.json +364 -364
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
Note: Can be used with `sfdx plugins:install sfdx-hardis@beta` and docker image `hardisgroupcom/sfdx-hardis@beta`
|
|
6
6
|
|
|
7
|
+
## [6.4.0] 2025-09-08
|
|
8
|
+
|
|
9
|
+
- [hardis:project:deploy:smart](https://sfdx-hardis.cloudity.com/hardis/project/deploy/smart/): New beta feature **useDeltaDeploymentWithDependencies** to add dependencies to the delta deployment package.
|
|
10
|
+
- Fix npm dependencies (just in case, but the global npm packages hack has not impacted sfdx-hardis as it does not run in a browser)
|
|
11
|
+
|
|
7
12
|
## [6.3.3] 2025-09-08
|
|
8
13
|
|
|
9
14
|
- [hardis:org:diagnose:unsecure-connected-apps](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unsecure-connected-apps/)
|
|
@@ -17,6 +22,7 @@ Note: Can be used with `sfdx plugins:install sfdx-hardis@beta` and docker image
|
|
|
17
22
|
- Set initPermissionSets config prop to array of strings
|
|
18
23
|
- [hardis:org:diagnose:unsecure-connected-apps](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unsecure-connected-apps/): Handle case where OAuth Token App menu item is not found
|
|
19
24
|
|
|
25
|
+
|
|
20
26
|
## [6.3.1] 2025-09-07
|
|
21
27
|
|
|
22
28
|
- Update Grafana Home Dashboard to add Unsecure Connected Apps
|
package/README.md
CHANGED
|
@@ -372,6 +372,7 @@ sfdx-hardis is primarily led by Nicolas Vuillamy & [Cloudity](https://www.cloudi
|
|
|
372
372
|
- [Taha Basri](https://www.linkedin.com/in/tahabasri/), for his work about generating documentation of LWC
|
|
373
373
|
- [Anush Poudel](https://www.linkedin.com/in/anushpoudel/), for integrating sfdx-hardis with multiple LLMs using langchainJs
|
|
374
374
|
- [Sebastien Colladon](https://www.linkedin.com/in/sebastien-colladon/), for providing sfdx-git-delta which is highly used within sfdx-hardis
|
|
375
|
+
- [Stepan Stepanov](https://www.linkedin.com/in/stepan-stepanov-79a48734/), for implementing the deployment mode _delta with dependencies_
|
|
375
376
|
|
|
376
377
|
<!-- contributors.md end -->
|
|
377
378
|
|
|
@@ -19,6 +19,7 @@ import { MetadataUtils } from '../../../../common/metadata-utils/index.js';
|
|
|
19
19
|
import { createTempDir, getCurrentGitBranch, getLatestGitCommit, isCI, uxLog, } from '../../../../common/utils/index.js';
|
|
20
20
|
import { CONSTANTS, getConfig } from '../../../../config/index.js';
|
|
21
21
|
import { smartDeploy, removePackageXmlContent, createEmptyPackageXml } from '../../../../common/utils/deployUtils.js';
|
|
22
|
+
import { extendPackageFileWithDependencies } from '../../../../common/utils/deltaUtils.js';
|
|
22
23
|
import { isProductionOrg, promptOrgUsernameDefault, setConnectionVariables } from '../../../../common/utils/orgUtils.js';
|
|
23
24
|
import { getApexTestClasses } from '../../../../common/utils/classUtils.js';
|
|
24
25
|
import { listMajorOrgs, restoreListViewMine } from '../../../../common/utils/orgConfigUtils.js';
|
|
@@ -428,6 +429,11 @@ If testlevel=RunRepositoryTests, can contain a regular expression to keep only c
|
|
|
428
429
|
this.packageXmlFile = packageXmlFileDeltaDeploy;
|
|
429
430
|
// Update package.xml
|
|
430
431
|
const diffPackageXml = path.join(tmpDir, 'package', 'package.xml');
|
|
432
|
+
// Extend delta with dependencies if required
|
|
433
|
+
if (process.env.USE_DELTA_DEPLOYMENT_WITH_DEPENDENCIES === 'true' || this.configInfo.useDeltaDeploymentWithDependencies === true) {
|
|
434
|
+
uxLog("action", this, c.cyan('[DeltaDeployment] Extending package.xml with dependencies ...'));
|
|
435
|
+
await extendPackageFileWithDependencies(diffPackageXml, this.packageXmlFile);
|
|
436
|
+
}
|
|
431
437
|
await removePackageXmlContent(this.packageXmlFile, diffPackageXml, true, {
|
|
432
438
|
debugMode: this.debugMode,
|
|
433
439
|
keepEmptyTypes: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smart.js","sourceRoot":"","sources":["../../../../../src/commands/hardis/project/deploy/smart.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB;;;;;;;;;;EAUE;AAEF,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,CAAC,MAAM,OAAO,CAAC;AACtB,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,IAAI,EACJ,KAAK,GACN,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AACtH,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AACzH,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AAChG,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACtE,OAAO,EAAE,6BAA6B,EAAE,gBAAgB,EAAE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A;IACzG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function extendPackageFileWithDependencies(deltaXmlFile: string, fullPackageFile: string): Promise<void>;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { parsePackageXmlFile, writePackageXmlFile } from './xmlUtils.js';
|
|
2
|
+
let fullPackageTypes = null;
|
|
3
|
+
async function getAllTypes(fullPackageFile) {
|
|
4
|
+
if (fullPackageTypes) {
|
|
5
|
+
return fullPackageTypes;
|
|
6
|
+
}
|
|
7
|
+
fullPackageTypes = await parsePackageXmlFile(fullPackageFile);
|
|
8
|
+
return fullPackageTypes ?? new Map();
|
|
9
|
+
}
|
|
10
|
+
async function getAllLanguages(fullPackageFile) {
|
|
11
|
+
return (await getAllTypes(fullPackageFile))["Translations"] ?? [];
|
|
12
|
+
}
|
|
13
|
+
function addTypeIfMissing(types, typeToAdd) {
|
|
14
|
+
if (typeToAdd === null) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
types[typeToAdd.name] = [...new Set([...(types[typeToAdd.name] ?? []), ...typeToAdd.members])];
|
|
18
|
+
}
|
|
19
|
+
// Generic processor factory
|
|
20
|
+
/* Config:
|
|
21
|
+
- separator: optional, if provided, the member must contain this separator and will be split on it
|
|
22
|
+
- skipCondition: optional, if provided, a function that takes the member and returns true if the member should be skipped
|
|
23
|
+
*/
|
|
24
|
+
function createProcessor(config) {
|
|
25
|
+
return async function (member, fullPackageFile) {
|
|
26
|
+
if (config.skipCondition && config.skipCondition(member)) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
if (config.separator) {
|
|
30
|
+
const parts = member.split(config.separator);
|
|
31
|
+
if (parts.length !== 2) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const types = await getAllTypes(fullPackageFile);
|
|
36
|
+
const members = await config.memberGenerator(member, fullPackageFile, types);
|
|
37
|
+
return members.length ? { members, name: config.targetType } : null;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/* Extends a delta package.xml file with dependencies found in a full package.xml file.
|
|
41
|
+
For example, if the delta package.xml contains a CustomField, it will add the corresponding CustomObject and RecordTypes.
|
|
42
|
+
It also adds translations for all languages found in the full package.xml file.
|
|
43
|
+
*/
|
|
44
|
+
export async function extendPackageFileWithDependencies(deltaXmlFile, fullPackageFile) {
|
|
45
|
+
const languages = await getAllLanguages(fullPackageFile);
|
|
46
|
+
// Generic processors using the factory
|
|
47
|
+
const metadataProcessors = listMetadataProcessors(languages);
|
|
48
|
+
const parsedTypes = await parsePackageXmlFile(deltaXmlFile);
|
|
49
|
+
const clonedTypes = structuredClone(parsedTypes);
|
|
50
|
+
for (const metadataType in clonedTypes) {
|
|
51
|
+
const members = clonedTypes[metadataType];
|
|
52
|
+
if (Object.hasOwn(metadataProcessors, metadataType)) {
|
|
53
|
+
for (const member of members) {
|
|
54
|
+
const processors = Array.isArray(metadataProcessors[metadataType]) ? metadataProcessors[metadataType] : [metadataProcessors[metadataType]];
|
|
55
|
+
for (const processor of processors) {
|
|
56
|
+
addTypeIfMissing(parsedTypes, await processor(member, fullPackageFile));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
await writePackageXmlFile(deltaXmlFile, parsedTypes);
|
|
62
|
+
}
|
|
63
|
+
function listMetadataProcessors(languages) {
|
|
64
|
+
const allCustomFields = createProcessor({
|
|
65
|
+
targetType: "CustomField",
|
|
66
|
+
memberGenerator: async (member, _, allTypesMap) => {
|
|
67
|
+
const baseName = member.split('.')[0];
|
|
68
|
+
return allTypesMap["CustomField"]?.filter(field => field.startsWith(baseName)) ?? [];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
const allCustomMetadataRecords = createProcessor({
|
|
72
|
+
skipCondition: (member) => !member.includes('__mdt'),
|
|
73
|
+
targetType: "CustomMetadata",
|
|
74
|
+
memberGenerator: async (member, _, allTypesMap) => {
|
|
75
|
+
const baseName = member.split('__mdt')[0];
|
|
76
|
+
return allTypesMap["CustomMetadata"]?.filter(member => member.startsWith(baseName)) ?? [];
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
const allObjectRecordTypes = createProcessor({
|
|
80
|
+
separator: '.',
|
|
81
|
+
skipCondition: (member) => member.includes("__mdt"),
|
|
82
|
+
targetType: "RecordType",
|
|
83
|
+
memberGenerator: async (member, _, allTypesMap) => {
|
|
84
|
+
const sobject = member.split('.')[0];
|
|
85
|
+
return allTypesMap["RecordType"]?.filter(member => member.startsWith(sobject + '.')) ?? [];
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
const dashSeparatedObjectToObjectTranslation = createProcessor({
|
|
89
|
+
separator: '-',
|
|
90
|
+
targetType: "CustomObjectTranslation",
|
|
91
|
+
memberGenerator: async (member) => {
|
|
92
|
+
const sobject = member.split('-')[0];
|
|
93
|
+
return languages.map(languageSuffix => sobject + "-" + languageSuffix);
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
const dotSeparatedObjectToObjectTranslation = createProcessor({
|
|
97
|
+
separator: '.',
|
|
98
|
+
skipCondition: (member) => member.includes("__mdt"),
|
|
99
|
+
targetType: "CustomObjectTranslation",
|
|
100
|
+
memberGenerator: async (member) => {
|
|
101
|
+
const sobject = member.split('.')[0];
|
|
102
|
+
return languages.map(languageSuffix => sobject + "-" + languageSuffix);
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
const globalTranslations = createProcessor({
|
|
106
|
+
targetType: "Translations",
|
|
107
|
+
memberGenerator: async () => languages
|
|
108
|
+
});
|
|
109
|
+
const leadConvertSettings = createProcessor({
|
|
110
|
+
skipCondition: (member) => !member.startsWith('Opportunity') && !member.includes('Account') && !member.includes('Contact') && !member.includes('Lead'),
|
|
111
|
+
targetType: "LeadConvertSettings",
|
|
112
|
+
memberGenerator: async (_, __, allTypesMap) => {
|
|
113
|
+
return allTypesMap["LeadConvertSettings"] ?? [];
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
const objectTranslations = createProcessor({
|
|
117
|
+
targetType: "CustomObjectTranslation",
|
|
118
|
+
memberGenerator: async (member) => {
|
|
119
|
+
return languages.map(suffix => member + "-" + suffix);
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
// Map of metadata types to their processors
|
|
123
|
+
const metadataProcessors = {
|
|
124
|
+
"CustomField": [allObjectRecordTypes, allCustomMetadataRecords, dotSeparatedObjectToObjectTranslation, leadConvertSettings],
|
|
125
|
+
"CustomLabel": globalTranslations,
|
|
126
|
+
"CustomMetadata": allCustomFields,
|
|
127
|
+
"CustomObject": objectTranslations,
|
|
128
|
+
"CustomPageWebLink": globalTranslations,
|
|
129
|
+
"CustomTab": globalTranslations,
|
|
130
|
+
"Layout": dashSeparatedObjectToObjectTranslation,
|
|
131
|
+
"QuickAction": dotSeparatedObjectToObjectTranslation,
|
|
132
|
+
"RecordType": dotSeparatedObjectToObjectTranslation,
|
|
133
|
+
"ReportType": globalTranslations,
|
|
134
|
+
"ValidationRule": dotSeparatedObjectToObjectTranslation,
|
|
135
|
+
};
|
|
136
|
+
return metadataProcessors;
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=deltaUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deltaUtils.js","sourceRoot":"","sources":["../../../src/common/utils/deltaUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAOzE,IAAI,gBAAgB,GAAG,IAAI,CAAC;AAE5B,KAAK,UAAU,WAAW,CAAC,eAAuB;IAChD,IAAI,gBAAgB,EAAE,CAAC;QACrB,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,gBAAgB,GAAG,MAAM,mBAAmB,CAAC,eAAe,CAAC,CAAC;IAC9D,OAAO,gBAAgB,IAAI,IAAI,GAAG,EAAE,CAAC;AACvC,CAAC;AAED,KAAK,UAAU,eAAe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C,OAAO,WAAW,CAAC,qBAAqB,CAAC,IAAI,EAAE,CAAC;QAClD,CAAC;KACF,CAAC,CAAC;IAEH,MAAM,kBAAkB,GAAG,eAAe,CAAC;QACzC,UAAU,EAAE,yBAAyB;QACrC,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;YAChC,OAAO,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,GAAG,GAAG,GAAG,MAAM,CAAC,CAAC;QACxD,CAAC;KACF,CAAC,CAAC;IAEH,4CAA4C;IAC5C,MAAM,kBAAkB,GAAG;QACzB,aAAa,EAAE,CAAC,oBAAoB,EAAE,wBAAwB,EAAE,qCAAqC,EAAE,mBAAmB,CAAC;QAC3H,aAAa,EAAE,kBAAkB;QACjC,gBAAgB,EAAE,eAAe;QACjC,cAAc,EAAE,kBAAkB;QAClC,mBAAmB,EAAE,kBAAkB;QACvC,WAAW,EAAE,kBAAkB;QAC/B,QAAQ,EAAE,sCAAsC;QAChD,aAAa,EAAE,qCAAqC;QACpD,YAAY,EAAE,qCAAqC;QACnD,YAAY,EAAE,kBAAkB;QAChC,gBAAgB,EAAE,qCAAqC;KACxD,CAAC;IACF,OAAO,kBAAkB,CAAC;AAC5B,CAAC"}
|
package/oclif.manifest.json
CHANGED
|
@@ -57,13 +57,12 @@
|
|
|
57
57
|
"world:hello"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
-
"hardis:
|
|
60
|
+
"hardis:cache:clear": {
|
|
61
61
|
"aliases": [],
|
|
62
62
|
"args": {},
|
|
63
|
-
"description": "\n## Command Behavior\n\n**
|
|
63
|
+
"description": "\n## Command Behavior\n\n**Clears the local cache generated by the sfdx-hardis plugin.**\n\nThis command is designed to remove temporary files, stored configurations, and other cached data that sfdx-hardis uses to optimize its operations. Clearing the cache can be beneficial for:\n\n- **Troubleshooting:** Resolving unexpected behavior or inconsistencies.\n- **Disk Space Management:** Freeing up storage on your local machine.\n- **Ensuring Fresh Data:** Guaranteeing that the plugin operates with the most current data and configurations.\n\n## Technical explanations\n\nThe command's technical implementation is straightforward:\n\n- **Direct Function Call:** It directly invokes the `clearCache()` function, which is imported from \buri../../../common/cache/index.js\buri.\n- **Cache Management Logic:** The \buriclearCache()` function encapsulates the logic for identifying and removing the specific files and directories that constitute the sfdx-hardis cache.\n",
|
|
64
64
|
"examples": [
|
|
65
|
-
"$ sf hardis:
|
|
66
|
-
"CI=true sf hardis:auth:login"
|
|
65
|
+
"$ sf hardis:cache:clear"
|
|
67
66
|
],
|
|
68
67
|
"flags": {
|
|
69
68
|
"json": {
|
|
@@ -81,28 +80,6 @@
|
|
|
81
80
|
"multiple": false,
|
|
82
81
|
"type": "option"
|
|
83
82
|
},
|
|
84
|
-
"instanceurl": {
|
|
85
|
-
"char": "r",
|
|
86
|
-
"description": "URL of org instance",
|
|
87
|
-
"name": "instanceurl",
|
|
88
|
-
"hasDynamicHelp": false,
|
|
89
|
-
"multiple": false,
|
|
90
|
-
"type": "option"
|
|
91
|
-
},
|
|
92
|
-
"devhub": {
|
|
93
|
-
"char": "h",
|
|
94
|
-
"description": "Also connect associated DevHub",
|
|
95
|
-
"name": "devhub",
|
|
96
|
-
"allowNo": false,
|
|
97
|
-
"type": "boolean"
|
|
98
|
-
},
|
|
99
|
-
"scratchorg": {
|
|
100
|
-
"char": "s",
|
|
101
|
-
"description": "Scratch org",
|
|
102
|
-
"name": "scratchorg",
|
|
103
|
-
"allowNo": false,
|
|
104
|
-
"type": "boolean"
|
|
105
|
-
},
|
|
106
83
|
"debug": {
|
|
107
84
|
"char": "d",
|
|
108
85
|
"description": "Activate debug mode (more logs)",
|
|
@@ -126,38 +103,42 @@
|
|
|
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:auth:login": {
|
|
156
136
|
"aliases": [],
|
|
157
137
|
"args": {},
|
|
158
|
-
"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<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",
|
|
159
139
|
"examples": [
|
|
160
|
-
"$ sf hardis:
|
|
140
|
+
"$ sf hardis:auth:login",
|
|
141
|
+
"CI=true sf hardis:auth:login"
|
|
161
142
|
],
|
|
162
143
|
"flags": {
|
|
163
144
|
"json": {
|
|
@@ -175,6 +156,28 @@
|
|
|
175
156
|
"multiple": false,
|
|
176
157
|
"type": "option"
|
|
177
158
|
},
|
|
159
|
+
"instanceurl": {
|
|
160
|
+
"char": "r",
|
|
161
|
+
"description": "URL of org instance",
|
|
162
|
+
"name": "instanceurl",
|
|
163
|
+
"hasDynamicHelp": false,
|
|
164
|
+
"multiple": false,
|
|
165
|
+
"type": "option"
|
|
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
|
+
},
|
|
178
181
|
"debug": {
|
|
179
182
|
"char": "d",
|
|
180
183
|
"description": "Activate debug mode (more logs)",
|
|
@@ -198,33 +201,30 @@
|
|
|
198
201
|
},
|
|
199
202
|
"hasDynamicHelp": false,
|
|
200
203
|
"hiddenAliases": [],
|
|
201
|
-
"id": "hardis:
|
|
204
|
+
"id": "hardis:auth:login",
|
|
202
205
|
"pluginAlias": "sfdx-hardis",
|
|
203
206
|
"pluginName": "sfdx-hardis",
|
|
204
207
|
"pluginType": "core",
|
|
205
208
|
"strict": true,
|
|
206
209
|
"enableJsonFlag": true,
|
|
207
|
-
"title": "
|
|
208
|
-
"uiConfig": {
|
|
209
|
-
"hide": true
|
|
210
|
-
},
|
|
210
|
+
"title": "Login",
|
|
211
211
|
"requiresProject": false,
|
|
212
212
|
"isESM": true,
|
|
213
213
|
"relativePath": [
|
|
214
214
|
"lib",
|
|
215
215
|
"commands",
|
|
216
216
|
"hardis",
|
|
217
|
-
"
|
|
218
|
-
"
|
|
217
|
+
"auth",
|
|
218
|
+
"login.js"
|
|
219
219
|
],
|
|
220
220
|
"aliasPermutations": [],
|
|
221
221
|
"permutations": [
|
|
222
|
-
"hardis:
|
|
223
|
-
"
|
|
224
|
-
"
|
|
225
|
-
"hardis:
|
|
226
|
-
"
|
|
227
|
-
"
|
|
222
|
+
"hardis:auth:login",
|
|
223
|
+
"auth:hardis:login",
|
|
224
|
+
"auth:login:hardis",
|
|
225
|
+
"hardis:login:auth",
|
|
226
|
+
"login:hardis:auth",
|
|
227
|
+
"login:auth:hardis"
|
|
228
228
|
]
|
|
229
229
|
},
|
|
230
230
|
"hardis:config:get": {
|
|
@@ -9682,135 +9682,6 @@
|
|
|
9682
9682
|
"remotesites:audit:project:hardis"
|
|
9683
9683
|
]
|
|
9684
9684
|
},
|
|
9685
|
-
"hardis:project:configure:auth": {
|
|
9686
|
-
"aliases": [],
|
|
9687
|
-
"args": {},
|
|
9688
|
-
"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",
|
|
9689
|
-
"examples": [
|
|
9690
|
-
"$ sf hardis:project:configure:auth"
|
|
9691
|
-
],
|
|
9692
|
-
"flags": {
|
|
9693
|
-
"json": {
|
|
9694
|
-
"description": "Format output as json.",
|
|
9695
|
-
"helpGroup": "GLOBAL",
|
|
9696
|
-
"name": "json",
|
|
9697
|
-
"allowNo": false,
|
|
9698
|
-
"type": "boolean"
|
|
9699
|
-
},
|
|
9700
|
-
"flags-dir": {
|
|
9701
|
-
"helpGroup": "GLOBAL",
|
|
9702
|
-
"name": "flags-dir",
|
|
9703
|
-
"summary": "Import flag values from a directory.",
|
|
9704
|
-
"hasDynamicHelp": false,
|
|
9705
|
-
"multiple": false,
|
|
9706
|
-
"type": "option"
|
|
9707
|
-
},
|
|
9708
|
-
"devhub": {
|
|
9709
|
-
"char": "b",
|
|
9710
|
-
"description": "Configure project DevHub",
|
|
9711
|
-
"name": "devhub",
|
|
9712
|
-
"allowNo": false,
|
|
9713
|
-
"type": "boolean"
|
|
9714
|
-
},
|
|
9715
|
-
"debug": {
|
|
9716
|
-
"char": "d",
|
|
9717
|
-
"description": "Activate debug mode (more logs)",
|
|
9718
|
-
"name": "debug",
|
|
9719
|
-
"allowNo": false,
|
|
9720
|
-
"type": "boolean"
|
|
9721
|
-
},
|
|
9722
|
-
"websocket": {
|
|
9723
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
9724
|
-
"name": "websocket",
|
|
9725
|
-
"hasDynamicHelp": false,
|
|
9726
|
-
"multiple": false,
|
|
9727
|
-
"type": "option"
|
|
9728
|
-
},
|
|
9729
|
-
"skipauth": {
|
|
9730
|
-
"description": "Skip authentication check when a default username is required",
|
|
9731
|
-
"name": "skipauth",
|
|
9732
|
-
"allowNo": false,
|
|
9733
|
-
"type": "boolean"
|
|
9734
|
-
},
|
|
9735
|
-
"target-org": {
|
|
9736
|
-
"aliases": [
|
|
9737
|
-
"targetusername",
|
|
9738
|
-
"u"
|
|
9739
|
-
],
|
|
9740
|
-
"char": "o",
|
|
9741
|
-
"deprecateAliases": true,
|
|
9742
|
-
"name": "target-org",
|
|
9743
|
-
"noCacheDefault": true,
|
|
9744
|
-
"summary": "Username or alias of the target org.",
|
|
9745
|
-
"hasDynamicHelp": true,
|
|
9746
|
-
"multiple": false,
|
|
9747
|
-
"type": "option"
|
|
9748
|
-
},
|
|
9749
|
-
"target-dev-hub": {
|
|
9750
|
-
"aliases": [
|
|
9751
|
-
"targetdevhubusername"
|
|
9752
|
-
],
|
|
9753
|
-
"char": "v",
|
|
9754
|
-
"deprecateAliases": true,
|
|
9755
|
-
"name": "target-dev-hub",
|
|
9756
|
-
"noCacheDefault": true,
|
|
9757
|
-
"required": false,
|
|
9758
|
-
"summary": "Username or alias of the Dev Hub org.",
|
|
9759
|
-
"hasDynamicHelp": true,
|
|
9760
|
-
"multiple": false,
|
|
9761
|
-
"type": "option"
|
|
9762
|
-
}
|
|
9763
|
-
},
|
|
9764
|
-
"hasDynamicHelp": true,
|
|
9765
|
-
"hiddenAliases": [],
|
|
9766
|
-
"id": "hardis:project:configure:auth",
|
|
9767
|
-
"pluginAlias": "sfdx-hardis",
|
|
9768
|
-
"pluginName": "sfdx-hardis",
|
|
9769
|
-
"pluginType": "core",
|
|
9770
|
-
"strict": true,
|
|
9771
|
-
"enableJsonFlag": true,
|
|
9772
|
-
"title": "Configure authentication",
|
|
9773
|
-
"requiresProject": false,
|
|
9774
|
-
"requiresDependencies": [
|
|
9775
|
-
"openssl"
|
|
9776
|
-
],
|
|
9777
|
-
"isESM": true,
|
|
9778
|
-
"relativePath": [
|
|
9779
|
-
"lib",
|
|
9780
|
-
"commands",
|
|
9781
|
-
"hardis",
|
|
9782
|
-
"project",
|
|
9783
|
-
"configure",
|
|
9784
|
-
"auth.js"
|
|
9785
|
-
],
|
|
9786
|
-
"aliasPermutations": [],
|
|
9787
|
-
"permutations": [
|
|
9788
|
-
"hardis:project:configure:auth",
|
|
9789
|
-
"project:hardis:configure:auth",
|
|
9790
|
-
"project:configure:hardis:auth",
|
|
9791
|
-
"project:configure:auth:hardis",
|
|
9792
|
-
"hardis:configure:project:auth",
|
|
9793
|
-
"configure:hardis:project:auth",
|
|
9794
|
-
"configure:project:hardis:auth",
|
|
9795
|
-
"configure:project:auth:hardis",
|
|
9796
|
-
"hardis:configure:auth:project",
|
|
9797
|
-
"configure:hardis:auth:project",
|
|
9798
|
-
"configure:auth:hardis:project",
|
|
9799
|
-
"configure:auth:project:hardis",
|
|
9800
|
-
"hardis:project:auth:configure",
|
|
9801
|
-
"project:hardis:auth:configure",
|
|
9802
|
-
"project:auth:hardis:configure",
|
|
9803
|
-
"project:auth:configure:hardis",
|
|
9804
|
-
"hardis:auth:project:configure",
|
|
9805
|
-
"auth:hardis:project:configure",
|
|
9806
|
-
"auth:project:hardis:configure",
|
|
9807
|
-
"auth:project:configure:hardis",
|
|
9808
|
-
"hardis:auth:configure:project",
|
|
9809
|
-
"auth:hardis:configure:project",
|
|
9810
|
-
"auth:configure:hardis:project",
|
|
9811
|
-
"auth:configure:project:hardis"
|
|
9812
|
-
]
|
|
9813
|
-
},
|
|
9814
9685
|
"hardis:project:clean:emptyitems": {
|
|
9815
9686
|
"aliases": [],
|
|
9816
9687
|
"args": {},
|
|
@@ -11296,12 +11167,12 @@
|
|
|
11296
11167
|
"xml:clean:project:hardis"
|
|
11297
11168
|
]
|
|
11298
11169
|
},
|
|
11299
|
-
"hardis:project:
|
|
11170
|
+
"hardis:project:configure:auth": {
|
|
11300
11171
|
"aliases": [],
|
|
11301
11172
|
"args": {},
|
|
11302
|
-
"description": "\n## Command Behavior\n\n**
|
|
11173
|
+
"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",
|
|
11303
11174
|
"examples": [
|
|
11304
|
-
"$ sf hardis:project:
|
|
11175
|
+
"$ sf hardis:project:configure:auth"
|
|
11305
11176
|
],
|
|
11306
11177
|
"flags": {
|
|
11307
11178
|
"json": {
|
|
@@ -11319,117 +11190,12 @@
|
|
|
11319
11190
|
"multiple": false,
|
|
11320
11191
|
"type": "option"
|
|
11321
11192
|
},
|
|
11322
|
-
"
|
|
11323
|
-
"char": "
|
|
11324
|
-
"description": "
|
|
11325
|
-
"name": "
|
|
11326
|
-
"
|
|
11327
|
-
"
|
|
11328
|
-
"multiple": true,
|
|
11329
|
-
"type": "option"
|
|
11330
|
-
},
|
|
11331
|
-
"debug": {
|
|
11332
|
-
"char": "d",
|
|
11333
|
-
"description": "Activate debug mode (more logs)",
|
|
11334
|
-
"name": "debug",
|
|
11335
|
-
"allowNo": false,
|
|
11336
|
-
"type": "boolean"
|
|
11337
|
-
},
|
|
11338
|
-
"websocket": {
|
|
11339
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11340
|
-
"name": "websocket",
|
|
11341
|
-
"hasDynamicHelp": false,
|
|
11342
|
-
"multiple": false,
|
|
11343
|
-
"type": "option"
|
|
11344
|
-
},
|
|
11345
|
-
"skipauth": {
|
|
11346
|
-
"description": "Skip authentication check when a default username is required",
|
|
11347
|
-
"name": "skipauth",
|
|
11348
|
-
"allowNo": false,
|
|
11349
|
-
"type": "boolean"
|
|
11350
|
-
}
|
|
11351
|
-
},
|
|
11352
|
-
"hasDynamicHelp": false,
|
|
11353
|
-
"hiddenAliases": [],
|
|
11354
|
-
"id": "hardis:project:convert:profilestopermsets",
|
|
11355
|
-
"pluginAlias": "sfdx-hardis",
|
|
11356
|
-
"pluginName": "sfdx-hardis",
|
|
11357
|
-
"pluginType": "core",
|
|
11358
|
-
"strict": true,
|
|
11359
|
-
"enableJsonFlag": true,
|
|
11360
|
-
"title": "Convert Profiles into Permission Sets",
|
|
11361
|
-
"requiresProject": true,
|
|
11362
|
-
"requiresSfdxPlugins": [
|
|
11363
|
-
"shane-sfdx-plugins"
|
|
11364
|
-
],
|
|
11365
|
-
"isESM": true,
|
|
11366
|
-
"relativePath": [
|
|
11367
|
-
"lib",
|
|
11368
|
-
"commands",
|
|
11369
|
-
"hardis",
|
|
11370
|
-
"project",
|
|
11371
|
-
"convert",
|
|
11372
|
-
"profilestopermsets.js"
|
|
11373
|
-
],
|
|
11374
|
-
"aliasPermutations": [],
|
|
11375
|
-
"permutations": [
|
|
11376
|
-
"hardis:project:convert:profilestopermsets",
|
|
11377
|
-
"project:hardis:convert:profilestopermsets",
|
|
11378
|
-
"project:convert:hardis:profilestopermsets",
|
|
11379
|
-
"project:convert:profilestopermsets:hardis",
|
|
11380
|
-
"hardis:convert:project:profilestopermsets",
|
|
11381
|
-
"convert:hardis:project:profilestopermsets",
|
|
11382
|
-
"convert:project:hardis:profilestopermsets",
|
|
11383
|
-
"convert:project:profilestopermsets:hardis",
|
|
11384
|
-
"hardis:convert:profilestopermsets:project",
|
|
11385
|
-
"convert:hardis:profilestopermsets:project",
|
|
11386
|
-
"convert:profilestopermsets:hardis:project",
|
|
11387
|
-
"convert:profilestopermsets:project:hardis",
|
|
11388
|
-
"hardis:project:profilestopermsets:convert",
|
|
11389
|
-
"project:hardis:profilestopermsets:convert",
|
|
11390
|
-
"project:profilestopermsets:hardis:convert",
|
|
11391
|
-
"project:profilestopermsets:convert:hardis",
|
|
11392
|
-
"hardis:profilestopermsets:project:convert",
|
|
11393
|
-
"profilestopermsets:hardis:project:convert",
|
|
11394
|
-
"profilestopermsets:project:hardis:convert",
|
|
11395
|
-
"profilestopermsets:project:convert:hardis",
|
|
11396
|
-
"hardis:profilestopermsets:convert:project",
|
|
11397
|
-
"profilestopermsets:hardis:convert:project",
|
|
11398
|
-
"profilestopermsets:convert:hardis:project",
|
|
11399
|
-
"profilestopermsets:convert:project:hardis"
|
|
11400
|
-
]
|
|
11401
|
-
},
|
|
11402
|
-
"hardis:project:fix:profiletabs": {
|
|
11403
|
-
"aliases": [],
|
|
11404
|
-
"args": {},
|
|
11405
|
-
"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",
|
|
11406
|
-
"examples": [
|
|
11407
|
-
"$ sf hardis:project:fix:profiletabs"
|
|
11408
|
-
],
|
|
11409
|
-
"flags": {
|
|
11410
|
-
"json": {
|
|
11411
|
-
"description": "Format output as json.",
|
|
11412
|
-
"helpGroup": "GLOBAL",
|
|
11413
|
-
"name": "json",
|
|
11414
|
-
"allowNo": false,
|
|
11415
|
-
"type": "boolean"
|
|
11416
|
-
},
|
|
11417
|
-
"flags-dir": {
|
|
11418
|
-
"helpGroup": "GLOBAL",
|
|
11419
|
-
"name": "flags-dir",
|
|
11420
|
-
"summary": "Import flag values from a directory.",
|
|
11421
|
-
"hasDynamicHelp": false,
|
|
11422
|
-
"multiple": false,
|
|
11423
|
-
"type": "option"
|
|
11424
|
-
},
|
|
11425
|
-
"path": {
|
|
11426
|
-
"char": "p",
|
|
11427
|
-
"description": "Root folder",
|
|
11428
|
-
"name": "path",
|
|
11429
|
-
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
11430
|
-
"hasDynamicHelp": false,
|
|
11431
|
-
"multiple": false,
|
|
11432
|
-
"type": "option"
|
|
11193
|
+
"devhub": {
|
|
11194
|
+
"char": "b",
|
|
11195
|
+
"description": "Configure project DevHub",
|
|
11196
|
+
"name": "devhub",
|
|
11197
|
+
"allowNo": false,
|
|
11198
|
+
"type": "boolean"
|
|
11433
11199
|
},
|
|
11434
11200
|
"debug": {
|
|
11435
11201
|
"char": "d",
|
|
@@ -11460,8 +11226,21 @@
|
|
|
11460
11226
|
"deprecateAliases": true,
|
|
11461
11227
|
"name": "target-org",
|
|
11462
11228
|
"noCacheDefault": true,
|
|
11463
|
-
"
|
|
11464
|
-
"
|
|
11229
|
+
"summary": "Username or alias of the target org.",
|
|
11230
|
+
"hasDynamicHelp": true,
|
|
11231
|
+
"multiple": false,
|
|
11232
|
+
"type": "option"
|
|
11233
|
+
},
|
|
11234
|
+
"target-dev-hub": {
|
|
11235
|
+
"aliases": [
|
|
11236
|
+
"targetdevhubusername"
|
|
11237
|
+
],
|
|
11238
|
+
"char": "v",
|
|
11239
|
+
"deprecateAliases": true,
|
|
11240
|
+
"name": "target-dev-hub",
|
|
11241
|
+
"noCacheDefault": true,
|
|
11242
|
+
"required": false,
|
|
11243
|
+
"summary": "Username or alias of the Dev Hub org.",
|
|
11465
11244
|
"hasDynamicHelp": true,
|
|
11466
11245
|
"multiple": false,
|
|
11467
11246
|
"type": "option"
|
|
@@ -11469,57 +11248,60 @@
|
|
|
11469
11248
|
},
|
|
11470
11249
|
"hasDynamicHelp": true,
|
|
11471
11250
|
"hiddenAliases": [],
|
|
11472
|
-
"id": "hardis:project:
|
|
11251
|
+
"id": "hardis:project:configure:auth",
|
|
11473
11252
|
"pluginAlias": "sfdx-hardis",
|
|
11474
11253
|
"pluginName": "sfdx-hardis",
|
|
11475
11254
|
"pluginType": "core",
|
|
11476
11255
|
"strict": true,
|
|
11477
11256
|
"enableJsonFlag": true,
|
|
11478
|
-
"title": "
|
|
11479
|
-
"requiresProject":
|
|
11257
|
+
"title": "Configure authentication",
|
|
11258
|
+
"requiresProject": false,
|
|
11259
|
+
"requiresDependencies": [
|
|
11260
|
+
"openssl"
|
|
11261
|
+
],
|
|
11480
11262
|
"isESM": true,
|
|
11481
11263
|
"relativePath": [
|
|
11482
11264
|
"lib",
|
|
11483
11265
|
"commands",
|
|
11484
11266
|
"hardis",
|
|
11485
11267
|
"project",
|
|
11486
|
-
"
|
|
11487
|
-
"
|
|
11268
|
+
"configure",
|
|
11269
|
+
"auth.js"
|
|
11488
11270
|
],
|
|
11489
11271
|
"aliasPermutations": [],
|
|
11490
11272
|
"permutations": [
|
|
11491
|
-
"hardis:project:
|
|
11492
|
-
"project:hardis:
|
|
11493
|
-
"project:
|
|
11494
|
-
"project:
|
|
11495
|
-
"hardis:
|
|
11496
|
-
"
|
|
11497
|
-
"
|
|
11498
|
-
"
|
|
11499
|
-
"hardis:
|
|
11500
|
-
"
|
|
11501
|
-
"
|
|
11502
|
-
"
|
|
11503
|
-
"hardis:project:
|
|
11504
|
-
"project:hardis:
|
|
11505
|
-
"project:
|
|
11506
|
-
"project:
|
|
11507
|
-
"hardis:
|
|
11508
|
-
"
|
|
11509
|
-
"
|
|
11510
|
-
"
|
|
11511
|
-
"hardis:
|
|
11512
|
-
"
|
|
11513
|
-
"
|
|
11514
|
-
"
|
|
11273
|
+
"hardis:project:configure:auth",
|
|
11274
|
+
"project:hardis:configure:auth",
|
|
11275
|
+
"project:configure:hardis:auth",
|
|
11276
|
+
"project:configure:auth:hardis",
|
|
11277
|
+
"hardis:configure:project:auth",
|
|
11278
|
+
"configure:hardis:project:auth",
|
|
11279
|
+
"configure:project:hardis:auth",
|
|
11280
|
+
"configure:project:auth:hardis",
|
|
11281
|
+
"hardis:configure:auth:project",
|
|
11282
|
+
"configure:hardis:auth:project",
|
|
11283
|
+
"configure:auth:hardis:project",
|
|
11284
|
+
"configure:auth:project:hardis",
|
|
11285
|
+
"hardis:project:auth:configure",
|
|
11286
|
+
"project:hardis:auth:configure",
|
|
11287
|
+
"project:auth:hardis:configure",
|
|
11288
|
+
"project:auth:configure:hardis",
|
|
11289
|
+
"hardis:auth:project:configure",
|
|
11290
|
+
"auth:hardis:project:configure",
|
|
11291
|
+
"auth:project:hardis:configure",
|
|
11292
|
+
"auth:project:configure:hardis",
|
|
11293
|
+
"hardis:auth:configure:project",
|
|
11294
|
+
"auth:hardis:configure:project",
|
|
11295
|
+
"auth:configure:hardis:project",
|
|
11296
|
+
"auth:configure:project:hardis"
|
|
11515
11297
|
]
|
|
11516
11298
|
},
|
|
11517
|
-
"hardis:project:
|
|
11299
|
+
"hardis:project:convert:profilestopermsets": {
|
|
11518
11300
|
"aliases": [],
|
|
11519
11301
|
"args": {},
|
|
11520
|
-
"description": "\n## Command Behavior\n\n**
|
|
11302
|
+
"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",
|
|
11521
11303
|
"examples": [
|
|
11522
|
-
"$ sf hardis:project:
|
|
11304
|
+
"$ sf hardis:project:convert:profilestopermsets"
|
|
11523
11305
|
],
|
|
11524
11306
|
"flags": {
|
|
11525
11307
|
"json": {
|
|
@@ -11537,13 +11319,13 @@
|
|
|
11537
11319
|
"multiple": false,
|
|
11538
11320
|
"type": "option"
|
|
11539
11321
|
},
|
|
11540
|
-
"
|
|
11541
|
-
"char": "
|
|
11542
|
-
"description": "
|
|
11543
|
-
"name": "
|
|
11544
|
-
"default":
|
|
11322
|
+
"except": {
|
|
11323
|
+
"char": "e",
|
|
11324
|
+
"description": "List of filters",
|
|
11325
|
+
"name": "except",
|
|
11326
|
+
"default": [],
|
|
11545
11327
|
"hasDynamicHelp": false,
|
|
11546
|
-
"multiple":
|
|
11328
|
+
"multiple": true,
|
|
11547
11329
|
"type": "option"
|
|
11548
11330
|
},
|
|
11549
11331
|
"debug": {
|
|
@@ -11569,49 +11351,52 @@
|
|
|
11569
11351
|
},
|
|
11570
11352
|
"hasDynamicHelp": false,
|
|
11571
11353
|
"hiddenAliases": [],
|
|
11572
|
-
"id": "hardis:project:
|
|
11354
|
+
"id": "hardis:project:convert:profilestopermsets",
|
|
11573
11355
|
"pluginAlias": "sfdx-hardis",
|
|
11574
11356
|
"pluginName": "sfdx-hardis",
|
|
11575
11357
|
"pluginType": "core",
|
|
11576
11358
|
"strict": true,
|
|
11577
11359
|
"enableJsonFlag": true,
|
|
11578
|
-
"title": "
|
|
11360
|
+
"title": "Convert Profiles into Permission Sets",
|
|
11579
11361
|
"requiresProject": true,
|
|
11362
|
+
"requiresSfdxPlugins": [
|
|
11363
|
+
"shane-sfdx-plugins"
|
|
11364
|
+
],
|
|
11580
11365
|
"isESM": true,
|
|
11581
11366
|
"relativePath": [
|
|
11582
11367
|
"lib",
|
|
11583
11368
|
"commands",
|
|
11584
11369
|
"hardis",
|
|
11585
11370
|
"project",
|
|
11586
|
-
"
|
|
11587
|
-
"
|
|
11371
|
+
"convert",
|
|
11372
|
+
"profilestopermsets.js"
|
|
11588
11373
|
],
|
|
11589
11374
|
"aliasPermutations": [],
|
|
11590
11375
|
"permutations": [
|
|
11591
|
-
"hardis:project:
|
|
11592
|
-
"project:hardis:
|
|
11593
|
-
"project:
|
|
11594
|
-
"project:
|
|
11595
|
-
"hardis:
|
|
11596
|
-
"
|
|
11597
|
-
"
|
|
11598
|
-
"
|
|
11599
|
-
"hardis:
|
|
11600
|
-
"
|
|
11601
|
-
"
|
|
11602
|
-
"
|
|
11603
|
-
"hardis:project:
|
|
11604
|
-
"project:hardis:
|
|
11605
|
-
"project:
|
|
11606
|
-
"project:
|
|
11607
|
-
"hardis:
|
|
11608
|
-
"
|
|
11609
|
-
"
|
|
11610
|
-
"
|
|
11611
|
-
"hardis:
|
|
11612
|
-
"
|
|
11613
|
-
"
|
|
11614
|
-
"
|
|
11376
|
+
"hardis:project:convert:profilestopermsets",
|
|
11377
|
+
"project:hardis:convert:profilestopermsets",
|
|
11378
|
+
"project:convert:hardis:profilestopermsets",
|
|
11379
|
+
"project:convert:profilestopermsets:hardis",
|
|
11380
|
+
"hardis:convert:project:profilestopermsets",
|
|
11381
|
+
"convert:hardis:project:profilestopermsets",
|
|
11382
|
+
"convert:project:hardis:profilestopermsets",
|
|
11383
|
+
"convert:project:profilestopermsets:hardis",
|
|
11384
|
+
"hardis:convert:profilestopermsets:project",
|
|
11385
|
+
"convert:hardis:profilestopermsets:project",
|
|
11386
|
+
"convert:profilestopermsets:hardis:project",
|
|
11387
|
+
"convert:profilestopermsets:project:hardis",
|
|
11388
|
+
"hardis:project:profilestopermsets:convert",
|
|
11389
|
+
"project:hardis:profilestopermsets:convert",
|
|
11390
|
+
"project:profilestopermsets:hardis:convert",
|
|
11391
|
+
"project:profilestopermsets:convert:hardis",
|
|
11392
|
+
"hardis:profilestopermsets:project:convert",
|
|
11393
|
+
"profilestopermsets:hardis:project:convert",
|
|
11394
|
+
"profilestopermsets:project:hardis:convert",
|
|
11395
|
+
"profilestopermsets:project:convert:hardis",
|
|
11396
|
+
"hardis:profilestopermsets:convert:project",
|
|
11397
|
+
"profilestopermsets:hardis:convert:project",
|
|
11398
|
+
"profilestopermsets:convert:hardis:project",
|
|
11399
|
+
"profilestopermsets:convert:project:hardis"
|
|
11615
11400
|
]
|
|
11616
11401
|
},
|
|
11617
11402
|
"hardis:project:deploy:notify": {
|
|
@@ -12789,6 +12574,221 @@
|
|
|
12789
12574
|
"validate:deploy:project:hardis"
|
|
12790
12575
|
]
|
|
12791
12576
|
},
|
|
12577
|
+
"hardis:project:fix:profiletabs": {
|
|
12578
|
+
"aliases": [],
|
|
12579
|
+
"args": {},
|
|
12580
|
+
"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",
|
|
12581
|
+
"examples": [
|
|
12582
|
+
"$ sf hardis:project:fix:profiletabs"
|
|
12583
|
+
],
|
|
12584
|
+
"flags": {
|
|
12585
|
+
"json": {
|
|
12586
|
+
"description": "Format output as json.",
|
|
12587
|
+
"helpGroup": "GLOBAL",
|
|
12588
|
+
"name": "json",
|
|
12589
|
+
"allowNo": false,
|
|
12590
|
+
"type": "boolean"
|
|
12591
|
+
},
|
|
12592
|
+
"flags-dir": {
|
|
12593
|
+
"helpGroup": "GLOBAL",
|
|
12594
|
+
"name": "flags-dir",
|
|
12595
|
+
"summary": "Import flag values from a directory.",
|
|
12596
|
+
"hasDynamicHelp": false,
|
|
12597
|
+
"multiple": false,
|
|
12598
|
+
"type": "option"
|
|
12599
|
+
},
|
|
12600
|
+
"path": {
|
|
12601
|
+
"char": "p",
|
|
12602
|
+
"description": "Root folder",
|
|
12603
|
+
"name": "path",
|
|
12604
|
+
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
12605
|
+
"hasDynamicHelp": false,
|
|
12606
|
+
"multiple": false,
|
|
12607
|
+
"type": "option"
|
|
12608
|
+
},
|
|
12609
|
+
"debug": {
|
|
12610
|
+
"char": "d",
|
|
12611
|
+
"description": "Activate debug mode (more logs)",
|
|
12612
|
+
"name": "debug",
|
|
12613
|
+
"allowNo": false,
|
|
12614
|
+
"type": "boolean"
|
|
12615
|
+
},
|
|
12616
|
+
"websocket": {
|
|
12617
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
12618
|
+
"name": "websocket",
|
|
12619
|
+
"hasDynamicHelp": false,
|
|
12620
|
+
"multiple": false,
|
|
12621
|
+
"type": "option"
|
|
12622
|
+
},
|
|
12623
|
+
"skipauth": {
|
|
12624
|
+
"description": "Skip authentication check when a default username is required",
|
|
12625
|
+
"name": "skipauth",
|
|
12626
|
+
"allowNo": false,
|
|
12627
|
+
"type": "boolean"
|
|
12628
|
+
},
|
|
12629
|
+
"target-org": {
|
|
12630
|
+
"aliases": [
|
|
12631
|
+
"targetusername",
|
|
12632
|
+
"u"
|
|
12633
|
+
],
|
|
12634
|
+
"char": "o",
|
|
12635
|
+
"deprecateAliases": true,
|
|
12636
|
+
"name": "target-org",
|
|
12637
|
+
"noCacheDefault": true,
|
|
12638
|
+
"required": true,
|
|
12639
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
12640
|
+
"hasDynamicHelp": true,
|
|
12641
|
+
"multiple": false,
|
|
12642
|
+
"type": "option"
|
|
12643
|
+
}
|
|
12644
|
+
},
|
|
12645
|
+
"hasDynamicHelp": true,
|
|
12646
|
+
"hiddenAliases": [],
|
|
12647
|
+
"id": "hardis:project:fix:profiletabs",
|
|
12648
|
+
"pluginAlias": "sfdx-hardis",
|
|
12649
|
+
"pluginName": "sfdx-hardis",
|
|
12650
|
+
"pluginType": "core",
|
|
12651
|
+
"strict": true,
|
|
12652
|
+
"enableJsonFlag": true,
|
|
12653
|
+
"title": "Fix profiles to add tabs that are not retrieved by SF CLI",
|
|
12654
|
+
"requiresProject": true,
|
|
12655
|
+
"isESM": true,
|
|
12656
|
+
"relativePath": [
|
|
12657
|
+
"lib",
|
|
12658
|
+
"commands",
|
|
12659
|
+
"hardis",
|
|
12660
|
+
"project",
|
|
12661
|
+
"fix",
|
|
12662
|
+
"profiletabs.js"
|
|
12663
|
+
],
|
|
12664
|
+
"aliasPermutations": [],
|
|
12665
|
+
"permutations": [
|
|
12666
|
+
"hardis:project:fix:profiletabs",
|
|
12667
|
+
"project:hardis:fix:profiletabs",
|
|
12668
|
+
"project:fix:hardis:profiletabs",
|
|
12669
|
+
"project:fix:profiletabs:hardis",
|
|
12670
|
+
"hardis:fix:project:profiletabs",
|
|
12671
|
+
"fix:hardis:project:profiletabs",
|
|
12672
|
+
"fix:project:hardis:profiletabs",
|
|
12673
|
+
"fix:project:profiletabs:hardis",
|
|
12674
|
+
"hardis:fix:profiletabs:project",
|
|
12675
|
+
"fix:hardis:profiletabs:project",
|
|
12676
|
+
"fix:profiletabs:hardis:project",
|
|
12677
|
+
"fix:profiletabs:project:hardis",
|
|
12678
|
+
"hardis:project:profiletabs:fix",
|
|
12679
|
+
"project:hardis:profiletabs:fix",
|
|
12680
|
+
"project:profiletabs:hardis:fix",
|
|
12681
|
+
"project:profiletabs:fix:hardis",
|
|
12682
|
+
"hardis:profiletabs:project:fix",
|
|
12683
|
+
"profiletabs:hardis:project:fix",
|
|
12684
|
+
"profiletabs:project:hardis:fix",
|
|
12685
|
+
"profiletabs:project:fix:hardis",
|
|
12686
|
+
"hardis:profiletabs:fix:project",
|
|
12687
|
+
"profiletabs:hardis:fix:project",
|
|
12688
|
+
"profiletabs:fix:hardis:project",
|
|
12689
|
+
"profiletabs:fix:project:hardis"
|
|
12690
|
+
]
|
|
12691
|
+
},
|
|
12692
|
+
"hardis:project:fix:v53flexipages": {
|
|
12693
|
+
"aliases": [],
|
|
12694
|
+
"args": {},
|
|
12695
|
+
"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",
|
|
12696
|
+
"examples": [
|
|
12697
|
+
"$ sf hardis:project:fix:v53flexipages"
|
|
12698
|
+
],
|
|
12699
|
+
"flags": {
|
|
12700
|
+
"json": {
|
|
12701
|
+
"description": "Format output as json.",
|
|
12702
|
+
"helpGroup": "GLOBAL",
|
|
12703
|
+
"name": "json",
|
|
12704
|
+
"allowNo": false,
|
|
12705
|
+
"type": "boolean"
|
|
12706
|
+
},
|
|
12707
|
+
"flags-dir": {
|
|
12708
|
+
"helpGroup": "GLOBAL",
|
|
12709
|
+
"name": "flags-dir",
|
|
12710
|
+
"summary": "Import flag values from a directory.",
|
|
12711
|
+
"hasDynamicHelp": false,
|
|
12712
|
+
"multiple": false,
|
|
12713
|
+
"type": "option"
|
|
12714
|
+
},
|
|
12715
|
+
"path": {
|
|
12716
|
+
"char": "p",
|
|
12717
|
+
"description": "Root folder",
|
|
12718
|
+
"name": "path",
|
|
12719
|
+
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
12720
|
+
"hasDynamicHelp": false,
|
|
12721
|
+
"multiple": false,
|
|
12722
|
+
"type": "option"
|
|
12723
|
+
},
|
|
12724
|
+
"debug": {
|
|
12725
|
+
"char": "d",
|
|
12726
|
+
"description": "Activate debug mode (more logs)",
|
|
12727
|
+
"name": "debug",
|
|
12728
|
+
"allowNo": false,
|
|
12729
|
+
"type": "boolean"
|
|
12730
|
+
},
|
|
12731
|
+
"websocket": {
|
|
12732
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
12733
|
+
"name": "websocket",
|
|
12734
|
+
"hasDynamicHelp": false,
|
|
12735
|
+
"multiple": false,
|
|
12736
|
+
"type": "option"
|
|
12737
|
+
},
|
|
12738
|
+
"skipauth": {
|
|
12739
|
+
"description": "Skip authentication check when a default username is required",
|
|
12740
|
+
"name": "skipauth",
|
|
12741
|
+
"allowNo": false,
|
|
12742
|
+
"type": "boolean"
|
|
12743
|
+
}
|
|
12744
|
+
},
|
|
12745
|
+
"hasDynamicHelp": false,
|
|
12746
|
+
"hiddenAliases": [],
|
|
12747
|
+
"id": "hardis:project:fix:v53flexipages",
|
|
12748
|
+
"pluginAlias": "sfdx-hardis",
|
|
12749
|
+
"pluginName": "sfdx-hardis",
|
|
12750
|
+
"pluginType": "core",
|
|
12751
|
+
"strict": true,
|
|
12752
|
+
"enableJsonFlag": true,
|
|
12753
|
+
"title": "Fix flexipages for v53",
|
|
12754
|
+
"requiresProject": true,
|
|
12755
|
+
"isESM": true,
|
|
12756
|
+
"relativePath": [
|
|
12757
|
+
"lib",
|
|
12758
|
+
"commands",
|
|
12759
|
+
"hardis",
|
|
12760
|
+
"project",
|
|
12761
|
+
"fix",
|
|
12762
|
+
"v53flexipages.js"
|
|
12763
|
+
],
|
|
12764
|
+
"aliasPermutations": [],
|
|
12765
|
+
"permutations": [
|
|
12766
|
+
"hardis:project:fix:v53flexipages",
|
|
12767
|
+
"project:hardis:fix:v53flexipages",
|
|
12768
|
+
"project:fix:hardis:v53flexipages",
|
|
12769
|
+
"project:fix:v53flexipages:hardis",
|
|
12770
|
+
"hardis:fix:project:v53flexipages",
|
|
12771
|
+
"fix:hardis:project:v53flexipages",
|
|
12772
|
+
"fix:project:hardis:v53flexipages",
|
|
12773
|
+
"fix:project:v53flexipages:hardis",
|
|
12774
|
+
"hardis:fix:v53flexipages:project",
|
|
12775
|
+
"fix:hardis:v53flexipages:project",
|
|
12776
|
+
"fix:v53flexipages:hardis:project",
|
|
12777
|
+
"fix:v53flexipages:project:hardis",
|
|
12778
|
+
"hardis:project:v53flexipages:fix",
|
|
12779
|
+
"project:hardis:v53flexipages:fix",
|
|
12780
|
+
"project:v53flexipages:hardis:fix",
|
|
12781
|
+
"project:v53flexipages:fix:hardis",
|
|
12782
|
+
"hardis:v53flexipages:project:fix",
|
|
12783
|
+
"v53flexipages:hardis:project:fix",
|
|
12784
|
+
"v53flexipages:project:hardis:fix",
|
|
12785
|
+
"v53flexipages:project:fix:hardis",
|
|
12786
|
+
"hardis:v53flexipages:fix:project",
|
|
12787
|
+
"v53flexipages:hardis:fix:project",
|
|
12788
|
+
"v53flexipages:fix:hardis:project",
|
|
12789
|
+
"v53flexipages:fix:project:hardis"
|
|
12790
|
+
]
|
|
12791
|
+
},
|
|
12792
12792
|
"hardis:project:generate:bypass": {
|
|
12793
12793
|
"aliases": [],
|
|
12794
12794
|
"args": {},
|
|
@@ -15271,5 +15271,5 @@
|
|
|
15271
15271
|
]
|
|
15272
15272
|
}
|
|
15273
15273
|
},
|
|
15274
|
-
"version": "6.
|
|
15274
|
+
"version": "6.4.0"
|
|
15275
15275
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Swiss-army-knife Toolbox for Salesforce.\n Allows you to define a complete CD/CD Pipeline.\n Orchestrate base commands and assist users with interactive wizards",
|
|
4
4
|
"author": "NicolasVuillamy @nvuillam",
|
|
5
5
|
"bugs": "https://github.com/hardisgroupcom/sfdx-hardis/issues",
|
|
6
|
-
"version": "6.
|
|
6
|
+
"version": "6.4.0",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@actions/github": "^6.0.1",
|
|
9
9
|
"@cparra/apexdocs": "^3.14.1",
|