Forrest logo
back to the sfdx tool

sfdx:tldr:cd438

sfdx: List all authorized organizations.
$ sfdx force:org:list
try on your machine

The command "sfdx force:org:list" is a Salesforce CLI (Command Line Interface) command used to list the authenticated Salesforce orgs that are associated with your Salesforce CLI.

When you run this command, it will display a table listing information about each authenticated org. This information typically includes the alias, username, org ID, and the status of the org (whether it is active or expired).

Here is an example output of the command:

ALIAS USERNAME ORG ID STATUS
─── ─────── ───────────────────────── ──────────────────── dev test@example.com 00DXXXXXXXXXXXXXXX Active
uat uat@example.com 00DXXXXXXXXXXXXXXX Active
prod prod@example.com 00DXXXXXXXXXXXXXXX Active

This command is useful for gaining an overview of the Salesforce orgs you are currently authenticated with using Salesforce CLI.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the sfdx tool