apex Commands

<!-- prettier-ignore-start -->

Use the apex commands to create Apex classes, execute anonymous blocks, view your logs, run Apex tests, and view Apex test results.

  • apex get log<br> Fetch the specified log or given number of most recent logs from the org.
  • apex get test<br> Display test results for a specific asynchronous test run.
  • apex list log<br> Display a list of IDs and general information about debug logs.
  • apex run<br> Execute anonymous Apex code entered on the command line or from a local file.
  • apex run test<br> Invoke Apex tests in an org.
  • apex tail log<br> Activate debug logging and display logs in the terminal.
  • apex trace create<br> Create a trace flag for a user, Apex class, or Apex trigger.
  • apex trace delete<br> Delete a trace flag in your org.
  • apex trace list<br> List trace flags in your org.
<!-- prettier-ignore-end -->