Skip to content
Documentation
Command

/setup-salesforce

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

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

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
@minicoohei
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

345101 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
345
Star history of minicoohei/ai-agent-camp on GitHub, a chart by star-history.com

Other commands on ai-agent-camp.

More commands from other plugins.