Skip to content

actionxm auth

Manage authentication with the ActionXM platform.

actionxm auth login

Authenticate via device authorization flow.

bash
actionxm auth login

Behavior:

  • Generates a one-time user code
  • Opens the verification URL in your browser
  • Polls until you approve access
  • Stores the JWT token in your config file

Example:

bash
$ actionxm auth login
Open https://app.action-xm.com/device in your browser
and enter code: ABCD-1234

 Waiting for authorization...
 Logged in as alice@acme.com
Active site: Acme Store (acme-store.com)
2 sites available. Use actionxm sites list to see all.

Exit codes:

  • 0 — Successfully authenticated
  • 1 — Authentication failed (expired, denied, or network error)

actionxm auth logout

Clear stored credentials.

bash
actionxm auth logout

Example:

bash
$ actionxm auth logout
 Logged out from alice@acme.com

Exit codes:

  • 0 — Logged out (or was not logged in)

actionxm auth status

Show current authentication state.

bash
actionxm auth status

Example (authenticated):

bash
$ actionxm auth status
Authenticated

Email:  alice@acme.com
Name:   Alice Johnson
Role:   admin
Tenant: 550e8400-e29b-41d4-a716-446655440000
Config: /home/alice/.config/actionxm/config.json

Example (not authenticated):

bash
$ actionxm auth status
Not authenticated
Run actionxm auth login to get started.

Exit codes:

  • 0 — Status displayed (regardless of auth state)

ActionXM Analytics Platform