{"schemaVersion":"opencli.cli.v1","slug":"sf","name":"Salesforce CLI","shortName":"sf","binaryName":"sf","maker":{"slug":"salesforce","name":"Salesforce","type":"org","url":"https://salesforce.com","officialPlatformMaker":true,"featuredBuilder":false},"category":"Productivity","description":"The official CLI from Salesforce. Salesforce orgs, crm automation, and metadata from the terminal. Supports structured output — good for scripts and agents.","tagline":"Salesforce orgs, crm automation, and metadata from the terminal.","install":{"packageManager":"npm","command":"npm install -g @salesforce/cli","packageName":null,"npmPackage":null,"brewFormula":null,"brewCask":null,"crateName":null,"pypiPackage":null,"goPackage":null,"dockerImage":null},"verify":{"command":"sf --help","signal":"sf responds locally; authenticate before real work."},"quickStart":"sf org list --json","exampleWorkflow":["sf org list --json"],"agent":{"readiness":{"label":"Great for agents","score":75,"reasons":["Structured output is available for parsing.","Supports non-interactive/scripted use.","Works well in CI or repeatable automation."],"guardrails":["Verify identity/account before running task commands.","Network access is required; avoid leaking secrets in logs.","Require confirmation before apply, delete, deploy, transfer, merge, or write actions."]},"packUrl":"https://opencli.co/cli/sf/agent.md","packMarkdown":"# OpenCLI Agent Pack: Salesforce CLI\n\nUse this when an AI agent needs to work with `sf`.\n\n## What this CLI is for\nThe official CLI from Salesforce. Salesforce orgs, crm automation, and metadata from the terminal. Supports structured output — good for scripts and agents.\n\nBest for: salesforce orgs, crm automation, and metadata from the terminal.\n\n## Agent readiness\nGreat for agents (75/100)\n- Structured output is available for parsing.\n- Supports non-interactive/scripted use.\n- Works well in CI or repeatable automation.\n\n## Install\n```sh\nnpm install -g @salesforce/cli\n```\n\n## Verify before real work\n```sh\nsf --help\n```\nExpected signal: sf responds locally; authenticate before real work.\n\n## Safe starting commands\n```sh\nsf --help\n```\n\n```sh\nsf org list --json\n```\n\n## Guardrails for agents\n- Verify identity/account before running task commands.\n- Network access is required; avoid leaking secrets in logs.\n- Require confirmation before apply, delete, deploy, transfer, merge, or write actions.\n\n## Suggested agent instruction\nYou may use Salesforce CLI (`sf`) for salesforce orgs, crm automation, and metadata from the terminal.. First install it if missing, then run the verify command. Start with read-only or inspection commands. Summarize what you found before changing anything. Ask for confirmation before commands that mutate remote state, spend money, deploy, delete data, merge code, or expose secrets.\n\nSource: OpenCLI\n"},"fit":{"bestFor":"salesforce orgs, crm automation, and metadata from the terminal.","useThisIf":"You want productivity workflows you can script with structured output.","skipIf":"You're not comfortable with a tool that can write to production.","whatHappensNext":"Run `sf org list --json` and see what comes back."},"capabilities":{"agentFriendly":true,"supportsJsonOutput":true,"supportsNonInteractive":true,"supportsDryRun":false,"requiresAuth":true,"requiresNetwork":true,"ciFriendly":true,"localFirst":false,"destructivePotential":"high"},"taxonomy":{"useCases":["Salesforce orgs","CRM automation","Metadata"],"aliases":[],"keywords":["salesforce","crm"],"tags":[]},"links":{"website":"https://developer.salesforce.com/tools/salesforcecli","github":"https://github.com/salesforcecli/cli","docs":"https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/","opencli":"https://opencli.co/cli/sf","markdown":"https://opencli.co/cli/sf/agent.md","json":"https://opencli.co/cli/sf.json"},"metrics":{"githubStars":171,"latestRelease":"2026-06-08T03:32:23Z","license":"Apache-2.0","metricLabel":"npm weekly downloads","metricValue":329263,"metricSource":"npm","metricAsOf":"2026-06-08T11:01:10.655Z"}}