list_connected_salesforce_orgs
Retrieve all Salesforce orgs connected to the Salesforce CLI as JSON, including aliases and metadata, to choose which org to target in other tools.
Instructions
List connected Salesforce Orgs. This command retrieves a list of all Salesforce Orgs that are currently connected to the Salesforce CLI. The results are returned in JSON format, providing details about each Org, including its alias, username, and other metadata. Use this command to see which Salesforce Orgs you have access to and can interact with using the Salesforce CLI. Usernames, org IDs and instance URLs in the result are masked for privacy; refer to orgs by alias when passing targetOrg to other tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| sandboxes | Yes | ||
| totalOrgs | Yes | ||
| devHubOrgs | Yes | ||
| production | Yes | ||
| scratchOrgs | Yes | ||
| permissionMessage | No |