sf-deployment

Orchestrate Salesforce metadata deployments with sf project deploy commands.

423|97|Updated Nov 30, 2025
One-click install
npx skills add https://github.com/Jaganpro/claude-code-sfskills --skill sf-deployment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-deployment
Source: https://github.com/Jaganpro/claude-code-sfskills/tree/main/skills/sf-deployment
Command: npx skills add https://github.com/Jaganpro/claude-code-sfskills --skill sf-deployment

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Salesforce deployments are complex, time-consuming, and prone to errors, especially when managing multiple environments, running tests, and setting up CI/CD. This skill automates these intricate DevOps tasks, reducing manual effort and ensuring reliable, consistent deployments.

Core Features & Use Cases

  • Full Deployment Automation: Seamlessly deploy metadata, run tests, and validate changes across sandboxes and production.
  • CI/CD Pipeline Setup: Generate and configure automated deployment workflows for GitHub Actions, GitLab CI, or Jenkins.
  • Intelligent Troubleshooting: Analyze deployment failures, suggest fixes, and guide through rollback strategies.
  • Use Case: "Deploy the force-app directory to my production org with all tests." The skill will handle validation, test execution, deployment, and provide a detailed report, saving hours of manual CLI commands and error debugging.

Quick Start

Deploy my Salesforce metadata to the sandbox.

Frequently Asked Questions about sf-deployment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Salesforce metadata deployments to production?

Automate Salesforce metadata deployments using sf CLI v2 project deploy commands, which orchestrate validation, test execution, and phased component sequencing. The skill handles metadata promotion across sandboxes and production with error handling and deployment reports.

Can I set up CI/CD pipelines for Salesforce deployments?

Yes. Generate and configure automated deployment workflows for GitHub Actions, GitLab CI, or Jenkins using sf CLI v2 commands. The skill manages component sequencing, validates deployments with dry-run, and monitors progress across environments.

What's the best way to troubleshoot Salesforce deployment failures?

Analyze deployment errors using sf CLI v2 diagnostic output, review deployment reports for component-level failures, and apply rollback strategies. The skill guides intelligent troubleshooting by identifying sequencing issues, FLS conflicts, and test failures.

Does this work with scratch orgs and sandbox environments?

Yes. The skill manages scratch org creation, metadata deployment, and sandbox promotion using sf CLI v2 workflows. It handles validation deployments with dry-run testing before production promotion.

How do I ensure components deploy in the correct order?

The skill enforces phased execution and component sequencing—objects and fields deploy before permission sets, flows before activation. This prevents dependency errors and ensures Field-Level Security (FLS) awareness during deployment.

Can I validate deployments without executing them?

Yes. Use dry-run validation with sf CLI v2 to test deployments, run test suites, and generate reports before committing changes. The skill validates metadata and catches errors without modifying the target org.