Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 1.05 KB

File metadata and controls

39 lines (24 loc) · 1.05 KB

Login Workflow

Use this workflow when the user needs to log in to the CLI.

Reference command syntax in references/auth.md.

Flow

  1. Ask the user which login method they want: MetaMask Mobile QR or browser (Google / Email).
  2. Execute login.
  3. Verify with token.

Login

For non-interactive/CI flows, use mm login browser --no-wait:

mm login browser --no-wait

The 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.

Verify

Once the user completes sign-in, verify with:

mm login --token "<TOKEN>"

Confirm

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