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.