apex tail log

Activate debug logging and display logs in the terminal.

You can also pipe the logs to a file.

force:apex:log:tail

Flag Name (Long)Flag Name (Short)Description
‑‑api‑versionN/AType: Value

Override the api version used for api requests made by this command
‑‑color‑cType: Boolean

Apply default colors to noteworthy log lines.
‑‑debug‑level‑dType: Value

Debug level to set on the DEVELOPER_LOG trace flag for your user.
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑skip‑trace‑flag‑sType: Boolean

Skip trace flag setup. Assumes that a trace flag and debug level are fully set up.
‑‑target‑org‑oType: Value
Required

Username or alias of the target org. Not required if the target-org configuration variable is already set.

Activate debug logging:

Specify a debug level:

Skip the trace flag setup and apply default colors: