Set Up Your DX Environment
Preview and Debug an Agent
Manage an Agent
Troubleshoot Issues
Reference
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 Agent Metadata: A Shallow Dive.) 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.
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 and is all part of 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 are generic and simple. They’re meant 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.
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.
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.
We release new versions of Salesforce CLI and its core plugins weekly. Read the weekly release notes to learn about recent and upcoming changes, including changes to Agentforce DX CLI commands and VS Code extensions.