Run Apex in your Salesforce org and see results.
Executes anonymous Apex in a connected Salesforce org and reports debug output, compile errors, and runtime failures.
When to use it
Use when asked to execute an Apex script or pasted snippet against an org, not to author classes or run unit tests.
Give it an Apex file or pasted snippet; it executes the code in the selected org and reports compile status, runtime outcomes, and available logs.
What you provide
Requires the sf CLI version 2.0.0 or later.
Requires a connected Salesforce org in which to execute anonymous Apex.
Requires authenticated access to the target org; unauthenticated access must be resolved before execution.
This skill
Salesforce
Apex in Salesforce
Changes your Salesforce org