Salesforce Developer experience (DX) is a new way to manage and develop apps on the Lightning platform across their entire life cycle.

  • Source-driven development
  • Team collaboration with governance
  • New levels of agility for custom app development on Salesforce

Before you begin: Enable the Dev Hub and install Salesforce CLI

auth Commands

authorize an org for use with the Salesforce CLI

sfdx force:auth:web:login -a "MyOrg"

Parameters: -a | --setalias SETALIAS

mdapi Commands

Use the mdapi commands to retrieve and deploy Metadata API–formatted files that represent components in an org, or to convert Metadata API–formatted metadata into the source format used in Salesforce DX projects.

sfdx force:mdapi:convert -r ROOTDIR -d OUTPUTDIR -x MANIFEST -p METADATAPATH

Converts metadata retrieved via Metadata API into the source format used in Salesforce DX projects.

source Commands

Use the source commands to push and pull source to and from your scratch orgs, to deploy and retrieve source to and from non-source-tracked orgs, to see synchronization changes between your project and scratch orgs, and to convert your source to the metadata format for Metadata API deployments.

sfdx force:source:pull -u TARGETUSERNAME -w WAITMINS
sfdx force:source:push -u TARGETUSERNAME 

package Commands

Use the package commands to develop and install packages.

Create packages of these types, Managed and Unlocked (Managed=DeveloperManagedSubscriberManaged, Unlocked=DeveloperControlledSubscriberEditable).

#Creates a package


data Commands

sfdx force:data:soql:query

Executes a SOQL query

alias Commands

Use the alias commands to manage username aliases.

sfdx force:alias:list

doc Commands

Display descriptions and help for the commands in force Namespace

sfdx force:doc:commands:display