Skip to main content
Two ways to authenticate: browser-based SSO (moss login) for interactive use, or API key (moss auth login --key ...) for scripting and CI/CD.

moss login

Log in via your browser. This is the recommended method for interactive use — it opens the MossDesk dashboard, you authorize the CLI, and credentials are saved automatically.
moss login is a top-level command, not under auth. It’s the fastest way to get started.

moss auth login

Save an API key for a workspace. Use this for non-interactive environments like CI pipelines or automation scripts.
The key is stored in ~/.moss/config.json. If --workspace is provided, it becomes the active workspace.

moss auth logout

Remove saved credentials.

moss auth whoami

Show the current authentication context — user info and active workspace.