๐Ÿ  Home ๐Ÿ”’ Record Sharing ⚙ Apex Triggers ๐Ÿ” SOQL ๐Ÿ’ป LWC ๐Ÿ”— Integration ๐Ÿค– Flows & Automation ๐Ÿค– Agentforce & AI ๐ŸŽˆ Agentforce Course — Free ☁ Data Cloud ๐ŸŽ“ DC Course — Free ๐Ÿ’ต CPQ ๐ŸŽฏ 100 Scenario Questions ๐Ÿ† 150 Advanced Questions ๐Ÿ“ง Marketing Cloud ๐Ÿ—️ Company Wise ๐Ÿ‘ฅ About Us Start Learning Free →

Salesforce DevOps Course Module 1: What is Salesforce DevOps? Complete Beginner Guide 2026

๐Ÿ“…  DevOps
๐Ÿš€ Free Salesforce DevOps Course 2026 Module 1 of 15
What is Salesforce DevOps?
Complete Beginner Guide
Start your Salesforce DevOps journey from zero. No experience needed. Learn what DevOps is, why it matters, how it transforms Salesforce development, and the tools that power it all — with real examples throughout.
15
Total Modules
M1
Beginner
Free
Forever
2026
Updated
← All Topics 75 DevOps Q&As →

๐Ÿ“ Course Progress — Module 1 of 15

M1
You Are Here
M2
Sandboxes
M3
Change Sets
M4
Metadata API
M5
Git Basics
M6
SFDX & CLI
M7
Scratch Orgs
M8
Packages
M9
DevOps Center
M10
Deploy Strategy
M11
GitHub Actions
M12
Advanced CI/CD
M13
Unlocked Pkg
M14
Enterprise
M15
Capstone

๐Ÿค” Section 1 — What is DevOps?

Understanding the foundation before applying it to Salesforce

๐Ÿ“– The Simple Explanation
DevOps is a way of working that combines Development (writing code) and Operations (deploying and maintaining that code) into one smooth, automated process.

Before DevOps, developers wrote code and threw it "over the wall" to an operations team who deployed it manually — slowly, carefully, and often with errors. DevOps breaks down that wall.
๐ŸŽฏ Real World Analogy
Think of it like a restaurant kitchen:

Without DevOps: The chef (developer) cooks the food and hands it to a completely separate delivery team (operations) who has never seen the dish before. The delivery team doesn't know the ingredients, doesn't know how it should look, and sometimes drops it on the way.

With DevOps: The same team cooks AND delivers. They have a checklist (automated tests), a standardized container (version control), and an automatic delivery route (CI/CD pipeline). Every dish arrives the same way, every time — perfectly.
✅ The 3 Core Principles of DevOps
PrincipleWhat It MeansIn Salesforce Terms
๐Ÿ”„ CollaborationDev and Ops work togetherDevelopers + Admins in same pipeline
๐Ÿค– AutomationRepetitive tasks done by machinesAutomated testing & deployment
๐Ÿš€ Continuous DeliverySmall, frequent, safe releasesDeploy every week instead of every quarter
๐Ÿ”‘ Key Takeaway
  • DevOps is NOT a tool — it is a culture and set of practices
  • The goal is to deliver changes faster, safer, and more reliably
  • Automation is the engine that makes DevOps work at scale
  • DevOps reduces the fear of deployment — from a quarterly event to a daily routine

☁️ Section 2 — What is Salesforce DevOps?

How DevOps principles apply specifically to the Salesforce ecosystem

๐Ÿ“– Definition
Salesforce DevOps is the application of DevOps principles — version control, automation, CI/CD, and team collaboration — to Salesforce development and deployment.

It replaces the traditional manual process (build in sandbox → create Change Set → upload → deploy to production → pray ๐Ÿ™) with an automated, version-controlled pipeline where every change is tracked, tested, and deployed consistently.
✅ What Salesforce DevOps Includes
AreaTraditional WayDevOps Way
Code storageLives only in the orgStored in Git repository
DeploymentManual Change SetsAutomated CLI + CI/CD
TestingManual, before every deployAutomated on every code push
CollaborationOne shared sandbox, conflicts everywhereIndividual Scratch Orgs, feature branches
RollbackManual, painful, riskyGit history — deploy previous version
Visibility"What changed and when?" — nobody knowsFull audit trail in Git commits
๐ŸŽฏ The Salesforce DevOps Stack
LayerToolPurpose
Code EditorVS Code + Salesforce Extension PackWrite Apex, LWC, metadata locally
Version ControlGit + GitHubTrack every change, collaborate safely
CLISalesforce CLI (sf command)Deploy, retrieve, test from terminal
Dev EnvironmentScratch OrgsIndividual isolated development orgs
CI/CDGitHub ActionsAutomate validation, testing, deployment
PackagingUnlocked PackagesModular, versioned deployments
๐Ÿ’ก Important Note for Beginners
You do NOT need to learn all of this at once. This course takes you through each tool one module at a time — starting with the basics and building up to full CI/CD pipelines. By Module 15, you will have built a complete end-to-end pipeline from scratch. One step at a time! ๐Ÿš€

๐Ÿ˜“ Section 3 — The Real Problems Without DevOps

Pain points every Salesforce team faces without a proper DevOps process

❌ Problem 1 — The "Who Broke Production?" Problem

It is Monday morning. Production is broken. Orders are not saving. Customers are calling. The question everyone is asking:

  • "Who deployed what and when?" — nobody knows
  • "What changed since last week?" — no record exists
  • "Can we undo it?" — there is no rollback

Without version control, every Salesforce org is a mystery. Changes accumulate silently with no history.

❌ Problem 2 — The "Overwrite" Problem

Two developers working in the same sandbox:

  • Developer A spends 3 days writing a complex AccountTriggerHandler
  • Developer B also modifies AccountTriggerHandler for a different feature
  • Developer B deploys via Change Set first
  • Developer A deploys second — completely overwrites Developer B's work
  • Developer B's 3 days of work are gone. Silently. No warning.
❌ Problem 3 — The "Change Set Roulette" Problem
  • Production deployment day arrives — it is a quarterly event, treated like surgery
  • Everyone stops normal work. The deployment window is 2 AM on Sunday
  • 40 components in the Change Set. 500 Apex tests running
  • 45 minutes in — a test fails on something unrelated to your change
  • Rollback. Start over. Next deployment in 3 months
  • The fear of deployment means features wait months to reach users
❌ Problem 4 — The "What's in Production?" Problem
  • A new team member joins: "What custom code do we have in production?"
  • Answer: nobody fully knows
  • Some components were built years ago by developers who left
  • There is no documentation, no history, no way to understand what is there
  • Touching anything feels dangerous — ripple effects are unknown
❌ Problem 5 — The "Environment Drift" Problem
  • Developer sandbox has a feature that QA sandbox does not
  • QA sandbox has custom settings that production does not
  • Production has something nobody remembers adding
  • All three environments are different — testing in sandbox means nothing
  • The classic line: "It worked in sandbox!"
๐Ÿข XYZ Company — Before DevOps
XYZ Company had 3 Salesforce developers, 1 admin, and 2 sandboxes. Every quarter they had a "deployment day" — a full Sunday of stress. Once they accidentally deployed an old version of the Order trigger that overwrote 6 weeks of work. They lost a full sprint of development because there was no version history. The developers were afraid to make changes because they couldn't predict the impact. Sound familiar?

✅ Section 4 — How Salesforce DevOps Solves Every Problem

The exact solution for each pain point

✅ Solution 1 — Git = Full History of Everything
Every change is committed to Git with a message, author, timestamp, and the exact code that changed. "Who broke production and when?" becomes a 5-second Git log query. Every line of code has a story.

# See exactly what changed and who changed it git log --oneline abc1234 Fix Order trigger for international customers — Anant def5678 Add Visit Report LWC pagination — Anant ghi9012 Update approval workflow for Europe — Admin # See exactly what changed in a specific commit git show abc1234
✅ Solution 2 — Feature Branches = Zero Overwrites
Each developer works in their own Git branch and their own Scratch Org. Changes are merged via Pull Request with code review. The merge process handles conflicts explicitly — no silent overwrites, ever.
DeveloperBranchScratch Org
Developer Afeature/account-triggerdevorg-anant
Developer Bfeature/order-validationdevorg-raj
Merge to mainPull Request reviewCI validates automatically
✅ Solution 3 — CI/CD = Deployment Every Day, Not Every Quarter
With GitHub Actions, every code push automatically validates and tests. Deployment becomes a boring, reliable routine — not a terrifying quarterly event. Teams at XYZ Company go from deploying once a quarter to deploying twice a week with zero production incidents.
✅ Solution 4 — Git = Living Documentation
The Git repository IS the documentation. Every component has a history. New developers clone the repo and immediately see everything that exists, who built it, and why. Onboarding goes from weeks to days.
✅ Solution 5 — Scratch Orgs = Consistent Environments
Scratch Orgs are created from a definition file — every developer gets an identical environment. "It worked in sandbox!" disappears because all environments are built the same way from the same source. Environment drift becomes impossible.
๐Ÿข XYZ Company — After DevOps
After adopting Salesforce DevOps, XYZ Company's team deploys every Tuesday and Friday. Each developer works in their own Scratch Org with no conflicts. Every PR is automatically validated by GitHub Actions before merging. The last production incident from a bad deployment was 6 months ago. The CTO now asks for new features instead of complaining about broken production.

๐Ÿ”„ Section 5 — The Salesforce DevOps Lifecycle

The complete end-to-end flow from idea to production

๐Ÿ“– The 8-Step DevOps Lifecycle
StepStageWhat HappensTool
1๐ŸŽฏ PlanDecide what to build, create work itemJira, GitHub Issues
2๐Ÿ’ป CodeDeveloper writes code in local VS CodeVS Code + Salesforce Extension
3๐Ÿ”ฌ BuildPush to Scratch Org, test locallySalesforce CLI
4๐Ÿงช TestRun Apex tests automaticallyGitHub Actions + SF CLI
5๐Ÿ”€ MergePull Request reviewed and mergedGitHub
6๐Ÿš€ DeployAuto-deploy to QA sandboxGitHub Actions
7✅ ReleaseQA approved, deploy to productionGitHub Actions
8๐Ÿ“Š MonitorWatch for errors, collect feedbackSalesforce Debug Logs, Monitoring
๐ŸŽฏ The Pipeline in Simple Terms
Developer writes code locally ↓ git add . && git commit -m "Add Visit Report feature" ↓ git push origin feature/visit-report ↓ GitHub Actions triggers automatically: → Validates metadata against QA sandbox → Runs all Apex tests → Reports results on Pull Request ↓ Code review passes → Merge to main ↓ GitHub Actions triggers again: → Deploys to production automatically ↓ Feature is LIVE ๐ŸŽ‰
✅ CI vs CD — What is the Difference?
TermFull NameWhat It DoesWhen
CIContinuous IntegrationAutomatically validate and test every code pushOn every Pull Request
CDContinuous DeliveryAutomatically deploy to the next environmentOn every merge to main
๐Ÿ”‘ Key Takeaway
  • The DevOps lifecycle is continuous — it never stops, it keeps improving
  • CI catches problems early — before they reach production
  • CD makes deployment routine — not an event
  • The faster the cycle, the faster users get value

๐Ÿข Section 6 — Org-Based vs Source-Driven Development

The most important concept in Salesforce DevOps — understanding the two worlds

๐Ÿ“– Org-Based Development (The Old Way)
In org-based development, the org IS the source of truth. Code lives in the org. Changes are made directly in the org (Setup UI or Developer Console). To move changes, you manually create a Change Set.

Think of it like writing a document directly on someone else's computer with no backup. If the computer crashes, everything is gone. If two people edit at the same time, whoever saves last wins.
✅ Source-Driven Development (The DevOps Way)
In source-driven development, the Git repository is the source of truth. Code lives in Git first. Orgs are built FROM the repository — not the other way around. You write code locally in VS Code, commit to Git, and push to orgs using the CLI.

Think of it like writing in Google Docs with full version history, real-time collaboration, and the ability to restore any previous version at any time.
๐Ÿ“Š Full Comparison
Aspect๐Ÿข Org-Based๐Ÿ“ Source-Driven
Source of TruthThe Salesforce orgGit repository
Code LocationOnly in the orgLocal machine + Git
Version History❌ None✅ Full Git history
Team CollaborationShared sandbox, conflictsFeature branches, clean merges
DeploymentManual Change SetsAutomated CLI + CI/CD
TestingManual, before deployAutomatic, on every push
New environmentSandbox refresh (hours)Scratch Org (minutes)
Delete componentsManual in SetupDestructive changes XML
Code review❌ Not possible✅ Pull Request review
RollbackManual, riskyDeploy previous Git commit
๐ŸŽฏ The Key Mental Shift
Org-Based mindset: "I will log into the sandbox and make this change directly."

Source-Driven mindset: "I will make this change locally in VS Code, commit to Git, and let the CLI push it to the org."

This mental shift is the hardest part of learning Salesforce DevOps — but once it clicks, everything else makes sense.
๐Ÿ”‘ Golden Rule of Source-Driven Development
  • Never make changes directly in production — always go through the pipeline
  • The Git repo must always match what is in production
  • If you make a declarative change (Flow, field) in an org UI — immediately retrieve it to Git
  • Treat the org as output, not input — Git in, org out

๐Ÿ› ️ Section 7 — Salesforce DevOps Tools Overview

Every tool you will use in this course — explained simply

๐Ÿ“– The Full Toolchain
You do not need to know all these tools right now. This is your reference map — by Module 15 you will have hands-on experience with every single one.
๐ŸŸข Beginner Tools (You will learn in M1-M5)
ToolWhat It IsWhy You Need It
VS CodeCode editorWrite Apex, LWC, metadata locally
Salesforce Extension PackVS Code pluginSalesforce-specific editing features
GitVersion control systemTrack every change, collaborate safely
GitHubGit repository hostingStore code online, team collaboration
Change SetsBuilt-in Salesforce deployment toolSimple deployments between connected orgs
WorkbenchWeb-based Salesforce toolQuick metadata retrieval and deployment
๐ŸŸก Intermediate Tools (You will learn in M6-M10)
ToolWhat It IsWhy You Need It
Salesforce CLI (sf)Command line toolDeploy, retrieve, test from terminal
Scratch OrgsTemporary development orgsIsolated, consistent dev environments
Dev HubCentral Scratch Org managementCreate and manage Scratch Orgs
DevOps CenterNative Salesforce DevOps UIUI-based pipeline without CLI
package.xmlDeployment manifest fileDefine exactly what to deploy
๐Ÿ”ด Advanced Tools (You will learn in M11-M15)
ToolWhat It IsWhy You Need It
GitHub ActionsCI/CD automation platformAutomate validation, testing, deployment
Unlocked PackagesModern Salesforce packagingModular, versioned deployments
JWT AuthenticationNon-interactive org loginAuthenticate CLI in CI/CD pipelines
Copado / GearsetThird-party DevOps platformsEnterprise-scale DevOps management
๐Ÿ’ก Beginner Tip
Start with just VS Code + Git + GitHub. These three tools form the foundation of everything else. If you are comfortable committing and pushing code to GitHub, the rest of the course will feel natural. We will set these up step by step in Module 5.

๐Ÿ—บ️ Section 8 — Your Salesforce DevOps Journey

Where you are now, where you are going, and how this course gets you there

๐Ÿ“– The 3 Stages of Your Journey
StageModulesYou Will Be Able To
๐ŸŸข BeginnerM1 → M5Understand DevOps concepts, use Change Sets professionally, set up Git and version control for Salesforce
๐ŸŸก IntermediateM6 → M10Use SFDX CLI, create Scratch Orgs, work with DevOps Center, deploy using package.xml confidently
๐Ÿ”ด AdvancedM11 → M15Build full CI/CD pipelines with GitHub Actions, create Unlocked Packages, manage enterprise-scale releases
✅ What You Will Build by Module 15
By the end of this course you will have built a complete, production-ready CI/CD pipeline for XYZ Company — a real manufacturing company Salesforce org:
  • ✅ GitHub repository with full SFDX project structure
  • ✅ Feature branch → QA → UAT → Production pipeline
  • ✅ GitHub Actions workflow validating every Pull Request
  • ✅ Automatic deployment on merge to main
  • ✅ Scratch Orgs for isolated feature development
  • ✅ Unlocked Package for modular deployment
  • ✅ Non-interactive JWT authentication for the pipeline
  • ✅ Full documentation and runbook
๐ŸŽฏ Recommended Learning Path
WeekModulesFocus
Week 1M1, M2, M3Concepts, Sandboxes, Change Sets
Week 2M4, M5Metadata API, Git basics
Week 3M6, M7SFDX CLI, Scratch Orgs
Week 4M8, M9, M10Packages, DevOps Center, Deploy strategy
Week 5M11, M12GitHub Actions, Advanced CI/CD
Week 6M13, M14, M15Unlocked Packages, Enterprise, Capstone

๐Ÿข Section 9 — The XYZ Company Story

Follow this real-world company throughout the entire course

๐Ÿ“– Meet XYZ Company
Throughout this entire course, we will follow XYZ Company — a polymer and silicone products manufacturer with operations in India, the USA, and Belgium. They use Salesforce for sales, customer management, and order processing.

XYZ Company has a team of 5 Salesforce professionals — 3 developers and 2 admins. They are on a journey from painful quarterly Change Set deployments to a modern DevOps pipeline. You will build their pipeline with them.
✅ XYZ Company's Current State (Start of Course)
AreaCurrent SituationProblem
DeploymentManual Change Sets every 3 monthsSlow, scary, error-prone
Code storageOnly in sandboxesNo version history
Collaboration2 shared sandboxes for 3 devsConstant conflicts and overwrites
TestingManual testing before every deployInconsistent, things get missed
EnvironmentsDev sandbox ≠ productionThings break that worked in dev
New featuresUsers wait 3 months minimumBusiness is frustrated
๐ŸŽฏ XYZ Company's Target State (End of Course)
AreaTarget StateBenefit
DeploymentAutomated pipeline, twice a weekFast, reliable, zero fear
Code storageFull Git history in GitHubComplete audit trail
CollaborationEach developer has own Scratch OrgZero conflicts, clean merges
TestingAutomated on every commitCatch bugs before production
EnvironmentsAll built from same Git sourceZero environment drift
New featuresUsers get features in daysBusiness is happy ๐ŸŽ‰
๐Ÿ’ก Key Insight
The XYZ Company transformation is not just technical — it is cultural. The team goes from fearing deployments to treating them as routine. From working in silos to collaborating seamlessly. From quarterly big-bang releases to continuous small safe releases. This is what Salesforce DevOps really delivers.

๐Ÿ“ Section 10 — Module 1 Quiz

Test your understanding before moving to Module 2

๐Ÿง  Module 1 Knowledge Check — 8 Questions

Q1. What does DevOps combine?
A) Design and Testing
B) Development and Operations ✅
C) Deployment and Optimization
D) Data and Operations
Q2. In source-driven development, what is the source of truth?
A) The production org
B) The sandbox
C) The Git repository ✅
D) The Change Set
Q3. What does CI stand for in CI/CD?
A) Code Integration
B) Continuous Integration ✅
C) Consistent Infrastructure
D) Cloud Implementation
Q4. Which tool is used for CI/CD automation in Salesforce?
A) Change Sets
B) Workbench
C) GitHub Actions ✅
D) Data Loader
Q5. What is the biggest problem with org-based development?
A) No version control or history ✅
B) Too many tools to learn
C) Salesforce doesn't support it
D) It costs too much
Q6. What are Scratch Orgs used for in Salesforce DevOps?
A) Long-term UAT testing
B) Production deployment
C) Isolated individual development environments ✅
D) Storing production data
Q7. What is the main advantage of deploying frequently with DevOps?
A) More work for developers
B) Smaller, safer changes that are easier to test and rollback ✅
C) Less testing required
D) No need for sandboxes
Q8. What happens in source-driven development when a declarative change is made in the org UI?
A) It is automatically committed to Git
B) It does not need to be tracked
C) You must retrieve it using CLI to sync with Git ✅
D) Change Sets handle it automatically
✅ Answer Key
B, C, B, C, A, C, B, C — Score 7-8: Ready for Module 2! Score 5-6: Re-read Sections 3 and 6. Score below 5: Re-read the full module before continuing.

๐Ÿ“‹ Module 1 Summary — Key Takeaways

Everything you learned in this module

✅ What You Learned in Module 1
  • ✅ DevOps combines Development and Operations into one automated, collaborative process
  • ✅ Salesforce DevOps replaces manual Change Sets with automated, version-controlled pipelines
  • ✅ The 5 biggest problems without DevOps: no version history, overwrites, deployment fear, unknown org state, environment drift
  • ✅ Source-driven development means Git is the source of truth — not the org
  • ✅ The DevOps lifecycle: Plan → Code → Build → Test → Merge → Deploy → Release → Monitor
  • ✅ CI = automatically validate and test on every push. CD = automatically deploy on every merge
  • ✅ The Salesforce DevOps toolchain: VS Code, Git, GitHub, SF CLI, Scratch Orgs, GitHub Actions
๐ŸŽค Module 1 One-Line Summary
"Salesforce DevOps replaces manual, fear-driven quarterly deployments with automated, version-controlled continuous delivery — using Git as the source of truth, Scratch Orgs for development, and CI/CD pipelines for automatic testing and deployment."

➡️ Next: Module 2 — Environments & Sandboxes

Learn all 4 sandbox types, refresh strategies, seeding, and how to build a proper environment strategy for your team

Module 2 →

๐Ÿš€ Enjoying This Free Course?

Share it with your Salesforce community — every share helps one more developer learn DevOps for free.

All Free Resources → 75 DevOps Q&As →