
Switching Org
This handles switching your default Salesforce org via the sf CLI, whether you're moving between scratch orgs, sandboxes, or production. It sets target-org locally by default (scoped to your current project) or globally if you explicitly ask for it. The skill will list your authenticated orgs if you don't specify one, runs the config set command, and verifies the change. One thing to know: if your org doesn't switch after setting it, check for the SF_TARGET_ORG environment variable since that overrides config values. Straightforward automation for something you probably do multiple times a day during Salesforce development.
- skills.sh installs
- 1.5K
- GitHub stars
- 705
- last updated
- Jul 14, 2026
Install
$ npx -y skills add forcedotcom/afv-library --skill switching-org --agent claude-codeInstalls into .claude/skills of the current project.
Files
This handles switching your default Salesforce org via the sf CLI, whether you're moving between scratch orgs, sandboxes, or production. It sets target-org locally by default (scoped to your current project) or globally if you explicitly ask for it. The skill will list your authenticated orgs if you don't specify one, runs the config set command, and verifies the change. One thing to know: if your org doesn't switch after setting it, check for the SF_TARGET_ORG environment variable since that overrides config values. Straightforward automation for something you probably do multiple times a day during Salesforce development.
Browse the repository on GitHubSponsors
Details
- Repository
- github.com/forcedotcom/afv-library
- First seen
- May 16, 2026
More from forcedotcom/afv-library
All 58- Testing Agentforce1.5K
- Uplifting Components To Slds21.5K
- Using Ui Bundle Salesforce Data1.5K
- Creating B2b Commerce Store1.4K
- Generating Lwc Components541
- Querying Soql540
- Developing Datacloud Code Extension539
- Fetching Salesforce Docs537
- Getting Datacloud Schema536
- Deploying Metadata534
- Debugging Apex Logs532
- Handling Sf Data532
- Generating Mermaid Diagrams531
- Generating Visual Diagrams531
- Running Apex Tests531
- Configuring Connected Apps526
- Building Sf Integrations523
- Retrieving Datacloud523
- Activating Datacloud522
- Harmonizing Datacloud520
- Connecting Datacloud519
- Orchestrating Datacloud519
- Preparing Datacloud519
- Segmenting Datacloud518