jex login
Authenticate the CLI with your Jex account.
Usage
jex login [flags]
Behavior
- Opens your system browser to
<apiURL>/api/v1/auth/cli-callback - Starts a local HTTP callback server on a random port
- After you authenticate in the browser, the API redirects back with a token
- The token is saved to
~/.jex/tokenwith0600permissions - 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
| Flag | Description |
|---|---|
--api-url | Base 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 sessionjex init— initialize a project after logging in