Install Node.js and place the following files in any directory.
- generate-packagexml.js
- user_config.yaml
- app_config.yaml
- package.json
- package-lock.json
Install required libraries.
$ npm ci
Open user_config.yaml and edit login URL, user name, and password to match your environment.
loginUrl: "https://test.salesforce.com"
apiVersion : "56.0"
userName: "(LOGIN USER NAME)"
password: "(LOGIN PASSWORD)"
Change package.xml output path as necessary.
outputPath: "Package.xml"
If the retrieving fails because of unsupported metadata types, please add the corresponding metadata type to 'excludeMetadataType'.
excludeMetadataType: [
"EventRelayConfig",
"PortalDelegablePermissionSet",
]
Execute a generate-packagexml.js with Node.js in a terminal. If there is no option, It uses the default config file. (default is "./user_config.yaml")
$ node generate-packagexml.js
When 'Done.' appears in the console, Package.xml is created.
If you want to use a non-default configuration file, specify the file with the -c option.
$ node generate-packagexml.js -c YourConfigFile.yaml
- StandardValueSet members are specified in app_config.yaml. If additional members are added in future versions, please modify app_config.yaml.
generate-packagexml.js is licensed under the MIT license.