Skip to main content

mr auth

Manage CLI authentication against a mahresources server. Logging in mints an API token and stores it so subsequent commands are authenticated automatically.

Usage

mr auth

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)