Skip to content
Documentation
Command

/setup-salesforce.en

Lesson command — Salesforce CLI (sf) setup

From plugin
ai-agent-camp
345200 skills8 agents200 commands
Install
$ npx -y skills add minicoohei/ai-agent-camp --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/setup-salesforce.en

Context preview

What this command does when you run it.

Lesson command — Salesforce CLI (sf) setup

Command definition

setup-salesforce.en.md
description: "Lesson command — Salesforce CLI (sf) setup"
duration: "~15 min"
prerequisites: ["Salesforce CLI (sf) account"]
level: "intermediate"
nonInteractiveMode: incompatible
tags: ["setup", "module-24"]

/setup-salesforce -- Salesforce CLI (sf) setup

> Drive Salesforce orgs from the `sf` CLI. No Connected App — browser OAuth is enough.

**Highlight**: No Connected App — browser OAuth only

Setup steps

1. Install Salesforce CLI (pinned, npm preferred) — `npm install -g @salesforce/cli@2.x`

2. Sign in to Production — `sf org login web --alias prod`

3. For Sandbox — `sf org login web --alias dev --instance-url https://test.salesforce.com`

4. Verify — `sf org list`

Gotchas

  • `sf` v1 (`sfdx`) and v2 (`sf`) have different commands — use v2
  • Always pass `--instance-url https://test.salesforce.com` for Sandbox

Non-interactive mode

Browser OAuth is mandatory — cannot complete under `claude -p` / `cursor-agent --print`. Re-run in interactive mode.

Related slides

  • aiagent-course Module 24: see slide deck for the full visual walkthrough
Ships withai-agent-camp

AI Agent Training for Non-Engineers - Complete Guide to Claude Code / Cursor / Codex ### ⚠️ Before you clone Official repository (maintained by the authors): Running AI agents from this repo grants them shell, file-write, and external-API permissions on your

Get the whole plugin