- 概要
- はじめに
- 概念
- UiPath CLI を使用する
- 使用ガイド
- CI/CD レシピ
- コマンド リファレンス
- 概要
- 終了コード
- グローバル オプション
- uip codedagent
- uip coder
- uip context-grounding
- uip docsai
- uip function
- uip guardrails
- uip llm-configuration
- uip llm-gateway
- uip model-hub
- add-test-data-entity
- テスト データのキューを追加
- 追加-テスト-データ-バリエーション
- 分析
- 開発
- プロジェクトを作成
- 差分
- アクティビティを検索
- GET-ANALYZER-RULES
- get-default-activity-xaml
- エラーを取得
- 手動テスト用のテスト ケースを取得
- 手動テストステップを取得
- get-library-object-repository
- get-object-repository
- get-versions
- Get-workflow-example
- indicate-application
- 要素を示す
- inspect-package
- install-data-fabric-entities
- パッケージのインストールまたは更新
- list-data-fabric-entities
- list-instances
- list-workflow-examples
- パッケージ化
- パブリッシュ
- remote
- 元に戻す
- run, debug & execution
- ファイル名を実行
- 検索テンプレート
- スタートスタジオ
- 実行を停止
- tm
- UIA
- uip tasks
- uip traces
- uip traces feedback
- 移行
- 参照とサポート
「uip login status」の構文とオプション - トークンを更新せずに現在の認証状態を報告します。
uip login status は、現在の認証ステート (ログインしているかどうか、選択されている組織とテナント、アクセス トークンの有効期限) を報告します。これは保存されたセッションの読み取り専用検査であり、このコマンドによってトークンは更新されません。
スクリプトで使用して後続の作業をゲートしたり、対話形式で後続の uip 呼び出しでターゲットとするテナントを確認したりします。
概要
uip login status
uip login status
このコマンドは、 グローバル オプション (--output、 --output-filter、 --log-level、 --log-file) を優先します。終了コードは 標準コントラクトに従います。
引数
設定はありません。
オプション
設定はありません。
login status は -f, --file <folder> を受け入れず、常に既定の資格情報の場所を読み取ります。既定以外の資格情報フォルダーを使用している場合は、ステータスを確認する前に、そのフォルダーで対応する uip login ... コマンドを再実行します。
例
# Human-readable (default table output)
uip login status
# JSON for scripts
uip login status --output json
# Human-readable (default table output)
uip login status
# JSON for scripts
uip login status --output json
データシェイプ(--output json)
{
"Code": "LoginStatus",
"Data": {
"Status": "Logged in",
"Identity": "jane.doe@example.com",
"IdentityType": "User",
"AuthFlow": "Interactive",
"CredentialSource": "SavedLogin",
"Organization": "my-org",
"OrganizationId": "00000000-0000-0000-0000-000000000001",
"Tenant": "DefaultTenant",
"TenantId": "00000000-0000-0000-0000-000000000002",
"Expiration Date": "2026-04-18T10:30:00Z"
}
}
{
"Code": "LoginStatus",
"Data": {
"Status": "Logged in",
"Identity": "jane.doe@example.com",
"IdentityType": "User",
"AuthFlow": "Interactive",
"CredentialSource": "SavedLogin",
"Organization": "my-org",
"OrganizationId": "00000000-0000-0000-0000-000000000001",
"Tenant": "DefaultTenant",
"TenantId": "00000000-0000-0000-0000-000000000002",
"Expiration Date": "2026-04-18T10:30:00Z"
}
}
Status— one ofLogged inorNot logged in. When not logged in, most fields below are omitted andOrganization/Tenantfall back toN/A.Identity— who is acting: a user's email for interactive sessions, or"External application <clientId>"for a client-credentials/federated session. Omitted when it can't be determined.IdentityType—"User"or the External App's type. Present wheneverIdentityis.AuthFlow— how the identity was proven:"Interactive","ClientCredentials", or"FederatedCredentials". Present when known.CredentialSource— where the session came from:"Robot","EnvironmentVariables","SavedLogin", or"N/A".UserId/UserEmail/UserName/ClientId— additional identity detail, each present only when the underlying session actually carries that field.Profile— the active named profile, when one is set and the session is file-based.Organization— 組織名 (利用可能な場合)。その他の場合は組織 ID。OrganizationId— present alongsideOrganizationwhen the ID is known separately from the name.Tenant— テナント名 (利用可能な場合)。それ以外の場合はテナント ID。テナントが選択されていない場合はN/A。TenantId— present alongsideTenantwhen the ID is known separately from the name.BaseUrl— the resolved identity/API base URL, when known.Expiration Date— アクセス トークンの有効期限の ISO-8601 タイムスタンプ。これはここでは更新されません。後でツールを呼び出すと、必要に応じてトークンが更新されます。Hint(optional) — advisory text when the auth layer has something to surface — for example, an opaque PAT session reports"Token is opaque (not a JWT) - expiration and identity cannot be determined locally. Commands will fail with 401 once it is revoked or expired."instead of an expiration date.Provider(deprecated) — a legacy, lower-fidelity version ofCredentialSource("Robot"/"Environment"/"File"/"N/A"), kept for one release for existing scripts. ReadCredentialSourceinstead;Providerwill be removed.
Exactly which fields appear depends on the auth flow — a PAT/environment-variable session, for example, has no Identity/AuthFlow (the token carries no claims to derive them from) but does carry CredentialSource and BaseUrl.
エラー動作
保存済みセッションが読み取り不能であるか、環境変数のフォールバック(UIPATH_CLI_*)が不完全な場合、CLI は ConfigErrorを出力します。[ Instructions ] フィールドをクリックすると、正しい根本原因にたどり着くことができます。
- 環境変数が使用されているが、設定に誤りがある場合は、手順をお読みください
"Check the UIPATH_CLI_* environment variables and re-run." - それ以外の場合、手順はディスク上の credentials フォルダーをポイントします。
関連
uip login— テナントを認証して選択します。uip logout— 保存済みセッションをクリアします。- 認証 —
Status反映する内容とトークンの更新方法。 - セッションと資格情報 — フォルダーの場所とオーバーライド ルール。