Salesforce DevOps Course Module 1: What is Salesforce DevOps? Complete Beginner Guide 2026
Complete Beginner Guide
๐ Course Progress — Module 1 of 15
You Are Here
Sandboxes
Change Sets
Metadata API
Git Basics
SFDX & CLI
Scratch Orgs
Packages
DevOps Center
Deploy Strategy
GitHub Actions
Advanced CI/CD
Unlocked Pkg
Enterprise
Capstone
๐ What You Will Learn in This Module
๐ Full Course Navigation
๐ค Section 1 — What is DevOps?
Understanding the foundation before applying it to Salesforce
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.
❌ 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.
| Principle | What It Means | In Salesforce Terms |
|---|---|---|
| ๐ Collaboration | Dev and Ops work together | Developers + Admins in same pipeline |
| ๐ค Automation | Repetitive tasks done by machines | Automated testing & deployment |
| ๐ Continuous Delivery | Small, frequent, safe releases | Deploy every week instead of every quarter |
- 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
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.
| Area | Traditional Way | DevOps Way |
|---|---|---|
| Code storage | Lives only in the org | Stored in Git repository |
| Deployment | Manual Change Sets | Automated CLI + CI/CD |
| Testing | Manual, before every deploy | Automated on every code push |
| Collaboration | One shared sandbox, conflicts everywhere | Individual Scratch Orgs, feature branches |
| Rollback | Manual, painful, risky | Git history — deploy previous version |
| Visibility | "What changed and when?" — nobody knows | Full audit trail in Git commits |
| Layer | Tool | Purpose |
|---|---|---|
| Code Editor | VS Code + Salesforce Extension Pack | Write Apex, LWC, metadata locally |
| Version Control | Git + GitHub | Track every change, collaborate safely |
| CLI | Salesforce CLI (sf command) | Deploy, retrieve, test from terminal |
| Dev Environment | Scratch Orgs | Individual isolated development orgs |
| CI/CD | GitHub Actions | Automate validation, testing, deployment |
| Packaging | Unlocked Packages | Modular, versioned deployments |
๐ Section 3 — The Real Problems Without DevOps
Pain points every Salesforce team faces without a proper DevOps process
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.
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.
- 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
- 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
- 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!"
✅ Section 4 — How Salesforce DevOps Solves Every Problem
The exact solution for each pain point
| Developer | Branch | Scratch Org |
|---|---|---|
| Developer A | feature/account-trigger | devorg-anant |
| Developer B | feature/order-validation | devorg-raj |
| Merge to main | Pull Request review | CI validates automatically |
๐ Section 5 — The Salesforce DevOps Lifecycle
The complete end-to-end flow from idea to production
| Step | Stage | What Happens | Tool |
|---|---|---|---|
| 1 | ๐ฏ Plan | Decide what to build, create work item | Jira, GitHub Issues |
| 2 | ๐ป Code | Developer writes code in local VS Code | VS Code + Salesforce Extension |
| 3 | ๐ฌ Build | Push to Scratch Org, test locally | Salesforce CLI |
| 4 | ๐งช Test | Run Apex tests automatically | GitHub Actions + SF CLI |
| 5 | ๐ Merge | Pull Request reviewed and merged | GitHub |
| 6 | ๐ Deploy | Auto-deploy to QA sandbox | GitHub Actions |
| 7 | ✅ Release | QA approved, deploy to production | GitHub Actions |
| 8 | ๐ Monitor | Watch for errors, collect feedback | Salesforce Debug Logs, Monitoring |
| Term | Full Name | What It Does | When |
|---|---|---|---|
| CI | Continuous Integration | Automatically validate and test every code push | On every Pull Request |
| CD | Continuous Delivery | Automatically deploy to the next environment | On every merge to main |
- 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
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.
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.
| Aspect | ๐ข Org-Based | ๐ Source-Driven |
|---|---|---|
| Source of Truth | The Salesforce org | Git repository |
| Code Location | Only in the org | Local machine + Git |
| Version History | ❌ None | ✅ Full Git history |
| Team Collaboration | Shared sandbox, conflicts | Feature branches, clean merges |
| Deployment | Manual Change Sets | Automated CLI + CI/CD |
| Testing | Manual, before deploy | Automatic, on every push |
| New environment | Sandbox refresh (hours) | Scratch Org (minutes) |
| Delete components | Manual in Setup | Destructive changes XML |
| Code review | ❌ Not possible | ✅ Pull Request review |
| Rollback | Manual, risky | Deploy previous Git commit |
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.
- 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
| Tool | What It Is | Why You Need It |
|---|---|---|
| VS Code | Code editor | Write Apex, LWC, metadata locally |
| Salesforce Extension Pack | VS Code plugin | Salesforce-specific editing features |
| Git | Version control system | Track every change, collaborate safely |
| GitHub | Git repository hosting | Store code online, team collaboration |
| Change Sets | Built-in Salesforce deployment tool | Simple deployments between connected orgs |
| Workbench | Web-based Salesforce tool | Quick metadata retrieval and deployment |
| Tool | What It Is | Why You Need It |
|---|---|---|
| Salesforce CLI (sf) | Command line tool | Deploy, retrieve, test from terminal |
| Scratch Orgs | Temporary development orgs | Isolated, consistent dev environments |
| Dev Hub | Central Scratch Org management | Create and manage Scratch Orgs |
| DevOps Center | Native Salesforce DevOps UI | UI-based pipeline without CLI |
| package.xml | Deployment manifest file | Define exactly what to deploy |
| Tool | What It Is | Why You Need It |
|---|---|---|
| GitHub Actions | CI/CD automation platform | Automate validation, testing, deployment |
| Unlocked Packages | Modern Salesforce packaging | Modular, versioned deployments |
| JWT Authentication | Non-interactive org login | Authenticate CLI in CI/CD pipelines |
| Copado / Gearset | Third-party DevOps platforms | Enterprise-scale DevOps management |
๐บ️ Section 8 — Your Salesforce DevOps Journey
Where you are now, where you are going, and how this course gets you there
| Stage | Modules | You Will Be Able To |
|---|---|---|
| ๐ข Beginner | M1 → M5 | Understand DevOps concepts, use Change Sets professionally, set up Git and version control for Salesforce |
| ๐ก Intermediate | M6 → M10 | Use SFDX CLI, create Scratch Orgs, work with DevOps Center, deploy using package.xml confidently |
| ๐ด Advanced | M11 → M15 | Build full CI/CD pipelines with GitHub Actions, create Unlocked Packages, manage enterprise-scale releases |
- ✅ 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
| Week | Modules | Focus |
|---|---|---|
| Week 1 | M1, M2, M3 | Concepts, Sandboxes, Change Sets |
| Week 2 | M4, M5 | Metadata API, Git basics |
| Week 3 | M6, M7 | SFDX CLI, Scratch Orgs |
| Week 4 | M8, M9, M10 | Packages, DevOps Center, Deploy strategy |
| Week 5 | M11, M12 | GitHub Actions, Advanced CI/CD |
| Week 6 | M13, M14, M15 | Unlocked Packages, Enterprise, Capstone |
๐ข Section 9 — The XYZ Company Story
Follow this real-world company throughout the entire course
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.
| Area | Current Situation | Problem |
|---|---|---|
| Deployment | Manual Change Sets every 3 months | Slow, scary, error-prone |
| Code storage | Only in sandboxes | No version history |
| Collaboration | 2 shared sandboxes for 3 devs | Constant conflicts and overwrites |
| Testing | Manual testing before every deploy | Inconsistent, things get missed |
| Environments | Dev sandbox ≠ production | Things break that worked in dev |
| New features | Users wait 3 months minimum | Business is frustrated |
| Area | Target State | Benefit |
|---|---|---|
| Deployment | Automated pipeline, twice a week | Fast, reliable, zero fear |
| Code storage | Full Git history in GitHub | Complete audit trail |
| Collaboration | Each developer has own Scratch Org | Zero conflicts, clean merges |
| Testing | Automated on every commit | Catch bugs before production |
| Environments | All built from same Git source | Zero environment drift |
| New features | Users get features in days | Business is happy ๐ |
๐ Section 10 — Module 1 Quiz
Test your understanding before moving to Module 2
๐ง Module 1 Knowledge Check — 8 Questions
๐ Module 1 Summary — Key Takeaways
Everything you learned in this module
- ✅ 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
➡️ Next: Module 2 — Environments & Sandboxes
Learn all 4 sandbox types, refresh strategies, seeding, and how to build a proper environment strategy for your team
๐ 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 →