sf-cli-deployment

Automate Salesforce deployments with the modern sf CLI.

6|6|Updated Nov 16, 2025
One-click install
npx skills add https://github.com/david-sfdev/claude-sf-skills --skill sf-cli-deployment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-cli-deployment
Source: https://github.com/david-sfdev/claude-sf-skills/tree/main/sf-cli-deployment
Command: npx skills add https://github.com/david-sfdev/claude-sf-skills --skill sf-cli-deployment

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill prevents common deployment errors and streamlines the iterative development cycle by providing expert guidance on using the modern Salesforce CLI (sf) for deployments, testing, and org management.

Core Features & Use Cases

  • Deployment Command Safety: Prevents the critical mistake of using deploy start to check status, ensuring you use the correct report and resume commands.
  • Apex Test Management: Provides intelligent prompts for test execution levels, helping you balance speed and validation during development.
  • Development Workflow: Optimizes the code-deploy-test loop for LWC and Apex, including built-in time estimates and cancellation support for long-running operations.

Quick Start

Use the sf-cli-deployment skill to deploy your current source directory to the default org and run only the necessary tests.

Frequently Asked Questions about sf-cli-deployment

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

FAQPage Schema
How do I deploy Salesforce source code to a sandbox using the sf CLI?

You can optimize the deploy-test loop for LWC and Apex by using the modern Salesforce CLI to deploy code to scratch orgs or sandboxes, applying built-in time estimates and cancellation support for long-running operations.

Why does my Salesforce CLI deploy start command fail to check the deployment status?

The skill prevents common deployment errors by enforcing correct usage of report and resume commands for status monitoring, rather than incorrectly using deploy start to check deployment progress.

How do I manage Apex test execution levels during a Salesforce deployment?

You can balance speed and validation during development by applying intelligent prompts for Apex test execution levels, ensuring you run only the necessary tests during your deployment workflow.

Can I use the sf CLI to deploy LWC and Apex components to scratch orgs?

The modern sf CLI supports iterative coding cycles for LWC, Apex, and custom metadata in scratch orgs, streamlining the code-deploy-test loop and preventing common deployment errors.

What is the best way to handle long-running Apex test deployments in Salesforce?

Handling long-running operations involves optimizing the code-deploy-test loop with built-in time estimates and cancellation support, ensuring development efficiency during iterative coding cycles.