Newer Version Available
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.
- In <app dir>/main/default, create the aura directory .
- Change to the aura directory.
-
In the aura directory, create a Lightning app or an Aura
component.
1sfdx force:lightning:app:create -n myAuraapp1sfdx force:lightning:component:create --type aura -n myAuraComponent