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

1sf org display --target-org <username-or-alias>

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.

1sf org display --target-org my-scratch-org
2
3Warning: Secrets are now hidden from 'sf org display' command output. Use the 'sf org auth' commands instead. As a temporary workaround, you can set SF_TEMP_SHOW_SECRETS=true to render these secrets. This workaround will be removed in an upcoming release.
4
5=== Org Description
6
7 KEY             VALUE
8 ─────────────── ────────────────────────────────────────────────────────────────────────────────────────────────────────────────
9 Access Token    [REDACTED] Use 'sf org auth show-access-token' to view
10 Alias           my-scratch-org
11 Api Version     58.0
12 Client Id       PlatformCLI
13 Created By      jdoe@fabdevhub.org
14 Created Date    2023-06-09T17:59:18.000+0000
15 Dev Hub Id      jdoe@fabdevhub.org
16 Edition         Developer
17 Expiration Date 2023-06-16
18 Id              00D8H0000007wprU
19 Instance Url    https://java-connect-41-dev-ed.scratch.my.salesforce.com
20 Org Name        Your Company
21 Signup Username test-gm9uud@example.com
22 Status          Active
23 Username        test-gm9uud@example.com

To help prevent security breaches, the org display output doesn’t include sensitive authentication information such as access tokens, passwords, SFDX auth URLs, client secrets, or refresh tokens. To explicitly retrieve these secrets, use the sf org auth show-* commands.

Note