login command authenticates your CLI session with the Panguard Cloud. By default it opens a browser for OAuth authentication, but also supports headless environments with the --no-browser flag.
Usage
Options
Override the default Panguard API endpoint. Useful for self-hosted or staging environments.
Use device-code authentication instead of opening a browser. Prints a URL and code to enter manually — ideal for SSH sessions and headless servers.
Set the language for login prompts and messages.
Examples
Authentication Flow
- Browser (default)
- Headless (--no-browser)
- CLI opens your default browser to the Panguard login page
- You sign in with email, Google, or GitHub
- Browser redirects back and the CLI receives the token
- Token is stored securely in
~/.panguard/credentials
Plan Requirements
Available on all plans including Community (Free).