For AI agents and developers: machine-readable getting-started guide and automated Salesforce org setup (/llms.txt).

Setting Up Cursor for Agentforce

Getting Started with Cursor

Cursor is an AI-first code editor built on VS Code. Follow these steps to set up Agentforce development in Cursor.

1. Install Cursor

Open Cursor and sign in to your account.

2. Install the Salesforce CLI & Connect Your Org

Open Cursor's integrated terminal (Ctrl+`) and install the Salesforce CLI:

Verify the installation:

Run this command:

1
sf --version

Expected output: @salesforce/cli/

Authenticate Your Org

Copy the command below and run it in your terminal to authenticate the Salesforce CLI with your org:

Verify your org connection:

Run this command:

1
sf org display user

Expected output: Your org username and alias

3. Install Salesforce Skills & Start Building

Choose a skills library to install. Each provides Salesforce development knowledge via the Agent Skills open standard. Compare all options.

Start Building

Copy and paste this prompt into Cursor's chat (Cmd+L). Optionally enter a project and agent name below; if you leave it blank, the prompt uses "ExampleName".

What Happens Next

After you paste the prompt, Cursor will use the installed agentforce-adlc skills:

  1. Discover: Retrieve your agent, parse subagents and actions, validate targets exist in the org
  2. Scaffold: Generate real backing actions (Flows/Apex) for every subagent, no stubs or mocks
  3. Deploy: Validate bundle, deploy metadata, publish and activate the agent
  4. Test & Optimize: Run evaluation tests, analyze traces, fix issues, and iterate until quality is good

Tips

  • Be specific about scope: "Handle order status and returns" beats "Customer support"
  • Say what it should NOT do: "Does NOT handle billing questions or account changes"
  • Mention verification needs: "Verify identity before showing account details"
  • Include state tracking: "Track the order number across conversation turns so the customer doesn't have to repeat it"