Show:            

Installing the app using a Scratch Org

  1. Set up your environment. Follow the steps in the Quick Start: Lightning Web Components Trailhead project. The steps include:
  1. 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
    
  2. Clone the duplicatehandling repository:

    git clone https://github.com/dschach/salesforce-trigger-framework
    cd salesforce-trigger-framework
    
  3. Create your scratch org

    • Using the included script From the VSCode command line/terminal, run orginit script

      . scripts/orginit.sh
      
    • Using CLI manually

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

      2. Push the app to your scratch org:

        sf project deploy start
        
      3. Open the scratch org:

        sf org open