norcube login
Sign in to Norcube via your browser
Opens a Norcube login page in your default browser. After you sign in there, the CLI receives a session over a one-shot localhost callback. The session is stored for the selected profile (--profile, NORCUBE_PROFILE or the default profile) in your operating system's keyring (Keychain / Secret Service / Windows Credential Manager), or in a file when no keyring is available.
Logging in to a profile that doesn't exist yet creates it. Its organization is --org when given, else the profile's organization, else your default organization.
With --no-browser the CLI only prints the login URL. Open it in any browser on this machine; the page hands the session back to the CLI over 127.0.0.1.
With --device you approve the sign-in on any other device instead, such as your phone or laptop: the CLI shows a short code and a page to enter it on (and a QR code when the terminal can show one). Use it over SSH, in a container or on any machine without a browser. Only approve a code you started yourself: Norcube never asks you for one.
Usage
norcube login [flags]Examples
norcube login
norcube login --profile client-acme
norcube login --org acme
norcube login --device
norcube login --no-browser
norcube login --forceFlags
| Flag | Default | Description |
|---|---|---|
--device | Approve the sign-in on another device (phone, laptop) with a short code; for SSH and headless machines | |
--force | Re-authenticate even if a valid session already exists | |
--no-browser | Print the login URL instead of opening a browser |
Every command also takes the global flags: --profile, --org, -o, --query, --debug and more.
See also
norcube: Command-line interface for the Norcube platform