組織の認証情報
認証したすべての組織と作成したスクラッチ組織の情報を表示できます。
組織の認証情報を表示するには、ターミナル (macOS と Linux) またはコマンドプロンプト (Windows) で次のコマンドを実行します。
1sf org display --target-org <username-or-alias>デフォルトの組織を設定している場合、--target-org フラグを指定する必要はありません。認証または作成したすべての有効な組織のユーザー名を指定するには、org list を使用します。
組織の別名を設定している場合、--target-org フラグで指定できます。この例では、my-scratch-org という別名を使用します。
1sf org display --target-org my-scratch-org
2
3Warning: This command will expose sensitive information that allows for subsequent activity using your current authenticated session.
4Sharing this information is equivalent to logging someone in under the current credential, resulting in unintended access and escalation of privilege.
5For additional information, please review the authorization section of the https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_web_flow.htm
6
7=== Org Description
8
9 KEY VALUE
10 ─────────────── ────────────────────────────────────────────────────────────────────────────────────────────────────────────────
11 Access Token <long-string>
12 Alias my-scratch-org
13 Api Version 58.0
14 Client Id PlatformCLI
15 Created By jdoe@fabdevhub.org
16 Created Date 2023-06-09T17:59:18.000+0000
17 Dev Hub Id jdoe@fabdevhub.org
18 Edition Developer
19 Expiration Date 2023-06-16
20 Id 00D8H0000007wprU
21 Instance Url https://java-connect-41-dev-ed.scratch.my.salesforce.com
22 Org Name Your Company
23 Signup Username test-gm9uud@example.com
24 Status Active
25 Username test-gm9uud@example.comSalesforce DX 認証 URL などの詳細情報を取得するには、--verbose フラグを指定します。このフラグは、org login jwt ではなく、org login web を使って組織を認証した場合にのみ、Sfdx Auth Url の値を表示します。