Created
October 12, 2018 04:18
-
-
Save msrivastav13/881dd229d75780283675b40c36d5e85c to your computer and use it in GitHub Desktop.
Generates package.xml from the Unmanaged container/Managed Package or Changesets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -lt 1 ] | |
then | |
echo Usage: generatepkgXML.sh orgalias packageName | |
exit | |
fi | |
## Retrieve the PackageXML from Unmanaged Container | |
sfdx force:mdapi:retrieve -s -r ./mdapipkg -u $1 -p "$2" # Retrieve Metadata API Source from Package Name | |
unzip -o -qq ./mdapipkg/unpackaged.zip -d ./mdapipkg # Unzip the file | |
rm -rf ./manifest/ # If manifest directory exists delete it | |
mkdir ./manifest/ # Create a New Manifest Directory | |
cp -a ./mdapipkg/package.xml ./manifest/ # Copy package.XML to manifest directory | |
rm -rf ./mdapipkg # Delete the mdapipkg source | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello Mohith,
I am trying to create package.xml for Salesforce CPQ only. Can you please please help me on this. I sincerely appreciate it.
Regards,
Goutam