Download Components for the Troubleshooting Lightning Web Components Trailhead Badge
- In Visual Studio Code, open the Command Palette by pressing Ctrl+Shift+P (Windows) or Cmd+Shift+P (macOS).
- Enter
git
. - Select Git: Clone.
- Enter
https://github.com/developerforce/troubleshoot-lwc.git
and press Enter. - Select Desktop and then click Select Repository Location.
It's always a good idea to update to the latest CLI
- Click View, and then select Terminal to open a terminal in Visual Studio Code.
- Update the CLI by running this command in the terminal:
sfdx update
- Open the Command Palette.
- Enter
sfdx
. - Select SFDX: Create Project.
- Select Standard.
- Enter
troubleshoot-lwc
as the project name and press Enter. - Select Desktop for folder to store the project.
- Click Create Project.
- Click Overwrite.
- Open the Command Palette.
- Enter
sfdx
. - Select SFDX: Authorize an Org.
- Press Enter to accept the Project Default login URL option.
- Press Enter to accept the default alias. Salesforce login opens in a separate browser window.
- Log in using your Trailhead Playground credentials.
- If you're prompted to allow access, click Allow.
- Right-click the default folder under force-app/main.
- Click SFDX: Deploy Source to Org.
- Click View, and then select Terminal. A terminal window opens in Visual Studio Code. The terminal defaults to the top-level directory of the project.
- Assign the Solutions Full Access permission set to the default user by running this command in the terminal:
sfdx force:user:permset:assign -n Solutions_Full_Access
- In your Trailhead Playground, in App Launcher, search for
sol
. - Select Solutions.