sfdx force:lightning:component:create

Create a bundle for an Aura component or a Lightning web component

Options

NameDescription
--jsonFormat output as json
--loglevel <loglevel>Logging level for this command invocation
-n, --componentname <componentname>Name of the generated Lightning component
-t, --template <template>Template to use for file creation
-d, --outputdir <outputdir>Folder for saving the created files
--apiversion <apiversion>Override the api version used for api requests made by this command
--type <type>Type of the Lightning component