SlideShare a Scribd company logo
Salesforce DX:
Quickstart for Developers
Alex Brausewetter @abrausewetter
21 Feb, 2018 – Salesforce Developer Group Barcelona Meetup
© 2018 Blue Canvas Labs Inc.
Alex Brausewetter
Co-Founder at Blue Canvas
@abrausewetter
We make great tools for Salesforce
developers and admins.
➔ Automatic source control
➔ One-click deployments
➔ Backup and change tracking
San Francisco • Barcelona
We are growing, and are looking for
engineers who are passionate about
making Salesforce better.
Talk to me, or email team@bluecanvas.io
Salesforce DX:
Quickstart for Developers
➔ What it is. And what is isn't.
➔ How to use scratch orgs.
➔ Micro-packages aka DCP / Packaging2
➔ Using DX with Blue Canvas.
➔ Should I use it today?
Sales·force D·X noun
/ˈseɪlzˌfɔrs dɪ eks/
1. New tools and new features for app
developers, built and published by
Salesforce proper.
2. A program to bring best-practices from
other platforms to Salesforce.
A major shift in responsibility.
➔ Code modules. Large monolithic applications that have many
interdependencies don't work well with DX. Developers need to
refactor large codebases into small independent packages.
➔ Source of truth. Instead of saying "the org is always right",
Salesforce DX promotes a new principle of "the external source
control is always right".
➔ Scratch orgs. To support the new approach, an empty
lightweight scratch orgs is created for every project. The changes
in that org are then pushed to external source control by the
developer.
Benefits
➔ Code modules. Smaller packages can be tested independently.
The chance of ripple effects is reduced. Instead of deploying the
whole org, you deploy one package.
➔ Source of truth. If used diligently, an external source control tool
can provide better workflow and more information.
➔ Scratch orgs. Lightweight orgs that can be started from the
command-line or API are great for CI/CD and automatic testing.
Using one scratch org per project prevents pollution of the main
sandbox with unused code.
➔ No point-and-click interface. Salesforce DX is accessed through the
command-line.
➔ Not one-size-fits-all. Salesforce DX is an evolution in process and requires
new learning. More than just checking your code into Git or Subversion.
➔ Not yet admin-friendly. Works best with code and developer-driven
changes. If you are working mostly on declarative metadata, YMMV.
➔ Not for Sandboxes. Salesforce DX requires a sophisticated development
lifecycle where changes are made in Scratch Orgs and then packaged.
You must stop making changes to sandboxes or production directly.
Caveats
Development Lifecycle with Sandboxes
Scratch Orgs
DCP Packages
Blue Canvas
Development Lifecycle with Sandboxes
Developer
1
Developer
2
Developer
3
Integration Staging
Production
Production
Support
Training
Change Set or Sandbox Refresh
Development Lifecycle with Scratch Orgs
Feature
1
Feature
2
Feature
3
Integration Staging
Production
Production
Support
Training
Prototype
Scratch
Orgs
Developer:
Local PC
Source
Control
Dev Hub
sfdx Command Line
Change Set or Sandbox Refresh
Developer Controlled Packages
aka Salesforce DX Packaging aka Packaging2 aka 2GP
➔ ISV-style packaging for developers.
➔ In Beta for Spring '18.
➔ Multiple packages can share a single namespace. You can use
public class instead of global class.
➔ Pre- and post-install scripts. Install multiple packages via CLI or API.
➔ Packages can declare dependencies.
➔ There are locked and unlocked packages. Unlocked means changes can be
made by admins in the target org but changes are lost if developer upgrades.
Locked means no changes can be made by admins.
Development Lifecycle with Scratch Orgs and DCP
Feature
1
Feature
2
Feature
3
Integration Staging
Production
Production
Support
Training
Prototype
Scratch
Orgs
Developer:
Local PC
Source
Control
Dev Hub
sfdx Command Line
Change Set or Sandbox Refresh
Installed DCP Package
➔ Our goal: Allow teams to use Salesforce DX without reinventing their
development process.
➔ Automatic source of truth. Changes in any org are synchronized in real-time
to a host Git source control repository, without any manual intervention.
➔ Instant scratch orgs. Create scratch orgs from any org without using the
command-line. The org will be initialized with your sandbox content.
➔ Deploy to and from anywhere. Move your metadata from any org to another,
without being limited by scratch org, sandbox, or production types. Both
upstream and downstream syncs are possible.
Development Lifecycle with Blue Canvas
Development Lifecycle with Blue Canvas
Developer
1
Developer
2
Developer
3
Staging
Production
Production
Support
Integration
Training
Blue Canvas one-click deployment
Feature
1
Hotfix
1
Scratch
Orgs
Blue Canvas one-click scratch org
Live Demo
Sign up at https://bluecanvas.io
Should I use it today?
➔ If you're a developer. Follow the Salesforce DX Trailhead trail to get an idea of
the command-line and what it's all about.
➔ If you're an admin or have a mixed team. There's a steep learning curve for
Admins. Look for tools that make it easier to adopt DX.
➔ If you're starting a new project. DX could help you write modular code. In a
new project, the choice is yours. You may want to wait for Developer
Controlled Packages to become GA.
➔ If you have a large codebase. You should do detailed research and planning
before starting to adopt DX in large existing projects. Expect to spend a lot of
time refactoring and rewriting your codebase.
Questions
Thank you!
https://bluecanvas.io – @bluecanvasio
Come and ask me questions. Also, we are hiring.

More Related Content

PPTX
Intro to Cloud Native _ v1.0en (2021/01)
PDF
Salesforce DevOps: Where Do You Start?
PPTX
DevOps Process
PDF
Mastering Deployments with Kubernetes & OpenShift: from Basic to Zero Downtim...
PDF
Microsoft DevOps Journey
PPTX
All Around Azure: DevOps with GitHub - Managing the Flow of Work
PPTX
DSAG Tech Days 2018 - DevOps in SAP ABAP Landscapes
PPTX
Modern CI/CD Pipeline Using Azure DevOps
Intro to Cloud Native _ v1.0en (2021/01)
Salesforce DevOps: Where Do You Start?
DevOps Process
Mastering Deployments with Kubernetes & OpenShift: from Basic to Zero Downtim...
Microsoft DevOps Journey
All Around Azure: DevOps with GitHub - Managing the Flow of Work
DSAG Tech Days 2018 - DevOps in SAP ABAP Landscapes
Modern CI/CD Pipeline Using Azure DevOps

What's hot (20)

PPTX
PPTX
Software development in the modern age
PDF
Intro to DevOps 4 undergraduates
PDF
從系統思考看 DevOps:以 microservices 為例 (DevOps: a system dynamics perspective)
PPTX
SAP Inside Track Berlin 2018 - DevOps in ABAP Landscapes
PPTX
From 0 to DevOps: Lessons Learned Moving from On-Prem to Cloud Native
PDF
Is Platform Engineering the new Ops?
PDF
Enabling Developers with Open Source
PDF
[devops REX 2016] Debugging your communication for more success and efficienc...
PDF
Introduction to DevOps Tools | DevOps Training | DevOps Tutorial for Beginner...
PPTX
Devops certification training course
PDF
Run Jenkins as Managed Product on ECS - AWS Meetup
PPTX
CI/CD in the serverless era
PPTX
CICD Pipeline - AWS Azure
PDF
How open source is driving DevOps innovation: CloudOpen NA 2015
PPTX
DevOps Training | DevOps Training Video | DevOps Tools | DevOps Tutorial For ...
PDF
CI/CD (DevOps) 101
PDF
Continuous Deployment To The Cloud @DevoxxPL 2017
PDF
OWASP Juice Shop 5.x and beyond
PPTX
Poster - DevOps Planning @ Microsoft
Software development in the modern age
Intro to DevOps 4 undergraduates
從系統思考看 DevOps:以 microservices 為例 (DevOps: a system dynamics perspective)
SAP Inside Track Berlin 2018 - DevOps in ABAP Landscapes
From 0 to DevOps: Lessons Learned Moving from On-Prem to Cloud Native
Is Platform Engineering the new Ops?
Enabling Developers with Open Source
[devops REX 2016] Debugging your communication for more success and efficienc...
Introduction to DevOps Tools | DevOps Training | DevOps Tutorial for Beginner...
Devops certification training course
Run Jenkins as Managed Product on ECS - AWS Meetup
CI/CD in the serverless era
CICD Pipeline - AWS Azure
How open source is driving DevOps innovation: CloudOpen NA 2015
DevOps Training | DevOps Training Video | DevOps Tools | DevOps Tutorial For ...
CI/CD (DevOps) 101
Continuous Deployment To The Cloud @DevoxxPL 2017
OWASP Juice Shop 5.x and beyond
Poster - DevOps Planning @ Microsoft
Ad

Similar to Salesforce DX Quickstart for Developers (Barcelona Meetup) (20)

PDF
Salesforce DX & Deep Dive demo on force:data commands
PPTX
Salesforce DX Test Data Migration
PPTX
SalesforceDX : SalesforceSaturday
PDF
Salesforce DX for admins - Sydney world tour
PPTX
Salesforce DX for Admin v2
PPTX
Salesforce DevOps Online Training Institute | Salesforce DevOps Training in H...
PPTX
Salesforce DX for admin
PPTX
Get started with Salesforce DX
PPTX
Simplify your code with Salesforce DX and module development
PPT
SFDX Presentation
PDF
Dreamforce 2017: Salesforce DX - an Admin's Perspective
PDF
Salesforce DX Pilot Product Overview
PPT
Salesforce Developer eXperience (SFDX)
PDF
Our move to Salesforce DX and Unlocked Packages
PDF
Salesforce DX 201 - Advanced Implementation for ISVs
PPTX
Build sfdx plugin in 15 minutes
PDF
The Basics of Salesforce DX
PPTX
Salesforce DX with Visual Studio Code
PPT
SFDX - Spring 2019 Update
PPTX
Kitchener Salesforce Developer Group Event - Introduction to dev ops with Sal...
Salesforce DX & Deep Dive demo on force:data commands
Salesforce DX Test Data Migration
SalesforceDX : SalesforceSaturday
Salesforce DX for admins - Sydney world tour
Salesforce DX for Admin v2
Salesforce DevOps Online Training Institute | Salesforce DevOps Training in H...
Salesforce DX for admin
Get started with Salesforce DX
Simplify your code with Salesforce DX and module development
SFDX Presentation
Dreamforce 2017: Salesforce DX - an Admin's Perspective
Salesforce DX Pilot Product Overview
Salesforce Developer eXperience (SFDX)
Our move to Salesforce DX and Unlocked Packages
Salesforce DX 201 - Advanced Implementation for ISVs
Build sfdx plugin in 15 minutes
The Basics of Salesforce DX
Salesforce DX with Visual Studio Code
SFDX - Spring 2019 Update
Kitchener Salesforce Developer Group Event - Introduction to dev ops with Sal...
Ad

Recently uploaded (20)

PPTX
Machine Learning_overview_presentation.pptx
PDF
Electronic commerce courselecture one. Pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPT
Teaching material agriculture food technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Tartificialntelligence_presentation.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Encapsulation theory and applications.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
NewMind AI Weekly Chronicles - August'25-Week II
Machine Learning_overview_presentation.pptx
Electronic commerce courselecture one. Pdf
MIND Revenue Release Quarter 2 2025 Press Release
Teaching material agriculture food technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Assigned Numbers - 2025 - Bluetooth® Document
Unlocking AI with Model Context Protocol (MCP)
A comparative analysis of optical character recognition models for extracting...
Tartificialntelligence_presentation.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Advanced methodologies resolving dimensionality complications for autism neur...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Group 1 Presentation -Planning and Decision Making .pptx
Encapsulation theory and applications.pdf
Spectroscopy.pptx food analysis technology
NewMind AI Weekly Chronicles - August'25-Week II

Salesforce DX Quickstart for Developers (Barcelona Meetup)

  • 1. Salesforce DX: Quickstart for Developers Alex Brausewetter @abrausewetter 21 Feb, 2018 – Salesforce Developer Group Barcelona Meetup © 2018 Blue Canvas Labs Inc.
  • 2. Alex Brausewetter Co-Founder at Blue Canvas @abrausewetter We make great tools for Salesforce developers and admins. ➔ Automatic source control ➔ One-click deployments ➔ Backup and change tracking San Francisco • Barcelona
  • 3. We are growing, and are looking for engineers who are passionate about making Salesforce better. Talk to me, or email team@bluecanvas.io
  • 4. Salesforce DX: Quickstart for Developers ➔ What it is. And what is isn't. ➔ How to use scratch orgs. ➔ Micro-packages aka DCP / Packaging2 ➔ Using DX with Blue Canvas. ➔ Should I use it today?
  • 5. Sales·force D·X noun /ˈseɪlzˌfɔrs dɪ eks/ 1. New tools and new features for app developers, built and published by Salesforce proper. 2. A program to bring best-practices from other platforms to Salesforce.
  • 6. A major shift in responsibility. ➔ Code modules. Large monolithic applications that have many interdependencies don't work well with DX. Developers need to refactor large codebases into small independent packages. ➔ Source of truth. Instead of saying "the org is always right", Salesforce DX promotes a new principle of "the external source control is always right". ➔ Scratch orgs. To support the new approach, an empty lightweight scratch orgs is created for every project. The changes in that org are then pushed to external source control by the developer.
  • 7. Benefits ➔ Code modules. Smaller packages can be tested independently. The chance of ripple effects is reduced. Instead of deploying the whole org, you deploy one package. ➔ Source of truth. If used diligently, an external source control tool can provide better workflow and more information. ➔ Scratch orgs. Lightweight orgs that can be started from the command-line or API are great for CI/CD and automatic testing. Using one scratch org per project prevents pollution of the main sandbox with unused code.
  • 8. ➔ No point-and-click interface. Salesforce DX is accessed through the command-line. ➔ Not one-size-fits-all. Salesforce DX is an evolution in process and requires new learning. More than just checking your code into Git or Subversion. ➔ Not yet admin-friendly. Works best with code and developer-driven changes. If you are working mostly on declarative metadata, YMMV. ➔ Not for Sandboxes. Salesforce DX requires a sophisticated development lifecycle where changes are made in Scratch Orgs and then packaged. You must stop making changes to sandboxes or production directly. Caveats
  • 9. Development Lifecycle with Sandboxes Scratch Orgs DCP Packages Blue Canvas
  • 10. Development Lifecycle with Sandboxes Developer 1 Developer 2 Developer 3 Integration Staging Production Production Support Training Change Set or Sandbox Refresh
  • 11. Development Lifecycle with Scratch Orgs Feature 1 Feature 2 Feature 3 Integration Staging Production Production Support Training Prototype Scratch Orgs Developer: Local PC Source Control Dev Hub sfdx Command Line Change Set or Sandbox Refresh
  • 12. Developer Controlled Packages aka Salesforce DX Packaging aka Packaging2 aka 2GP ➔ ISV-style packaging for developers. ➔ In Beta for Spring '18. ➔ Multiple packages can share a single namespace. You can use public class instead of global class. ➔ Pre- and post-install scripts. Install multiple packages via CLI or API. ➔ Packages can declare dependencies. ➔ There are locked and unlocked packages. Unlocked means changes can be made by admins in the target org but changes are lost if developer upgrades. Locked means no changes can be made by admins.
  • 13. Development Lifecycle with Scratch Orgs and DCP Feature 1 Feature 2 Feature 3 Integration Staging Production Production Support Training Prototype Scratch Orgs Developer: Local PC Source Control Dev Hub sfdx Command Line Change Set or Sandbox Refresh Installed DCP Package
  • 14. ➔ Our goal: Allow teams to use Salesforce DX without reinventing their development process. ➔ Automatic source of truth. Changes in any org are synchronized in real-time to a host Git source control repository, without any manual intervention. ➔ Instant scratch orgs. Create scratch orgs from any org without using the command-line. The org will be initialized with your sandbox content. ➔ Deploy to and from anywhere. Move your metadata from any org to another, without being limited by scratch org, sandbox, or production types. Both upstream and downstream syncs are possible. Development Lifecycle with Blue Canvas
  • 15. Development Lifecycle with Blue Canvas Developer 1 Developer 2 Developer 3 Staging Production Production Support Integration Training Blue Canvas one-click deployment Feature 1 Hotfix 1 Scratch Orgs Blue Canvas one-click scratch org
  • 16. Live Demo Sign up at https://bluecanvas.io
  • 17. Should I use it today? ➔ If you're a developer. Follow the Salesforce DX Trailhead trail to get an idea of the command-line and what it's all about. ➔ If you're an admin or have a mixed team. There's a steep learning curve for Admins. Look for tools that make it easier to adopt DX. ➔ If you're starting a new project. DX could help you write modular code. In a new project, the choice is yours. You may want to wait for Developer Controlled Packages to become GA. ➔ If you have a large codebase. You should do detailed research and planning before starting to adopt DX in large existing projects. Expect to spend a lot of time refactoring and rewriting your codebase.
  • 19. Thank you! https://bluecanvas.io – @bluecanvasio Come and ask me questions. Also, we are hiring.