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.

1sfdx force:org:display --targetusername <username>

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.

1$ sfdx force:org:display --targetusername my-scratch-org
2
3=== Org Description
4KEY              VALUE
5───────────────  ───────────────────────────────────────────────────────────
6Access Token     <long-string>
7Alias            my-scratch-org
8Client Id        SalesforceDevelopmentExperience
9Created By       joe@mydevhub.org
10Created Date     2017-06-07T00:51:59.000+0000
11Dev Hub Id       jdoe@fabdevhub.org
12Edition          Developer
13Expiration Date  2017-06-14
14Id               00D9A0000008cKm
15Instance Url     https://page-power-5849-dev-ed.cs46.my.salesforce.com
16Org Name         Your Company
17Status           Active
18Username         test-apraqvkwhcml@your_company.net

To get more information, such as the Salesforce DX authentication URL, include the --verbose parameter.

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