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.

  1. Click the hamburger icon (hamburger icon) in the Activity Bar and select Terminal > New Terminal.
  2. Clone the dreamhouse-lwc sample app repo into /home/codebuilder/ by running:
  1. Click the hamburger icon in the Activity Bar and click File > Open Folder.
  2. 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!