Skip to content

from @unified-product-graph/cli · Cloud

upg login

Authenticate with UPG cloud via browser OAuth or --key.

Usage

upg login [options]

Options

--endpoint <url>
Cloud endpoint URL. Defaults to https://cloud.unifiedproductgraph.org
--key <key>
API key. Skips the browser flow

Examples

Authenticate via the browser OAuth flow

upg login

Output


Opening browser for authentication...

Waiting for authentication at: https://cloud.unifiedproductgraph.org/cli-auth?port=51847
(Press Ctrl+C to cancel)

✓ Logged in as you@example.com
  Endpoint: https://cloud.unifiedproductgraph.org
  Key stored in ~/.upg/credentials.json

Authenticate non-interactively with an API key

upg login --key $UPG_API_KEY

Related

upg logoutupg pushupg pull