Newer Version Available

This content describes an older version of this product. View Latest

Create Lightning Apps and Aura Components

To create Lightning apps and Aura components from the CLI, you must have an aura directory in your Salesforce DX project.
  1. In <app dir>/main/default, create the aura directory .
  2. Change to the aura directory.
  3. In the aura directory, create a Lightning app or an Aura component.
    1sfdx force:lightning:app:create -n myAuraapp
    1sfdx force:lightning:component:create --type aura -n myAuraComponent