Now that you’ve created a Salesforce DX project, what’s next? Here are some documentation resources to get you started.
Do you want to deploy a set of changes, or create a self-contained application? Choose a development model.
The sfdx-project.json
file contains useful configuration information for your project. See Salesforce DX Project Configuration in the Salesforce DX Developer Guide for details about this file.
- Salesforce Extensions Documentation
- Salesforce CLI Setup Guide
- Salesforce DX Developer Guide
- Salesforce CLI Command Reference
-
Authorize sfdx to connect to an org through web and set as default Dev Hub
sfdx auth:web:login -r https://d5w000000viyzea4-dev-ed.my.salesforce.com -d
-
Set default Dev Hub
sfdx config:set defaultdevhubusername=DevHubGs0Brk --global
-
Set default User/Org
sfdx config:set defaultusername=ApexTDX2022 --global
sfdx config:set defaultusername=BrianPoolApp
-
Open org
sfdx force:org:open -u DevHubPersonal
-
Create a scratch org
sfdx force:org:create -f config/project-scratch-def.json -a PoolAppBuilder -d 30 -s
-
Deploy source code to a scratch org
sfdx force:source:deploy -p force-app/main