sf-package-autogen
v1.0.0
Published
Automatic generation of `package.xml` based on modified files in a Salesforce project
Maintainers
Readme
sf-package-autogen
Automatic generation of package.xml based on modified files in a Salesforce (SFDX) project.
🚀 How to install
npm install -g sf-package-autogen⚙️ How to use
sf-package-autogen --from origin/main --to HEAD --output ./manifest/package.xml
sf-package-autogen --from master --to HEAD --output ./manifest/package.xml // todoExplanation of arguments by default
| Argument | Description | Default Value |
|-----------|-----------------------------------------------|-------------------|
| --from | Branch or commit to start comparing changes from | origin/main |
| --to | Branch or commit to compare changes to | HEAD |
| --output| Path to save the generated package.xml | ./package.xml |
🧠 Example
If files have been modified:
force-app/main/default/classes/MyClass.cls
force-app/main/default/lwc/myComp/myComp.jsThe generated output will be:
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>MyClass</members>
<name>ApexClass</name>
</types>
<types>
<members>myComp</members>
<name>LightningComponentBundle</name>
</types>
<version>64.0</version>
</Package>