org display

Display information about an org.

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”).

force:org:display

Flag Name (Long)Flag Name (Short)Description
‑‑api‑versionN/AType: Value

Override the api version used for api requests made by this command
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑jsonN/AType: Boolean

Format output as json.
‑‑target‑org‑oType: Value
Required

Username or alias of the target org. Not required if the target-org configuration variable is already set.
‑‑verboseN/AType: Boolean

Display the sfdxAuthUrl property.

Display information about your default org:

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