Newer Version Available

This content describes an older version of this product. View Latest

Authorization Information for an Org

You can view information for all orgs that you’ve authorized and the scratch orgs that you’ve created.

To view authorization information about an org, run this command from a terminal (macOS and Linux) or command prompt (Windows).

If you have set a default org, you don’t have to specify the --target-org flag. To display the usernames for all the active orgs that you’ve authorized or created, run org list.

If you’ve set an alias for an org, you can specify it with the --target-org flag. This example uses the my-scratch-org alias.

To get more information, such as the Salesforce DX authentication URL, include the --verbose flag. This flag displays the Sfdx Auth Url value only if you authorized the org using org login web and not org login jwt.

To help prevent security breaches, the org display output doesn’t include the org’s client secret or refresh token.

Note