<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Exploring Agentforce</title>
    <description>The latest articles on DEV Community by Exploring Agentforce (@exploring_agentforce).</description>
    <link>https://dev.to/exploring_agentforce</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3961233%2F6a49a1b5-2ebe-4fac-89d9-748c0ce2abc0.png</url>
      <title>DEV Community: Exploring Agentforce</title>
      <link>https://dev.to/exploring_agentforce</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/exploring_agentforce"/>
    <language>en</language>
    <item>
      <title>How to Quickly Scaffold and Deploy a React App on Salesforce</title>
      <dc:creator>Exploring Agentforce</dc:creator>
      <pubDate>Tue, 18 Aug 2026 08:32:20 +0000</pubDate>
      <link>https://dev.to/exploring_agentforce/how-to-quickly-scaffold-and-deploy-a-react-app-on-salesforce-1cjj</link>
      <guid>https://dev.to/exploring_agentforce/how-to-quickly-scaffold-and-deploy-a-react-app-on-salesforce-1cjj</guid>
      <description>&lt;p&gt;Salesforce provides CLI templates that can quickly scaffold a React application with a ready-to-run React/Vite setup.&lt;/p&gt;

&lt;p&gt;There are two approaches:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Generate a &lt;strong&gt;complete SFDX project&lt;/strong&gt; with an internal React app.&lt;/li&gt;
&lt;li&gt;Generate a &lt;strong&gt;React UI Bundle&lt;/strong&gt; inside an existing SFDX project.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Both give you React boilerplate that you can run, explore, customize, and deploy. The main difference is how much Salesforce setup is included and what you need to do before the app is available in the org.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;p&gt;You'll need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;VS Code&lt;/li&gt;
&lt;li&gt;Salesforce CLI (&lt;code&gt;sf&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Salesforce Extension Pack&lt;/li&gt;
&lt;li&gt;A Salesforce org, such as a Trailhead Playground&lt;/li&gt;
&lt;li&gt;Node.js&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Check the CLI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sf &lt;span class="nt"&gt;--version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check your connected orgs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sf org list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Set your default org:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sf config &lt;span class="nb"&gt;set &lt;/span&gt;target-org&lt;span class="o"&gt;=&lt;/span&gt;my-org
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Option 1: Generate a complete SFDX project
&lt;/h2&gt;

&lt;p&gt;If you're starting from scratch, you can generate a complete project using the &lt;code&gt;reactinternalapp&lt;/code&gt; template:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sf template generate project &lt;span class="nt"&gt;--name&lt;/span&gt; my-react-app &lt;span class="nt"&gt;--template&lt;/span&gt; reactinternalapp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This creates a new Salesforce DX project with the React application and the Salesforce metadata needed for an internal React app.&lt;/p&gt;

&lt;p&gt;Install the dependencies and start the React app locally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd &lt;/span&gt;my-react-app
npm &lt;span class="nb"&gt;install
&lt;/span&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You now have a prebuilt React application that you can explore and modify.&lt;/p&gt;

&lt;h3&gt;
  
  
  Deploying the project
&lt;/h3&gt;

&lt;p&gt;From the project root:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sf project deploy start &lt;span class="nt"&gt;--source-dir&lt;/span&gt; force-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After deployment, assign the generated permission set to your user if required by the generated project - app appears in the App Launcher.&lt;/p&gt;

&lt;p&gt;The advantage of this approach is that Salesforce gives you a more complete starting point. You're starting with an application rather than just a UI Bundle.&lt;/p&gt;




&lt;h2&gt;
  
  
  Option 2: Generate a React UI Bundle
&lt;/h2&gt;

&lt;p&gt;This approach is useful when you &lt;strong&gt;already have an SFDX project&lt;/strong&gt; and want to add a React application to it.&lt;/p&gt;

&lt;p&gt;From the root of your existing project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sf template generate ui-bundle &lt;span class="nt"&gt;--name&lt;/span&gt; ReactDemo &lt;span class="nt"&gt;--template&lt;/span&gt; reactbasic
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The bundle is created under:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;force-app/
└── main/
    └── default/
        └── uiBundles/
            └── ReactDemo/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Inside you'll find the React application. &lt;/p&gt;

&lt;p&gt;Install the dependencies and run locally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd &lt;/span&gt;force-app/main/default/uiBundles/ReactDemo
npm &lt;span class="nb"&gt;install
&lt;/span&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This gives you the same basic experience you'd expect from a modern React/Vite application: start with working boilerplate and then build on top of it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Deploying the UI Bundle
&lt;/h3&gt;

&lt;p&gt;Go back to the SFDX project root and deploy the bundle:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sf project deploy start &lt;span class="nt"&gt;--source-dir&lt;/span&gt; force-app/main/default/uiBundles/ReactDemo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;However, this is where the two approaches differ. The &lt;code&gt;reactbasic&lt;/code&gt; UI Bundle gives you the React application itself, but you need additional Salesforce metadata to expose it as an internal application:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A &lt;code&gt;CustomApplication&lt;/code&gt; under &lt;code&gt;force-app/main/default/applications/&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;A reference from the application to the UI Bundle&lt;/li&gt;
&lt;li&gt;A permission set that makes the application visible&lt;/li&gt;
&lt;li&gt;Assignment of that permission set to your user&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once that setup is deployed and the permission set is assigned, the React application becomes available through the Salesforce App Launcher.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which approach should you use?
&lt;/h2&gt;

&lt;p&gt;If you're starting a &lt;strong&gt;new Salesforce project&lt;/strong&gt;, the complete project template is the easier starting point. If you already have a Salesforce DX project and want to add React to it, use the UI Bundle.&lt;/p&gt;

&lt;p&gt;Both approaches solve the same basic problem: &lt;strong&gt;get a working React application scaffolded quickly so you can start exploring and developing. **The difference is **where you start&lt;/strong&gt; and &lt;strong&gt;how much Salesforce setup you have to do yourself&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>salesforce</category>
      <category>react</category>
      <category>sfdx</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Retrieve and Deploy AgentScript with Salesforce CLI</title>
      <dc:creator>Exploring Agentforce</dc:creator>
      <pubDate>Sun, 07 Jun 2026 19:54:04 +0000</pubDate>
      <link>https://dev.to/exploring_agentforce/how-to-retrieve-and-deploy-agentscript-with-salesforce-cli-2lh8</link>
      <guid>https://dev.to/exploring_agentforce/how-to-retrieve-and-deploy-agentscript-with-salesforce-cli-2lh8</guid>
      <description>&lt;p&gt;With Salesforce CLI, you can &lt;strong&gt;retrieve AgentScript metadata&lt;/strong&gt; into a DX project, work with it locally in VS Code, and &lt;strong&gt;deploy changes back to your org&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prerequisites
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;VS Code&lt;/li&gt;
&lt;li&gt;Salesforce CLI&lt;/li&gt;
&lt;li&gt;Salesforce DX Extensions&lt;/li&gt;
&lt;li&gt;Agentforce org connected to Salesforce CLI (you can also connect &lt;strong&gt;Trailhead playground org&lt;/strong&gt;, see &lt;a href="https://dev.to/exploring_agentforce/how-to-connect-trailhead-org-to-salesforce-cli-2o07"&gt;this connection guide&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Step 1. Create a DX Project
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sf project generate &lt;span class="nt"&gt;--name&lt;/span&gt; agentforce-demo
&lt;span class="nb"&gt;cd &lt;/span&gt;agentforce-demo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2. Authenticate to Your Org
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
sf org login web &lt;span class="nt"&gt;--alias&lt;/span&gt; my-agentforce-org &lt;span class="nt"&gt;--instance-url&lt;/span&gt; https://your-org-name.develop.my.salesforce.com

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verify the connection:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
sf org list

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Set the default org:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
sf config &lt;span class="nb"&gt;set &lt;/span&gt;target-org my-agentforce-org

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 3: Find the Agent Name
&lt;/h3&gt;

&lt;p&gt;To retrieve AgentScript metadata, you need the &lt;strong&gt;agent name&lt;/strong&gt;. There are several ways to find it.&lt;/p&gt;

&lt;h4&gt;
  
  
  Option 1: Agentforce Builder
&lt;/h4&gt;

&lt;p&gt;Open your agent in the new Agentforce Builder, and in the &lt;strong&gt;Agent Definition&lt;/strong&gt; view find your agent Developer Name&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbnx7naecodzghcqvbr8q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbnx7naecodzghcqvbr8q.png" alt=" " width="626" height="193"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Option 2: View Agents with Salesforce CLI
&lt;/h4&gt;

&lt;p&gt;If an agent has at least one published version, it appears as &lt;strong&gt;Bot metadata&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
sf org list metadata &lt;span class="nt"&gt;--metadata-type&lt;/span&gt; Bot

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Full Name
------------------
CC_Service_Agent
Sales_Agent
Support_Agent
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: This command only lists agents &lt;strong&gt;that have a published version&lt;/strong&gt;. Draft-only agents may not appear.&lt;/p&gt;

&lt;h4&gt;
  
  
  Option 3: List AgentScript Bundles
&lt;/h4&gt;

&lt;p&gt;You can also list AgentScript bundles directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
sf org list metadata &lt;span class="nt"&gt;--metadata-type&lt;/span&gt; AiAuthoringBundle

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Full Name
------------------
CC_Service_Agent
CC_Service_Agent_1
CC_Service_Agent_2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command will list &lt;strong&gt;all versions of all agents your org&lt;/strong&gt; (draft and published).&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Retrieve AgentScript Metadata
&lt;/h3&gt;

&lt;p&gt;Retrieve a specific agent:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
sf project retrieve start &lt;span class="nt"&gt;--metadata&lt;/span&gt; AiAuthoringBundle:Your_Agent_Name

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For example: if your agent Developer Name is "My_Agent", the command will look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
sf project retrieve start &lt;span class="nt"&gt;--metadata&lt;/span&gt; AiAuthoringBundle:My_Agent

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Retrieved metadata is stored in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;force-app/
└── main/
    └── default/
        └── aiAuthoringBundles/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The bundle contains the AgentScript configuration used by Agentforce Builder.&lt;/p&gt;




&lt;h3&gt;
  
  
  Step 5: Deploy Changes Back to the Org
&lt;/h3&gt;

&lt;p&gt;After making changes locally deploy them back to the org:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
sf project deploy start &lt;span class="nt"&gt;--metadata&lt;/span&gt; AiAuthoringBundle:Your_Agent_Name

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  Important: Draft vs Published Agents
&lt;/h3&gt;

&lt;p&gt;⚠️ One detail that is not immediately obvious when working with Agentforce: only &lt;strong&gt;draft agents can be deployed&lt;/strong&gt;, &lt;strong&gt;committed&lt;/strong&gt; (published) agents are &lt;strong&gt;immutable&lt;/strong&gt;. To deploy changes, first open Agentforce Studio and create a draft version of your agent, then you can deploy changes from VS Code. If you try to deploy to committed agent, you'll get an error message.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;Draft Agent&lt;/th&gt;
&lt;th&gt;Published Agent&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Retrieve&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Inspect&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Edit Locally&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deploy Changes&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In practice, this means you can retrieve metadata from both draft and published agents, but deployment targets a draft version managed in Agentforce Builder.&lt;/p&gt;




&lt;p&gt;Using &lt;strong&gt;Salesforce CLI&lt;/strong&gt; makes it much easier to inspect AgentScript metadata, use &lt;strong&gt;version control&lt;/strong&gt;, and work with Agentforce in a &lt;strong&gt;development workflow&lt;/strong&gt; instead of only through the browser.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Useful links&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Connect a Trailhead Org to Salesforce CLI &lt;a href="https://dev.to/exploring_agentforce/how-to-connect-trailhead-org-to-salesforce-cli-2o07"&gt;guide&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Read more in the &lt;a href="https://developer.salesforce.com/docs/ai/agentforce/guide/agent-dx-deploy-metadata.html" rel="noopener noreferrer"&gt;official documentation&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>agentforce</category>
      <category>sfdx</category>
      <category>agentscript</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Connect a Trailhead Org to Salesforce CLI</title>
      <dc:creator>Exploring Agentforce</dc:creator>
      <pubDate>Sun, 31 May 2026 14:45:05 +0000</pubDate>
      <link>https://dev.to/exploring_agentforce/how-to-connect-trailhead-org-to-salesforce-cli-2o07</link>
      <guid>https://dev.to/exploring_agentforce/how-to-connect-trailhead-org-to-salesforce-cli-2o07</guid>
      <description>&lt;h2&gt;
  
  
  Take Trailhead Learning beyond the browser
&lt;/h2&gt;

&lt;p&gt;Salesforce &lt;strong&gt;Trailhead&lt;/strong&gt; is a great way to learn &lt;strong&gt;Agentforce&lt;/strong&gt;. You can &lt;strong&gt;level up this experience&lt;/strong&gt; by connecting your Trailhead org to Salesforce CLI and working with AgentScript metadata locally in VS Code. Here’s a &lt;strong&gt;quick setup&lt;/strong&gt; flow for connecting a Trailhead Agentforce org to Salesforce CLI 👇&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;:&lt;br&gt;
• VS Code&lt;br&gt;
• Salesforce CLI installed&lt;br&gt;
• Trailhead org with Agentforce enabled&lt;/p&gt;
&lt;h4&gt;
  
  
  Step 1. Open your Trailhead org
&lt;/h4&gt;

&lt;p&gt;Launch the Trailhead playground or developer org that you want to connect.&lt;/p&gt;
&lt;h4&gt;
  
  
  Step 2. Find your username
&lt;/h4&gt;

&lt;p&gt;Profile → Settings&lt;/p&gt;
&lt;h4&gt;
  
  
  Step 3. Set password (if not set already)
&lt;/h4&gt;

&lt;p&gt;Settings → Change My Password&lt;/p&gt;
&lt;h4&gt;
  
  
  Step 4. Connect org via CLI
&lt;/h4&gt;

&lt;p&gt;Authenticate via browser, setting up alias for the org and providing your Trailhead org url:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
&lt;span class="c"&gt;# Authenticate with your Trailhead org&lt;/span&gt;

sf org login web &lt;span class="nt"&gt;--alias&lt;/span&gt; your-org-alias &lt;span class="nt"&gt;--instance-url&lt;/span&gt; https://your-org-name.develop.my.salesforce.com

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Step 5. Verify connection
&lt;/h4&gt;

&lt;p&gt;Confirm that the org was added successfully:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
sf org list

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Step 6. Set the default org
&lt;/h4&gt;

&lt;p&gt;To avoid specifying the org in every command, set it as the default target:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
sf config &lt;span class="nb"&gt;set &lt;/span&gt;target-org your-org-alias

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: Use the Correct Login URL&lt;/p&gt;

&lt;p&gt;Trailhead org URLs used for login usually look like:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;https://your-org-name.develop.my.salesforce.com&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NOT&lt;/strong&gt;:&lt;br&gt;
• &lt;code&gt;login.salesforce.com&lt;/code&gt;&lt;br&gt;
• &lt;code&gt;develop.lightning.force.com&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Once connected, you can &lt;strong&gt;retrieve AgentScript metadata&lt;/strong&gt; locally in VS Code, experiment faster, and work with Agentforce in a more &lt;strong&gt;development-oriented workflow&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>agentforce</category>
      <category>trailhead</category>
      <category>sfdx</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
