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