Last active
February 11, 2023 20:40
-
-
Save nithesh1992/4d9a983b14ce9eafd54ebb68565d3311 to your computer and use it in GitHub Desktop.
Download Apex Logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
Ids=`sfdx data query -q 'SELECT id FROM ApexLog' --json | jg -r | |
'.result.records[].Id'` | |
while IFS= read -r line; do | |
echo "sfdx apex log get -i $line -d .sfdx/tools/debug/logs" | |
sfdx apex log get -i $line -d .sfdx/tools/debug/logs/ | |
done <<< "$Ids" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment