SlideShare une entreprise Scribd logo
1  sur  28
Farmington Hills Salesforce Developer User
Group
Salesforce Apex Hours :-Salesforce DX
#SalesforceApexHours #FarmingtonHillsSFDCDug
Speaker :- Jitendra Zaa (Salesforce MVP), Amit Chaudhary
Date :- Saturday, JUNE 10, 2017 11:00 AM EST
Venue/Link :- Online
Who am I ?
Amit Chaudhary
• Active on Salesforce Developer Community
• Blogging at http://amitsalesforce.blogspot.in/
• Co-Organizer of :- FarmingtonHillsSFDCDug
Our Speaker
Jitendra Zaa
Salesforce MVP
Agenda
▶ Introduction to Salesforce DX
▶ Creating Scratch Org
▶ Deploying metadata to Scratch Org
▶ Creating Skeleton Workspace
▶ Running Test classes
▶ Getting Help
▶ Using Force.com IDE with Salesforce DX
▶ Q&A
What is Salesforce Dx
▶ New tool to manage deployment life cycle
▶ SCM driven
▶ Package based development
▶ Scratch Org
▶ CLI & Force.com support
How to get Salesforce Dx
▶ Its in Pilot
▶ Will go to Beta and then GA after Pilot
▶ Your Org may already have access
▶ Wait for Beta or GA
Installation
▶ Install Salesforce CLI from here - https://developer.salesforce.com/media/salesforce-
cli/sfdx-windows-amd64.exe
Get Force.com IDE
https://developer.salesforce.com/media/force-ide/sfdx/pilot/force-ide-Pilot-
win32.win32.x86_64.zip
Salesforce DX CLI
Developer Hub Org
▶ The Developer Hub org is used to authorize all Salesforce DX users. The Developer Hub
(Dev Hub) org is a central location for Salesforce DX because it allows you to create,
delete, and manage your Salesforce scratch orgs.
Clone - https://github.com/forcedotcom/sfdx-simple
Run all commands in sfdx-simple folder
Authorize your hub org using below command
sfdx force:auth:web:login --setdefaultdevhubusername --setalias my-devhub-
org
Above command will open browser and we would need
to enter username and password of developer hub account
Authorize Developer Hub Org
To Create a scratch Org, we need to have following json
{
"Company": "Cognizant",
"Country": "US",
"LastName": "Zaa",
"Email": "jitendra.Zaa@cognizant.com",
"Edition": "Developer",
"OrgPreferences" : {
"S1DesktopEnabled" : true
}
}
All supported org preferences can be found in Metadata Settings documentation.
Creating Scratch Org
▶ Run below command to create scratch org
sfdx force:org:create --setdefaultusername -f config/workspace-scratch-
def.json --setalias jitendra1_scratch
Creating Scratch Org (Contd)
To open scratch Org, run below command
sfdx force:org:open
Open Scratch Org
This JSON contains information about Salesforce Dx project
{
"PackageDirectories": [
{
"Path": "force-app"
}
],
"Namespace": "",
"SourceApiVersion": "39.0"
}
Push Metadata to scratch Org (sfdx-workspace.json)
As per “sfdx-workspace.json” in previous slide, below command will take metadata from
force-app folder and move to scratch org. On successful completion, it will show below
message
sfdx force:source:push
Moving changes to Scratch Org
▶ Below command will create skeleton of DX project workspace with json and folder
structures
sfdx force:workspace:create --workspacename mywork
OR
sfdx force:workspace:create --workspacename mywork --defaultpackagedir
myapp
Create Salesforce DX workspace from CLI
sfdx force:apex:test:run
Above command will return Job Id, use that Job Id to get report of test result
sfdx force:apex:test:report -i <ID>
Run Apex test from CLI
▶ Run below command to get the list of all Scratch Org that has been authorized by SFDX
sfdx force:org:list
List all Scratch Org
Running below command shows all Top level topics
Sfdx --help
We can get help for each topic by using --help again at topic level like
Sfdx force --help
We can further get help of subtopic using command –help
Sfdx force:alias --help
Getting Help
▶ SalesforceDx logs are saved at
USER_HOME_DIR/.sfdx/sfdx.log
▶ Its running log, and only errors are logged by default
▶ Logs can be changed either with each command or globally
▶ To change at each command, use --loglevel DEBUG
▶ To set log level globally use
set SFDX_LOG_LEVEL=DEBUG (windows)
Or
Export SFDX_LOG_LEVEL=DEBUG (Unix)
SalesforceDx logs
Available Log levels in Salesforce Dx
1. ERROR
2. WARN
3. INFO
4. DEBUG
5. TRACE
▶ Salesforce DX creates scratch Org and stores Oauth token internally, It does not provides
password. We can generate password by running below command
sfdx force:user:password:generate
▶ To see generated password again in future , use below command
sfdx force:org:describe
Generating Password of Scratch Org
Force.com IDE
Create Workspace
▶ Navigate to File | New | Workspace
Getting Help and list of available command in Force.com IDE
Resources
▶ Wade Wegner (VP Product for Salesforce DX)
▶ Getting started with Salesforce DX (Jitendra Zaa)
Thank You
Thank you for attending the session.
Follow Farmington Hills SFDC Developer Group
Twitter Hashtag
#FarmingtonHillsSFDCDug
Meetup.com
https://www.meetup.com/Farmington-Hills-Salesforce-Developer-
Meetup/
Facebook Page
https://www.facebook.com/FarmingtonHillsSfdcdug/?ref=bookmarks

Contenu connexe

Tendances

Tendances (20)

Discover salesforce, dev ops and Copado CI/CD automations
Discover salesforce, dev ops and Copado CI/CD automationsDiscover salesforce, dev ops and Copado CI/CD automations
Discover salesforce, dev ops and Copado CI/CD automations
 
Salesforce CI/CD - A strategy for success
Salesforce CI/CD - A strategy for successSalesforce CI/CD - A strategy for success
Salesforce CI/CD - A strategy for success
 
Salesforce DX: A closer look - Part II
Salesforce DX: A closer look - Part IISalesforce DX: A closer look - Part II
Salesforce DX: A closer look - Part II
 
Modular application development using unlocked packages
Modular application development using unlocked packagesModular application development using unlocked packages
Modular application development using unlocked packages
 
Continuous Integration and Testing with Branch Orgs
Continuous Integration and Testing with Branch OrgsContinuous Integration and Testing with Branch Orgs
Continuous Integration and Testing with Branch Orgs
 
TDX19 - Accelerate DevOps with GitLab and Salesforce
TDX19 - Accelerate DevOps with GitLab and SalesforceTDX19 - Accelerate DevOps with GitLab and Salesforce
TDX19 - Accelerate DevOps with GitLab and Salesforce
 
Set up Continuous Integration using SalesforceDX and Jenkins
Set up Continuous Integration using SalesforceDX and JenkinsSet up Continuous Integration using SalesforceDX and Jenkins
Set up Continuous Integration using SalesforceDX and Jenkins
 
Our move to Salesforce DX and Unlocked Packages
Our move to Salesforce DX and Unlocked PackagesOur move to Salesforce DX and Unlocked Packages
Our move to Salesforce DX and Unlocked Packages
 
CI/CD - A strategy for success (North Africa Dreamin' Prez)
CI/CD - A strategy for success (North Africa Dreamin' Prez)CI/CD - A strategy for success (North Africa Dreamin' Prez)
CI/CD - A strategy for success (North Africa Dreamin' Prez)
 
Build your own dev tools with salesforce cli plugin generator
Build your own dev tools with salesforce cli plugin generatorBuild your own dev tools with salesforce cli plugin generator
Build your own dev tools with salesforce cli plugin generator
 
Automating the Impossible: End to End Team Development for ISVs (October 14, ...
Automating the Impossible: End to End Team Development for ISVs (October 14, ...Automating the Impossible: End to End Team Development for ISVs (October 14, ...
Automating the Impossible: End to End Team Development for ISVs (October 14, ...
 
Forcelandia 2015
Forcelandia 2015Forcelandia 2015
Forcelandia 2015
 
Introducing the Welkin Suite IDE for Salesforce
Introducing the Welkin Suite IDE for SalesforceIntroducing the Welkin Suite IDE for Salesforce
Introducing the Welkin Suite IDE for Salesforce
 
Salesforce API Series: Release Management with the Metadata API webinar
Salesforce API Series: Release Management with the Metadata API webinarSalesforce API Series: Release Management with the Metadata API webinar
Salesforce API Series: Release Management with the Metadata API webinar
 
Automate mule deployments with github actions and travis ci
Automate mule deployments with github actions  and  travis ciAutomate mule deployments with github actions  and  travis ci
Automate mule deployments with github actions and travis ci
 
Exploring welkin suite for salesforce development
Exploring welkin suite for salesforce developmentExploring welkin suite for salesforce development
Exploring welkin suite for salesforce development
 
Salesforce.com Continuous Integration
Salesforce.com Continuous IntegrationSalesforce.com Continuous Integration
Salesforce.com Continuous Integration
 
Release and-dependency-management memphis python
Release and-dependency-management memphis pythonRelease and-dependency-management memphis python
Release and-dependency-management memphis python
 
Salesforce Lightning Data Service
Salesforce Lightning Data ServiceSalesforce Lightning Data Service
Salesforce Lightning Data Service
 
Lightning web components
Lightning web componentsLightning web components
Lightning web components
 

Similaire à Salesforce Apex Hours:- Salesforce DX

Easy Salesforce CI/CD with Open Source Only - Dreamforce 23
Easy Salesforce CI/CD with Open Source Only - Dreamforce 23Easy Salesforce CI/CD with Open Source Only - Dreamforce 23
Easy Salesforce CI/CD with Open Source Only - Dreamforce 23
NicolasVuillamy1
 

Similaire à Salesforce Apex Hours:- Salesforce DX (20)

Salesforce Developer eXperience (SFDX)
Salesforce Developer eXperience (SFDX)Salesforce Developer eXperience (SFDX)
Salesforce Developer eXperience (SFDX)
 
SFDX Presentation
SFDX PresentationSFDX Presentation
SFDX Presentation
 
Créer et gérer une scratch org avec Visual Studio Code
Créer et gérer une scratch org avec Visual Studio CodeCréer et gérer une scratch org avec Visual Studio Code
Créer et gérer une scratch org avec Visual Studio Code
 
Comment utiliser Visual Studio Code pour travailler avec une scratch Org
Comment utiliser Visual Studio Code pour travailler avec une scratch OrgComment utiliser Visual Studio Code pour travailler avec une scratch Org
Comment utiliser Visual Studio Code pour travailler avec une scratch Org
 
SFDX - Spring 2019 Update
SFDX - Spring 2019 UpdateSFDX - Spring 2019 Update
SFDX - Spring 2019 Update
 
Get started with Salesforce DX
Get started with Salesforce DXGet started with Salesforce DX
Get started with Salesforce DX
 
Your admin toolbelt is not complete without Salesforce DX
Your admin toolbelt is not complete without Salesforce DXYour admin toolbelt is not complete without Salesforce DX
Your admin toolbelt is not complete without Salesforce DX
 
Salesforce DX for Admin v2
Salesforce DX for Admin v2Salesforce DX for Admin v2
Salesforce DX for Admin v2
 
Salesforce DX for admin
Salesforce DX for adminSalesforce DX for admin
Salesforce DX for admin
 
Easy Salesforce CI/CD with Open Source Only - Dreamforce 23
Easy Salesforce CI/CD with Open Source Only - Dreamforce 23Easy Salesforce CI/CD with Open Source Only - Dreamforce 23
Easy Salesforce CI/CD with Open Source Only - Dreamforce 23
 
Getting started with Salesforce DX & CLI
Getting started with Salesforce DX & CLIGetting started with Salesforce DX & CLI
Getting started with Salesforce DX & CLI
 
Salesforce DX ことはじめ
Salesforce DX ことはじめSalesforce DX ことはじめ
Salesforce DX ことはじめ
 
NAD19 - Create an org with Salesforce DX without Code
NAD19 - Create an org with Salesforce DX without CodeNAD19 - Create an org with Salesforce DX without Code
NAD19 - Create an org with Salesforce DX without Code
 
FTD19 - Salesforce DX with "Visual Studio code"
FTD19 - Salesforce DX with "Visual Studio code"FTD19 - Salesforce DX with "Visual Studio code"
FTD19 - Salesforce DX with "Visual Studio code"
 
WordPress basic fundamental of plugin development and creating shortcode
WordPress basic fundamental of plugin development and creating shortcodeWordPress basic fundamental of plugin development and creating shortcode
WordPress basic fundamental of plugin development and creating shortcode
 
What makes me "Grunt"?
What makes me "Grunt"? What makes me "Grunt"?
What makes me "Grunt"?
 
My tools for sfdc developer
My tools for sfdc developerMy tools for sfdc developer
My tools for sfdc developer
 
Android develop guideline
Android develop guidelineAndroid develop guideline
Android develop guideline
 
Open event presentation.3 2
Open event presentation.3 2Open event presentation.3 2
Open event presentation.3 2
 
Kicking off with Zend Expressive and Doctrine ORM (PHPNW2016)
Kicking off with Zend Expressive and Doctrine ORM (PHPNW2016)Kicking off with Zend Expressive and Doctrine ORM (PHPNW2016)
Kicking off with Zend Expressive and Doctrine ORM (PHPNW2016)
 

Plus de Amit Chaudhary

Plus de Amit Chaudhary (20)

Platform cache
Platform cachePlatform cache
Platform cache
 
Apex code Benchmarking
Apex code BenchmarkingApex code Benchmarking
Apex code Benchmarking
 
Empower admins with the power of salesforce dx, git and cicd pipeline
Empower admins with the power of salesforce dx, git and cicd pipelineEmpower admins with the power of salesforce dx, git and cicd pipeline
Empower admins with the power of salesforce dx, git and cicd pipeline
 
Marketing cloud development
Marketing cloud developmentMarketing cloud development
Marketing cloud development
 
Salesforce Apex Hours : Node red for salesforce
Salesforce Apex Hours : Node red for salesforceSalesforce Apex Hours : Node red for salesforce
Salesforce Apex Hours : Node red for salesforce
 
Einstein Next Best Action (NBA)
Einstein Next Best Action (NBA)Einstein Next Best Action (NBA)
Einstein Next Best Action (NBA)
 
Pardot basics
Pardot basicsPardot basics
Pardot basics
 
Lightning web components
Lightning web componentsLightning web components
Lightning web components
 
Lightning web components
Lightning web componentsLightning web components
Lightning web components
 
Lightning Locker Services
Lightning Locker ServicesLightning Locker Services
Lightning Locker Services
 
Salesforce apex hours heroku connect - deep dive
Salesforce apex hours   heroku connect - deep diveSalesforce apex hours   heroku connect - deep dive
Salesforce apex hours heroku connect - deep dive
 
Salesforce apex hours :- azure active directory seamless single sign-on with...
Salesforce apex hours  :- azure active directory seamless single sign-on with...Salesforce apex hours  :- azure active directory seamless single sign-on with...
Salesforce apex hours :- azure active directory seamless single sign-on with...
 
Einstein Analytics Part 2
Einstein Analytics Part 2Einstein Analytics Part 2
Einstein Analytics Part 2
 
Einstein Analytics
Einstein Analytics Einstein Analytics
Einstein Analytics
 
Demystifying the salesforce reports api
Demystifying the salesforce reports apiDemystifying the salesforce reports api
Demystifying the salesforce reports api
 
Salesforce apex hours Einstein platform services
Salesforce apex hours   Einstein platform servicesSalesforce apex hours   Einstein platform services
Salesforce apex hours Einstein platform services
 
Salesforce Apex Hours : How Lightning Platform Query Optimizer works for LDV
Salesforce Apex Hours : How Lightning Platform Query Optimizer works for LDVSalesforce Apex Hours : How Lightning Platform Query Optimizer works for LDV
Salesforce Apex Hours : How Lightning Platform Query Optimizer works for LDV
 
Einstein bots
Einstein botsEinstein bots
Einstein bots
 
Integrating with salesforce using platform events
Integrating with salesforce using platform eventsIntegrating with salesforce using platform events
Integrating with salesforce using platform events
 
Einstein analytics basics
Einstein analytics basicsEinstein analytics basics
Einstein analytics basics
 

Dernier

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Dernier (20)

SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 

Salesforce Apex Hours:- Salesforce DX

  • 1. Farmington Hills Salesforce Developer User Group Salesforce Apex Hours :-Salesforce DX #SalesforceApexHours #FarmingtonHillsSFDCDug Speaker :- Jitendra Zaa (Salesforce MVP), Amit Chaudhary Date :- Saturday, JUNE 10, 2017 11:00 AM EST Venue/Link :- Online
  • 2. Who am I ? Amit Chaudhary • Active on Salesforce Developer Community • Blogging at http://amitsalesforce.blogspot.in/ • Co-Organizer of :- FarmingtonHillsSFDCDug
  • 4. Agenda ▶ Introduction to Salesforce DX ▶ Creating Scratch Org ▶ Deploying metadata to Scratch Org ▶ Creating Skeleton Workspace ▶ Running Test classes ▶ Getting Help ▶ Using Force.com IDE with Salesforce DX ▶ Q&A
  • 5. What is Salesforce Dx ▶ New tool to manage deployment life cycle ▶ SCM driven ▶ Package based development ▶ Scratch Org ▶ CLI & Force.com support
  • 6. How to get Salesforce Dx ▶ Its in Pilot ▶ Will go to Beta and then GA after Pilot ▶ Your Org may already have access ▶ Wait for Beta or GA
  • 7. Installation ▶ Install Salesforce CLI from here - https://developer.salesforce.com/media/salesforce- cli/sfdx-windows-amd64.exe Get Force.com IDE https://developer.salesforce.com/media/force-ide/sfdx/pilot/force-ide-Pilot- win32.win32.x86_64.zip
  • 9. Developer Hub Org ▶ The Developer Hub org is used to authorize all Salesforce DX users. The Developer Hub (Dev Hub) org is a central location for Salesforce DX because it allows you to create, delete, and manage your Salesforce scratch orgs.
  • 10. Clone - https://github.com/forcedotcom/sfdx-simple Run all commands in sfdx-simple folder Authorize your hub org using below command sfdx force:auth:web:login --setdefaultdevhubusername --setalias my-devhub- org Above command will open browser and we would need to enter username and password of developer hub account Authorize Developer Hub Org
  • 11. To Create a scratch Org, we need to have following json { "Company": "Cognizant", "Country": "US", "LastName": "Zaa", "Email": "jitendra.Zaa@cognizant.com", "Edition": "Developer", "OrgPreferences" : { "S1DesktopEnabled" : true } } All supported org preferences can be found in Metadata Settings documentation. Creating Scratch Org
  • 12. ▶ Run below command to create scratch org sfdx force:org:create --setdefaultusername -f config/workspace-scratch- def.json --setalias jitendra1_scratch Creating Scratch Org (Contd)
  • 13. To open scratch Org, run below command sfdx force:org:open Open Scratch Org
  • 14. This JSON contains information about Salesforce Dx project { "PackageDirectories": [ { "Path": "force-app" } ], "Namespace": "", "SourceApiVersion": "39.0" } Push Metadata to scratch Org (sfdx-workspace.json)
  • 15. As per “sfdx-workspace.json” in previous slide, below command will take metadata from force-app folder and move to scratch org. On successful completion, it will show below message sfdx force:source:push Moving changes to Scratch Org
  • 16. ▶ Below command will create skeleton of DX project workspace with json and folder structures sfdx force:workspace:create --workspacename mywork OR sfdx force:workspace:create --workspacename mywork --defaultpackagedir myapp Create Salesforce DX workspace from CLI
  • 17. sfdx force:apex:test:run Above command will return Job Id, use that Job Id to get report of test result sfdx force:apex:test:report -i <ID> Run Apex test from CLI
  • 18. ▶ Run below command to get the list of all Scratch Org that has been authorized by SFDX sfdx force:org:list List all Scratch Org
  • 19. Running below command shows all Top level topics Sfdx --help We can get help for each topic by using --help again at topic level like Sfdx force --help We can further get help of subtopic using command –help Sfdx force:alias --help Getting Help
  • 20. ▶ SalesforceDx logs are saved at USER_HOME_DIR/.sfdx/sfdx.log ▶ Its running log, and only errors are logged by default ▶ Logs can be changed either with each command or globally ▶ To change at each command, use --loglevel DEBUG ▶ To set log level globally use set SFDX_LOG_LEVEL=DEBUG (windows) Or Export SFDX_LOG_LEVEL=DEBUG (Unix) SalesforceDx logs
  • 21. Available Log levels in Salesforce Dx 1. ERROR 2. WARN 3. INFO 4. DEBUG 5. TRACE
  • 22. ▶ Salesforce DX creates scratch Org and stores Oauth token internally, It does not provides password. We can generate password by running below command sfdx force:user:password:generate ▶ To see generated password again in future , use below command sfdx force:org:describe Generating Password of Scratch Org
  • 24. Create Workspace ▶ Navigate to File | New | Workspace
  • 25. Getting Help and list of available command in Force.com IDE
  • 26. Resources ▶ Wade Wegner (VP Product for Salesforce DX) ▶ Getting started with Salesforce DX (Jitendra Zaa)
  • 27. Thank You Thank you for attending the session.
  • 28. Follow Farmington Hills SFDC Developer Group Twitter Hashtag #FarmingtonHillsSFDCDug Meetup.com https://www.meetup.com/Farmington-Hills-Salesforce-Developer- Meetup/ Facebook Page https://www.facebook.com/FarmingtonHillsSfdcdug/?ref=bookmarks