Help us improve
Share bugs, ideas, or general feedback.
From salesforce-soql
Salesforce CLI (sf) usage for running SOQL queries, authentication, and handling output. Use when executing queries or managing Salesforce connections.
npx claudepluginhub grailautomation/claude-plugins --plugin salesforce-soqlHow this skill is triggered — by the user, by Claude, or both
Slash command
/salesforce-soql:sf-cli-executionThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill covers using the `sf` CLI to run SOQL queries against Salesforce orgs.
Executes read-only SOQL queries against a connected Salesforce org via sf data query CLI under T1 least-privilege scope. Returns sanitized JSON with structured audit envelope. Use for live record evidence like pipeline counts, field values, or aggregate queries.
Provides Salesforce API examples: connect, SOQL queries, sObject CRUD (Account/Contact/Lead) using jsforce (TypeScript/Node.js) or simple_salesforce (Python). For new integrations or setup testing.
Generates, optimizes, and analyzes Salesforce SOQL/SOSL queries from natural language. Automatically activates when working with .soql files, relationship queries, aggregates, or query performance.
Share bugs, ideas, or general feedback.
This 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