SlideShare a Scribd company logo
Build Salesforce DX Plugin in 15
Minutes
@JitendraZaa – Sr Tech Architect @Bluewolf
@Cloudy_Abhi – Sr. Developer
Jitendra Zaa
MVP & Sr. Technical Architect at Bluewolf
21x Salesforce Certifications
@JitendraZaa
Speakers
Salesforce Lead at Homestar Financial
16x Salesforce Certifications
@cloudy_abhi
Abhi Tripathi
Agenda
• Salesforce DX everywhere
• Salesforce CLI
• Why Plugins ?
• What to know before creating first plugin
• DEMO
• Conclusion
• Resources
• Q&A
Salesforce DX
Everywhere
Why Salesforce DX
• Is new Toolset to streamline entire development life cycle
• Facilitates Automated Testing and Continuous Integration
• Compatible with many Source Code Management (SCM) tools
• New Packaging for ISV Partners
• Works with Build managers like Jenkins or TravisCI
Most Important :
Salesforce DX allows you to create
your own plugin
Do you know ?
Salesforce DX itself is a plugin build on top of Salesforce CLI ?
Lets talk about Salesforce CLI first !!!
https://github.com/JitendraZaa/sfdx-object-export
Salesforce CLI
Source – Salesforce
Blog
• Generate Test class coverage report in HTML or PDF Format after deployment
• Compare two Salesforce Instances and generate report
• Find list of all unused Apex Classes
• Generate Configuration Workbook, post deployment
Use Cases
Needs to know before Salesforce DX plugin
• Nodejs basic knowledge
• It uses Typescript language, created by Microsoft in 2012
• Typescript is superset of JavaScript
• Salesforce DX plugin generator is based on oclif (Open CLI Framework) by Heroku
team
• Yarn as dependency management
https://github.com/JitendraZaa/sfdx-object-export
DEMO
Conclusion
• Salesforce CLI
• Generating first plugin using plugin generator
• Connect to any Salesforce Org using existing SFDX Authentication
• Use Rest API in Plugin
• Use excle4node to create excel sheets
• Source Code - https://github.com/JitendraZaa/sfdx-object-export
Resources
• Source Code - https://github.com/JitendraZaa/sfdx-object-export
• Oclif - https://oclif.io/
• Create your first Salesforce DX Plugin - https://developer.salesforce.com/blogs/2018/05/create-
your-first-salesforce-cli-plugin.html
• Getting Started with Salesforce DX - https://developer.salesforce.com/blogs/2018/02/getting-
started-salesforce-dx-part-1-5.html
• Yarn - https://yarnpkg.com/en/
• Get Started with Salesforce DX Trail - https://trailhead.salesforce.com/en/trails/sfdx_get_started
Q&A
Build sfdx plugin in 15 minutes

More Related Content

PPTX
Introduction to mulesoft - Alpharetta Developer Group Meet
PPTX
Create Salesforce online IDE in 30 minutes
PPTX
Salesforce Lightning Data Service
PPTX
Connecticut Salesforce Developer Group - Jan 2017
PPTX
Azure Integration DTAP Series, How to go from Development to Production – Par...
PPTX
Azure Integration DTAP Series, How to go from Development to Production – Par...
PDF
Dev Tools for Admins - Forcelandia 2016
PPTX
SenchaCon 2016: Developing and Delivering Quality Code, Frequently - Neil Manvar
Introduction to mulesoft - Alpharetta Developer Group Meet
Create Salesforce online IDE in 30 minutes
Salesforce Lightning Data Service
Connecticut Salesforce Developer Group - Jan 2017
Azure Integration DTAP Series, How to go from Development to Production – Par...
Azure Integration DTAP Series, How to go from Development to Production – Par...
Dev Tools for Admins - Forcelandia 2016
SenchaCon 2016: Developing and Delivering Quality Code, Frequently - Neil Manvar

What's hot (20)

PDF
JIRA Performance Testing in Pictures - Edward Bukoski Michael March
PPTX
Forcelandia Salesforce CI
PPTX
Azure Integration DTAP Series, How to go from Development to Production – Par...
PDF
Lessons learned: Choosing your documentation system
PPTX
Episode 11 building & exposing rest api in salesforce v1.0
PPTX
Exalate - Issue Sync for Jira and More
PPTX
Episode 20 - Trigger Frameworks in Salesforce
PPTX
CRM Saturday: DevOps with Jonas Rapp
PPTX
Cross company issue tracking slides
PDF
Enhancing Your Workflow with Environment Hub
PPTX
Tanner Ellen - Forcelandia 2016 - Dev Stack.pptx
PDF
Using Microsoft Flow for IT Professionals
PDF
Introduction to Enterprise-Release Engineering on the Salesforce Platform
PPTX
SPSNL17 - Be more effective with the PnP Provisioning Engine - Erwin van Hunen
PDF
Workshop automating with microsoft flow
PDF
Discover Microsoft's Cloud Automation Suite
PDF
Automate it with Azure Functions
PPTX
SPSNL17 - Getting started with SharePoint development for the reluctant IT Pr...
PDF
Microsoft Flow and PowerShell combined to automate everything
PDF
O365Con18 - SharePoint Framework for Administrators - Waldek Mastykarz
JIRA Performance Testing in Pictures - Edward Bukoski Michael March
Forcelandia Salesforce CI
Azure Integration DTAP Series, How to go from Development to Production – Par...
Lessons learned: Choosing your documentation system
Episode 11 building & exposing rest api in salesforce v1.0
Exalate - Issue Sync for Jira and More
Episode 20 - Trigger Frameworks in Salesforce
CRM Saturday: DevOps with Jonas Rapp
Cross company issue tracking slides
Enhancing Your Workflow with Environment Hub
Tanner Ellen - Forcelandia 2016 - Dev Stack.pptx
Using Microsoft Flow for IT Professionals
Introduction to Enterprise-Release Engineering on the Salesforce Platform
SPSNL17 - Be more effective with the PnP Provisioning Engine - Erwin van Hunen
Workshop automating with microsoft flow
Discover Microsoft's Cloud Automation Suite
Automate it with Azure Functions
SPSNL17 - Getting started with SharePoint development for the reluctant IT Pr...
Microsoft Flow and PowerShell combined to automate everything
O365Con18 - SharePoint Framework for Administrators - Waldek Mastykarz
Ad

Similar to Build sfdx plugin in 15 minutes (20)

PPTX
Build your own dev tools with salesforce cli plugin generator
PPTX
Salesforce DX for Admin v2
PPTX
SalesforceDX : SalesforceSaturday
PPTX
Salesforce DX Test Data Migration
PPTX
Salesforce DX: A closer look - Part II
PPTX
Salesforce DX for admin
PDF
Build Apps with Modern AI Powered Developer Tools..pdf
PPTX
Salesforce DevOps Training in Ameerpet | Best Salesforce DevOps Training
PDF
Salesforce DevOps: Where Do You Start?
PPTX
The ABC's of IaC
PPTX
Setting Up CircleCI Workflows for Your Salesforce Apps
PDF
Salesforce DX & Deep Dive demo on force:data commands
PDF
Salesforce DX ことはじめ
PPTX
Live Session1 lightning web component
PPTX
Comment utiliser Visual Studio Code pour travailler avec une scratch Org
PPTX
Acing application lifecycle management in SharePoint
PPTX
Logic Apps – Deployments
PPTX
Integrating SalesforceDX and Test Automation
PPTX
SFDC Lightning Demo
PDF
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Build your own dev tools with salesforce cli plugin generator
Salesforce DX for Admin v2
SalesforceDX : SalesforceSaturday
Salesforce DX Test Data Migration
Salesforce DX: A closer look - Part II
Salesforce DX for admin
Build Apps with Modern AI Powered Developer Tools..pdf
Salesforce DevOps Training in Ameerpet | Best Salesforce DevOps Training
Salesforce DevOps: Where Do You Start?
The ABC's of IaC
Setting Up CircleCI Workflows for Your Salesforce Apps
Salesforce DX & Deep Dive demo on force:data commands
Salesforce DX ことはじめ
Live Session1 lightning web component
Comment utiliser Visual Studio Code pour travailler avec une scratch Org
Acing application lifecycle management in SharePoint
Logic Apps – Deployments
Integrating SalesforceDX and Test Automation
SFDC Lightning Demo
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Ad

More from Jitendra Zaa (20)

PPTX
Episode 13 - Advanced Apex Triggers
PPTX
Episode 18 - Asynchronous Apex
PPTX
Episode 15 - Basics of Javascript
PPTX
Episode 23 - Design Pattern 3
PPTX
Episode 24 - Live Q&A for getting started with Salesforce
PPTX
Episode 22 - Design Pattern 2
PPTX
Episode 21 - Design Pattern 1
PPTX
Episode 19 - Asynchronous Apex - Batch apex & schedulers
PPTX
Episode 17 - Handling Events in Lightning Web Component
PPTX
Episode 16 - Introduction to LWC
PPTX
Episode 12 - Basics of Trigger
PPTX
Episode 10 - External Services in Salesforce
PPTX
Episode 14 - Basics of HTML for Salesforce
PPTX
South East Dreamin 2019
PPTX
Episode 9 - Building soap integrations in salesforce
PPTX
Episode 8 - Path To Code - Integrate Salesforce with external system using R...
PPTX
Episode 6 - DML, Transaction and Error handling in Salesforce
PPTX
Episode 5 - Writing unit tests in Salesforce
PPTX
Lightning Web Component in Salesforce
PPTX
Episode 4 - Introduction to SOQL in Salesforce
Episode 13 - Advanced Apex Triggers
Episode 18 - Asynchronous Apex
Episode 15 - Basics of Javascript
Episode 23 - Design Pattern 3
Episode 24 - Live Q&A for getting started with Salesforce
Episode 22 - Design Pattern 2
Episode 21 - Design Pattern 1
Episode 19 - Asynchronous Apex - Batch apex & schedulers
Episode 17 - Handling Events in Lightning Web Component
Episode 16 - Introduction to LWC
Episode 12 - Basics of Trigger
Episode 10 - External Services in Salesforce
Episode 14 - Basics of HTML for Salesforce
South East Dreamin 2019
Episode 9 - Building soap integrations in salesforce
Episode 8 - Path To Code - Integrate Salesforce with external system using R...
Episode 6 - DML, Transaction and Error handling in Salesforce
Episode 5 - Writing unit tests in Salesforce
Lightning Web Component in Salesforce
Episode 4 - Introduction to SOQL in Salesforce

Recently uploaded (20)

PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Cloud computing and distributed systems.
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
cuic standard and advanced reporting.pdf
PPTX
A Presentation on Artificial Intelligence
Review of recent advances in non-invasive hemoglobin estimation
20250228 LYD VKU AI Blended-Learning.pptx
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Network Security Unit 5.pdf for BCA BBA.
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Spectral efficient network and resource selection model in 5G networks
Mobile App Security Testing_ A Comprehensive Guide.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Unlocking AI with Model Context Protocol (MCP)
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Cloud computing and distributed systems.
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Encapsulation_ Review paper, used for researhc scholars
NewMind AI Weekly Chronicles - August'25 Week I
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
cuic standard and advanced reporting.pdf
A Presentation on Artificial Intelligence

Build sfdx plugin in 15 minutes

  • 1. Build Salesforce DX Plugin in 15 Minutes @JitendraZaa – Sr Tech Architect @Bluewolf @Cloudy_Abhi – Sr. Developer
  • 2. Jitendra Zaa MVP & Sr. Technical Architect at Bluewolf 21x Salesforce Certifications @JitendraZaa Speakers Salesforce Lead at Homestar Financial 16x Salesforce Certifications @cloudy_abhi Abhi Tripathi
  • 3. Agenda • Salesforce DX everywhere • Salesforce CLI • Why Plugins ? • What to know before creating first plugin • DEMO • Conclusion • Resources • Q&A
  • 5. Why Salesforce DX • Is new Toolset to streamline entire development life cycle • Facilitates Automated Testing and Continuous Integration • Compatible with many Source Code Management (SCM) tools • New Packaging for ISV Partners • Works with Build managers like Jenkins or TravisCI
  • 6. Most Important : Salesforce DX allows you to create your own plugin
  • 7. Do you know ? Salesforce DX itself is a plugin build on top of Salesforce CLI ? Lets talk about Salesforce CLI first !!! https://github.com/JitendraZaa/sfdx-object-export
  • 8. Salesforce CLI Source – Salesforce Blog
  • 9. • Generate Test class coverage report in HTML or PDF Format after deployment • Compare two Salesforce Instances and generate report • Find list of all unused Apex Classes • Generate Configuration Workbook, post deployment Use Cases
  • 10. Needs to know before Salesforce DX plugin • Nodejs basic knowledge • It uses Typescript language, created by Microsoft in 2012 • Typescript is superset of JavaScript • Salesforce DX plugin generator is based on oclif (Open CLI Framework) by Heroku team • Yarn as dependency management https://github.com/JitendraZaa/sfdx-object-export
  • 11. DEMO
  • 12. Conclusion • Salesforce CLI • Generating first plugin using plugin generator • Connect to any Salesforce Org using existing SFDX Authentication • Use Rest API in Plugin • Use excle4node to create excel sheets • Source Code - https://github.com/JitendraZaa/sfdx-object-export
  • 13. Resources • Source Code - https://github.com/JitendraZaa/sfdx-object-export • Oclif - https://oclif.io/ • Create your first Salesforce DX Plugin - https://developer.salesforce.com/blogs/2018/05/create- your-first-salesforce-cli-plugin.html • Getting Started with Salesforce DX - https://developer.salesforce.com/blogs/2018/02/getting- started-salesforce-dx-part-1-5.html • Yarn - https://yarnpkg.com/en/ • Get Started with Salesforce DX Trail - https://trailhead.salesforce.com/en/trails/sfdx_get_started
  • 14. Q&A

Editor's Notes

  • #4: Here is our agenda, we are going to
  • #5: Salesforce DX is everywhere whether you are building apps or you are setting up continuous integration. In just 2 years salesforce DX has changed the way to source code driven development, The core principals of Salesforce Developer experience have been mentioned many times in Salesforce dx sessions That sharing, versioning, testing and collaborating with source
  • #6: The guiding principal for Salesforce DX starts with that everything is driven from source code. It is a set of tools which you’ve been already using, you can use the tool of your choice. SFDX have transformed salesforce development, From Source code driven development process to packaging in order to distribute the app you built. From collaborating with team to continuous delivery. Sfdx is for every trailblazer, if you building app using lightning app app builder, if you are writing apex code or building services that are operating and running on Heroku. Salesforce dx is here to empower you and do more.
  • #7: Which we are going to show you today!
  • #8: The CLI represents the core sfdx-cli. It is what you execute on your local machine or on your CI/CD system. It provides functionality to install custom plugins Salesforce CLI is a powerful command line interface that simplifies development and build automation when working with your Salesforce org. It helps you to Aggregate all the tools you need to develop with and perform commands against your Salesforce org It manages orgs and Synchronize source to and from scratch orgs You can do lot more things with Salesforce CLI 1. Importing and exporting data 2. executing tests 3. Creating, installing packages And the most important part is it’s a single interface for all the salesforce dx features
  • #9: Salesforce CLI architecture Before we start it’s important to learn what the moving parts around the Salesforce CLI are, and how they work together Salesforce DX functionality is provided by the salesforcedx plugin. It is bundled with the Salesforce CLI,
  • #12: Install yarn using command : sudo npm install -g yarn Execute sfdx plugins:generate – Generate plugin template Execute sfdx plugins:link (don’t provide any folder name after link as it will take current folder) heroku plugins:install salesforcedx sfdx force:auth:web:login --setdefaultdevhubusername --setalias my-devhub-org