salesforce-cli
Skill8 starsChanged 7 months agoApache-2.0View on GitHub
Perform Salesforce operations using the Salesforce CLI (sf). Use for querying orgs, records, metadata, and deployments.
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- georgekhananaev/claude-skills-vaulttheir own version, first seen May 25, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- georgekhananaev/claude-skills-vault★ 28same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository54 other files it gives its agents.
- alibabacloud-cliSkill
- ansible-cliSkill
- appdynamics-cliSkill
- argocd-cliSkill
- aws-cliSkill
- aws-cloudwatch-cliSkill
- azure-cliSkill
- bash-lintingSkill
- betterstack-cliSkill
- bitbucket-cliSkill
- chef-cliSkill
- code-reviewSkill
- commit-codeSkill
- create-dockerfileSkill
- create-terraform-helm-upgrade-planSkill
- datadog-cliSkill
- digitalocean-cliSkill
- dockerfile-lintingSkill
- dynatrace-cliSkill
- elasticsearch-cliSkill
- gcp-cliSkill
- github-cliSkill
- gitlab-cliSkill
- go-lintingSkill
- grafana-cliSkill
- grafana-loki-cliSkill
- graylog-cliSkill
- helm-cliSkill
- hetzner-cliSkill
- huaweicloud-cliSkill
- jaeger-cliSkill
- jenkins-cliSkill
- jira-and-confluence-cliSkill
- kibana-cliSkill
- kubernetes-cliSkill
- loggly-cliSkill
- maintenance-check-aws-eksSkill
- maintenance-create-ticket-on-jiraSkill
- ms-teams-cliSkill
- mysql-cliSkill
- newrelic-cliSkill
- oci-cliSkill
- packer-cliSkill
- papertrail-cliSkill
- postgresql-cliSkill
- prometheus-cliSkill
- python-lintingSkill
- rollbar-cliSkill
- sentry-cliSkill
- slack-cliSkill
- splunk-cliSkill
- terraform-cliSkill
- terraform-lintingSkill
- vault-cliSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 4 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use the org alias table and rules below when constructing all sf commands.
- Distinctive: line 12
Update the table below with your Salesforce org aliases before using this skill:
- Distinctive: line 19
If the target org is unclear, ask the user before running any command.
- Distinctive: line 23
If not already authenticated, inform the user that setup is required and ask them to complete the following steps manually.
- Very specific: line 33
Always pass --target-org explicitly — never rely on the default org:
- Distinctive: line 84
NEVER target an org alias not listed in the configuration table above.
- Very specific: line 85
Always pass --target-org explicitly on every command — never rely on the default org set via sf config set target-org.
- Very specific: line 86
NEVER run sf project deploy start or any bulk data mutation against the production org alias without explicit user instruction.
- Very specific: line 87
NEVER print, display, or store OAuth tokens, session IDs, or client secrets from sf org display --verbose.
- Very specific: line 88
If a record ID, object type, or org alias is unfamiliar, look it up with a read-only sf data query first.
- Very specific: line 89
Always wrap SOQL queries in double quotes and use LIMIT when exploring unfamiliar data to avoid excessive result sets.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Salesforce CLI Skill
Use the org alias table and rules below when constructing all sf commands.
Configuration
Update the table below with your Salesforce org aliases before using this skill:
| Environment | Org Alias |
| Production | <your-prod-org-alias> |
| Staging / Sandbox | <your-sandbox-org-alias> |
If the target org is unclear, ask the user before running any command.
Prerequisites (one-time setup by user)
If not already authenticated, inform the user that setup is required and ask them to complete the following steps manually. Do not perform these steps yourself.
brew install sf
sf org login web --alias <your-org-alias> --instance-url <your-instance-url>
sf org listCommand Format
Always pass --target-org explicitly — never rely on the default org:
sf <topic> <command> --target-org <org-alias> [options]Examples
# Query records (SOQL)
sf data query --query "SELECT Id, Name FROM Account LIMIT 10" --target-org <your-sandbox-org-alias>
# List installed metadata components
sf project retrieve start --metadata ApexClass --target-org <your-sandbox-org-alias>Available Commands
Read-only (safe, no confirmation needed)
| Command | Description |
sf org list | List authenticated orgs |
sf org display --target-org <alias> | Show org details |
sf data query --query "<SOQL>" | Run a SOQL query |
sf data get record --sobject <type> --record-id <id> | Get a specific record |
sf project retrieve start --metadata <type> | Retrieve metadata (read from org, writes locally) |
sf apex run --file <file> (read-only Apex, e.g. System.debug) | Execute anonymous Apex — only if the script has no DML |
sf org open --target-org <alias> --url-only | Get the org login URL without opening a browser |
Mutating operations (confirm with user before running)
| Command | Description |
sf data create record | Create a new record |
sf data update record | Update an existing record |
sf project deploy start | Deploy metadata to an org |
sf apex run --file <file> (with DML statements) | Execute anonymous Apex that modifies data |
Never run — requires explicit human approval
| Command | Reason |
sf data delete record | Irreversible record deletion |
sf data delete bulk | Bulk-deletes records — irreversible |
sf project deploy start against production org | Deploys code/config changes to live production |
sf org delete scratch | Irreversibly deletes a scratch org and its data |
sf force:data:tree:import (bulk load) against production | Bulk-mutates production data |
Rules
- NEVER target an org alias not listed in the configuration table above. If a command references an unfamiliar org, stop and ask the user to confirm.
- Always pass
--target-orgexplicitly on every command — never rely on the default org set viasf config set target-org. - NEVER run
sf project deploy startor any bulk data mutation against the production org alias without explicit user instruction. - NEVER print, display, or store OAuth tokens, session IDs, or client secrets from
sf org display --verbose. - If a record ID, object type, or org alias is unfamiliar, look it up with a read-only
sf data queryfirst. - Always wrap SOQL queries in double quotes and use
LIMITwhen exploring unfamiliar data to avoid excessive result sets.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

