- Set up your environment. Follow the steps in the Quick Start: Lightning Web Components Trailhead project. The steps include:
- Enable Dev Hub in your org or Trailhead Playground
- Install Visual Studio Code
- Install Salesforce CLI
- Install the Visual Studio Code Salesforce extensions
-
If you haven't already done so, authorize your hub org and provide it with an alias (myhuborg in the command below):
sf org login web --set-default-dev-hub --alias myhuborg
-
Clone the duplicatehandling repository:
git clone https://github.com/dschach/salesforce-trigger-framework cd salesforce-trigger-framework -
Create your scratch org
-
Using the included script From the VSCode command line/terminal, run orginit script
. scripts/orginit.sh -
Using CLI manually
-
Create a scratch org and provide it with an alias (triggerHandler in the command below):
sf org create scratch --set-default --definition-file config/project-scratch-def.json --alias triggerHandler
This will create a new scratch org and install all metadata in this repository
-
Push the app to your scratch org:
sf project deploy start
-
Open the scratch org:
sf org open
-
-