The access token is stored locally for future use.
Three authentication methods are available:
Browser OAuth (default):
Opens your web browser to the Shelly Cloud login page. After you log in,
the authorization code is automatically captured. This is the most secure
method as your password is never stored locally.
Auth Key (–key, –server):
Use the authorization key from the Shelly mobile app. Find it in:
User Settings → Authorization cloud key. You must also provide the
server URL shown with the key.
Email/Password (–email, –password):
Provide your Shelly Cloud email and password via flags or environment
variables (SHELLY_CLOUD_EMAIL, SHELLY_CLOUD_PASSWORD).
--email string Shelly Cloud email
-h, --help help for login
--key string Authorization key from Shelly App
--no-browser Don't auto-open browser, just print the URL
--password string Shelly Cloud password
--port int Port for OAuth callback server (default: auto-select)
--server string Server URL for auth key (e.g., shelly-59-eu.shelly.cloud)
--timeout duration Timeout waiting for OAuth callback (default 5m0s)