Skip to content

lyric-sf/salesforce-functions

 
 

Repository files navigation

Salesforce DX Project: Next Steps

Now that you’ve created a Salesforce DX project, what’s next? Here are some documentation resources to get you started.

How Do You Plan to Deploy Your Changes?

Do you want to deploy a set of changes, or create a self-contained application? Choose a development model.

Configure Your Salesforce DX Project

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.

Read All About It

Workflow Steps

  • 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.

Thank you,

About

This repository will be used to create all salesforce functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 82.1%
  • Apex 17.4%
  • Shell 0.5%