Lightlines
By forcedotcom

dx-org-switch

forcedotcom5.6k installs

Switch the Salesforce org your commands use.

What it does

Changes the default Salesforce org so CLI commands run against the org the user selects.

When to use it

Use when the user wants to change the org targeted by Salesforce CLI commands.

How to use it

Give it an org username or alias, or ask it to show authenticated orgs; it sets and verifies the CLI default.

Uses

Good to know

  • cannot be undone: Salesforce CLI config

Latest review

What you need · 2

Requires Salesforce CLI version 2.0.0 or later.

Requires an authenticated Salesforce org to select; if authorization is missing, it suggests logging in.


Access · 3

This skill

Salesforce CLI config

Write

Changes your global default org (irreversible)

authenticated Salesforce orgs

Read

Lists your authenticated Salesforce orgs