Reflex Docs
CLI

reflex signup / login / logout / whoami

Account creation and local credential management.

reflex signup

Create a new Reflex account.

reflex signup --name "Jane Doe" --email jane@example.com

You'll be prompted for a password (minimum 8 characters). The command creates the account but does not log you in — run reflex login afterward to obtain an API key.

FlagDefaultDescription
--namerequiredDisplay name.
--emailrequiredEmail address.
--passwordpromptedAccount password (≥ 8 chars).
--site-urlhttps://app.tryreflex.aiOverride the dashboard URL.
--callback-urlURL to return to after signup completes.
--jsonoffJSON output.

reflex login

Authenticate and store an API key locally.

reflex login

The CLI:

  1. Creates a device-auth request.
  2. Opens the approval URL in your browser (prints it as a fallback).
  3. Polls until you approve.
  4. Writes the resulting API key to ~/.config/reflex/credentials.json.
FlagDefaultDescription
--timeout600.0 sHow long to wait for approval. 0 exits after printing the URL.
--poll-interval2.0 sHow often to poll while waiting.
--hostnamesystem hostLabel shown on the approval screen.
--site-urlproductionOverride the dashboard URL.
--convex-urlproductionOverride the API backend URL.
--verbose, -voffPrint request IDs and browser hints.
--jsonoffJSON output.

Headless servers

# On the headless host: print the URL and exit
reflex login --timeout 0

# Open the printed URL on a workstation with a browser, approve it,
# then re-run login on the headless host to fetch the key:
reflex login

reflex logout

Delete the local credentials file.

reflex logout

Does not revoke the key on the server side — to invalidate a key permanently, rotate or delete it from the dashboard.

reflex whoami

Verify which account the current API key belongs to.

reflex whoami

Sample JSON output:

{
  "ok": true,
  "account": {
    "userId": "user_...",
    "email": "jane@example.com",
    "organization": { "id": "org_...", "name": "Acme Robotics" }
  }
}

Exits non-zero if no key is configured or the key is invalid.