sfdx force:apex:class:create

Create an Apex class

Options

NameDescription
--jsonFormat output as json
--loglevel <loglevel>Logging level for this command invocation
-n, --classname <classname>Name of the generated Apex class
-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