Skip to main content

Usage

Log in with a browser-based device flow. The CLI stores a token locally for the chosen environment.

Options

Flow

  1. Checks if you’re already logged in and asks whether to re-authenticate.
  2. Starts the device authorization flow and shows a short code and URL.
  3. Opens your browser so you can approve access (follow the URL if the browser doesn’t open).
  4. Polls until authorization completes, validates the token, and saves it locally with its expiry.

Examples

If you need to capture the exact expiry, the CLI prints it after a successful login.