Newer Version Available

This content describes an older version of this product. View Latest

Use a Sample Repo to Get Started

The quickest way to get going with Salesforce DX is to clone the dreamhouse-lwc GitHub repo. Use its configuration files and Salesforce application to try some commonly used Salesforce CLI commands.
  1. Open a terminal or command prompt window, and clone the dreamhouse-lwc GitHub sample repo using HTTPS or SSH.
  2. Change to the dreamhouse-lwc project directory.
  3. Authorize your Developer Hub (Dev Hub) org, set it as your default, and assign it an alias.
    Enter your Dev Hub org credentials in the browser that opens. After you log in successfully, you can close the browser.
  4. Create a scratch org using the config/project-scratch-def.json file, set the username as your default, and assign it an alias.
  5. Push source and tests, located in the force-app directory, to the scratch org.
  6. Assign the dreamhouse permission set to the default user.
  7. Import sample data into the scratch org.
  8. Run Apex tests.
  9. Open the scratch org and view the pushed metadata under Most Recently Used.
  10. In App Launcher, find and open Dreamhouse.