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 have authorized and the scratch orgs that you have created.

Use this command to view authentication information about an org.

If you have set a default username, you don’t have to specify the --targetusername parameter. To display the usernames for all the active orgs that you’ve authorized or created, use force:org:list.

If you have set an alias for an org, you can specify it with the --targetusername parameter. This example uses the my-scratch alias.

To get more information, such as the Salesforce DX authentication URL, include the --verbose parameter. However, --verbose displays the Sfdx Auth Url only if you authenticated to the org using force:auth:web:login and not force:auth:jwt:grant.

To help prevent security breaches, the force:org:display output doesn’t include the org’s client secret or refresh token. If you need these values, perform an OAuth flow outside of the Salesforce CLI.

Note