Create a Project from a Repository
If you already have a DX project in a GitHub repo, you can clone the repo into your Code Builder environment.
To clone a repo using SSH, the Code Builder environment needs an SSH key that is recognized by GitHub. To configure the SSH key, follow the Connecting to GitHub with SSH instructions on the GitHub website. You must complete these steps before you can clone a repo.
To create a project from a GitHub repo, let's use the dreamhouse-lwc sample app.
- Click the hamburger icon () in the Activity Bar and select Terminal > New Terminal.
- Clone the
dreamhouse-lwc
sample app repo into/home/codebuilder/
by running:
- Click the hamburger icon in the Activity Bar and click File > Open Folder.
- Select the
dreamhouse-lwc
folder that was generated by the clone command.
The dreamhouse-lwc
project is now open and ready to use in Code Builder!