Skip to content

Instantly share code, notes, and snippets.

@sfdcale
Created April 6, 2020 22:24
Show Gist options
  • Select an option

  • Save sfdcale/e87d3c5035322a6ea48d7c738d6fe05e to your computer and use it in GitHub Desktop.

Select an option

Save sfdcale/e87d3c5035322a6ea48d7c738d6fe05e to your computer and use it in GitHub Desktop.
Extend Debug log expiration time without going into the setup screen.
StartDate=$(date -u +%Y-%m-%dT%H:%M:%S.000+0000)
ExpirationDate=$(date -u -v+24H +%Y-%m-%dT%H:%M:%S.000+0000)
#echo "StartDate=$StartDate ExpirationDate=$ExpirationDate"
temp="StartDate=$StartDate ExpirationDate=$ExpirationDate"
sfdx force:data:record:update -t -s TraceFlag -i <traceFlagIdGoesHere> -v $temp --targetusername=prod
echo "Extended debug logs for Ramesh Ale"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment