Newer Version Available
Create Lightning Web Components
To create a Lightning web component from the CLI, you must have an
lwc directory in your Salesforce DX project.
- In <app dir>/main/default, create the lwc directory.
- Change to the lwc directory.
-
In the lwc directory, create the Lightning web
component.
1sfdx force:lightning:component:create --type lwc -n myLightningWebComponent