Configuration
CLI Configuration
Section titled “CLI Configuration”Configuration Directory
Section titled “Configuration Directory”All CLI configuration is stored in:
| Platform | Location |
|---|---|
| macOS/Linux | ~/.flightstack/ |
| Windows | %USERPROFILE%\.flightstack\ |
cli_config.json
Section titled “cli_config.json”User authentication and API settings:
{ "apiUrl": "https://api.flightstack.voostack.com", "accessToken": "eyJhbG...", "refreshToken": "eyJhbG...", "tokenExpiresAt": "2024-01-15T10:30:00Z", "userId": "abc123...", "email": "you@example.com"}Created by flightstack login, removed by flightstack logout.
config.json (Agent)
Section titled “config.json (Agent)”Agent registration configuration:
{ "agentId": "a1b2c3d4-...", "token": "eyJhbG...", "apiUrl": "https://api.flightstack.voostack.com", "agentName": "My-MacBook-Pro", "platform": "macOS", "organizationId": null, "organizationName": null}Created by flightstack-agent register.
Profile Support
Section titled “Profile Support”Both CLI and agent support multiple configuration profiles for different environments:
Using Profiles
Section titled “Using Profiles”# CLI with profileflightstack login --profile dev # Creates cli_config.dev.jsonflightstack status --profile dev
# Agent with profileflightstack-agent register --profile dev # Creates config.dev.jsonflightstack-agent start --profile devEnvironment Variable
Section titled “Environment Variable”Set the FLIGHTSTACK_PROFILE environment variable to use a profile by default:
export FLIGHTSTACK_PROFILE=dev
# These now use dev profile automaticallyflightstack statusflightstack-agent startProfile Files
Section titled “Profile Files”| Profile | CLI Config | Agent Config |
|---|---|---|
| (none) | cli_config.json | config.json |
dev | cli_config.dev.json | config.dev.json |
staging | cli_config.staging.json | config.staging.json |
agent.log
Section titled “agent.log”Agent runtime logs (when running):
[14:32:15] FlightStack Build Agent[14:32:15] ✓ Agent is online[14:35:22] New build job received...agent.pid
Section titled “agent.pid”Process ID when agent is running in daemon mode.
Environment Variables
Section titled “Environment Variables”| Variable | Description |
|---|---|
FLIGHTSTACK_API_URL | Override API URL |
FLIGHTSTACK_TOKEN | Override auth token |
FLIGHTSTACK_PROFILE | Set config profile (e.g., dev, staging) |
Custom API URL
Section titled “Custom API URL”For self-hosted FlightStack:
# Set via environmentexport FLIGHTSTACK_API_URL=https://flightstack.mycompany.com
# Or edit config.json manuallyResetting Configuration
Section titled “Resetting Configuration”Remove all CLI data:
rm -rf ~/.flightstackThen run flightstack login to reconfigure.