org display

<!-- prettier-ignore-start -->

Display information about an org.

Description for org display

Output includes your access token, client Id, connected status, org ID, instance URL, username, and alias, if applicable.

Use --verbose to include the SFDX auth URL. WARNING: The SFDX auth URL contains sensitive information, such as a refresh token that can be used to access an org. Don't share or distribute this URL or token.

Including --verbose displays the sfdxAuthUrl property only if you authenticated to the org using "org login web" (not "org login jwt").

Aliases for org display

force:org:display

Flags

Flag Name (Long) Flag Name (Short) Description
<code>‑‑api‑version</code> N/A Type: Value<br><br>Override the api version used for api requests made by this command
<code>‑‑flags‑dir</code> N/A Type: Value<br><br>Import flag values from a directory.
<code>‑‑json</code> N/A Type: Boolean<br><br>Format output as json.
<code>‑‑target‑org</code> <code>‑o</code> Type: Value<br>Required<br><br>Username or alias of the target org. Not required if the target-org configuration variable is already set.
<code>‑‑verbose</code> N/A Type: Boolean<br><br>Display the sfdxAuthUrl property.

Examples for org display

Display information about your default org:

sf org display

Display information, including the sfdxAuthUrl property, about the org with alias TestOrg1:

sf org display --target-org TestOrg1 --verbose
<!-- prettier-ignore-end -->