Log out of your nself.org account. Removes the local session token and, with --all, revokes every active session across all devices.
# Log out of the current machine
nself logout
# Revoke all active sessions (all devices)
nself logout --allnself logout [FLAGS]nself logout is the shorthand alias for nself account logout. It deletes~/.nself/auth.json from disk and calls the nself.org revocation endpoint to invalidate the current session token server-side.
By default only the current machine's session is revoked. If you suspect a session was compromised — or want to force a clean login on all machines — use --all to revoke every session tied to the account.
Logout does not affect license keys. Your nself_pro_* keys remain stored in.nself/license.json and continue to work (subject to the 7-day offline cache) until you explicitly run nself license clear.
| Flag | Type | Default | Description |
|---|---|---|---|
--all | bool | false | Revoke all active sessions on all devices, not just this one |
--json | bool | false | Emit a JSON confirmation on success |
nself logout
# Logged out (session revoked)
# Token removed from ~/.nself/auth.jsonnself logout --all
# All sessions revoked (3 devices)
# Log back in with: nself loginnself logout --json
# { "status": "logged_out", "sessions_revoked": 1 }.nself/license.json) — run nself license clear separately.nself/project.json, .env.*) — these are local onlynself stop and nself reset for stack teardownNSELF_API_BASE — override the revocation endpoint base URL (default: https://nself.org)0 — logged out successfully1 — revocation request failed (server error)2 — invalid arguments3 — not currently logged in (token file not found)