Newer Version Available
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.
-
Open a terminal or command prompt window, and clone the dreamhouse-lwc GitHub
sample repo using HTTPS or SSH.
-
Change to the dreamhouse-lwc project
directory.
-
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.
-
Create a scratch org using the config/project-scratch-def.json file, set the username as your
default, and assign it an alias.
-
Push source and tests, located in the force-app directory, to the scratch org.
-
Assign the dreamhouse permission set to
the default user.
-
Import sample data into the scratch org.
-
Run Apex tests.
-
Open the scratch org and view the pushed metadata under Most Recently
Used.
- In App Launcher, find and open Dreamhouse.