rdbumstead/Setup Salesforce CLI

Enterprise-grade Salesforce CLI setup with authentication, caching, and optional tooling

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Jan 21, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: rdbumstead/setup-salesforce-action@2a05fc6d6434e05c6e57197732123e0a4030b5cb # v3.0.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
node_versionNode.js versionno20
cli_versionSalesforce CLI version (latest or explicit version like 2.x.x)nolatest
cli_version_for_cacheCLI version granularity for cache key (major, minor, or exact). Controls cache reuse vs freshness.nominor
strictFail pipeline on optional tool installation errorsnofalse
dry_runDry-run mode: skip authentication and mutations, validate detection onlynofalse
debugEnable verbose debug output for troubleshootingnofalse
skip_authSkip authentication (CLI installation only)nofalse
auth_methodAuthentication method: 'jwt', 'sfdx-url', or 'access-token' (required unless skip_auth is true)nojwt
jwt_keySFDX JWT Private Key (required when auth_method is 'jwt')no
client_idConnected App Client ID (required for 'jwt' and 'access-token' auth methods)no
usernameSalesforce Username (required when auth_method is 'jwt')no
sfdx_auth_urlSFDX Auth URL (required when auth_method is 'sfdx-url')no
allow_access_token_authExplicitly allow direct access token authentication. Advanced use only.notrue
access_tokenSalesforce Access Token (required when auth_method is 'access-token')no
aliasOrg alias for authenticated orgnoTargetOrg
is_dev_hubSet org as default Dev Hubnofalse
instance_urlSalesforce instance URL (required for 'jwt' and 'access-token' methods, e.g., https://login.salesforce.com)nohttps://login.salesforce.com
install_deltaInstall sfdx-git-delta for delta deploymentsnofalse
install_scannerInstall Salesforce Code Analyzer for static analysisnofalse
install_prettierInstall Prettier with Salesforce plugins for code formattingnofalse
install_eslintInstall ESLint with Salesforce plugins for lintingnofalse
install_lwc_jestInstall @salesforce/sfdx-lwc-jest for LWC unit testingnofalse
custom_sf_pluginsComma-separated list of additional Salesforce CLI plugins to install (e.g., 'sfdx-hardis,@salesforce/plugin-packaging')no""
source_dirsComma-separated source directories (e.g., 'force-app,packages/core')noforce-app
namedescription
org_idAuthenticated Salesforce Org ID
org_editionSalesforce Edition (Developer, Enterprise, Unlimited, etc.)
org_typeOrganization type (Production, Sandbox, or Scratch)
usernameAuthenticated username
instance_urlOrg instance URL
api_versionSalesforce API version for the org
auth_performedWhether authentication was performed (true) or skipped (false)
sf_cli_versionInstalled Salesforce CLI version
source_flagsResolved source directory flags for SF CLI commands
used_default_nodeWhether the default Node.js version was used (true) or explicit version specified (false)
used_default_cli_versionWhether the default CLI version was used (true) or explicit version specified (false)
used_default_api_versionWhether the API version was auto-detected (true) or explicitly provided (false)
cli_binary_pathAbsolute path to the sf executable (for custom tooling integration)
validated_configJSON summary of the final configuration (debug/audit use)