Skip to content
Documentation
Command

/setup-salesforce

Lesson command — Salesforce CLI (sf) セットアップ

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

Context preview

What this command does when you run it.

Lesson command — Salesforce CLI (sf) セットアップ

Command definition

setup-salesforce.md
description: "Lesson command — Salesforce CLI (sf) セットアップ"
duration: "約15分"
prerequisites: ["Salesforce CLI (sf) アカウント"]
level: "intermediate"
nonInteractiveMode: incompatible
tags: ["setup", "module-24"]

/setup-salesforce -- Salesforce CLI (sf) セットアップ

> Salesforce 組織を CLI から触る `sf` コマンド。Connected App は不要、ブラウザ OAuth で完結。

**ハイライト**: Connected App 不要・ブラウザ OAuth のみ

セットアップ手順

1. Salesforce CLI を pin install (npm 推奨) — `npm install -g @salesforce/cli@2.x`

2. Production 組織にログイン — `sf org login web --alias prod`

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

4. 接続確認 — `sf org list`

つまずきポイント

  • `sf` v1 (`sfdx`) と v2 (`sf`) はコマンド体系が異なる。v2 を使うこと
  • Sandbox は `--instance-url https://test.salesforce.com` を必ず付ける

非対話モード

ブラウザ OAuth が必須なので `claude -p` / `cursor-agent --print` では完走できません。対話モードで実行してください。

関連スライド

  • 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