switching-org

Switch and configure Salesforce orgs using Salesforce CLI.

Updated May 19, 2026
One-click install
npx skills add https://github.com/dmckeeSF/mcpdctn0507 --skill switching-org-dmckeesf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: switching-org
Source: https://github.com/dmckeeSF/mcpdctn0507/tree/main/.agents/skills/switching-org
Command: npx skills add https://github.com/dmckeeSF/mcpdctn0507 --skill switching-org-dmckeesf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of navigating between multiple Salesforce orgs, ensuring you can quickly and efficiently target the correct org for your Salesforce CLI commands.

Core Features & Use Cases

  • Org Switching: Switch the active Salesforce org using username or alias, supporting both local and global scope.
  • Default Org Configuration: Set a default org for project-specific or system-wide operations.
  • Org List: List authenticated orgs to manually select if the target org is not specified.
  • Error Handling: Error reports and guidance to resolve issues during org switching.

Quick Start

Use the switching-org skill to set your default org to 'salesorg123' by typing: use org salesorg123.

Frequently Asked Questions about switching-org

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I switch between Salesforce orgs using the Salesforce CLI?

You can switch the active Salesforce org using the Salesforce CLI by providing the target username or alias. This sets the correct org context for your subsequent CLI commands and configurations.

How do I set a default org for Salesforce CLI commands?

To set a default org for Salesforce CLI operations, specify the desired username or alias. You can configure this for project-specific local scope or system-wide global scope.

How can I list authenticated Salesforce orgs to select one manually?

You can list your authenticated Salesforce orgs to manually select a target. This displays all available orgs, helping you identify and switch to the correct environment when it is not explicitly specified.

Does Salesforce CLI org switching support both local and global configuration scope?

Yes, Salesforce CLI org switching supports both local and global scope. This allows you to set a default org for project-specific operations or configure it system-wide for all CLI commands.

What should I do if I encounter errors while switching Salesforce orgs?

If you encounter errors during Salesforce org switching, the tool provides error reports and guidance. This feedback helps you resolve authentication or configuration issues affecting the targeted org.