This helps you to build a Salesforce manifest file (package.xml), which contains all metadata types in your Salesforce org and never uses wildcard *
.
First of all, let's clone this repository:
git clone https://github.com/takahitomiyamoto/sfdx-gulp-manifest.git
cd sfdx-gulp-manifest
rm -rf .git
Next, let's go to the directory .secrets
, rename environment.sample.json
to environment.json
, and configure a few environment variables:
name | description |
---|---|
clientId | consumer key of the connected app in your org |
username | username of the login user to your org |
hostname | login.salesforce.com or test.salesforce.com |
asOfVersion | API version in your org |
myDomain | my domain of your org e.g.) heat-dev-ed.cs117.my.salesforce.com --> heat-dev-ed.cs117 |
If you want to use the latest API version (except 48.0
), please download the latest Metadata WSDL and replace metadata.wsdl
in the directory .assets
.
Generate or Obtain the Web Service WSDLs for Your Organization
Next, let's create a private key and self-signed digital certificate, and store server.key
to the directory .secrets
:
By the way, if you want to use a self-signed certificate created on your Salesforce org, you can create server.key
from your Keystore 00Dxxxxxxxxxxxx.jks
by the steps below:
keytool -importkeystore -srckeystore 00Dxxxxxxxxxxxx.jks -destkeystore keystore.p12 -deststoretype PKCS12
openssl pkcs12 -in keystore.p12 -nocerts -nodes -out server.key
Next, please create a connected app and attach the self-signed certificate:
Now, it's time to go. Have you already setup Node.js
and Yarn
?
yarn install
yarn gulp:init
yarn gulp:manifest:create
Enjoy!!