Skip to main content

Overview

The auth command handles authentication with Qovery. You can authenticate using interactive login or API tokens.

Commands

Login

Authenticate with Qovery interactively:
This will open your browser to complete the authentication flow.

Headless Login

For environments without a browser (CI/CD, servers), use headless mode:
This will provide a URL that you can open manually to complete authentication.

Login with API Token

Set your API token as an environment variable:
You can generate an API token from the Qovery Console under SettingsAPI Tokens.

Token

Output the current valid access token (refreshing it if expired). Useful for making direct API calls to the Qovery API. For security reasons, the token is not printed by default. You must explicitly use --print or --json to output the token value.
Flags:
  • --print — Print the raw access token value to stdout
  • --json — Output as JSON with token, type, expiration, and API URL
  • --authorization-header — Output the full Authorization header value (e.g., Bearer eyJ...)
Examples:

Examples

Interactive Login

Headless Authentication

CI/CD Authentication

Server/Remote Authentication

Options