Overview
Thesunpeak login command authenticates you with your Sunpeak account using a secure browser-based flow. This is required before using sunpeak push, sunpeak pull, or sunpeak deploy.
How It Works
The login command uses the OAuth 2.0 Device Authorization flow:- Opens your browser to the Sunpeak authentication page
- Displays a code if the browser doesn’t open automatically
- Waits for you to complete authentication in the browser
- Securely stores your credentials locally
Credential Storage
Credentials are stored securely in your home directory:Session Management
- Credentials persist between terminal sessions
- Run
sunpeak logoutto clear stored credentials - If already logged in, the command will notify you
Usage
No additional options are required. The command handles the entire authentication flow automatically.