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
sumr login# sign in to prodsumr login --stage local# choose a stagesumr whoami# verify the sessionFlags you can use
--stage <name>Select an available stage and persist it for later commands.
--help, -hShow the command syntax, supported flags, and examples without changing files.
Keep in mind
- Use
sumr whoamiafter login when you need safe proof of the active account and stage. - Do not paste tokens into docs, issues, screenshots, or support threads.