{"id":20652125,"url":"https://github.com/preziosiraffaele/sf-debug-log","last_synced_at":"2026-02-19T14:03:24.979Z","repository":{"id":202760477,"uuid":"704695058","full_name":"PreziosiRaffaele/sf-debug-log","owner":"PreziosiRaffaele","description":"A sf cli plugin to manage debug logs in Salesforce ","archived":false,"fork":false,"pushed_at":"2025-07-12T21:18:16.000Z","size":513,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-12T23:32:34.040Z","etag":null,"topics":["cli","salesforce","sf"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PreziosiRaffaele.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-13T20:59:09.000Z","updated_at":"2025-07-12T21:18:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2894584-9f48-4aa2-8b8b-ddc7921cb180","html_url":"https://github.com/PreziosiRaffaele/sf-debug-log","commit_stats":null,"previous_names":["preziosiraffaele/sf-debug-log"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PreziosiRaffaele/sf-debug-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PreziosiRaffaele%2Fsf-debug-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PreziosiRaffaele%2Fsf-debug-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PreziosiRaffaele%2Fsf-debug-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PreziosiRaffaele%2Fsf-debug-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PreziosiRaffaele","download_url":"https://codeload.github.com/PreziosiRaffaele/sf-debug-log/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PreziosiRaffaele%2Fsf-debug-log/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265678977,"owners_count":23810120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","salesforce","sf"],"created_at":"2024-11-16T17:32:35.439Z","updated_at":"2026-02-19T14:03:19.926Z","avatar_url":"https://github.com/PreziosiRaffaele.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sf-debug-log\n\nCommands to manage Salesforce debug logs.\n\nCreate trace flags for any user in the org selecting the debug level and time.\nRetrive Apex logs related to a specific user to analyze them locally.\n\n## Install\n\n```bash\nsf plugins install sf-debug-log\n```\n\n## Commands\n\n\u003c!-- commands --\u003e\n\n- [`sf trace new`](#sf-trace-new)\n- [`sf debug retrieve`](#sf-debug-retrieve)\n- [`sf debug delete`](#sf-debuglevel-new)\n- [`sf debuglevel new`](#sf-debuglevel-new)\n\n## `sf trace new`\n\n```\nUSAGE\n  $ sf trace new -o \u003cvalue\u003e [-u \u003cvalue\u003e] [-t \u003cvalue\u003e]\n\nFLAGS\n  -o, --targetusername=\u003cvalue\u003e  [required] Username or alias of the target Salesforce org.\n  -t, --time=\u003cvalue\u003e [default: 60] The number of minutes to trace.\n  -u, --name=\u003cvalue\u003e [default: targetusername] Username, Name, or ID of the user for whom you want to retrieve the logs.\n\nGLOBAL FLAGS\n  --json  Format output as json.\n\nDESCRIPTION\n  Create a new trace flag.\n\n  This command is used to create a trace flag for a specific user in the Salesforce org.\n\nEXAMPLES\n  sf trace new -o DeveloperEdition -u \"Raffaele Preziosi\" -t 10\n```\n\n## `sf debug retrieve`\n\n```\nUSAGE\n  $  sf debug retrieve -o \u003cvalue\u003e [-u \u003cvalue\u003e] [-t \u003cvalue\u003e] [-d \u003cvalue\u003e]\n\nFLAGS\n  -d, --folder=\u003cvalue\u003e          [default: .sfdx/tools/debug/logs] The folder where the retrieved log files will be stored.\n  -o, --targetusername=\u003cvalue\u003e  (required) Username or alias of the target Salesforce org.\n  -t, --time=\u003cvalue\u003e            [default: 60] The number of minutes to retrieve log files for.\n  -u, --user=\u003cvalue\u003e            [default: targetusername] Username, Name, or ID of the user for whom you want to retrieve the logs.\n\nGLOBAL FLAGS\n  --json  Format output as json.\n\nDESCRIPTION\n  Retrieve Apex log files from the Salesforce platform.\n\n  This command allows you to retrieve Apex log files from a Salesforce org.\n\nEXAMPLES\n  sf debug retrieve -o DeveloperEdition -u \"Raffaele Preziosi\" -t 10\n```\n\n## `sf debug delete`\n\n```\nUSAGE\n  $  sf debug delete -o \u003cvalue\u003e [--json] [-u \u003cvalue\u003e] [-t \u003cvalue\u003e] [-a]\n\nFLAGS\n  -a, --all                     Delete log files for all users.\n  -o, --targetusername=\u003cvalue\u003e  (required) Username or alias of the target Salesforce org.\n  -t, --time=\u003cvalue\u003e            The number of minutes to retrieve log files for.\n  -u, --user=\u003cvalue\u003e            [default: targetusername] Username, Name, or ID of the user for whom you want to delete the logs.\n\nGLOBAL FLAGS\n  --json  Format output as json.\n\nDESCRIPTION\n  Delete Apex log files from a Salesforce org.\n\nEXAMPLES\n  sf debug delete -o DeveloperEdition -u \"Raffaele Preziosi\" -t 10\n```\n\n## `sf debuglevel new`\n\n```\nUSAGE\n  $ sf debuglevel new -o \u003cvalue\u003e [-n \u003cvalue\u003e]\n\nFLAGS\n  -o, --targetusername=\u003cvalue\u003e  [required] Username or alias of the target Salesforce org.\n  -n, --name=\u003cvalue\u003e [required] The developer name of the new DebugLevel.\n\nGLOBAL FLAGS\n  --json  Format output as json.\n\nDESCRIPTION\n  Create a new DebugLevel.\n\n  Create a new DebugLevel assigning level for each category.\n\nEXAMPLES\n  sf debuglevel new -o DeveloperEdition -n \"DebugLevel\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreziosiraffaele%2Fsf-debug-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpreziosiraffaele%2Fsf-debug-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreziosiraffaele%2Fsf-debug-log/lists"}