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
authorize an org for use with the Salesforce CLI
sfdx force:auth:web:login -a "MyOrg"
Parameters: -a | --setalias SETALIAS
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.
mdapi:retrieve:report -u TARGETUSERNAME -r RETRIEVETARGETDIR -w WAITMINS
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.
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
Use the package commands to develop and install packages.
Create packages of these types, Managed and Unlocked (Managed=DeveloperManagedSubscriberManaged, Unlocked=DeveloperControlledSubscriberEditable).
#Creates a package sfdx force:package:create -v TARGETDEVHUBUSERNAME -n NAME -t PACKAGETYPE -d DESCRIPTION
Executes a SOQL query
Use the alias commands to manage username aliases.
Display descriptions and help for the commands in force Namespace