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.