aer exec
Execute anonymous Apex code
Synopsis
Execute anonymous Apex code.
The Apex code can be provided as a positional argument or piped via stdin. Use the –path flag to specify source directories containing additional Apex classes.
aer exec [apex-code] [flags]Options
--allow-deprecated strings allow deprecated Apex features (valid options: test-method-in-non-test-class, schema-recalculate-formulas, child-relationship-describe-limits, site-get-prefix, site-get-base-insecure-url, site-get-current-site-url, site-get-custom-web-address)
--db string SQLite database file to use (for debugging, default: in-memory)
--debug Enable debug mode with DAP server
--default-namespace string treat loaded code as if it belongs to the specified namespace
--enforce-governor-limits enforce governor limit checks during anonymous execution
-h, --help help for exec
--package strings package files to load (can be specified multiple times)
--package-dir strings directories containing .pkg files to load (can be specified multiple times)
-p, --path strings source paths containing Apex classes (can be specified multiple times)
--profile file write Apex profiling data to file (pprof format)
--sandbox set Organization.IsSandbox to true
--trace file write Apex execution trace to fileOptions inherited from parent commands
-q, --quiet suppress progress output
-v, --verbose enable verbose outputSEE ALSO
- aer - aer is the Apex Execution Runtime