The Trailblazer Community in Slack is now in Open Beta—join and connect in real time. [Join us in Slack]
Salesforce DX is a set of tools for building, testing, and shipping apps on the Salesforce Platform. The tools include Salesforce CLI, VS Code extensions, Agentforce Vibes IDE, DevOps Center, and developer environments like scratch orgs and sandboxes. Agentforce DX extends these tools to work with agents.
The Agentforce Builder UI and Testing Center let you create and test agents with clicks, not code. But a modern DevOps process requires storing agent source code in a version control system (VCS) so it becomes the source of truth for your production org. Agentforce DX makes that possible.
Agents are metadata, just like any other Salesforce customization. (For metadata types and structure, see Agentforce Metadata Types.) Agentforce DX provides CLI commands and a VS Code extension to create, preview, and test agents outside Agentforce Studio, and to move agent metadata between your DX project and your scratch orgs, sandboxes, and production orgs.
This guide shows you how to set up a Salesforce DX project and how to use Salesforce CLI and VS Code to author, preview, and test agents. While this guide doesn’t go into the details of coding an Apex class or creating a flow, we point you in the right direction, when necessary.
When you build an agent, you can switch between low-code tools, such as the Agentforce Builder or Flow Builder UIs in your org, and pro-code tools, such as VS Code and Salesforce CLI on your local computer. Using both types of tools gives you flexibility in the iterative process of building an agent. The main thing is to keep your Salesforce DX project in sync with your org.
Here’s a high-level example of how you can go back and forth between low- and pro-code tools as you iteratively build your agent. These steps don’t get into the details of execution. They’re intended to show that you have lots of options when developing agents.
After you’re ready to test your agent, you again have pro-code and low-code options. You can use VS Code and CLI commands, your org’s Agentforce Testing Center UI, or testing APIs.
Give us your feedback about Agentforce DX and report problems by entering an issue in our GitHub repository. Check out the discussion page to read about new features we’re considering, add your comments, and propose your own.
See Salesforce CLI Release Notes for Agentforce DX for release notes specific to Agentforce DX.
See Salesforce CLI Release Notes for the broader release notes for Salesforce CLI. Those release notes show details for the latest stable release and the next release candidate. They don’t include the changes for the sf agent commands.