Skip to content

Configuration

All CLI configuration is stored in:

PlatformLocation
macOS/Linux~/.flightstack/
Windows%USERPROFILE%\.flightstack\

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.

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.

Both CLI and agent support multiple configuration profiles for different environments:

Terminal window
# CLI with profile
flightstack login --profile dev # Creates cli_config.dev.json
flightstack status --profile dev
# Agent with profile
flightstack-agent register --profile dev # Creates config.dev.json
flightstack-agent start --profile dev

Set the FLIGHTSTACK_PROFILE environment variable to use a profile by default:

Terminal window
export FLIGHTSTACK_PROFILE=dev
# These now use dev profile automatically
flightstack status
flightstack-agent start
ProfileCLI ConfigAgent Config
(none)cli_config.jsonconfig.json
devcli_config.dev.jsonconfig.dev.json
stagingcli_config.staging.jsonconfig.staging.json

Agent runtime logs (when running):

[14:32:15] FlightStack Build Agent
[14:32:15] ✓ Agent is online
[14:35:22] New build job received
...

Process ID when agent is running in daemon mode.

VariableDescription
FLIGHTSTACK_API_URLOverride API URL
FLIGHTSTACK_TOKENOverride auth token
FLIGHTSTACK_PROFILESet config profile (e.g., dev, staging)

For self-hosted FlightStack:

Terminal window
# Set via environment
export FLIGHTSTACK_API_URL=https://flightstack.mycompany.com
# Or edit config.json manually

Remove all CLI data:

Terminal window
rm -rf ~/.flightstack

Then run flightstack login to reconfigure.