status
Check current login status and session information.
Usage
bash
magenta status [options]Options
| Option | Description |
|---|---|
--json | Output result as JSON |
Examples
Pretty Output
bash
magenta statusOutput when logged in:
Logged in as: user@example.com
Token expires in: 12 minutesOutput when not logged in:
Not logged inJSON Output
bash
magenta status --jsonjson
{
"loggedIn": true,
"username": "user@example.com",
"tokenExpiresAt": "2026-03-08T15:30:00.000Z"
}Notes
- Access tokens expire after ~15 minutes
- If expired, run
magenta loginto re-authenticate