Sf Cli Deployment
Automates Salesforce deployments using sf CLI commands, streamlining releases and reducing manual errors.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add sf-cli-deployment npx -- -y @trustedskills/sf-cli-deployment
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"sf-cli-deployment": {
"command": "npx",
"args": [
"-y",
"@trustedskills/sf-cli-deployment"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to interact with Salesforce orgs using the Salesforce CLI (SFDX). It can deploy changes from source control, retrieve metadata, and execute SFDX commands. This enables automation of common Salesforce development tasks directly within an agent's workflow.
When to use it
- Automated deployments: Deploy code changes to a Salesforce sandbox or production environment after successful testing.
- Metadata retrieval: Fetch specific Salesforce configuration data (e.g., Apex classes, custom objects) for analysis or reporting.
- Scratch org management: Create and manage temporary Salesforce environments ("scratch orgs") for development and testing purposes.
- Executing SFDX commands: Run any command supported by the Salesforce CLI to automate tasks like creating new components or updating existing ones.
Key capabilities
- Execute SFDX commands
- Deploy changes from source control
- Retrieve metadata from Salesforce orgs
- Manage scratch orgs
Example prompts
- "Deploy the latest version of my Apex class 'AccountHandler' to the Dev Hub."
- "Create a new scratch org with API version 58.0 and retrieve all custom object definitions."
- "Run
sfdx force:mdapi:retrievefor the component named 'MyCustomComponent'."
Tips & gotchas
- Requires the Salesforce CLI to be installed and configured on the system where the AI agent is running.
- Authentication with a Salesforce org is necessary; ensure appropriate credentials are available.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.