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
- sfdx auth:web:login -d -a dev-hub-alias
- sf login
- sf login functions
- sf generate project -n project-name
- NOTE: Before create a scratch org ensure you have ["Functions"] in project-scratch-def.json
- sfdx force:org:create -s -f config/project-scratch-def.json -a scratch-org-alias
- sf env create compute -o scratch-org-alias -a compute-env-alias
- sf generate function -n myfunction -l javascript
- NOTE: git status, git add ., git commit -m "commit statement"
- sf deploy functions -o scratch-org-alias If you have written any apex code, then use the following script to push code to scratch org
- sfdx force:source:push -u scratch-org-alias At this point you can login to your scratch org to invoke the apex via apex debug window.