Authentication
Login#
scalar auth loginThis opens the dashboard to authenticate, which is typically what you want on a local development machine.
Login with an API Key#
For CI/CD or other automated workflows, you can authenticate with an API key directly:
scalar auth login --token your-secret-scalar-api-keyTo generate an API key, go to https://dashboard.scalar.com and navigate to Account > API Keys.
Check the Current User#
scalar auth whoamiLogout#
scalar auth logout