sfdx force:apex:log:get

Fetch debug logs


--jsonFormat output as JSON
--loglevel <loglevel>Logging level for this command invocation
-u, --targetusername <targetusername>Username or alias for the target org; overrides default target org
--apiversion <apiversion>Override the api version used for api requests made by this command
-i, --logid <logid>Id of the log to display
-n, --number <number>Number of most recent logs to display
-d, --outputdir <outputdir>Directory for saving the log files