Need to display current api token? One command.
The nylas auth token command prints the active API token or access token for the current grant. Useful for debugging authentication issues, passing tokens to external scripts, or inspecting token claims.
Syntax
nylas auth token
Examples
Display token:
nylas auth token
Pass token to curl:
curl -H \
How It Works
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.
When to Use This
Reach for nylas auth token during initial setup, in CI/CD pipelines, or when managing multiple connected accounts. Combine with --json to pipe output into other tools.
Tips
Pipe to jq: nylas auth token --json | jq '.' gives you structured data you can filter and transform.
Combine with other commands: Chain nylas auth token with other Nylas CLI commands using shell pipes and variables for complex workflows.
Full docs: nylas auth token reference — all flags, advanced examples, and troubleshooting.
All commands: Nylas CLI Command Reference
Get started: brew install nylas/nylas-cli/nylas — other install methods
Top comments (0)