sf-cli

Automates Salesforce DX workflows via the sf CLI for authentication, deployments, and metadata operations.

Updated Apr 27, 2026
One-click install
npx skills add https://github.com/tomz/agent-skills --skill sf-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-cli
Source: https://github.com/tomz/agent-skills/tree/main/sf-cli
Command: npx skills add https://github.com/tomz/agent-skills --skill sf-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Salesforce CLI (sf) provides a unified command-line interface to manage authentication, scratch org lifecycles, deployments, metadata, and project scaffolding for Salesforce development.

Core Features & Use Cases

  • Authentication and org management: login, view org details, and switch targets.
  • Scratch org lifecycle, deployments, and packaging: provisioning, deploying metadata, and tracking changes.
  • Project structure and CI/CD readiness: DX-compliant projects and automation-friendly workflows.
  • Metadata API interactions and sandbox management: leverage metadata API operations from the CLI.

Quick Start

Install the Salesforce CLI, authenticate to an org, and create a scratch org to begin development.

Frequently Asked Questions about sf-cli

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

FAQPage Schema
How do I automate Salesforce scratch org management and deployments in a CI/CD pipeline?

Salesforce scratch org management and deployments are automated through the sf CLI, which provides a unified interface for authentication, provisioning, deploying metadata, and tracking changes across CI/CD workflows.

What is the best way to authenticate and manage Salesforce orgs from the command line?

The best way to authenticate and manage Salesforce orgs is using the sf CLI to execute login flows, view org details, and switch target environments for DX-compliant project development.

Can I deploy metadata using the Salesforce Metadata API through a command-line interface?

Yes, you can deploy metadata by leveraging the Salesforce Metadata API directly through sf CLI operations, enabling automated metadata deployment and sandbox management from the command line.

Do I need a DX-compliant project structure to start Salesforce development with the CLI?

Yes, a DX-compliant project structure is required to scaffold Salesforce development properly, allowing the sf CLI to manage scratch org lifecycles, project configuration, and packaging effectively.

Does sf CLI support packaging and tracking metadata changes across multiple Salesforce projects?

Yes, sf CLI supports packaging and tracking metadata changes across multiple Salesforce projects by managing scratch org lifecycles, deployments, and project configuration for development teams.