CLISetup

How to

Sign in

Store a session for commands that call SUMR services.

What changes

sumr login starts the browser/device sign-in flow and stores the active session for later commands. Use --stage only when your CLI build exposes multiple stages.

When this helps

  • A command needs the API or account identity.
  • An authentication or session-expired error blocks a command.
  • You need to switch the CLI to another available stage.

Run this command

terminal
sumr login# sign in to prodsumr login --stage local# choose a stagesumr whoami# verify the session

Flags you can use

--stage <name>

Select an available stage and persist it for later commands.

--help, -h

Show the command syntax, supported flags, and examples without changing files.

Keep in mind

  • Use sumr whoami after login when you need safe proof of the active account and stage.
  • Do not paste tokens into docs, issues, screenshots, or support threads.