Salesforce Service Automation CLI Plugin Command Reference
The sf section contains information about the sf-style commands, which became generally available in July 2023. See this developer blog post for more information about Salesforce CLI sf (v2).
Getting Started
Service automation transforms manual tasks into orchestrated workflows—from intake forms to fulfillment—delivering consistency, scalability, and speed. A Service Process combines Data (records) and Metadata (code and configuration). Migrating a process from Sandbox to Production typically requires manual export and deployment of interdependent components—an error-prone and time-consuming approach that can compromise tested configurations.
This plugin automates the extraction and deployment of Service Process, ensuring faster, safer deployments where the validated golden copy is exactly what reaches Production.Supported Metadata Types
- Service Process Attributes (anchor, custom, content)
- Intake Flow
- Fulfillment Flow
- Preprocessor (Apex class must already exist in the target org)
Prerequisite: All other dependencies (for example, Apex used in flows, Unified Catalog content definition whitelisting) must already exist in the target org.
Before You Begin
- Install and authenticate the Salesforce CLI.
- Ensure your target org supports the Service Process API (minimum API version 66.0).
Install the Plugin
Use this command to install the plugin.
1sf plugins install @salesforce/plugin-service-automationUse this command to install a specific version.
1sf plugins install @salesforce/plugin-service-automation@x.y.zRun the Plugin
After installation, use the sf service-process topic:
1# List Service Processes in an org
2sf service-process list -o YOUR_ORG_ALIAS
3
4# Retrieve a Service Process zip to an org
5sf service-process retrieve -i 0SPxx0000008ABC -o devSandbox -d ./sp-artifacts
6
7# Deploy a retrieved Service Process zip to an org
8sf service-process deploy -z ./service-process.zip -o prod