Converting existing managed/unmanaged package code to DX Format

To convert existing source code from an unmanaged package, you can take the following steps: 

  1. Authenticate with your Developer Edition Org. Type the following command, then authenticate with your developer edition Org credentials, and accept to provide access to Salesforce DX. Type the command. Note that targetOrg is an alias that is assigned to the target Org. Alias is a shorthand string, so you don't have to type the username:
sfdx force:auth:web:login -a targetOrg
  1. Export the unmanaged package into a temp directory using the retrieve command and you will notice that, once the following commands have been executed, you will see a ZIP file in the temp folder:
mkdir temp

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.