sfdx force:apex:trigger:create

Create an Apex trigger

Options

NameDescription
--jsonFormat output as json
--loglevel <loglevel>Logging level for this command invocation
-n, --triggername <triggername>Name of the generated Apex trigger
-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
-s, --sobject <sobject>SObject to create a trigger on
-e, --triggerevents <triggerevents>Events that fire the trigger