Skip to main content

mr auth logout

Delete the locally stored API token for the current --server so this machine is no longer authenticated to it. Tokens stored for other servers are left intact. It does not affect MR_TOKEN; while that is set it overrides the stored credential and the CLI stays authenticated. This does not revoke the token on the server; use mr token revoke to invalidate it everywhere.

Usage

mr auth logout

Examples

Forget the stored credentials for the current server

mr auth logout

Logout is safe to run even when not logged in

mr auth logout

Flags

This command has no local flags.

Inherited global flags

FlagTypeDefaultDescription
--jsonboolfalseOutput raw JSON
--no-headerboolfalseOmit table headers
--pageint1Page number for list commands (default page size: 50)
--quietboolfalseOnly output IDs
--serverstringhttp://localhost:8181mahresources server URL (env: MAHRESOURCES_URL)

Exit Codes

0 success; 1 error (login failed, network error, or not authenticated)