Back to list
dev_to 2026年4月25日

nylas auth show 解説 — フラグ、例、ヒント

nylas auth show Explained — Flags, Examples, Tips

Translated: 2026/4/25 2:00:53
nylas-cliauthenticationoauthcommand-line-toolssecurity

Japanese Translation

認証は、端末とメールボックスの間のゲートです。nylas auth show がそれを処理します。 nylas auth show コマンドは、接続されたアカウントの詳細情報(メールアドレス、プロバイダ、Grant ID、OAuth スコープ、トークンの有期限、同期ステータスを含む)を表示します。特定のアカウントを検索するには Grant ID を指定します。 コマンドラインは、あなたのシステムキーチェーン(macOS Keychain、Linux Secret Service、Windows Credential Manager)に認証情報を安全に保存します。トークンは自動的にリフレッシュされ、一度認証すればコマンドが自動的に実行されます。 アクティブなアカウントを表示: nylas auth show 特定の Grant を表示: nylas auth show grant_abc123 --json デバッグモード:--verbose を追加して、下地の API リクエストとレスポンスを確認してください——これは期待した挙動と異なる場合に役立ちます。 スクリプト対応:--json を追加して機械読み取り可能な出力に、--yes(対応する場合)を指定して自動化パイプライン内で確認をスキップします。 nylas auth config — Nylas コマンドライン用の API 認証情報を設定 nylas auth login — メールボックスを接続するプロバイダ(Gmail、Outlook など)と認証 nylas auth list — すべての接続されたアカウント(Grants)をリスト nylas auth whoami — アクティブなアカウントの現在のユーザー情報を表示 完全なドキュメント:nylas auth show reference — すべてのフラグ、高度な例、トラブルシューティング すべてのコマンド:Nylas CLI コマンド参考 始め方:brew install nylas/nylas-cli/nylas — 他のインストール方法

Original Content

Authentication is the gate between your terminal and your mailbox. nylas auth show handles it. The nylas auth show command displays detailed information about a connected account including email address, provider, grant ID, OAuth scopes, token expiry, and sync status. Pass a grant ID to inspect a specific account. nylas auth show [grant-id] The CLI stores credentials securely in your system keychain (macOS Keychain, Linux Secret Service, or Windows Credential Manager). Tokens are refreshed automatically — you authenticate once and commands just work. Show active account: nylas auth show Show specific grant: nylas auth show grant_abc123 --json Debug mode: Add --verbose to see the underlying API requests and responses — useful when something doesn't behave as expected. Script-friendly: Add --json for machine-readable output and --yes (where supported) to skip confirmations in automated pipelines. nylas auth config — Configure API credentials for the Nylas CLI nylas auth login — Authenticate with a provider (Gmail, Outlook, etc.) to connect your mailbox nylas auth list — List all connected accounts (grants) nylas auth whoami — Show current user info for the active account Full docs: nylas auth show reference — all flags, advanced examples, and troubleshooting. All commands: Nylas CLI Command Reference Get started: brew install nylas/nylas-cli/nylas — other install methods