Switches the active Salesforce org (default target-org) using the Salesforce CLI. Use whenever someone wants to change which org CLI commands run against — whether they say "switch org", "change default org", "set my org to", "use alias", "point to", or describe wanting to work against a specific org, scratch org, sandbox, or production.
Install
npx skills add forcedotcom/sf-skills --skill dx-org-switchnpx skills add forcedotcom/sf-skills --skill dx-org-switch -a claude-code -gnpx skills add forcedotcom/sf-skills --skill dx-org-switch -a codex -ggemini skills install https://github.com/forcedotcom/sf-skills.git --path skills/dx-org-switchgh skill install forcedotcom/sf-skills dx-org-switchgit clone --depth 1 https://github.com/forcedotcom/sf-skills /tmp/forcedotcom__sf-skills
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/forcedotcom__sf-skills/skills/dx-org-switch ~/.claude/skills/dx-org-switch # Claude Code
cp -R /tmp/forcedotcom__sf-skills/skills/dx-org-switch ~/.agents/skills/dx-org-switch # Codex, Cursor, Gemini CLI, Copilot, OpenCode