Skip to content

Authentication

Authenticate with FlightStack:

Terminal window
flightstack login

This opens your default browser for authentication. After completing login in the browser, you’ll see:

✓ Logged in successfully!
Welcome back, your-username
  1. CLI generates a secure authentication request
  2. Browser opens to FlightStack login page
  3. You authenticate (email/password or OAuth)
  4. Token is securely stored locally

Credentials are stored at ~/.flightstack/config.json:

{
"apiUrl": "https://api.flightstack.dev",
"accessToken": "eyJhbG...",
"refreshToken": "eyJhbG..."
}

Tokens are automatically refreshed when expired.

Sign out and remove stored credentials:

Terminal window
flightstack logout
✓ Logged out successfully

Many commands require authentication. If not logged in:

Not logged in. Run: flightstack login

Manually visit the URL shown in the terminal and complete authentication.

Re-run flightstack login to refresh your session.

The CLI supports one account at a time. Log out and log in with a different account as needed.