Skip to content

takahitomiyamoto/salesforce-manifest-generator

Repository files navigation

salesforce manifest generator

generate the package.xml manifest file including all metadata

How to execute

install gradle

brew install gradle

clone the repository

git clone https://github.com/takahitomiyamoto/salesforce-manifest-generator.git

execute the gradle command

cd salesforce-manifest-generator
gradle build

unzip the package

unzip build/distributions/salesforce-manifest-generator.zip

change your credentials

cp credentials_sample.json salesforce-manifest-generator/bin
cd salesforce-manifest-generator/bin
mv credentials_sample.json credentials.json
{
    "credentials": {
        "username": "xxxxxxxxxx",
        "password": "xxxxxxxxxx",
        "exceptManagedPackage": true,
        "exceptUnmanagedPackage": true,
        "orgType": "login",
        "apiVersion": 45.0,
        "os":"win"
    }
}

If you log in to Salesforce via a proxy, set the proxy host and port:

{
    "credentials": {
        "username": "xxxxxxxxxx",
        "password": "xxxxxxxxxx",
        "proxyHost": "samplehost",
        "proxyPort": 9999,
        "exceptManagedPackage": true,
        "exceptUnmanagedPackage": true,
        "orgType": "login",
        "apiVersion": 45.0,
        "os":"win"
    }
}

By the way,

  • "exceptManagedPackage" : true or false
    • if true, all managed or unlocked metadata types move from package.xml to package_managed.xml or package_unlocked.xml
  • "exceptUnmanagedPackage" : true or false
    • if true, all unmanaged metadata types move from package.xml to package_unmanaged.xml
  • "orgType" : "login" or "test"
    • "login" : production, developer
    • "test" : sandbox
  • "os" : "win" or "mac"
    • "win" : use Windows (you should open the generated file with "Shift_JIS".)
    • "mac" : use Mac (you should open the generated file with "UTF-8".)

execute the shell script and check the generated package.xml

./salesforce-manifest-generator
ls