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: ...