
Switching Org
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-codeInstalls 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 GitHubSponsors
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- Generating Ui Bundle Metadata3.7K
- Building Ui Bundle App3.7K
- Building Ui Bundle Frontend3.7K
- Generating Ui Bundle Features3.7K
- Deploying Ui Bundle3.6K
- Generating Ui Bundle Site3.6K
- Testing Agentforce3.6K
- Observing Agentforce3.6K
- Uplifting Components To Slds23.6K
- Searching Media3.6K
- Using Ui Bundle Salesforce Data3.6K
- Implementing Ui Bundle File Upload3.5K
- Implementing Ui Bundle Agentforce Conversation Client3.5K
- Creating B2b Commerce Store3.3K
- Generating Lwc Components3.1K
- Querying Soql3K
- Debugging Apex Logs3K
- Deploying Metadata3K
- Fetching Salesforce Docs3K
- Running Apex Tests3K
- Handling Sf Data2.9K
- Building Sf Integrations2.9K
- Generating Mermaid Diagrams2.8K
- Configuring Connected Apps2.8K