SlideShare a Scribd company logo
1 of 13
Download to read offline
Tools
SFDX, Git, and VS Code
Dave Helgerson
@davehelgerson
Agenda
● SFDX Development Model Vs Sandbox Development
● Git - Version Control
● Salesforce CLI Commands
● VS Code with Salesforce plugins
● Where to find a Package.xml
● Create a Project in VS Code
SandboxDevelopment Model
●
SFDX Development Model
●
git Source Control
https://git-scm.com/
● Most widely used Version Control software
● Track what changed
○ Code, Metadata, Static Resources, etc.
● My Simplified Git Cycle
○ Init -> Stage -> Commit
● Clients: Command Line, Git GUI, and SourceTree
○ Integrated into VS Code (Yay!)
● Git Bash included
○ Widely used for scripting
Salesforce CLI
https://developer.salesforce.com/tools/sfdxcli
● SFDX force
○ -h Help
○ doc:command:list
● Authentication and Aliases
● Open an Org
● Query an object
○ Output to file using the the “pipe” command >
● Powershell / Bash Script
○ Bash scripting is very popular. Study that if you are looking to learn scripting.
Salesforce CLI
Commands
● Remember to use -h for command help
sfdx force:doc:commands:list
sfdx force:org:list
sfdx force:auth:web:login -a myAlias
sfdx force:org:open -u myAlias
sfdx force:data:soql:query -u sfs -q "SELECT Id, Name, Account.Name FROM Contact" -u myAlias -r csv
> output.csv
VS Code with Salesforce plugins
https://code.visualstudio.com/
● UI - Panels
○ File Explorer, Source Control, Debug, Plugins, Problems Terminal
● Plugins
○ Salesforce Extension Pack
○ ForceCode
● Git integrated into VS Code
○ Initialize a repository
○ Stage new/changed files
○ Commit new/changed files
Where is my Package XML ???
● Build it manually
● Chrome Plugins
○ Salesforce inspector - Export org Metadata by type
■ https://chrome.google.com/webstore/detail/salesforce-inspector/aodjmnfhjibkcdimpodiifdjnnnca
afh
○ ORGanizer for Salesforce - Export Metadata referenced by a Change Set
■ https://chrome.google.com/webstore/detail/organizer-for-salesforce/lojdmgdchjcfnmkmodggbaa
fecagllnh
● Salesforce package.xml Builder
○ https://packagebuilder.herokuapp.com
VS Code - Create a Salesforce Project
● ForceCode - Demo
○ https://marketplace.visualstudio.com/items?itemName=JohnAaronNelson.ForceCode
○ Create a project
○ Diff between Local and Remote
○ Test Class Execution and Coverage
● Salesforce - Create Project with Manifest - Demo
○ https://github.com/forcedotcom/salesforcedx-vscode/wiki/Develop-Against-Any-Org-in-Vi
sual-Studio-Code
● Git
○ Track/view metadata file changes
● Search Metadata
● Keyboard shortcuts - https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
Chrome Plugins
● Salesforce inspector
○ Download metadata/package.xml, View an individual record, View limits, plus more...
● ORGanizer for Salesforce
○ Download metadata/package.xml for a Change Set, View an individual record, Org logins,
Execute Anonymous, plus more…
● Salesforce DevTools
○ Quick navigation to object setup pages, Debug log filter, plus more...
Other Utilities
● WinMerge - http://winmerge.org/?lang=en
○ Compare two blocks of text
○ Compare multiple file structures, such as exports from two orgs
● AstroGrep - http://astrogrep.sourceforge.net/
○ Good for searching through folder structures that contain a lot of files
● Notepad++ - https://notepad-plus-plus.org/
○ Lightweight editor with a lot of features
Other Resources
● Youtube - Getting started with the Salesforce CLI (Part 1->4) by Salesforce Weekly
○ https://www.youtube.com/watch?v=ceHuvHHQCZc
● Replay Debugger
○ https://developer.salesforce.com/blogs/2018/06/salesforce-for-vs-code-apex-replay-debugger-and-more
.html

More Related Content

What's hot

Multiplier Effect: Case Studies in Distributions for Publishers
Multiplier Effect: Case Studies in Distributions for PublishersMultiplier Effect: Case Studies in Distributions for Publishers
Multiplier Effect: Case Studies in Distributions for PublishersJon Peck
 
Jbake workshop (Greach 2019)
Jbake workshop (Greach 2019)Jbake workshop (Greach 2019)
Jbake workshop (Greach 2019)Mario García
 
Create Your First "Native" Mobile App with JavaScript + PhoneGap
Create Your First "Native" Mobile App with JavaScript + PhoneGapCreate Your First "Native" Mobile App with JavaScript + PhoneGap
Create Your First "Native" Mobile App with JavaScript + PhoneGapSteve Phillips
 
Lately in php - 2019 May 4
Lately in php - 2019 May 4Lately in php - 2019 May 4
Lately in php - 2019 May 4Eric Poe
 
WordPress News and #SaigonWordPress 2015 - Saigon WordPress - Jan 17, 2015
WordPress News and #SaigonWordPress 2015  - Saigon WordPress - Jan 17, 2015WordPress News and #SaigonWordPress 2015  - Saigon WordPress - Jan 17, 2015
WordPress News and #SaigonWordPress 2015 - Saigon WordPress - Jan 17, 2015Dat Hoang
 
HTML5 Editing Validation
HTML5 Editing ValidationHTML5 Editing Validation
HTML5 Editing ValidationOctavian Nadolu
 
Up Up and Above HTML 5
Up Up and Above HTML 5Up Up and Above HTML 5
Up Up and Above HTML 5Sam Dias
 
Developing Goobi: An Open-Source Workflow Tracking Tool for Digitization Proj...
Developing Goobi: An Open-Source Workflow Tracking Tool for Digitization Proj...Developing Goobi: An Open-Source Workflow Tracking Tool for Digitization Proj...
Developing Goobi: An Open-Source Workflow Tracking Tool for Digitization Proj...intranda GmbH
 
PUG ROMAGNA - Alternative a Magento2
PUG ROMAGNA - Alternative a Magento2PUG ROMAGNA - Alternative a Magento2
PUG ROMAGNA - Alternative a Magento2Giuseppe Morelli
 
GraphQL Bangkok Meetup 6.0
GraphQL Bangkok Meetup 6.0GraphQL Bangkok Meetup 6.0
GraphQL Bangkok Meetup 6.0Tobias Meixner
 
Robo tize your local drupal 8 development
Robo tize your local drupal 8 developmentRobo tize your local drupal 8 development
Robo tize your local drupal 8 developmentJoe Stewart
 
FLDC 2014: Drupal 8 for Site Builders
FLDC 2014: Drupal 8 for Site BuildersFLDC 2014: Drupal 8 for Site Builders
FLDC 2014: Drupal 8 for Site Builderskbasarab
 
The usage and dependency resolving mechanism of go module
The usage and dependency resolving mechanism of go moduleThe usage and dependency resolving mechanism of go module
The usage and dependency resolving mechanism of go moduleLung-Hsuan Hung
 
NE Scala 2016 roundup
NE Scala 2016 roundupNE Scala 2016 roundup
NE Scala 2016 roundupHung Lin
 
Goobi user meeting 2014
Goobi user meeting 2014Goobi user meeting 2014
Goobi user meeting 2014intranda GmbH
 
Cross-platform JavaScript
Cross-platform JavaScriptCross-platform JavaScript
Cross-platform JavaScriptHristo Chakarov
 

What's hot (19)

Multiplier Effect: Case Studies in Distributions for Publishers
Multiplier Effect: Case Studies in Distributions for PublishersMultiplier Effect: Case Studies in Distributions for Publishers
Multiplier Effect: Case Studies in Distributions for Publishers
 
Orion - IDE on the cloud
Orion - IDE on the cloudOrion - IDE on the cloud
Orion - IDE on the cloud
 
Jbake workshop (Greach 2019)
Jbake workshop (Greach 2019)Jbake workshop (Greach 2019)
Jbake workshop (Greach 2019)
 
Create Your First "Native" Mobile App with JavaScript + PhoneGap
Create Your First "Native" Mobile App with JavaScript + PhoneGapCreate Your First "Native" Mobile App with JavaScript + PhoneGap
Create Your First "Native" Mobile App with JavaScript + PhoneGap
 
Lately in php - 2019 May 4
Lately in php - 2019 May 4Lately in php - 2019 May 4
Lately in php - 2019 May 4
 
WordPress News and #SaigonWordPress 2015 - Saigon WordPress - Jan 17, 2015
WordPress News and #SaigonWordPress 2015  - Saigon WordPress - Jan 17, 2015WordPress News and #SaigonWordPress 2015  - Saigon WordPress - Jan 17, 2015
WordPress News and #SaigonWordPress 2015 - Saigon WordPress - Jan 17, 2015
 
HTML5 Editing Validation
HTML5 Editing ValidationHTML5 Editing Validation
HTML5 Editing Validation
 
Up Up and Above HTML 5
Up Up and Above HTML 5Up Up and Above HTML 5
Up Up and Above HTML 5
 
How to sell drupal 8
How to sell drupal 8How to sell drupal 8
How to sell drupal 8
 
Developing Goobi: An Open-Source Workflow Tracking Tool for Digitization Proj...
Developing Goobi: An Open-Source Workflow Tracking Tool for Digitization Proj...Developing Goobi: An Open-Source Workflow Tracking Tool for Digitization Proj...
Developing Goobi: An Open-Source Workflow Tracking Tool for Digitization Proj...
 
Web Assembly
Web AssemblyWeb Assembly
Web Assembly
 
PUG ROMAGNA - Alternative a Magento2
PUG ROMAGNA - Alternative a Magento2PUG ROMAGNA - Alternative a Magento2
PUG ROMAGNA - Alternative a Magento2
 
GraphQL Bangkok Meetup 6.0
GraphQL Bangkok Meetup 6.0GraphQL Bangkok Meetup 6.0
GraphQL Bangkok Meetup 6.0
 
Robo tize your local drupal 8 development
Robo tize your local drupal 8 developmentRobo tize your local drupal 8 development
Robo tize your local drupal 8 development
 
FLDC 2014: Drupal 8 for Site Builders
FLDC 2014: Drupal 8 for Site BuildersFLDC 2014: Drupal 8 for Site Builders
FLDC 2014: Drupal 8 for Site Builders
 
The usage and dependency resolving mechanism of go module
The usage and dependency resolving mechanism of go moduleThe usage and dependency resolving mechanism of go module
The usage and dependency resolving mechanism of go module
 
NE Scala 2016 roundup
NE Scala 2016 roundupNE Scala 2016 roundup
NE Scala 2016 roundup
 
Goobi user meeting 2014
Goobi user meeting 2014Goobi user meeting 2014
Goobi user meeting 2014
 
Cross-platform JavaScript
Cross-platform JavaScriptCross-platform JavaScript
Cross-platform JavaScript
 

Similar to SFDX, Git, and VS Code Tools

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 23NicolasVuillamy1
 
My tools for sfdc developer
My tools for sfdc developerMy tools for sfdc developer
My tools for sfdc developerEXIAHUANG
 
[scala.by] Launching new application fast
[scala.by] Launching new application fast[scala.by] Launching new application fast
[scala.by] Launching new application fastDenis Karpenko
 
Get started with Salesforce DX
Get started with Salesforce DXGet started with Salesforce DX
Get started with Salesforce DXAnurag Bhardwaj
 
Distributed Versioning Tools, BeJUG 2010
Distributed Versioning Tools, BeJUG 2010Distributed Versioning Tools, BeJUG 2010
Distributed Versioning Tools, BeJUG 2010Pursuit Consulting
 
Fuzzing softwares for bugs - OWASP Seasides
Fuzzing softwares for bugs - OWASP SeasidesFuzzing softwares for bugs - OWASP Seasides
Fuzzing softwares for bugs - OWASP SeasidesOWASPSeasides
 
DevOops & How I hacked you DevopsDays DC June 2015
DevOops & How I hacked you DevopsDays DC June 2015DevOops & How I hacked you DevopsDays DC June 2015
DevOops & How I hacked you DevopsDays DC June 2015Chris Gates
 
O'Leary - Using GitHub for Enterprise and Open Source Documentation
O'Leary - Using GitHub for Enterprise and Open Source DocumentationO'Leary - Using GitHub for Enterprise and Open Source Documentation
O'Leary - Using GitHub for Enterprise and Open Source DocumentationLavaCon
 
BloodHound Unleashed.pdf
BloodHound Unleashed.pdfBloodHound Unleashed.pdf
BloodHound Unleashed.pdfn00py1
 
LasCon 2014 DevOoops
LasCon 2014 DevOoops LasCon 2014 DevOoops
LasCon 2014 DevOoops Chris Gates
 
Continuous Deployment of Front-end JavaScript with StriderCD, Github and Sauc...
Continuous Deployment of Front-end JavaScript with StriderCD, Github and Sauc...Continuous Deployment of Front-end JavaScript with StriderCD, Github and Sauc...
Continuous Deployment of Front-end JavaScript with StriderCD, Github and Sauc...niallo
 
cgo and Go plugins
cgo and Go pluginscgo and Go plugins
cgo and Go pluginsstrikr .
 
Devoops: DoJ Annual Cybersecurity Training Symposium Edition 2015
Devoops: DoJ Annual Cybersecurity Training Symposium Edition 2015Devoops: DoJ Annual Cybersecurity Training Symposium Edition 2015
Devoops: DoJ Annual Cybersecurity Training Symposium Edition 2015Chris Gates
 
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 OrgThierry TROUIN ☁
 
Salesforce Apex Hours:- Salesforce DX
Salesforce Apex Hours:- Salesforce DXSalesforce Apex Hours:- Salesforce DX
Salesforce Apex Hours:- Salesforce DXAmit Chaudhary
 

Similar to SFDX, Git, and VS Code Tools (20)

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
 
My tools for sfdc developer
My tools for sfdc developerMy tools for sfdc developer
My tools for sfdc developer
 
[scala.by] Launching new application fast
[scala.by] Launching new application fast[scala.by] Launching new application fast
[scala.by] Launching new application fast
 
Get started with Salesforce DX
Get started with Salesforce DXGet started with Salesforce DX
Get started with Salesforce DX
 
Distributed Versioning Tools, BeJUG 2010
Distributed Versioning Tools, BeJUG 2010Distributed Versioning Tools, BeJUG 2010
Distributed Versioning Tools, BeJUG 2010
 
Fuzzing softwares for bugs - OWASP Seasides
Fuzzing softwares for bugs - OWASP SeasidesFuzzing softwares for bugs - OWASP Seasides
Fuzzing softwares for bugs - OWASP Seasides
 
CI-CD WITH GITLAB WORKFLOW
CI-CD WITH GITLAB WORKFLOWCI-CD WITH GITLAB WORKFLOW
CI-CD WITH GITLAB WORKFLOW
 
DevOops & How I hacked you DevopsDays DC June 2015
DevOops & How I hacked you DevopsDays DC June 2015DevOops & How I hacked you DevopsDays DC June 2015
DevOops & How I hacked you DevopsDays DC June 2015
 
O'Leary - Using GitHub for Enterprise and Open Source Documentation
O'Leary - Using GitHub for Enterprise and Open Source DocumentationO'Leary - Using GitHub for Enterprise and Open Source Documentation
O'Leary - Using GitHub for Enterprise and Open Source Documentation
 
BloodHound Unleashed.pdf
BloodHound Unleashed.pdfBloodHound Unleashed.pdf
BloodHound Unleashed.pdf
 
LasCon 2014 DevOoops
LasCon 2014 DevOoops LasCon 2014 DevOoops
LasCon 2014 DevOoops
 
Continuous Deployment of Front-end JavaScript with StriderCD, Github and Sauc...
Continuous Deployment of Front-end JavaScript with StriderCD, Github and Sauc...Continuous Deployment of Front-end JavaScript with StriderCD, Github and Sauc...
Continuous Deployment of Front-end JavaScript with StriderCD, Github and Sauc...
 
Salesforce DX for Admin v2
Salesforce DX for Admin v2Salesforce DX for Admin v2
Salesforce DX for Admin v2
 
cgo and Go plugins
cgo and Go pluginscgo and Go plugins
cgo and Go plugins
 
ICONUK 2015 - Gradle Up!
ICONUK 2015 - Gradle Up!ICONUK 2015 - Gradle Up!
ICONUK 2015 - Gradle Up!
 
Devoops: DoJ Annual Cybersecurity Training Symposium Edition 2015
Devoops: DoJ Annual Cybersecurity Training Symposium Edition 2015Devoops: DoJ Annual Cybersecurity Training Symposium Edition 2015
Devoops: DoJ Annual Cybersecurity Training Symposium Edition 2015
 
Salesforce DX for admin
Salesforce DX for adminSalesforce DX for admin
Salesforce DX for admin
 
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 Presentation
SFDX PresentationSFDX Presentation
SFDX Presentation
 
Salesforce Apex Hours:- Salesforce DX
Salesforce Apex Hours:- Salesforce DXSalesforce Apex Hours:- Salesforce DX
Salesforce Apex Hours:- Salesforce DX
 

Recently uploaded

why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Intelisync
 

Recently uploaded (20)

why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)
 

SFDX, Git, and VS Code Tools

  • 1. Tools SFDX, Git, and VS Code Dave Helgerson @davehelgerson
  • 2. Agenda ● SFDX Development Model Vs Sandbox Development ● Git - Version Control ● Salesforce CLI Commands ● VS Code with Salesforce plugins ● Where to find a Package.xml ● Create a Project in VS Code
  • 5. git Source Control https://git-scm.com/ ● Most widely used Version Control software ● Track what changed ○ Code, Metadata, Static Resources, etc. ● My Simplified Git Cycle ○ Init -> Stage -> Commit ● Clients: Command Line, Git GUI, and SourceTree ○ Integrated into VS Code (Yay!) ● Git Bash included ○ Widely used for scripting
  • 6. Salesforce CLI https://developer.salesforce.com/tools/sfdxcli ● SFDX force ○ -h Help ○ doc:command:list ● Authentication and Aliases ● Open an Org ● Query an object ○ Output to file using the the “pipe” command > ● Powershell / Bash Script ○ Bash scripting is very popular. Study that if you are looking to learn scripting.
  • 7. Salesforce CLI Commands ● Remember to use -h for command help sfdx force:doc:commands:list sfdx force:org:list sfdx force:auth:web:login -a myAlias sfdx force:org:open -u myAlias sfdx force:data:soql:query -u sfs -q "SELECT Id, Name, Account.Name FROM Contact" -u myAlias -r csv > output.csv
  • 8. VS Code with Salesforce plugins https://code.visualstudio.com/ ● UI - Panels ○ File Explorer, Source Control, Debug, Plugins, Problems Terminal ● Plugins ○ Salesforce Extension Pack ○ ForceCode ● Git integrated into VS Code ○ Initialize a repository ○ Stage new/changed files ○ Commit new/changed files
  • 9. Where is my Package XML ??? ● Build it manually ● Chrome Plugins ○ Salesforce inspector - Export org Metadata by type ■ https://chrome.google.com/webstore/detail/salesforce-inspector/aodjmnfhjibkcdimpodiifdjnnnca afh ○ ORGanizer for Salesforce - Export Metadata referenced by a Change Set ■ https://chrome.google.com/webstore/detail/organizer-for-salesforce/lojdmgdchjcfnmkmodggbaa fecagllnh ● Salesforce package.xml Builder ○ https://packagebuilder.herokuapp.com
  • 10. VS Code - Create a Salesforce Project ● ForceCode - Demo ○ https://marketplace.visualstudio.com/items?itemName=JohnAaronNelson.ForceCode ○ Create a project ○ Diff between Local and Remote ○ Test Class Execution and Coverage ● Salesforce - Create Project with Manifest - Demo ○ https://github.com/forcedotcom/salesforcedx-vscode/wiki/Develop-Against-Any-Org-in-Vi sual-Studio-Code ● Git ○ Track/view metadata file changes ● Search Metadata ● Keyboard shortcuts - https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
  • 11. Chrome Plugins ● Salesforce inspector ○ Download metadata/package.xml, View an individual record, View limits, plus more... ● ORGanizer for Salesforce ○ Download metadata/package.xml for a Change Set, View an individual record, Org logins, Execute Anonymous, plus more… ● Salesforce DevTools ○ Quick navigation to object setup pages, Debug log filter, plus more...
  • 12. Other Utilities ● WinMerge - http://winmerge.org/?lang=en ○ Compare two blocks of text ○ Compare multiple file structures, such as exports from two orgs ● AstroGrep - http://astrogrep.sourceforge.net/ ○ Good for searching through folder structures that contain a lot of files ● Notepad++ - https://notepad-plus-plus.org/ ○ Lightweight editor with a lot of features
  • 13. Other Resources ● Youtube - Getting started with the Salesforce CLI (Part 1->4) by Salesforce Weekly ○ https://www.youtube.com/watch?v=ceHuvHHQCZc ● Replay Debugger ○ https://developer.salesforce.com/blogs/2018/06/salesforce-for-vs-code-apex-replay-debugger-and-more .html