![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@aurahelper/cli-manager
Advanced tools
Module to handle Aura Helper CLI processes used in Aura Helper VSCode Extension
Module to create and handle Aura Helper CLI processes. With this module you can execute all CLI operations and handle the processes progress easy with the callbacks functions.
Aura Helper CLI is a Command Line Interface application to work with Salesforce projects. Is specially designed to DevOps workflows and Continous Integration.
Aura Helper CLI has too many processes to list or describe metadata types, import and export data between orgs, retrieve special metadata types, compress xml files, execute apex anonymous scripts N times or create package files to deploy or delete from git changes among other operations.
Class to create and handle Aura Helper CLI processes. With this module you can execute all CLI operations and handle the processes progress easy with the callbacks functions. Aura Helper CLI Has too many processes to list or describe metadata types, import and export data between orgs, retrieve special metadata types, compress xml files, execute apex anonymous scripts N times or create package files to deploy or delete from git changes among other operations.
The setters methods are defined like a builder pattern to make it more usefull
All CLI Manager methods return a Promise with the associated data to the processes.
The fields that start with _ are for internal use only (Does not modify this fields to a correct CLI Manager work). To the rest of fields, setter methods are recommended instead modify fields.
Path to the local project root folder
API Version number to run processes and connect to salesforce
Namespace prefix from the Org
True to compress all affected files when execute CLI Processes, false in otherwise
Sort order value to sort the compresses files
Path to the ignore file to use on all processes that can ignore metadata
Path to the folder to save all outputs from commands when choose save output into a file.
The CLI Manager class has only one constructor to create a connection
Constructor to create a new CLI Manager object. All parameters are optional and you can use the setters methods to set the values when you want.
Method to set the API Version number to execute some Aura Helper CLI Processes
Method to set the local root project path to execute all Aura Helper CLI Processes
setNamespacePrefix(namespacePrefix)
Method to set the Namespace prefix from the project org
setCompressFiles(compressFiles)
Method to set if compress the affected files by Aura Helper processes
Method to set the sort order when compress XML Files
Method to set the ignore file path to use on some Aura Helper CLI Processes
Method to set the output folder path to redirect the response to files
Method to handle the progress event to handle AHCLI Progression
Method to handle when CLI Manager is aborted
Method to abort all CLI Manager running processes. When finishes call onAbort() callback
compress(filesOrFolders, sortOrder)
Method to compress a single file or folder or array with files to compress (compress more than one folder is not allowed but you can compress an entire folder an subfolders)
Method to compare the local project with the project auth org. Return the Metadata Types that exists on Org and not exists on local project
compareOrgBetween(source, target)
Method to compare between two orgs. Return the Metadata Types that exists on target and not exists on source. Source and Target must be authorized in the system.
Method to describe the all or selected Metadata Types from your local project
describeOrgMetadata(downloadAll, types)
Method to describe the all or selected Metadata Types from your project org
retrieveLocalSpecialMetadata(types)
Method to retrieve all or selected local special types
retrieveOrgSpecialMetadata(downloadAll, types)
Method to retrieve all or selected special types from org
retrieveMixedSpecialMetadata(downloadAll, types)
Method to retrieve all or selected special types on mixed mode
Method to load all available user permissions on the project org
createPackageFromGit(source, target, createType, deleteOrder, useIgnore)
Method to create the package XML and destructive XML files from git diffs and changes between two commits, tags, branches
createPackageFromJSON(source, createType, deleteOrder, useIgnore, explicit)
Method to create the package XML or destructive XML file from a Metadata JSON file
createPackageFromOtherPackages(source, createType, deleteOrder, useIgnore, explicit)
Method to create the package XML or destructive XML from other Package XML Files
Method to ignore Metadata Types from the local project
repairDependencies(types, onlyCheck, useIgnore)
Method to repair all error dependencies from your local project. Also you can check only to check if has errors.
Method to check if Aura Helper is installed on the system
Method to get the Aura Helper CLI installed version on the system
Method to update Aura Helper CLI with aura helper update command
Method to update Aura Helper CLI with NPM command
Method to set the API Version number to execute some Aura Helper CLI Processes
Returns the cli manager object
Set CLI Manager API version
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager();
cliManager.setApiVersion(50);
Method to set the local root project path to execute all Aura Helper CLI Processes
Returns the cli manager object
Set CLI Manager project folder
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager();
cliManager.setProjectFolder('path/to/root/project/folder');
// Or can concatenate method calls because setters return a cli manager object
cliManager.setApiVersion(50).setProjectFolder('path/to/root/project/folder');
Method to set the Namespace prefix from the project org
Returns the cli manager object
Set CLI Manager namespace prefix
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager();
cliManager.setNamespacePrefix('NSPrefix');
// Or can concatenate method calls because setters return a cli manager object
cliManager.setApiVersion(50).setNamespacePrefix('NSPrefix');
Method to set if compress the affected files by Aura Helper processes
Returns the cli manager object
Set CLI Manager compress files
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager();
cliManager.setCompressFiles(true);
// Or can concatenate method calls because setters return a cli manager object
cliManager.setApiVersion(50).setCompressFiles(true);
Method to set the sort order when compress XML Files
Returns the cli manager object
Set CLI Manager compress files
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager();
cliManager.setSortOrder('alphabetDesc');
// Or can concatenate method calls because setters return a cli manager object
cliManager.setApiVersion(50).setSortOrder('alphabetDesc');
Method to set the ignore file path to use on some Aura Helper CLI Processes
Returns the cli manager object
Set CLI Manager ignore file
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager();
cliManager.setIgnoreFile('path/to/ignore/file.json');
// Or can concatenate method calls because setters return a cli manager object
cliManager.setApiVersion(50).setIgnoreFile('path/to/ignore/file.json');
Method to set the output folder path to redirect the response to files
Returns the cli manager object
Set CLI Manager ignore file
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager();
cliManager.setOutputPath('path/to/ignore/output/path');
// Or can concatenate method calls because setters return a cli manager object
cliManager.setApiVersion(50).setOutputPath('path/to/ignore/output/path');
Method to handle the progress event to handle AHCLI Progression
Returns the cli manager object
Set CLI Manager on progress callback
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager();
cliManager.onProgress((status) => {
});
// Or can concatenate method calls because setters return a cli manager object
cliManager.setApiVersion(50).onProgress((status) => {
});
Method to handle the event when CLIManager processes are aborted
Returns the cli manager object
Set CLI Manager on aport callback
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager();
cliManager.onAbort(() => {
// Execute when abort all processes
});
// Or can concatenate method calls because setters return a cli manager object
cliManager.setApiVersion(50).onAbort(() => {
});
Method to abort all CLI Manager running processes. When finishes call onAbort() callback
Abort CLI Manager running processes
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager();
cliManager.onAbort(() => {
console.log('process aborted');
});
cliManager.abortProcess();
Method to compress a single file or folder or array with files to compress (compress more than one folder is not allowed but you can compress an entire folder an subfolders)
Return an empty promise when compress files finish succesfully
This method can throw the next exceptions:
Compress a single XML file
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
const filePath = 'path/to/file.xml';
cliManager.compress(filePath).then((response) => {
console.log('File compressed successfully');
}).catch((error) => {
// Handle error
});
Compress an entire folder and subfolders
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
const folderPath = 'path/to/folder';
cliManager.compress(folderPath).then((response) => {
console.log('Files compressed successfully');
}).catch((error) => {
// Handle error
});
Compress a file list
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
const files = [
'path/to/file1.xml',
'path/to/file2.xml',
'path/to/file3.xml',
'path/to/file4.xml',
'path/to/file5.xml',
];
cliManager.compress(files).then((response) => {
console.log('Files compressed successfully');
}).catch((error) => {
// Handle error
});
Method to compare the local project with the project auth org. Return the Metadata Types that exists on Org and not exists on local project. See Metadata JSON Format section to understand the JSON Metadata Format
Return a promise with a JSON Metadata Object with the data respose. Contains the Metadata Types that exists on the project org and not in the local project.
This method can throw the next exceptions:
Compare local project with org
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
cliManager.compareWithOrg().then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Method to compare between two orgs. Return the Metadata Types that exists on target and not exists on source. Source and Target must be authorized in the system. See Metadata JSON Format section to understand the JSON Metadata Format
Return a promise with a JSON Metadata Object with the data respose. Contains the Metadata Types that exists on target and not on source.
This method can throw the next exceptions:
Compare the project org with another org
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
cliManager.compareOrgBetween(undefined, 'TargetOrgAlias').then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Compare two different orgs
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
cliManager.compareOrgBetween('SourceOrgAlias', 'TargetOrgAlias').then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Method to describe the all or selected Metadata Types from your local project. See Metadata JSON Format section to understand the JSON Metadata Format
Return a promise with a Metadata JSON Object with the selected Metadata Types data
This method can throw the next exceptions:
Describe all local metadata types
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
cliManager.describeLocalMetadata().then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Describe some local metadata types
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
const typesToDescribe = [
'CustomObject',
'ApexClass',
'CustomField',
'CustomTab'
];
cliManager.describeLocalMetadata(typesToDescribe).then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Method to describe the all or selected Metadata Types from your project org. See Metadata JSON Format section to understand the JSON Metadata Format
Return a promise with a Metadata JSON Object with the selected Metadata Types data
This method can throw the next exceptions:
Describe all org metadata types
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
cliManager.describeOrgMetadata().then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Describe some org metadata types
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
const typesToDescribe = [
'CustomObject',
'ApexClass',
'CustomField',
'CustomTab'
];
cliManager.describeOrgMetadata(typesToDescribe).then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Method to retrieve all or selected local special types. See Metadata JSON Format section to understand the JSON Metadata Format
Return a promise with a RetrieveResult object
This method can throw the next exceptions:
Retrieve all local special metadata types
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
cliManager.retrieveLocalSpecialMetadata().then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Retrieve some local special metadata types
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
const pathToJSONMetadataFile = 'path/to/json/file.json';
cliManager.retrieveLocalSpecialMetadata(pathToJSONMetadataFile).then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Method to retrieve all or selected special types from org. See Metadata JSON Format section to understand the JSON Metadata Format
Return a promise with a RetrieveResult object
This method can throw the next exceptions:
Retrieve all org special metadata types from org namespace
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
cliManager.retrieveOrgSpecialMetadata(false).then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Retrieve some org special metadata types from org namespace
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
const pathToJSONMetadataFile = 'path/to/json/file.json';
cliManager.retrieveOrgSpecialMetadata(false, pathToJSONMetadataFile).then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Method to retrieve all or selected special types on mixed mode. See Metadata JSON Format section to understand the JSON Metadata Format
Return a promise with a RetrieveResult object
This method can throw the next exceptions:
Retrieve all mixed special metadata types from org namespace
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
cliManager.retrieveMixedSpecialMetadata(false).then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Retrieve some mixed special metadata types from org namespace
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
const pathToJSONMetadataFile = 'path/to/json/file.json';
cliManager.retrieveMixedSpecialMetadata(false, pathToJSONMetadataFile).then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Method to load all available user permissions on the project org
Return a promise with the list of available user permission API Names
This method can throw the next exceptions:
Load available user permissions from project org
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
const pathToJSONMetadataFile = 'path/to/json/file.json';
cliManager.loadUserPermissions().then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Method to create the package XML and destructive XML files from git diffs and changes between two commits, tags, branches
Return a promise with the PackageGeneratorResult object with the generated file paths
This method can throw the next exceptions:
Create package and destructive files from changes between two branches
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
const sourceBranch = 'feature1';
const targetBranch = 'master';
const createType = 'both';
const deleteOrder = 'after';
cliManager.createPackageFromGit(sourceBranch, targetBranch, createType, deleteOrder).then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Create package file from changes between two branches
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
const sourceBranch = 'feature1';
const targetBranch = 'master';
const createType = 'package';
cliManager.createPackageFromGit(sourceBranch, targetBranch, createType).then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Method to create the package XML or destructive XML file from a Metadata JSON file. See Metadata JSON Format section to understand the JSON Metadata Format
Return a promise with the PackageGeneratorResult object with the generated file paths
This method can throw the next exceptions:
Create package file from Metadata JSON File
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
const jsonFile = 'path/to/metadata/json/file.json';
const createType = 'package';
const deleteOrder = 'after';
cliManager.createPackageFromJSON(jsonFile, createType, deleteOrder).then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Create destructive file from Metadata JSON File
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
const jsonFile = 'path/to/metadata/json/file.json';
const createType = 'destructive';
const deleteOrder = 'after';
cliManager.createPackageFromJSON(jsonFile, createType, deleteOrder).then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Method to create the package XML or destructive XML from other Package XML Files
Return a promise with the PackageGeneratorResult object with the generated file paths
This method can throw the next exceptions:
Create package file from other package files
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
const sources = [
'path/to/package.xml',
'path/to/package2.xml',
'path/to/destructiveChanges.xml',
'path/to/destructiveChangesPost.xml',
'path/to/destructiveChangesPost1.xml',
];
const createType = 'package';
const deleteOrder = 'after';
cliManager.createPackageFromOtherPackages(sources, createType, deleteOrder).then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Create destructive file from other package files
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
const sources = [
'path/to/package.xml',
'path/to/package2.xml',
'path/to/destructiveChanges.xml',
'path/to/destructiveChangesPost.xml',
'path/to/destructiveChangesPost1.xml',
];
const createType = 'destructive';
const deleteOrder = 'after';
cliManager.createPackageFromOtherPackages(jsonFile, createType, deleteOrder).then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Method to ignore Metadata Types from the local project
Return an empty promise when the ignore operation finish succesfully
This method can throw the next exceptions:
Ignore all metadata types from ignore file
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
cliManager.ignoreMetadata().then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Ignore some metadata types from ignore file
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
const typesToIgnore = [
'CustomObject',
'CustomField',
'Profile',
];
const createType = 'destructive';
const deleteOrder = 'after';
cliManager.ignoreMetadata(typesToIgnore).then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Method to repair all error dependencies from your local project. Also you can check only to check if has errors. See Repair Response section to understand the response when select repair dependencies or See Only Check Response section to understand the response when select only check dependencies errors.
Return a promise with the Repair response if you check repair, or the Only Check Response when select check only option
This method can throw the next exceptions:
Repair all metadata types
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
cliManager.repairDependencies().then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Repair some metadata types
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
const typesToRepair = [
'CustomObject',
'CustomField',
'Profile',
];
const createType = 'destructive';
const deleteOrder = 'after';
cliManager.Repair(typesToRepair).then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Check dependencies errors
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
cliManager.repairDependencies(undefined, true).then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Method to check if Aura Helper is installed on the system
Return a promise with true if is installer, false in otherwise
This method can throw the next exceptions:
Check if Aura Helper is installed
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
cliManager.isAuraHelperCLIInstalled(isInstalled).then((response) => {
if(isInstalled)
console.log('Aura Helper is installed');
else
console.log('Aura Helper is not installed');
}).catch((error) => {
// Handle error
});
Method to get the Aura Helper CLI installed version on the system
Return a promise with the Aura Helper CLI response
This method can throw the next exceptions:
Check if Aura Helper is installed
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
cliManager.getAuraHelperCLIVersion(response).then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Method to update Aura Helper CLI with aura helper update command
Return a promise with the Aura Helper CLI response
This method can throw the next exceptions:
Update Aura Helper CLI
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
cliManager.updateAuraHelperCLI().then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
Method to update Aura Helper CLI with NPM command
Return a promise with the Aura Helper CLI response
This method can throw the next exceptions:
Update Aura Helper CLI with NPM
const CLIManager = require('@aurahelper/cli-manager');
const cliManager = new CLIManager('root/project/path', 50);
cliManager.updateAuraHelperCLIWithNPM().then((response) => {
console.log(response);
}).catch((error) => {
// Handle error
});
When you repair dependencies with any option (compress or not, repair specified types...) the response error has the next structure:
{
"MetadataTypeName": {
"metadataType": "MetadataTypeName"
"errors": [
{
"file": "path/to/file"
"errors": [
{
"elementPath": "xmlSuperParentTag>xmlParentTag>xmlTag",
"value": "error value",
"metadataType": "error Metadata Type",
"metadataObject": "error Metadata Object",
"metadataItem": "error Metadata Item",
"xmlElement": {
// xml Element error data
}
},
{
...
},
{
...
}
]
},
{
...
},
{
...
}
]
}
}
Example:
{
"CustomApplication": {
"metadataType": "CustomApplication"
"errors": [
{
"file": "..../force-app/main/default/applications/customApplicationExample.app-meta.xml"
"errors": [
{
"elementPath": "actionOverrides>content",
"value": "FlexiPageExample",
"metadataType": "FlexiPage",
"metadataObject": "FlexiPageExample",
"xmlElement": {
"actionName": "View",
"comment": "Action override description",
"content": "FlexiPageExample",
"formFactor": "Large",
"pageOrSobjectType": "Account",
"skipRecordTypeSelect": false,
"type": "Flexipage"
}
},
{
...
},
{
...
}
]
},
{
...
},
{
...
}
]
},
"PermissionSet": {
"metadataType": "PermissionSet"
"errors": [
{
"file": "..../force-app/main/default/permissionsets/permissionSetExample.app-meta.xml"
"errors": [
{
"elementPath": "fieldPermissions>field",
"value": "Account.custom_field__c",
"metadataType": "CustomField",
"metadataObject": "Account",
"metadataItem": "custom_field__c",
"xmlElement": {
"editable": false,
"field": "Account.custom_field__c",
"readable": false
}
},
{
...
},
{
...
}
]
},
{
...
},
{
...
}
]
}
}
When you only check dependencies errors the response error has the next structure:
{
"MetadataTypeName": [
{
"object": "MetadataObject",
"item": "MetadataItem"
"line": 16,
"startColumn": 146,
"endColumn": 166,
"message": "MetadataTypeName named MetadataObject.MetadataItem does not exists",
"severity": "Warning",
"file": "/path/to/file"
},
{
"object": "MetadataObject",
"item": "MetadataItem"
"line": 17,
"startColumn": 146,
"endColumn": 166,
"message": "MetadataTypeName named MetadataObject.MetadataItem does not exists",
"severity": "Warning",
"file": "/path/to/file"
},
],
"MetadataTypeName": [
{
...
},
{
...
}
]
}
Example:
{
"CustomApplication": [
{
"object": "FlexiPageExample",
"line": 16,
"startColumn": 146,
"endColumn": 166,
"message": "FlexiPage named FlexiPageExample does not exists",
"severity": "Warning",
"file": "..../force-app/main/default/applications/customApplicationExample.app-meta.xml"
},
{
"object": "FlexiPageExample",
"line": 17,
"startColumn": 146,
"endColumn": 166,
"message": "FlexiPage named FlexiPageExample does not exists",
"severity": "Warning",
"file": "..../force-app/main/default/applications/customApplicationExample.app-meta.xml"
},
],
"PermissionSet": [
{
"object": "Account",
"item": "custom_field__c",
"line": 1771,
"startColumn": 56,
"endColumn": 85,
"message": "CustomField named Account.custom_field__c does not exists",
"severity": "Warning",
"file": "..../force-app/main/default/permissionsets/permissionSetExample.permissionset-meta.xml"
},
{
"object": "Account",
"item": "custom_field2__c",
"line": 1772,
"startColumn": 56,
"endColumn": 85,
"message": "CustomField named Account.custom_field2__c does not exists",
"severity": "Warning",
"file": "..../force-app/main/default/permissionsets/permissionSetExample.permissionset-meta.xml"
},
]
}
The Metadata JSON Format used by Aura Helper Framework and modules have the next structure. Some fields are required and the datatypes checked to ensure the correct file structure.
{
"MetadataAPIName": {
"name": "MetadataAPIName", // Required (String). Contains the Metadata Type API Name (like object Key)
"checked": false, // Required (Boolean). Field for include this type on package or not
"path": "path/to/the/metadata/folder", // Optional (String). Path to the Metadata Type folder in local project
"suffix": "fileSuffix", // Optional (String). Metadata File suffix
"childs": { // Object with a collection of childs (Field required (JSON Object) but can be an empty object)
"MetadataObjectName":{
"name": "MetadataObjectName", // Required (String). Contains the Metadata Object API Name (like object Key)
"checked": false, // Required (Boolean). Field for include this object on package or not
"path": "path/to/the/metadata/file/or/folder", // Optional (String). Path to the object file or folder path
"childs": { // Object with a collection of childs (Field required (JSON Object) but can be an empty object)
"MetadataItemName": {
"name": "MetadataItemName", // Required (String). Contains the Metadata Item API Name (like object Key)
"checked": false, // Required (Boolean). Field for include this object on package or not
"path": "path/to/the/metadata/file"
},
"MetadataItemName2": {
...
},
...,
...,
...
}
}
"MetadataObjectName2":{
...
},
...,
...,
...
}
}
}
{
"CustomObject": {
"name": "CustomObject",
"checked": false,
"path": "path/to/root/project/force-app/main/default/objects",
"suffix": "object",
"childs": {
"Account": {
"name": "Account",
"checked": true, // Add Account Object to the package
"path": "path/to/root/project/force-app/main/default/objects/Account/Account.object-meta.xml",
"childs": {}
},
"Case": {
"name": "Case",
"checked": true, // Add Case Object to the package
"path": "path/to/root/project/force-app/main/default/objects/Case/Case.object-meta.xml",
"childs": {}
},
...,
...,
...
}
},
"CustomField": {
"name": "CustomField",
"checked": false,
"path": "path/to/root/project/force-app/main/default/objects",
"suffix": "field",
"childs": {
"Account": {
"name": "Account",
"checked": false,
"path": "path/to/root/project/force-app/main/default/objects/Account/fields",
"childs": {
"customField__c": {
"name": "customField__c",
"checked": true, // Add customField__c to the package
"path": "path/to/root/project/force-app/main/default/objects/Account/fields/customField__c.field-meta.xml",
},
...,
...,
...
}
},
"Case": {
"name": "Case",
"checked": false,
"path": "path/to/root/project/force-app/main/default/objects/Case/fields",
"childs": {
"CaseNumber": {
"name": "CaseNumber",
"checked": true, // Add CaseNumber to the package
"path": "path/to/root/project/force-app/main/default/objects/Account/fields/CaseNumber.field-meta.xml",
},
...,
...,
...
}
},
...,
...,
...
}
}
}
FAQs
Module to handle Aura Helper CLI and Aura Helper SFDX processes used in Aura Helper VSCode Extension
We found that @aurahelper/cli-manager demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.