#SalesforceSpring25 [Tip 38 of 40] - Create and Test Agents by Using Agentforce DX (Beta)

#1MinuteTip #SalesforceSpring25 Salesforce introduces the beta release of Agentforce DX — a set of pro-code tools that includes new Salesforce CLI commands and a Visual Studio Code (VS Code) extension. These tools enable you to create and test agents directly within a Salesforce DX project.

With Agentforce DX you can:

  • Generate YAML Spec Files—Use CLI commands to generate YAML spec files that describe agents and agent tests.

  • Create Agents and Agent Tests—Pass these spec files as inputs to CLI commands to create agents and agent tests in your development org.

  • Run Agent Tests—Execute agent tests and view the results from the VS Code testing panel or by running CLI commands.

  • Interact with Active Agents—Interact directly with active agents using a CLI command. (Developer Preview)


Product Area: Agentforce

The agent CLI commands are part of the @salesforce/plugin-agent Salesforce CLI plugin. Install the plugin from VS Code’s integrated terminal or from a terminal (macOS, Linux) or command prompt (Windows) with this command.

sf plugins install agent

References & Useful URLs



Found this tip helpful? Click ❤️ to let us know! Your feedback helps us create more tips like this that matter to you.