import{_ as e,o as s,c as t,ag as i}from"./chunks/framework.DEqXEGcv.js";const u=JSON.parse('{"title":"Auth Commands","description":"","frontmatter":{},"headers":[],"relativePath":"cli/auth.md","filePath":"cli/auth.md","lastUpdated":1771161622000}'),o={name:"cli/auth.md"};function n(l,a,h,r,d,p){return s(),t("div",null,[...a[0]||(a[0]=[i('
Log in to the Memoh server. Prompts for username and password, then stores the JWT token in ~/.memoh/token.json.
memoh loginInteractive prompts:
Clear the stored token and log out.
memoh logoutShow the current logged-in user (username, display name, user ID, role). Falls back to token info if the API call fails.
memoh whoami