JJex

jex login

Authenticate the CLI with your Jex account.

Usage

jex login [flags]

Behavior

  1. Opens your system browser to <apiURL>/api/v1/auth/cli-callback
  2. Starts a local HTTP callback server on a random port
  3. After you authenticate in the browser, the API redirects back with a token
  4. The token is saved to ~/.jex/token with 0600 permissions
  5. Prints: Logged in successfully.

On headless systems (CI, SSH), the login URL is printed to stdout if the browser cannot be opened. You can paste it into a browser on another machine.

Flags

FlagDescription
--api-urlBase URL of your self-hosted Jex API

Examples

jex login --api-url https://jex.yourcompany.com

Token storage

The token file lives at ~/.jex/token. It is a plain bearer token string. Never commit this file. Jex adds ~/.jex/ to your global gitignore by convention.

See also

  • jex logout — revoke the current session
  • jex init — initialize a project after logging in
jex login · Jex