Scratch Org - First Metadata Deployment (Push) using Repository

Scratch Org - First Metadata Deployment (Push) using Repository

In my previous article, Salesforce Scratch Org Based (Source-Driven) Development Workflow - Scratch Org Setup, I have set up a public repository sfdxrepo and explained steps needed to create a scratch org.

In this article, I'm going to walk through the steps required to deploy (push) metadata from the repository.

Pre-requisite

Metadata Deployment

  1. In Visual Studio Code, open the Command Palette by pressing Ctrl+Shift+P on Windows or Cmd+Shift+P on macOS.
  2. Type SFDX.
  3. Select SFDX: Push Source to Default Scratch Org.
No alt text provided for this image
  1. This should start the push operation to default scratch org. Once finished the output message should show "exit code 0", something similar to below picture: -
No alt text provided for this image

Alternatively, you can also use sfdx force:source:push command through the command line.

Go to your scratch org and in Setup >> Environments >> Deploy >> Deployment Status, you can confirm the latest deployment. The screen should look something similar to below: -

No alt text provided for this image

First Release

I have tagged my repository as V1.0 so that it can be used to start the journey at any point of time. This release is very-very basic, I will continue with my journey and keep releasing with additional features.

To view or add a comment, sign in

More articles by Digamber Prasad

Explore content categories