Newer Version Available

This content describes an older version of this product. View Latest

Create an Apex Class

You can create Apex classes from the CLI.
  1. If the classes directory doesn’t exist in <app dir>/main/default, create it.
  2. In the classes directory, create the class.
    1sfdx force:apex:class:create -n myclass