You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
31
31
32
32
------------
33
33
34
+
* NEW: Link multiple connected apps in an org to an authenticated user, enabling Salesforce CLI commands to use these connected apps for API-specific requirements, like new OAuth scopes or JWT-based access tokens.
35
+
36
+
As a result of this new feature, the authentication flow to use the `agent preview` CLI command to interact with an agent is now much easier. Previously you had to create a new Salesforce username for each Agentforce agent you wanted to interact with, and then specify it with the `--connected-app-user` flag. Now you use the same username you normally authenticate with, then specify the link to the connected app with the new `--client-app` flag. The `agent preview` command is currently the only CLI command that requires this feature.
37
+
38
+
Let's see how this works. First, you create the link to a connected app by re-running the `org login web` command and using the `--client-id` flag to specify the connected app's consumer secret (also called _client id_). You also specify these new flags:
39
+
40
+
* `--client-app`: The name of the link to the connected app. You can specify any string you want.
41
+
* `--username`: The username of the authenticated user. This is the username you specified when you originally authorized your org with `org login web`.
42
+
* `--scopes`: The OAuth scopes required by the CLI command that is going to use the link.
43
+
44
+
In this example, the resulting link is called `agent-app` which you later use with the command that requires this connected app, such as `agent preview`.
45
+
46
+
```bash
47
+
sf org login web --client-app agent-app --username [email protected] --client-id 3MVG9XgkMlongstring --scopes "sfap_api chatbot_api refresh_token api web"
48
+
```
49
+
50
+
Then use the new `--client-app` flag of the `agent preview` command to specify the link to the connected app. For example:
51
+
52
+
```bash
53
+
sf agent preview --api-name "Resort_Manager" --client-app agent-app --target-org my-org
* NEW: We're happy to announce that the Source Mobility feature is now generally available (GA)! With this feature you can move source files within your local Salesforce DX project without the source-tracking feature thinking that you've deleted and then recreated a metadata component.
0 commit comments