Skip to content

This helps you to build a Salesforce manifest file, which contains all metadata types in your Salesforce org and never uses wildcard.

Notifications You must be signed in to change notification settings

takahitomiyamoto/sfdx-gulp-manifest

Repository files navigation

sfdx-gulp-manifest

This helps you to build a Salesforce manifest file (package.xml), which contains all metadata types in your Salesforce org and never uses wildcard *.

How to use

Download

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

environment.json

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

Metadata WSDL

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

Private Key and Certificate

Next, let's create a private key and self-signed digital certificate, and store server.key to the directory .secrets:

Create a Private Key and Self-Signed Digital Certificate

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

Connected App

Next, please create a connected app and attach the self-signed certificate:

Create a Connected App

Enjoy

Now, it's time to go. Have you already setup Node.js and Yarn?

yarn install
yarn gulp:init
yarn gulp:manifest:create

Enjoy!!

Acknowledgment

About

This helps you to build a Salesforce manifest file, which contains all metadata types in your Salesforce org and never uses wildcard.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published