Skip to main content

Authentication

The Esper CLI supports multiple authentication methods.

Hosted token flow

For cloud deployments:

esper auth login --profile cloud --token <jwt>
esper auth whoami

Self-hosted API key

For self-hosted deployments:

esper auth login --profile local --api-key <tenant-api-key>
esper auth whoami

Checking authentication

Verify your current authentication:

esper auth whoami

Logout

Clear stored credentials:

esper auth logout