Salesforce CLI (sf) usage for running SOQL queries, authentication, and handling output. Use when executing queries or managing Salesforce connections.
From salesforce-soqlnpx claudepluginhub grailautomation/claude-plugins --plugin salesforce-soqlThis skill uses the workspace's default tool permissions.
authentication.mderror-handling.mdoutput-formats.mdThis skill covers using the sf CLI to run SOQL queries against Salesforce orgs.
npm install -g @salesforce/cli| Command | Purpose |
|---|---|
sf org list | List connected orgs |
sf org login web | Authenticate new org |
sf data query | Run SOQL query |
sf data export bulk | Export large datasets |
sf sobject describe | Get object schema |
sf data query --query "SELECT Id, Name FROM Account LIMIT 10" --target-org production
sf data query --query "SELECT Id, Name FROM Account" --target-org production --json
sf data query --query "SELECT Id, Name FROM Account" --target-org production --json 2>&1 | head -100