Getting an API Key
- Go to Account → Personal API Keys in Revyl
- Click New API key
- Select an expiration period (recommended: 1 year for development)
- Click Create and copy the key
API keys are only shown once. Store it securely - you’ll need it for the next step.
Interactive Login
The simplest way to authenticate:Check Authentication Status
Verify your current authentication:Logout
Remove stored credentials:Environment Variable (CI/CD)
For CI/CD pipelines, use theREVYL_API_KEY environment variable instead of interactive login:
GitHub Actions Example
GitLab CI Example
Credential Storage
When you runrevyl auth login, credentials are stored in:
.gitignore template.
Never commit API keys to version control. Use environment variables or secrets management for CI/CD.
Troubleshooting
”Invalid API key” Error
- Verify the key hasn’t expired in the Revyl dashboard
- Check for extra whitespace when copying the key
- Ensure you’re using the correct organization’s key
”Network error” During Login
- Check your internet connection
- Verify
api.revyl.aiis accessible from your network - Try
revyl pingto test connectivity
Credentials Not Persisting
- Check write permissions for
~/.revyl/ - Ensure the directory exists:
mkdir -p ~/.revyl