Salesforce CLI Release Notes for Agentforce DX
Here are the new and changed features for Agentforce DX (sf agent commands) in updates for Salesforce CLI.
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.
We publish a new stable version of Salesforce CLI on Wednesdays. At the same time, we also publish a release candidate that contains changes that are likely to appear in next week’s stable release. We also publish nightly releases every night.
Run sf version to show the version installed on your computer.
If you installed Salesforce CLI by using the installers or TAR files, run sf update stable to update to the latest available stable version. Run sf update stable-rc to update to this week’s release candidate and sf update nightly to update to the most recent nightly.
If you installed Salesforce CLI by using npm, run npm install @salesforce/cli@latest --global to install the latest stable version. Run npm install @salesforce/cli@latest-rc --global to install the release candidate and npm install @salesforce/cli@nightly --global to install the recent nightly.
For all installation methods, see Install Salesforce CLI to install an earlier release.
If you use autocomplete, run sf autocomplete --refresh-cache after you update Salesforce CLI to ensure that autocomplete works correctly on any new commands.
- Salesforce CLI Command Reference
- Salesforce DX Developer Guide
- Salesforce CLI Plugin Developer Guide
- Salesforce CLI Setup Guide
These changes are in the Salesforce CLI release candidate. We plan to include these changes in next week’s official release. This list isn’t final and is subject to change.
-
NEW: Specify where an agent came from when you publish an authoring bundle. Use the new
--source-typeflag with the valueBotwhen the agent was converted from an Einstein Bot. The value is applied on the first publish only. For example:(plugin-agent PR 516)
- NEW: Send typed context variables (
Boolean,Number,Object,List,Json) when you preview an agent, instead of onlyText. Previously, every value from--context-variableswas sent as text, so a boolean-gated route never opened. Use the new--context-variables-jsonflag withsf agent previewandsf agent preview start. For example:
(plugin-agent PR 483)
- NEW:
sf agent test resultsnow shows each test case’s inputs, latency, and token usage in human-readable output for Agentforce Studio test runs. For example:
(plugin-agent PR 481)
- FIX: Agentforce Studio scorer status comparison is now case-insensitive, which improves test result accuracy. (plugin-agent PR 492)
- FIX:
sf agent test run --waitnow reports an in-progress status when the wait times out. (plugin-agent PR 477)