/setup-salesforce
Lesson command — Salesforce CLI (sf) セットアップ
$ npx -y skills add minicoohei/ai-agent-camp --agent claude-codeHow 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.mddescription: "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
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
Other commands on ai-agent-camp.
- /check-setup.en
Top-level alias — see lesson/check-setup.en.md for the full body.
Open command - /check-setup.es
Alias de nivel superior — el cuerpo completo está en lesson/check-setup.es.md.
Open command - /check-setup
Top-level alias — see lesson/check-setup.md for the full body.
Open command - /check-security.en
Lesson command
Open command - /check-security.es
Lesson command
Open command - /check-security
Lesson command
Open command

