Salesforce CLI Command Reference
Release Notes
Deprecation Policy
apex get log
apex get test
apex list log
apex run
apex run test
apex tail log
apex trace create
apex trace delete
apex trace list
List trace flags in your org.
Display a list of active and recently expired trace flags in your org org. Trace flags control debug logging for a specific user, Apex class, or Apex trigger. Use the “apex trace create” CLI command to create a trace flag.
| Flag Name (Long) | Flag Name (Short) | Description |
|---|---|---|
‑‑api‑version | N/A | Type: Value Override the api version used for api requests made by this command |
‑‑flags‑dir | N/A | Type: Value Import flag values from a directory. |
‑‑json | N/A | Type: Boolean Format output as json. |
‑‑target‑org | ‑o | Type: Value Required Username or alias of the target org. Not required if the target-org configuration variable is already set. |
List all trace flags in your default org:
1sf apex trace listList trace flags for an org with alias “my-org”:
1sf apex trace list --target-org my-org