Use this workflow when the user needs to log in to the CLI.
Reference command syntax in references/auth.md.
- Ask the user which login method they want: MetaMask Mobile QR or browser (Google / Email).
- Execute login.
- Verify with token.
For non-interactive/CI flows, use mm login browser --no-wait:
mm login browser --no-waitThe command prints a sign-in URL. The user opens it in a browser and chooses Google or Email to complete sign-in.
mm login qr (scan with MetaMask Mobile) is available on non-production builds (dev/uat); on production it returns COMING_SOON. QR login keeps the CLI attached to the relay, so it does not support --no-wait.
Once the user completes sign-in, verify with:
mm login --token "<TOKEN>"Run mm doctor to verify the session is ready. It reports authenticated and initialized booleans. Do not proceed until both are true. If initialized is false, follow workflows/onboarding.md to run mm init.
mm doctor