sf-deploy

Automate Salesforce metadata and Apex deployments with sf CLI v2.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sf-cli, python, and includes scripts (resource) components.

What problem does it solve?

Managing Salesforce deployments, CI/CD pipelines, and metadata changes is complex, prone to errors, and requires careful orchestration. This Skill provides comprehensive automation for DevOps workflows, ensuring reliable and high-quality deployments.

Core Features & Use Cases

  • Deployment Management: Execute, validate, and monitor deployments for metadata, Apex, and LWC using sf CLI v2, with options for dry-runs and specific test levels.
  • Quality Assurance: Integrates automated testing, code coverage checks, and pre-production validation to maintain high code quality and prevent regressions.
  • Error Handling: Parses deployment failures, explains errors in plain language, suggests specific fixes, and provides rollback options if needed.
  • Use Case: Perform a dry-run validation of all metadata in your 'force-app' directory to your 'sandbox' org, then, upon successful validation, proceed with the actual deployment, running local tests to ensure stability.

Quick Start

Use the sf-deploy skill to perform a dry-run validation of all metadata in 'force-app' to your 'sandbox' org.

Frequently Asked Questions about sf-deploy

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

FAQPage Schema
How do I automate Salesforce metadata deployments in CI/CD pipelines?

Automate Salesforce metadata deployments using the sf CLI v2 to orchestrate validation, phased component deployment (objects, permission sets, flows, Apex), and post-deployment verification. The Skill handles dry-run validation, proper sequencing, and error handling to ensure production-safe releases within your CI/CD workflow.

Can I run a dry-run validation before deploying Salesforce metadata?

Yes. Execute a dry-run validation of metadata in your force-app directory to a sandbox org using the sf CLI v2 before proceeding with actual deployment. This pre-flight check prevents errors and confirms all components will deploy successfully without modifying your org.

What does Salesforce deployment automation cover beyond basic metadata changes?

Deployment automation covers metadata, Apex, flows, and related artifacts with integrated testing, code coverage checks, and pre-production validation. It includes error parsing that explains failures in plain language, suggests specific fixes, and provides rollback options if deployment fails.

How do I manage phased Salesforce deployments with proper component sequencing?

Orchestrate phased component deployment by deploying objects, permission sets, flows, and Apex in the correct sequence using sf CLI v2. The Skill enforces proper ordering and error handling to avoid dependency conflicts and ensure each phase completes successfully before the next begins.

Do I need to configure test levels for Salesforce deployment validation?

Yes. Specify test levels during deployment to run local tests and ensure code stability. The Skill integrates test execution into the deployment workflow, enabling you to enforce code coverage checks and validate quality before production release.

What happens if a Salesforce deployment fails during the workflow?

The Skill parses deployment failures, explains errors clearly, suggests specific remediation steps, and offers rollback options. Detailed error reporting helps you understand what went wrong and take corrective action without manual investigation.