
Boost Salesforce development with sfdx cli and VS Code, and learn git operations. Deploy and retrieve components, and explore Apex code, test coverage, and Apex Replay Debugger in VS Code.
download VS Code for your OS and install using the user installer on Windows, or extract a zip without admin credentials. Customize preferences like dark mode on first launch.
Install sfdx cli by downloading the Windows 64-bit installer or using node to download via command prompt, then verify installation and add the sfdx path to environment variables if needed.
Install git on Windows with the 64-bit installer, using admin rights, accept the license, keep default options, set VS Code as editor, then verify by typing git in command prompt.
Install the Salesforce Extension Pack, a bundle of nine extensions, to enable further development with SFDX CLI, Git, and VS Code; installation completes successfully in 5–10 minutes.
Create your first sfdx project using the sfdx cli in vscode, choosing the standard template, naming the project, trusting folders, and organizing metadata under force-app/main/default.
Authenticate your salesforce orgs with sfdx in vscode, authorize scratch or dev orgs, choose login URLs for production or sandbox, set an alias, and confirm successful authorization.
Create and use a manifest file to retrieve Apex classes and deploy components from source control via VS Code, using XML types and members.
Retrieve objects with a manifest by listing desired objects, including ones treated as custom, then retrieve source and manifest org. Organize by object with fields, list views, and validation rules.
Select the Apex classes you changed, or a set of classes, in the member section, and deploy them from the manifest to the org to update your source.
Retrieve the latest file from the source org with a right-click, then deploy updates back to the org, covering the manifest file and all related LWC files for the component.
Create a deployment package automatically using a manifest file that lists all metadata in your force app or sfdx project, and edit manifests to deploy a specific set of components.
Explore the ARC browser to fetch and retrieve Salesforce components from your org, compare with manifest-based retrieval, and pull flows, flexi pages, or the currency converter page.
Create aura components, apex classes, and lightning web components from VS Code with a right-click. Name them demo order, demo apex, and demo lw wc, then deploy to source org.
Execute apex test classes from VS Code using green icons to run specific methods or whole classes, note green means passed and red means failed, then refresh results.
enable the retrieve test or coverage setting in the workspace, run tests, and view apex code coverage by class and by line in vscode.
Learn how to use apex replay debugger in VS Code to debug a future method, set breakpoints, enable apex logs, and inspect responses and variables for a 200 status callout.
Push an existing SFDX project to GitHub by initializing a local git repo, configuring user details, staging and committing changes, then pushing to GitHub with authentication.
Clone a private Azure DevOps repository into VS Code by copying the repo URL, choosing clone, and providing one-time git credentials to complete the process.
Learn how to track code changes with staging, committing, and pushing to a repository. See how source control highlights modified lines and enables rollbacks and versioning.
Stage specific changes and commit with meaningful messages, then push to the Azure repository. See commit history and file diffs in VS Code to track versions of modified files.
Pull changes from the cloud repository to keep your local VS Code workspace synchronized with Azure DevOps, commit meaningful messages, and push updates using source control commands.
Create a new branch from the master in Azure DevOps and switch to it in VS Code, then pull updates with git fetch --all to work on the develop branch.
Create a new branch in VS Code, base it on master, name it develop vs code, and push the local branch to Azure DevOps by publishing the remote branch.
Learn to synchronize your Salesforce code by using SFDX CLI and Git with VS Code, deploying to and retrieving from your org while managing versions, commits, and branches.
Learn to build and run SOQL queries directly in VS Code using the SQL Builder extension, selecting objects and fields, applying filters, and saving results as CSV or JSON.
Execute anonymous apex directly from voice code in a Salesforce project using sfdx cli and vscode, by saving an .apex file and running anonymous apex command to view debug outputs.
Format code in VS Code with a few clicks to improve indentation and readability. Use format document or format selection to format a JavaScript file.
Learn to compare code directly in vscode using the built-in compare tool. Compare the active file with clipboard or saved versions, and see additions in green and removals in red.
In this course, you will be able to write and deploy your codes to Salesforce from VS Code. You will learn basic git operation and its combined operations with SFDX CLI with some power of VS Code.
In these 70 mins, we will install the necessary software. After that, we will kick start with our Hands-on. Starting with SFDX CLI, we will learn project creation, deployment, retrieval, and creation of the components. We will also learn Test class execution and Apex code coverage from VS code. Then we will start with Git including the basic operations of Git. After that, we will focus on the combined operations of SFDX CLI and Git with VS Code. We will learn some cool tricks with VS Code.
If you are a beginner in the Salesforce ecosystem or a learning professional, then this course is perfect for you to speed up your Salesforce development with SFDX CLI, Git, and VS Code.
This course will include the following topics:
1. Installation of necessary software:
Installation of VS Code
Installation of SFDX CLI
Installation of Git
Salesforce Extension Pack
2. Power of SFDX CLI
Creating SFDX Project
Authorizing Org
Creating and using the manifest file
Retrieving components using the manifest file
Deploying components using the manifest file
Creating deployment package using the manifest file
Deploying and retrieving files without using the manifest file
Org browser in VS Code
Creating class and components from VS Code
Executing test class from VS Code
Check Apex Code Coverage from VS Code
3. Understanding the Git operations
Pushing SFDX Project to Git Repo
Cloning branch to VS Code
Tracking the Code changes
Staging, committing, and pushing the changes
Pulling changes from the cloud repository
Pulling new branches to VS Code
Creating new branches in VS Code
4. Combined use of SFDX CLI and Git
Understanding the combined operations of SFDX CLI and Git
5. Effective use of VS Code
SOQL Query Builder
Anonymous Apex Execution from VS Code
Formatting the Code easily
Code comparing in VS Code