Authentication

Some CLI commands require authentication to interact with the API.

Login

Authenticate with your credentials:

thesis login

This opens a browser window for OAuth authentication. After authorizing, a token is stored locally.

API Key

For CI/CD environments, use an API key instead:

export thesis_API_KEY=your-api-key-here

Or pass it directly:

thesis deploy --api-key=your-api-key-here

Token Storage

Tokens are stored in ~/.thesis/credentials.json. This file should never be committed to version control.

Logout

Remove stored credentials:

thesis logout

Verifying Authentication

Check your current authentication status:

thesis whoami

This displays the authenticated user and organization.