Skip to main content

Documentation Index

Fetch the complete documentation index at: https://www.qovery.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Overview

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

Commands

Login

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

Headless Login

For environments without a browser (CI/CD, servers), use headless mode:
qovery auth --headless
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:
export QOVERY_CLI_ACCESS_TOKEN="your-api-token"
qovery auth
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.
qovery auth token [flags]
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:
# Print the raw token value
qovery auth token --print

# Use directly in a curl command
curl -H "Authorization: Bearer $(qovery auth token --print)" \
  https://api.qovery.com/organization

# Print the full Authorization header value
qovery auth token --print --authorization-header

# Get structured JSON output
qovery auth token --json

Logout

Clear authentication credentials:
qovery auth logout

Examples

Interactive Login

qovery auth
# Opens browser for authentication
# Credentials saved locally

Headless Authentication

qovery auth --headless
# Displays URL: https://auth.qovery.com/...
# Copy and paste URL in a browser
# Complete authentication manually

CI/CD Authentication

# In your CI/CD environment
export QOVERY_CLI_ACCESS_TOKEN="${{ secrets.QOVERY_TOKEN }}"
qovery auth
qovery application deploy --application "my-app"

Server/Remote Authentication

# On a remote server without browser
qovery auth --headless
# Copy the displayed URL
# Open URL on your local machine
# Authentication will be saved on the server

Switch Accounts

# Logout from current account
qovery auth logout

# Login with different account
qovery auth

Options

FlagDescription
--headlessHeadless mode for environments without a browser (provides URL to copy/paste)
--skipVersionCheckSkip CLI version check during authentication
--helpShow help for auth command