Skip to main content

Overview

Generate an API token for authenticating with Qovery programmatically. API tokens are useful for CI/CD pipelines, automation scripts, and integrations.

Command

This command generates a new API token that can be used for authentication instead of interactive login.

Usage

The command is fully interactive: it prompts you to select an organization, token name, description, and role. There are no flags to pass.

Examples

Generate Token

Using API Tokens

In CI/CD Pipelines

In Scripts

In Local Development

Security Best Practices

Never commit API tokens to version control. Always use secrets management:
  • GitHub Actions: Use secrets
  • GitLab CI: Use CI/CD variables
  • CircleCI: Use environment variables
  • Local: Use environment variables or secure vaults
Do:
  • Store tokens in CI/CD secret management
  • Use environment variables
  • Use secure vaults (AWS Secrets Manager, HashiCorp Vault)
  • Rotate tokens regularly
Don’t:
  • Commit tokens to Git
  • Share tokens in plain text
  • Use the same token across multiple systems
  • Store tokens in application code
Regularly rotate API tokens for security:
Generate separate tokens for different purposes by running qovery token for each and providing a descriptive name when prompted:

Managing Tokens

Tokens can be managed in the Qovery Console:
  1. Go to Organization settings → API token
  2. View all active tokens
  3. Revoke tokens that are no longer needed

Token Permissions

API tokens inherit permissions from your user account:
  • Full Access - Can perform all operations you can perform
  • Scoped to Organization - Token permissions apply to specific organization
  • Audit Trail - All token actions are logged

Examples by Use Case

CI/CD Deployment

Automated Monitoring Script

Tips

Generate separate tokens for different environments (production, staging, development) to limit blast radius if a token is compromised.
Use descriptive names when generating tokens to easily identify their purpose later.

Command reference

Generated from qovery token --help (CLI v1.180.0). Every command also accepts -h, --help and the global flags.

qovery token

Generate an API token
Usage
No command-specific flags.