Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Get Started with Salesforce DX
1. Get Started with Salesforce DX
Anurag Bhardwaj (@anurag_sfdc)
Sr. Salesforce Developer (#DF17GG)
Metacube Software Pvt. Ltd. (#JaipurDUG)
2.
3. Agenda
● Introduction of Salesforce DX
● Setup of a Dev Hub and scratch org
● Understand project folder structure
● Salesforce CLI and VCS
● IDEs who support Salesforce DX
● Demonstration
● Resources
● Q&A
4. What is Salesforce DX
● Tool which streamline the development lifecycle.
● Environments are easily created and disposable.
● Improve team development and collaboration.
● Continuous Integration
● Development through CLI and IDE (Force.com V2, Visual Studio, Welkin suite)
5. SFDX Core Features
● Developer Hub: Production and Business org can enable Dev Hub. Others can
register to get trial dev hub.
SFDX Org Signup
● Scratch org: Use during development.
● Source sync: Sync scratch org with local environment.
● Salesforce CLI: Use CLI to interact with scratch orgs. Various commands
include creating scratch org and project, push/pull data, run test classes etc.
○ Note: Install GA CLI version if already installed pilot version.
Install CLI
● IDEs: Force.com and VS Code editor give support of SFDX.
Force.com V2
VS Code Editor
7. SFDX-Config.json
● Use to set runtime configuration values.
● Configuration values are either Local or Global.
○ sfdx force:config:set name=<value> [--global]
● Configuration Value names are:
○ apiVersion
○ defaultusername
○ defaultdevhubusername
○ instanceUrl
8. project-scratch-def.json
● Blue print of a scratch org.
● Below are some options that specified in this file:
○ orgName
○ country
○ edition (Required)
○ description
○ language
9. sfdx-project.json
● Project configuration file which contains project information.
● Below are the parameters of file that can be changed manually:
○ packageDirectories
○ namespace
○ sfdcLoginUrl
○ sourceApiVersion
10. Getting Help - CLI
● sfdx --help : command show all top level attributes of sfdx command.
● sfdx force --help: show help of each attribute
● sfdx force:org --help: show help of each sub-attribute
12. Resources
● Trail: Get Started with Salesforce DX
○ Salesforce DX Development Model
○ App Development with Salesforce DX
○ Continuous Integration using Salesforce DX
○ Git and GitHub Basics
○ Quick Start: Salesforce DX
● Setup Guide
● Developer Guide