Configuration
The CLI resolves configuration from multiple sources in priority order.
Resolution order
- CLI flags —
--api-key,--api-url - Environment variables —
LAUNCHGATE_API_KEY,LAUNCHGATE_API_URL - Config file —
.launchgatercin current directory - Config file —
.launchgatercin home directory
Higher-priority sources override lower ones.
Environment variables
| Variable | Description |
|---|---|
LAUNCHGATE_API_KEY | Your LaunchGate API key |
LAUNCHGATE_API_URL | API base URL (default: https://api.launchgate.ai) |
export LAUNCHGATE_API_KEY=lg_live_your_key_here
export LAUNCHGATE_API_URL=https://api.launchgate.aiConfiguration file
Create a .launchgaterc file in your project root or home directory:
.launchgaterc
{
"apiKey": "lg_live_your_key_here",
"baseUrl": "https://api.launchgate.ai"
}Both camelCase and snake_case are supported:
.launchgaterc
{
"api_key": "lg_live_your_key_here",
"base_url": "https://api.launchgate.ai"
}CI/CD configuration
In CI/CD environments, use environment variables or secret managers:
GitHub Actions
env:
LAUNCHGATE_API_KEY: ${{ secrets.LAUNCHGATE_API_KEY }}Other CI systems
# Set the env var in your CI configuration
LAUNCHGATE_API_KEY=lg_live_your_key_here launchgate run my-suite --output "..."Last updated on