This handles switching your default Salesforce org when you're juggling multiple environments. It wraps the sf config set target-org command and defaults to local scope unless you explicitly ask for global, which is the right call since most people work in projects. It'll list your authenticated orgs if you don't provide an alias, then verifies the switch actually took. One thing to know: it can't tell you whether the config is local or global from the verification output, and environment variables will silently override whatever you set here. Solid for the common case of hopping between scratch orgs, sandboxes, and production without typing the same command twenty times a day.

skills.sh installs
3.7K
GitHub stars
1.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add forcedotcom/sf-skills --skill switching-org --agent claude-code

Installs into .claude/skills of the current project.

Files

This handles switching your default Salesforce org when you're juggling multiple environments. It wraps the sf config set target-org command and defaults to local scope unless you explicitly ask for global, which is the right call since most people work in projects. It'll list your authenticated orgs if you don't provide an alias, then verifies the switch actually took. One thing to know: it can't tell you whether the config is local or global from the verification output, and environment variables will silently override whatever you set here. Solid for the common case of hopping between scratch orgs, sandboxes, and production without typing the same command twenty times a day.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/forcedotcom/sf-skills
Categories
DevOps & CI/CD, Sales & Marketing, CLI & Terminal
First seen
Jun 3, 2026

More from forcedotcom/sf-skills

All 158
1cloudflare avatarbuilding-ai-agent-on-cloudflarecloudflare/skillsBuilds AI agents on Cloudflare using the Agents SDK with state management, real-time WebSockets, scheduled tasks, tool integration, and chat capabilities. Gener3.7Kskills.sh installs
2yaklang avatarmacos-security-bypassyaklang/hack-skillsmacOS security bypass playbook. Use when targeting macOS endpoints and need to bypass TCC, Gatekeeper, SIP, sandbox, code signing, or entitlement-based protecti3.7Kskills.sh installs
3dotnet avatartarget-authoringdotnet/skillsCanonical patterns for writing custom MSBuild targets. USE FOR: diagnosing and fixing custom target authoring anti-patterns; broken SDK target chains across fil3.7Kskills.sh installs
4dpearson2699 avatarshareplay-activitiesdpearson2699/swift-ios-skillsBuild shared real-time experiences using GroupActivities and SharePlay. Use when implementing shared media playback, collaborative app features, synchronized ga3.7Kskills.sh installs
5getsentry avatarsentry-sdk-setupgetsentry/sentry-for-aiSet up Sentry in any language or framework. Detects the user's platform and loads the right SDK skill. Use when asked to add Sentry, install an SDK, or set up e3.7Kskills.sh installs
6grafana avatark6-perf-test-websitegrafana/skillsUse when the user wants to performance-test, load-test, or stress-test a public website end-to-end with k6. Produces a hybrid (protocol + browser) test suite, S3.7Kskills.sh installs