Pulling source from a scratch Org

To pull source code components from a scratch Org, use the following command:

sfdx force:source:pull

Let's create a simple component bundle named HelloWorld in the scratch Org and retrieve into the local folder using the preceding command.

To open the Org from the command line, use the following command:

sfdx force:org:open -u <username>

Once you are in the Org, use the Developer Console to create a HelloWorld component, as shown in the following screenshot:

The preceding shows how to use Developer Console to create a Lightning Component Bundle

The code for the component can be very simple, as shown here: ...

Get Learning Salesforce Lightning Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.