{"id":13668360,"url":"https://github.com/forcedotcom/sfdx-core","last_synced_at":"2026-04-02T19:09:37.900Z","repository":{"id":38097904,"uuid":"148384603","full_name":"forcedotcom/sfdx-core","owner":"forcedotcom","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-27T00:54:38.000Z","size":79770,"stargazers_count":163,"open_issues_count":14,"forks_count":78,"subscribers_count":33,"default_branch":"main","last_synced_at":"2026-03-27T13:13:20.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":false,"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/forcedotcom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","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":"2018-09-11T21:50:24.000Z","updated_at":"2026-03-19T17:48:31.000Z","dependencies_parsed_at":"2023-10-14T14:17:05.937Z","dependency_job_id":"ffa549ed-7eac-401e-944f-17ff95b06a16","html_url":"https://github.com/forcedotcom/sfdx-core","commit_stats":{"total_commits":2430,"total_committers":76,"mean_commits":"31.973684210526315","dds":0.8222222222222222,"last_synced_commit":"0919f2844544983b7635f9d25eb544c2f4aa7cdd"},"previous_names":[],"tags_count":633,"template":false,"template_full_name":null,"purl":"pkg:github/forcedotcom/sfdx-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forcedotcom%2Fsfdx-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forcedotcom%2Fsfdx-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forcedotcom%2Fsfdx-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forcedotcom%2Fsfdx-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forcedotcom","download_url":"https://codeload.github.com/forcedotcom/sfdx-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forcedotcom%2Fsfdx-core/sbom","scorecard":{"id":204829,"data":{"date":"2025-08-11","repo":{"name":"github.com/forcedotcom/sfdx-core","commit":"18860a6b6de2a3c4ff069b582c6ff8846c1a8350"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.4,"checks":[{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Security-Policy","score":9,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Warn: One or no descriptive hints of disclosure, vulnerability, and/or timelines in security policy","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Code-Review","score":3,"reason":"Found 7/21 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/automerge.yml:1","Warn: no topLevel permission defined: .github/workflows/bundle.yml:1","Warn: no topLevel permission defined: .github/workflows/create-github-release.yml:1","Warn: no topLevel permission defined: .github/workflows/esbuild-publish.yml:1","Warn: no topLevel permission defined: .github/workflows/failureNotifications.yml:1","Warn: no topLevel permission defined: .github/workflows/notify-slack-on-pr-open.yml:1","Warn: no topLevel permission defined: .github/workflows/onRelease.yml:1","Warn: no topLevel permission defined: .github/workflows/perf.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Warn: no topLevel permission defined: .github/workflows/testCoreBundling.yml:1","Warn: no topLevel permission defined: .github/workflows/testExternalProjects.yml:1","Warn: no topLevel permission defined: .github/workflows/validate-pr.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/automerge.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/automerge.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bundle.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/bundle.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bundle.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/bundle.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/bundle.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/bundle.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-github-release.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/create-github-release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-github-release.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/create-github-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/esbuild-publish.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/esbuild-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/esbuild-publish.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/esbuild-publish.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/esbuild-publish.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/esbuild-publish.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/failureNotifications.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/failureNotifications.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/notify-slack-on-pr-open.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/notify-slack-on-pr-open.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/onRelease.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/onRelease.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/onRelease.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/onRelease.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/onRelease.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/onRelease.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/perf.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/perf.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/perf.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/perf.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/perf.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/perf.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testExternalProjects.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/testExternalProjects.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testExternalProjects.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/testExternalProjects.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/testExternalProjects.yml:83: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/testExternalProjects.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/validate-pr.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/forcedotcom/sfdx-core/validate-pr.yml/main?enable=pin","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of  19 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/esbuild-publish.yml:30"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T23:29:43.366Z","repository_id":38097904,"created_at":"2025-08-16T23:29:43.366Z","updated_at":"2025-08-16T23:29:43.366Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31314018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-08-02T08:00:32.964Z","updated_at":"2026-04-02T19:09:37.866Z","avatar_url":"https://github.com/forcedotcom.png","language":"TypeScript","funding_links":[],"categories":["Official plugins/modules from Salesforce","others"],"sub_categories":[],"readme":"[![NPM](https://img.shields.io/npm/v/@salesforce/core.svg)](https://www.npmjs.com/package/@salesforce/core)\n\n- [Description](#description)\n- [Usage](#usage)\n  - [Contributing](#contributing)\n- [JSON Schemas](#json-schemas)\n- [Using TestSetup](#using-testsetup)\n- [Message Transformer](#message-transformer)\n\n# Description\n\nThe @salesforce/core library provides client-side management of Salesforce DX projects, org authentication, connections to Salesforce APIs, and other utilities. Much of the core functionality that powers the Salesforce CLI plugins comes from this library. You can use this functionality in your plugins too.\n\n# Usage\n\nSee the [API documentation](https://forcedotcom.github.io/sfdx-core/).\n\n## Contributing\n\nIf you're interested in contributing, take a look at the [CONTRIBUTING](CONTRIBUTING.md) guide.\n\n## Issues\n\nReport all issues to the [issues only repository](https://github.com/forcedotcom/cli/issues).\n\n## JSON Schemas\n\nThis library provides JSON schemas for `sfdx-project.json` and scratch org definition files. These schemas are generated from Zod schemas that are also exported for runtime validation.\n\n### Importing JSON Schemas\n\n```javascript\n// Import the JSON schema files directly\nimport sfdxProjectSchema from '@salesforce/core/sfdx-project.schema.json';\nimport scratchDefSchema from '@salesforce/core/project-scratch-def.schema.json';\n```\n\n### Using Zod Schemas for Validation\n\n`.parse` validates and the result is TS-typed. See zod docs for all the parsing options.\n\n```typescript\nimport { ProjectJsonSchema, ScratchOrgDefSchema } from '@salesforce/core';\n\n// Validate and parse sfdx-project.json contents (throws on invalid)\nconst projectJson = ProjectJsonSchema.parse(projectJsonContents);\n\n// Validate and parse scratch org definition\nconst scratchDef = ScratchOrgDefSchema.parse(scratchDefContents);\n```\n\n# Using TestSetup\n\nThe Salesforce DX Core Library provides a unit testing utility to help with mocking and sand-boxing core components. This feature allows unit tests to execute without needing to make API calls to salesforce.com.\n\nSee the [Test Setup documentation](TEST_SETUP.md).\n\n## Message Transformer\n\nThe Messages class, by default, loads message text during run time. It's optimized to do this only per file.\n\nIf you're using @salesforce/core or other code that uses its Messages class in a bundler (webpack, esbuild, etc) it may struggle with these runtime references. Bundle from the compiled code (post-messageTranssformer)\n\nsrc/messageTransformer will \"inline\" the messages into the js files during TS compile using `https://github.com/nonara/ts-patch`.\n\nIn your plugin or library,\n\n`yarn add --dev ts-patch`\n\n\u003e tsconfig.json\n\n```json\n{\n  ...\n  \"plugins\": [{ \"transform\": \"@salesforce/core/lib/messageTransformer\", \"import\": \"messageTransformer\" }]\n}\n```\n\n\u003e .sfdevrc.json, which gets merged into package.json\n\n```json\n\"wireit\": {\n    \"compile\": {\n      \"command\": \"tspc -p . --pretty --incremental\",\n      \"files\": [\n        \"src/**/*.ts\",\n        \"tsconfig.json\",\n        \"messages\"\n      ],\n      \"output\": [\n        \"lib/**\",\n        \"*.tsbuildinfo\"\n      ],\n      \"clean\": \"if-file-deleted\"\n    }\n  }\n\n```\n\n## Performance Testing\n\nThere are some benchmark.js checks to get a baseline for Logger performance.\nhttps://forcedotcom.github.io/sfdx-core/perf-Linux\nhttps://forcedotcom.github.io/sfdx-core/perf-Windows\n\nYou can add more test cases in test/perf/logger/main.js\n\nIf you add tests for new parts of sfdx-core outside of Logger, add new test Suites and create new jobs in the GHA `perf.yml`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforcedotcom%2Fsfdx-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforcedotcom%2Fsfdx-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforcedotcom%2Fsfdx-core/lists"}