Skip to content
FlightStack Docs
Sign in Start free

CLI Authentication | FlightStack

Five top-level commands cover authentication and CLI session:

CommandPurpose
flightstack loginOAuth-flow login through your browser.
flightstack logoutSign out and clear stored credentials.
flightstack configView or change CLI config (API URL, auto-update).
flightstack doctorDiagnose common CLI environment issues.
flightstack updateUpdate the CLI binary to the latest release.

Authenticate against FlightStack. Opens a browser tab, completes OAuth, writes credentials to ~/.flightstack/config.json.

Terminal window
flightstack login
FlagAliasDescription
--api-url <url>-aOverride the API URL for this login (use for self-hosted).
--force-fRe-authenticate even if a valid session already exists.
Terminal window
# Cloud login
flightstack login
# Self-hosted login
flightstack login --api-url https://flightstack.acme.internal
# Force re-auth (rotate tokens)
flightstack login --force

After a successful login you’ll see:

✓ Logged in successfully!
Welcome back, you@example.com

Credentials are stored at ~/.flightstack/config.json (on Windows: %USERPROFILE%\.flightstack\config.json). Tokens are refreshed automatically when they expire — no manual intervention required.

Sign out and remove stored credentials.

Terminal window
flightstack logout

Interactive — confirms before clearing the local config. Use this when switching accounts or preparing a machine for transfer.

View and change CLI configuration. By default (no flags) prints the current configuration — API URL, auth state, token expiry, and auto-update setting.

Terminal window
flightstack config [--show] [--api-url <url>] [--auto-update true|false] [--reset]
FlagAliasDescription
--show-sPrint the current configuration (default).
--api-url <url>Set the API URL (must be http:// or https://).
--auto-update true|falseEnable or disable auto-update of the CLI.
--resetReset to defaults (clears credentials and API URL).
Terminal window
# Print current config
flightstack config
# Switch to self-hosted
flightstack config --api-url https://flightstack.acme.internal
# Disable auto-update
flightstack config --auto-update false
# Wipe everything
flightstack config --reset

Sample output of flightstack config:

FlightStack CLI Configuration
────────────────────────────────────────
API URL: https://api.flightstack.voostack.com
Config Path: ~/.flightstack/config.json
Auto-Update: Enabled
Authentication: Logged in
Account: you@example.com
User ID: 7d2a8c84-…
Token Expires: 2026-06-15T01:42:00Z

Diagnose common CLI environment issues — Flutter, Dart, Xcode, Android SDK, network reachability, config sanity. Run this first when something is misbehaving.

Terminal window
flightstack doctor

Distinct from flightstack agent doctor, which checks agent-side concerns (service installation, binary version, PID file). See agent commands.

Manually update the CLI binary to the latest release. Most installs auto-update — this is the escape hatch.

Terminal window
flightstack update

If auto-update is enabled, the CLI checks once per day and applies updates in the background. Disable with flightstack config --auto-update false.

The login flow prints the URL on the terminal — copy it into a browser manually.

flightstack login --force issues fresh tokens. Most expirations refresh transparently on the next command.

Terminal window
flightstack config --api-url https://flightstack.acme.internal
flightstack login --force
Terminal window
flightstack config --reset
flightstack login