{"id":23712169,"url":"https://github.com/j-fischer/rflib-plugin","last_synced_at":"2026-04-02T11:49:06.406Z","repository":{"id":269757749,"uuid":"908371453","full_name":"j-fischer/rflib-plugin","owner":"j-fischer","description":"Plugin for Salesforce CLI to help with the adoption of RFLIB - an open-source logging framework for Salesforce.","archived":false,"fork":false,"pushed_at":"2026-03-24T04:27:26.000Z","size":2586,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-03-28T02:34:21.048Z","etag":null,"topics":["apex","cli","logging","lwc","plugin","rflib","salesforce"],"latest_commit_sha":null,"homepage":"https://github.com/j-fischer/rflib","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/j-fischer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-25T22:31:44.000Z","updated_at":"2026-03-24T04:27:29.000Z","dependencies_parsed_at":"2025-01-27T04:23:49.680Z","dependency_job_id":"b8df190c-4291-4140-929e-25406c20fc11","html_url":"https://github.com/j-fischer/rflib-plugin","commit_stats":null,"previous_names":["j-fischer/rflib-plugin"],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/j-fischer/rflib-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-fischer%2Frflib-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-fischer%2Frflib-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-fischer%2Frflib-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-fischer%2Frflib-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j-fischer","download_url":"https://codeload.github.com/j-fischer/rflib-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-fischer%2Frflib-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31305809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T09:48:21.550Z","status":"ssl_error","status_checked_at":"2026-04-02T09:48:19.196Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["apex","cli","logging","lwc","plugin","rflib","salesforce"],"created_at":"2024-12-30T19:57:37.152Z","updated_at":"2026-04-02T11:49:06.397Z","avatar_url":"https://github.com/j-fischer.png","language":"TypeScript","readme":"# RFLIB Plugin for Salesforce CLI\n\n[![NPM](https://img.shields.io/npm/v/rflib-plugin.svg?label=rflib-plugin)](https://www.npmjs.com/package/rflib-plugin) [![Downloads/week](https://img.shields.io/npm/dw/rflib-plugin.svg)](https://npmjs.org/package/rflib-plugin) [![License](https://img.shields.io/badge/License-BSD%203--Clause-brightgreen.svg)](https://raw.githubusercontent.com/salesforcecli/rflib-plugin/main/LICENSE)\n\nPlugin for Salesforce CLI to help with the adoption of [RFLIB](https://github.com/j-fischer/rflib) - an open-source logging framework for Salesforce.\n\n## Features\n\n- Automatically instruments Apex classes with RFLIB logging statements\n- Automatically instruments LWC components with RFLIB logging statements\n- Automatically instruments Aura components with RFLIB logging statements\n- Automatically instruments Salesforce Flows with RFLIB logging actions\n\n## Installation\n\n```bash\nsf plugins install rflib-plugin\n```\n\n## Commands\n\n### `sf rflib logging apex instrument`\n\nAdds RFLIB logging statements to Apex classes.\n\n```bash\n# Add logging to all classes in a directory\nsf rflib logging apex instrument --sourcepath force-app\n\n# Preview changes without modifying files\nsf rflib logging apex instrument --sourcepath force-app --dryrun\n\n# Format modified files with Prettier\nsf rflib logging apex instrument --sourcepath force-app --prettier\n\n# Skip instrumenting files where logging is already present\nsf rflib logging apex instrument --sourcepath force-app --skip-instrumented\n```\n\n#### Command Options\n\n- `--sourcepath (-s)`: Directory containing Apex classes to instrument\n- `--dryrun (-d)`: Preview changes without modifying files\n- `--prettier (-p)`: Format modified files using Prettier\n- `--skip-instrumented`: Do not instrument files where RFLIB logging is already present\n- `--verbose (-v)`: Print paths of the files that would be modified (useful with --dryrun)\n- `--exclude (-e)`: Exclude files or directories from instrumentation based on a glob pattern\n\n### `sf rflib logging lwc instrument`\n\nAdds RFLIB logging statements to Lightning Web Components.\n\n```bash\n# Add logging to all LWC files\nsf rflib logging lwc instrument --sourcepath force-app\n\n# Preview changes without modifying files\nsf rflib logging lwc instrument --sourcepath force-app --dryrun\n\n# Add logging and format code\nsf rflib logging lwc instrument --sourcepath force-app --prettier\n\n# Skip instrumenting files where logging is already present\nsf rflib logging lwc instrument --sourcepath force-app --skip-instrumented\n```\n\n#### Command Options\n\n- `--sourcepath (-s)`: Directory containing LWC components to instrument\n- `--dryrun (-d)`: Preview changes without modifying files\n- `--prettier (-p)`: Format modified files using Prettier\n- `--skip-instrumented`: Do not instrument files where RFLIB logging is already present\n- `--verbose (-v)`: Print paths of the files that would be modified (useful with --dryrun)\n- `--exclude (-e)`: Exclude files or directories from instrumentation based on a glob pattern\n\n### `sf rflib logging aura instrument`\n\nAdds RFLIB logging statements to Aura Components.\n\n```bash\n# Add logging to all Aura component files\nsf rflib logging aura instrument --sourcepath force-app\n\n# Preview changes without modifying files\nsf rflib logging aura instrument --sourcepath force-app --dryrun\n\n# Add logging and format code\nsf rflib logging aura instrument --sourcepath force-app --prettier\n\n# Skip instrumenting files where logging is already present\nsf rflib logging aura instrument --sourcepath force-app --skip-instrumented\n```\n\n#### Command Options\n\n- `--sourcepath (-s)`: Directory containing Aura components to instrument\n- `--dryrun (-d)`: Preview changes without modifying files\n- `--prettier (-p)`: Format modified files using Prettier\n- `--skip-instrumented`: Do not instrument files where RFLIB logging is already present\n- `--verbose (-v)`: Print paths of the files that would be modified (useful with --dryrun)\n- `--exclude (-e)`: Exclude files or directories from instrumentation based on a glob pattern\n\n### `sf rflib logging flow instrument`\n\nAdds RFLIB logging actions to Salesforce Flows and optimizes flow layout.\n\n```bash\n# Add logging to all Flow files\nsf rflib logging flow instrument --sourcepath force-app\n\n# Preview changes without modifying files\nsf rflib logging flow instrument --sourcepath force-app --dryrun\n\n# Skip instrumenting flows where logging is already present\nsf rflib logging flow instrument --sourcepath force-app --skip-instrumented\n```\n\n#### Command Options\n\n- `--sourcepath (-s)`: Directory containing Flow files to instrument\n- `--dryrun (-d)`: Preview changes without modifying files\n- `--skip-instrumented`: Do not instrument files where RFLIB logging is already present\n- `--verbose (-v)`: Print paths of the files that would be modified (useful with --dryrun)\n- `--exclude (-e)`: Exclude files or directories from instrumentation based on a glob pattern\n\n#### Features\n\n- Adds logging for flow invocation at the start of the flow\n- Adds logging for decision paths to track which branch is executed\n- Sets the flow's CanvasMode to AUTO_LAYOUT_CANVAS for better visualization in Flow Builder\n- Preserves the original processType value\n- Handles both free-form and auto-layout flows, converting all to auto-layout\n- Supports both standard Flows (processType=\"Flow\") and Auto-Launched Flows (processType=\"AutoLaunchedFlow\")\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Submit a pull request\n\n## Learn More\n\n- [RFLIB Documentation](https://github.com/j-fischer/rflib)\n- [Salesforce CLI Plugin Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_plugins.meta/sfdx_cli_plugins/cli_plugins_architecture_sf_cli.htm)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-fischer%2Frflib-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj-fischer%2Frflib-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-fischer%2Frflib-plugin/lists"}